Version Description
- Post Permalink Fixed
- WordPress SEO OpenGraph Dates fixed
- WooCommerce order detail date fixed
- New option for set locale in plugin page settings
- LTR post editor text mode
Download this release
Release Info
Developer | parselearn |
Plugin | Parsi Date |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0-alpha to 2.1
- assets/js/admin.js +2 -0
- includes/admin/lists-fix.php +4 -3
- includes/admin/styles-fix.php +2 -2
- includes/fixes-dates.php +12 -0
- includes/fixes-misc.php +10 -10
- includes/fixes-permalinks.php +2 -0
- includes/general.php +22 -9
- includes/settings.php +72 -31
- includes/widget/widget_archive.php +18 -14
- parsi-languages/fa_IR.mo +0 -0
- parsi-languages/fa_IR.po +74 -50
- readme.txt +9 -4
- screenshot-1.png +0 -0
- wp-parsidate.php +3 -1
assets/js/admin.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
jQuery(document).ready(function(){
|
2 |
|
|
|
|
|
3 |
function IsLeapYear( year ){
|
4 |
if(((year%4)==0&&(year%100)!=0)||((year%400)==0)&&(year%100)==0)return true;else return false;
|
5 |
}
|
1 |
jQuery(document).ready(function(){
|
2 |
|
3 |
+
jQuery('.wp-editor-wrap.html-active #content').css("direction","ltr");
|
4 |
+
|
5 |
function IsLeapYear( year ){
|
6 |
if(((year%4)==0&&(year%100)!=0)||((year%400)==0)&&(year%100)==0)return true;else return false;
|
7 |
}
|
includes/admin/lists-fix.php
CHANGED
@@ -56,9 +56,10 @@ function wpp_restrict_posts() {
|
|
56 |
global $post_type, $post_status, $wpdb, $persian_month_names;
|
57 |
|
58 |
$post_status_w = "AND post_status <> 'auto-draft'";
|
59 |
-
if($post_status != "")
|
60 |
-
$
|
61 |
-
|
|
|
62 |
$post_status_w .= " AND post_status <> 'trash'";
|
63 |
|
64 |
$sql = "SELECT DISTINCT date( post_date ) AS date
|
56 |
global $post_type, $post_status, $wpdb, $persian_month_names;
|
57 |
|
58 |
$post_status_w = "AND post_status <> 'auto-draft'";
|
59 |
+
if($post_status != "") {
|
60 |
+
if(is_string($post_status))
|
61 |
+
$post_status_w .= " AND post_status = '$post_status'";
|
62 |
+
}else
|
63 |
$post_status_w .= " AND post_status <> 'trash'";
|
64 |
|
65 |
$sql = "SELECT DISTINCT date( post_date ) AS date
|
includes/admin/styles-fix.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
* @return void
|
15 |
*/
|
16 |
function wpp_fix_editor_rtl() {
|
17 |
-
wp_enqueue_style( 'functions', WP_PARSI_URL . '
|
18 |
}
|
19 |
add_action( 'admin_print_styles-plugin-editor.php', 'wpp_fix_editor_rtl', 10 );
|
20 |
add_action( 'admin_print_styles-theme-editor.php', 'wpp_fix_editor_rtl', 10 );
|
@@ -26,6 +26,6 @@ add_action( 'admin_print_styles-theme-editor.php', 'wpp_fix_editor_rtl', 10 );
|
|
26 |
* @return void
|
27 |
*/
|
28 |
function wpp_fix_tinymce_font() {
|
29 |
-
add_editor_style( WP_PARSI_URL . '
|
30 |
}
|
31 |
add_filter( 'init', 'wpp_fix_tinymce_font', 9 );
|
14 |
* @return void
|
15 |
*/
|
16 |
function wpp_fix_editor_rtl() {
|
17 |
+
wp_enqueue_style( 'functions', WP_PARSI_URL . 'assets/css/admin-fix.css', false, WP_PARSI_VER, 'all' );
|
18 |
}
|
19 |
add_action( 'admin_print_styles-plugin-editor.php', 'wpp_fix_editor_rtl', 10 );
|
20 |
add_action( 'admin_print_styles-theme-editor.php', 'wpp_fix_editor_rtl', 10 );
|
26 |
* @return void
|
27 |
*/
|
28 |
function wpp_fix_tinymce_font() {
|
29 |
+
add_editor_style( WP_PARSI_URL . 'assets/css/editor.css' );
|
30 |
}
|
31 |
add_filter( 'init', 'wpp_fix_tinymce_font', 9 );
|
includes/fixes-dates.php
CHANGED
@@ -99,6 +99,18 @@ function wpp_fix_comment_date( $time, $format = '' ) {
|
|
99 |
*/
|
100 |
function wpp_fix_i18n( $format_string, $timestamp, $gmt ) {
|
101 |
global $wpp_settings;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
if ( $wpp_settings['conv_dates'] == 'disable' )
|
103 |
return parsidate( $timestamp, $gmt, 'eng' );
|
104 |
else
|
99 |
*/
|
100 |
function wpp_fix_i18n( $format_string, $timestamp, $gmt ) {
|
101 |
global $wpp_settings;
|
102 |
+
|
103 |
+
if(function_exists('debug_backtrace')) {
|
104 |
+
$callers = debug_backtrace();
|
105 |
+
|
106 |
+
// WordPress SEO OpenGraph Dates fix
|
107 |
+
if (isset($callers[6]['class']) && $callers[6]['class'] == 'WPSEO_OpenGraph') return $format_string;
|
108 |
+
if (isset($callers[6]['function']) && $callers[6]['function'] == 'get_the_modified_date') return $format_string;
|
109 |
+
|
110 |
+
// WooCommerce order detail fix
|
111 |
+
if(isset($callers['4']['class']) && $callers['4']['class']=='WC_Meta_Box_Order_Data') return $format_string;
|
112 |
+
}
|
113 |
+
|
114 |
if ( $wpp_settings['conv_dates'] == 'disable' )
|
115 |
return parsidate( $timestamp, $gmt, 'eng' );
|
116 |
else
|
includes/fixes-misc.php
CHANGED
@@ -10,28 +10,28 @@
|
|
10 |
|
11 |
global $wpp_settings;
|
12 |
|
13 |
-
if ( $wpp_settings['conv_page_title'] != 'disable' )
|
14 |
-
add_filter( 'wp_title', 'fixnumber' );
|
15 |
|
16 |
-
if ( $wpp_settings['conv_title'] != 'disable' )
|
17 |
-
add_filter( 'the_title', 'fixnumber' );
|
18 |
|
19 |
-
if ( $wpp_settings['conv_contents'] != 'disable' )
|
20 |
add_filter( 'the_content', 'fixnumber' );
|
21 |
|
22 |
-
if ( $wpp_settings['conv_excerpt'] != 'disable' )
|
23 |
add_filter( 'the_excerpt', 'fixnumber' );
|
24 |
|
25 |
-
if ( $wpp_settings['conv_comments'] != 'disable' )
|
26 |
add_filter( 'comment_text', 'fixnumber' );
|
27 |
|
28 |
-
if ( $wpp_settings['conv_comment_count'] != 'disable' )
|
29 |
add_filter( 'comments_number', 'fixnumber' );
|
30 |
|
31 |
-
if ( $wpp_settings['conv_cats'] != 'disable' )
|
32 |
add_filter( 'wp_list_categories', 'fixnumber' );
|
33 |
|
34 |
-
if ( $wpp_settings['conv_arabic'] != 'disable' ) {
|
35 |
add_filter( 'the_content', 'fixarabic' );
|
36 |
add_filter( 'the_title', 'fixarabic' );
|
37 |
add_filter( 'comment_text', 'fixarabic' );
|
10 |
|
11 |
global $wpp_settings;
|
12 |
|
13 |
+
if ( isset( $wpp_settings['conv_page_title'] ) && $wpp_settings['conv_page_title'] != 'disable' )
|
14 |
+
add_filter( 'wp_title', 'fixnumber' , 20 );
|
15 |
|
16 |
+
if ( isset( $wpp_settings['conv_title'] ) && $wpp_settings['conv_title'] != 'disable' )
|
17 |
+
add_filter( 'the_title', 'fixnumber' , 20 );
|
18 |
|
19 |
+
if ( isset( $wpp_settings['conv_contents'] ) && $wpp_settings['conv_contents'] != 'disable' )
|
20 |
add_filter( 'the_content', 'fixnumber' );
|
21 |
|
22 |
+
if ( isset( $wpp_settings['conv_excerpt'] ) && $wpp_settings['conv_excerpt'] != 'disable' )
|
23 |
add_filter( 'the_excerpt', 'fixnumber' );
|
24 |
|
25 |
+
if ( isset( $wpp_settings['conv_comments'] ) && $wpp_settings['conv_comments'] != 'disable' )
|
26 |
add_filter( 'comment_text', 'fixnumber' );
|
27 |
|
28 |
+
if ( isset( $wpp_settings['conv_comment_count'] ) && $wpp_settings['conv_comment_count'] != 'disable' )
|
29 |
add_filter( 'comments_number', 'fixnumber' );
|
30 |
|
31 |
+
if ( isset( $wpp_settings['conv_cats'] ) && $wpp_settings['conv_cats'] != 'disable' )
|
32 |
add_filter( 'wp_list_categories', 'fixnumber' );
|
33 |
|
34 |
+
if ( isset( $wpp_settings['conv_arabic'] ) && $wpp_settings['conv_arabic'] != 'disable' ) {
|
35 |
add_filter( 'the_content', 'fixarabic' );
|
36 |
add_filter( 'the_title', 'fixarabic' );
|
37 |
add_filter( 'comment_text', 'fixarabic' );
|
includes/fixes-permalinks.php
CHANGED
@@ -290,6 +290,8 @@ function wpp_permalink( $perma, $post, $leavename = false ) {
|
|
290 |
$category = $cats[0]->slug;
|
291 |
if ( $parent = $cats[0]->parent )
|
292 |
$category = get_category_parents( $parent, false, '/', true );
|
|
|
|
|
293 |
}
|
294 |
if ( empty( $category ) ) {
|
295 |
$default_category = get_term( get_option( 'default_category' ), 'category' );
|
290 |
$category = $cats[0]->slug;
|
291 |
if ( $parent = $cats[0]->parent )
|
292 |
$category = get_category_parents( $parent, false, '/', true );
|
293 |
+
|
294 |
+
$category .= $cats[0]->slug ;
|
295 |
}
|
296 |
if ( empty( $category ) ) {
|
297 |
$default_category = get_term( get_option( 'default_category' ), 'category' );
|
includes/general.php
CHANGED
@@ -8,17 +8,30 @@
|
|
8 |
* @subpackage Core/General
|
9 |
*/
|
10 |
global $wpp_settings;
|
11 |
-
update_option( 'WPLANG', 'fa_IR' );
|
12 |
|
13 |
-
function wpp_change_locale() {
|
14 |
-
return 'fa_IR';
|
15 |
-
}
|
16 |
-
if ( $wpp_settings['persian_lang'] != 'disable' ) {
|
17 |
-
add_filter( 'locale', 'wpp_change_locale', 1 );
|
18 |
-
add_filter( 'plugin_locale', 'wpp_change_locale', 1 );
|
19 |
-
add_filter( 'theme_locale', 'wpp_change_locale', 1 );
|
20 |
-
}
|
21 |
add_filter( 'login_headerurl', 'wpp_login_headerurl', 10, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
/**
|
24 |
* Detects current page is feed or not
|
8 |
* @subpackage Core/General
|
9 |
*/
|
10 |
global $wpp_settings;
|
|
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
add_filter( 'login_headerurl', 'wpp_login_headerurl', 10, 2 );
|
13 |
+
add_filter( 'locale', 'wp_parsi_set_locale' );
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Change Locale WordPress Admin and Front-end user
|
17 |
+
* @author
|
18 |
+
* @param String $locale
|
19 |
+
* @return String
|
20 |
+
*/
|
21 |
+
function wp_parsi_set_locale($locale) {
|
22 |
+
$settings = get_option( 'wpp_settings' );
|
23 |
+
if ( $settings['admin_lang'] == 'enable' ) { $admin_locale = "fa_IR"; }elseif($settings['admin_lang'] == 'disable'){ $admin_locale = "en_US"; }
|
24 |
+
if ( $settings['user_lang'] == 'enable' ) { $user_locale = "fa_IR"; }elseif($settings['user_lang'] == 'disable'){ $user_locale = "en_US"; }
|
25 |
+
|
26 |
+
$locale_s = ( is_admin() ) ? $admin_locale : $user_locale;
|
27 |
+
|
28 |
+
if(! empty($locale_s))
|
29 |
+
$locale = $locale_s;
|
30 |
+
|
31 |
+
//setlocale(LC_ALL, $locale );
|
32 |
+
return $locale;
|
33 |
+
}
|
34 |
+
|
35 |
|
36 |
/**
|
37 |
* Detects current page is feed or not
|
includes/settings.php
CHANGED
@@ -10,6 +10,48 @@
|
|
10 |
*/
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed ;)
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
/**
|
14 |
* Gets saved settings from WP core
|
15 |
*
|
@@ -20,17 +62,18 @@ function wp_parsi_get_settings() {
|
|
20 |
$settings = get_option( 'wpp_settings' );
|
21 |
if ( empty( $settings ) ) {
|
22 |
update_option( 'wpp_settings', array(
|
23 |
-
'
|
24 |
-
'
|
25 |
-
'
|
26 |
-
'
|
27 |
-
'
|
28 |
-
'
|
29 |
-
'
|
30 |
-
'
|
31 |
-
'
|
32 |
-
'
|
33 |
-
'
|
|
|
34 |
'news_source' => 'parsi'
|
35 |
) );
|
36 |
}
|
@@ -173,14 +216,23 @@ function wpp_get_registered_settings() {
|
|
173 |
);
|
174 |
$settings = apply_filters( 'wpp_registered_settings', array(
|
175 |
'core' => apply_filters( 'wpp_core_settings', array(
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
'persian_date' => array(
|
185 |
'id' => 'persian_date',
|
186 |
'name' => __( 'Shamsi date', 'wp-parsidate' ),
|
@@ -533,15 +585,4 @@ function wpp_render_settings() {
|
|
533 |
echo ob_get_clean();
|
534 |
}
|
535 |
|
536 |
-
|
537 |
-
add_menu_page(
|
538 |
-
__('Parsi Settings','wp-parsidate') ,
|
539 |
-
__('Parsi Settings','wp-parsidate') ,
|
540 |
-
'manage_options',
|
541 |
-
'wp-parsi-settings',
|
542 |
-
'wpp_render_settings',
|
543 |
-
'dashicons-admin-site',
|
544 |
-
102
|
545 |
-
);
|
546 |
-
}
|
547 |
-
add_action( 'admin_menu', 'wpp_add_settings_menu', 11 );
|
10 |
*/
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed ;)
|
12 |
|
13 |
+
|
14 |
+
|
15 |
+
add_action( 'admin_notices', 'wp_parsi_admin_notice' );
|
16 |
+
add_action( 'admin_menu', 'wpp_add_settings_menu', 11 );
|
17 |
+
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Add WP-Parsidate admin page settings
|
21 |
+
* */
|
22 |
+
function wpp_add_settings_menu() {
|
23 |
+
add_menu_page(
|
24 |
+
__('Parsi Settings','wp-parsidate') ,
|
25 |
+
__('Parsi Settings','wp-parsidate') ,
|
26 |
+
'manage_options',
|
27 |
+
'wp-parsi-settings',
|
28 |
+
'wpp_render_settings',
|
29 |
+
'dashicons-admin-site',
|
30 |
+
102
|
31 |
+
);
|
32 |
+
}
|
33 |
+
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Add Notice To admin for activate ParsiDate.
|
37 |
+
* */
|
38 |
+
function wp_parsi_admin_notice() {
|
39 |
+
$settings = get_option( 'wpp_settings' );
|
40 |
+
if ( $settings['persian_date'] == 'disable' ) {
|
41 |
+
?>
|
42 |
+
<div class="error">
|
43 |
+
<p>
|
44 |
+
<?php printf(
|
45 |
+
__( 'WP-Parsidate plugin Activated, Please go to <a href="%s">plugin page settings</a> and setup plugin.', 'wp-parsidate' ),
|
46 |
+
admin_url('admin.php?page=wp-parsi-settings')
|
47 |
+
); ?>
|
48 |
+
</p>
|
49 |
+
</div>
|
50 |
+
<?php
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
|
55 |
/**
|
56 |
* Gets saved settings from WP core
|
57 |
*
|
62 |
$settings = get_option( 'wpp_settings' );
|
63 |
if ( empty( $settings ) ) {
|
64 |
update_option( 'wpp_settings', array(
|
65 |
+
'admin_lang' => 'enable',
|
66 |
+
'user_lang' => 'enable',
|
67 |
+
'persian_date' => 'disable',
|
68 |
+
'conv_title' => 'disable',
|
69 |
+
'conv_contents' => 'disable',
|
70 |
+
'conv_excerpt' => 'disable',
|
71 |
+
'conv_comments' => 'disable',
|
72 |
+
'conv_comment_count'=> 'disable',
|
73 |
+
'conv_dates' => 'disable',
|
74 |
+
'conv_cats' => 'disable',
|
75 |
+
'conv_arabic' => 'disable',
|
76 |
+
'conv_permalinks' => 'disable',
|
77 |
'news_source' => 'parsi'
|
78 |
) );
|
79 |
}
|
216 |
);
|
217 |
$settings = apply_filters( 'wpp_registered_settings', array(
|
218 |
'core' => apply_filters( 'wpp_core_settings', array(
|
219 |
+
'admin_lang' => array(
|
220 |
+
'id' => 'admin_lang',
|
221 |
+
'name' => __( 'Change Locale in admin', 'wp-parsidate' ),
|
222 |
+
'type' => 'radio',
|
223 |
+
'options' => $options,
|
224 |
+
'std' => 'disable',
|
225 |
+
'desc' => __( 'This option change WordPress locale in Admin', 'wp-parsidate' )
|
226 |
+
),
|
227 |
+
'user_lang' => array(
|
228 |
+
'id' => 'user_lang',
|
229 |
+
'name' => __( 'Change Locale in theme', 'wp-parsidate' ),
|
230 |
+
'type' => 'radio',
|
231 |
+
'options' => $options,
|
232 |
+
'std' => 'disable',
|
233 |
+
'desc' => __( 'This option change WordPress locale in theme', 'wp-parsidate' )
|
234 |
+
),
|
235 |
+
|
236 |
'persian_date' => array(
|
237 |
'id' => 'persian_date',
|
238 |
'name' => __( 'Shamsi date', 'wp-parsidate' ),
|
585 |
echo ob_get_clean();
|
586 |
}
|
587 |
|
588 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/widget/widget_archive.php
CHANGED
@@ -13,7 +13,11 @@ class parsidate_archive extends WP_Widget
|
|
13 |
|
14 |
public function form($instance)
|
15 |
{
|
16 |
-
$type=(
|
|
|
|
|
|
|
|
|
17 |
?>
|
18 |
<p style="text-align:right; direction:rtl">
|
19 |
<label></label>
|
@@ -23,10 +27,10 @@ class parsidate_archive extends WP_Widget
|
|
23 |
<label ><input type="radio" id="parsidate_archive_type2" name="<?php echo $this->get_field_name('parsidate_archive_type'); ?>" value="monthly" <?php checked($type,'monthly'); ?>/><?php _e('Monthly','wp-parsidate') ?></label><br />
|
24 |
<label ><input type="radio" id="parsidate_archive_type3" name="<?php echo $this->get_field_name('parsidate_archive_type'); ?>" value="daily" <?php checked($type,'daily'); ?>/><?php _e('Daily','wp-parsidate') ?></label><br />
|
25 |
<br />
|
26 |
-
<input type="checkbox" name="<?php echo $this->get_field_name('parsidate_archive_count'); ?>" id="<?php echo $this->get_field_id('parsidate_archive_count'); ?>" <?php
|
27 |
<label for="<?php echo $this->get_field_id('parsidate_archive_count'); ?>"><?php _e('Show post counts','wp-parsidate') ?></label>
|
28 |
<br />
|
29 |
-
<input type="checkbox" name="<?php echo $this->get_field_name('parsidate_archive_list'); ?>" id="<?php echo $this->get_field_id('parsidate_archive_list'); ?>" <?php echo $instance['parsidate_archive_list']; ?>/>
|
30 |
<label for="<?php echo $this->get_field_id('parsidate_archive_list'); ?>"><?php _e('Display as dropdown','wp-parsidate') ?></label>
|
31 |
</p>
|
32 |
<?php
|
@@ -34,23 +38,23 @@ class parsidate_archive extends WP_Widget
|
|
34 |
|
35 |
public function update($new_instance, $old_instance )
|
36 |
{
|
37 |
-
$instance
|
38 |
-
$instance['parsidate_archive_title']= strip_tags($new_instance['parsidate_archive_title']);
|
39 |
-
$instance['parsidate_archive_count']= (
|
40 |
-
$instance['parsidate_archive_list'] = (
|
41 |
-
$instance['parsidate_archive_type'] = $new_instance['parsidate_archive_type'];
|
42 |
return $instance;
|
43 |
}
|
44 |
|
45 |
public function widget($args ,$instance)
|
46 |
{
|
47 |
extract($args);
|
48 |
-
$type =
|
49 |
-
$title = (
|
50 |
-
$post_count = (
|
51 |
-
$ddl_style = (
|
52 |
-
|
53 |
-
|
54 |
if($ddl_style)
|
55 |
{
|
56 |
echo "<select name='parsidate_archive_list' onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value='0'>".esc_attr($title)."</option>";
|
13 |
|
14 |
public function form($instance)
|
15 |
{
|
16 |
+
$type= isset($instance['parsidate_archive_type']) ? $instance['parsidate_archive_type'] : 'monthly';
|
17 |
+
$instance['parsidate_archive_title']= isset($instance['parsidate_archive_title']) ? strip_tags($instance['parsidate_archive_title']) : __('Jalali Date Archives','wp-parsidate') ;
|
18 |
+
$instance['parsidate_archive_count']= isset($instance['parsidate_archive_count']) ? $instance['parsidate_archive_count'] : 0;
|
19 |
+
$instance['parsidate_archive_list'] = isset($instance['parsidate_archive_list']) ? $instance['parsidate_archive_list'] : 0;
|
20 |
+
|
21 |
?>
|
22 |
<p style="text-align:right; direction:rtl">
|
23 |
<label></label>
|
27 |
<label ><input type="radio" id="parsidate_archive_type2" name="<?php echo $this->get_field_name('parsidate_archive_type'); ?>" value="monthly" <?php checked($type,'monthly'); ?>/><?php _e('Monthly','wp-parsidate') ?></label><br />
|
28 |
<label ><input type="radio" id="parsidate_archive_type3" name="<?php echo $this->get_field_name('parsidate_archive_type'); ?>" value="daily" <?php checked($type,'daily'); ?>/><?php _e('Daily','wp-parsidate') ?></label><br />
|
29 |
<br />
|
30 |
+
<input type="checkbox" name="<?php echo $this->get_field_name('parsidate_archive_count'); ?>" id="<?php echo $this->get_field_id('parsidate_archive_count'); ?>" value="1" <?php checked($instance['parsidate_archive_count'],1,true); ?>/>
|
31 |
<label for="<?php echo $this->get_field_id('parsidate_archive_count'); ?>"><?php _e('Show post counts','wp-parsidate') ?></label>
|
32 |
<br />
|
33 |
+
<input type="checkbox" name="<?php echo $this->get_field_name('parsidate_archive_list'); ?>" id="<?php echo $this->get_field_id('parsidate_archive_list'); ?>" value="1" <?php echo checked($instance['parsidate_archive_list'],1,true); ?>/>
|
34 |
<label for="<?php echo $this->get_field_id('parsidate_archive_list'); ?>"><?php _e('Display as dropdown','wp-parsidate') ?></label>
|
35 |
</p>
|
36 |
<?php
|
38 |
|
39 |
public function update($new_instance, $old_instance )
|
40 |
{
|
41 |
+
$instance = $old_instance;
|
42 |
+
$instance['parsidate_archive_title']= isset($new_instance['parsidate_archive_title']) ? strip_tags($new_instance['parsidate_archive_title']) : __('Jalali Date Archives','wp-parsidate') ;
|
43 |
+
$instance['parsidate_archive_count']= isset($new_instance['parsidate_archive_count']) ? $new_instance['parsidate_archive_count'] : 0;
|
44 |
+
$instance['parsidate_archive_list'] = isset($new_instance['parsidate_archive_list']) ? $new_instance['parsidate_archive_list'] : 0;
|
45 |
+
$instance['parsidate_archive_type'] = isset($new_instance['parsidate_archive_type']) ? $new_instance['parsidate_archive_type'] : 'monthly';
|
46 |
return $instance;
|
47 |
}
|
48 |
|
49 |
public function widget($args ,$instance)
|
50 |
{
|
51 |
extract($args);
|
52 |
+
$type = isset($instance['parsidate_archive_type']) ? $instance['parsidate_archive_type'] : 'monthly';
|
53 |
+
$title = isset($instance['parsidate_archive_title']) ? $instance['parsidate_archive_title'] : __('Jalali Date Archives','wp-parsidate') ;
|
54 |
+
$post_count = isset($instance['parsidate_archive_count']) ? $instance['parsidate_archive_count'] : false;
|
55 |
+
$ddl_style = isset($instance['parsidate_archive_list']) ? $instance['parsidate_archive_list'] : false;
|
56 |
+
|
57 |
+
echo $before_widget . $before_title . $title . $after_title;
|
58 |
if($ddl_style)
|
59 |
{
|
60 |
echo "<select name='parsidate_archive_list' onchange='document.location.href=this.options[this.selectedIndex].value;'> <option value='0'>".esc_attr($title)."</option>";
|
parsi-languages/fa_IR.mo
CHANGED
Binary file
|
parsi-languages/fa_IR.po
CHANGED
@@ -1,29 +1,30 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-Parsi additional strings\n"
|
4 |
-
"POT-Creation-Date: 2014-12-
|
5 |
-
"PO-Revision-Date: 2014-12-
|
6 |
"Last-Translator: Ehsan <iehsan.ir@gmail.com>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
"Language: fa_IR\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-KeywordsList: __;_e\n"
|
|
|
16 |
"X-Poedit-SearchPath-0: ..\n"
|
17 |
|
18 |
#: ../includes/admin/lists-fix.php:74
|
19 |
msgid "Show All Dates"
|
20 |
msgstr "نمایش همهی تاریخها"
|
21 |
|
22 |
-
#: ../includes/plugins/woocommerce.php:47 ../includes/settings.php:
|
23 |
msgid "Enable"
|
24 |
msgstr "فعال"
|
25 |
|
26 |
-
#: ../includes/plugins/woocommerce.php:48 ../includes/settings.php:
|
27 |
msgid "Disable"
|
28 |
msgstr "غیرفعال"
|
29 |
|
@@ -35,109 +36,123 @@ msgstr "ووکامرس"
|
|
35 |
msgid "Fix prices"
|
36 |
msgstr "تصحیح قیمتها"
|
37 |
|
38 |
-
#: ../includes/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
#, php-format
|
40 |
msgid "%s Core"
|
41 |
msgstr "%s هسته"
|
42 |
|
43 |
-
#: ../includes/settings.php:
|
44 |
#, php-format
|
45 |
msgid "%s Converts"
|
46 |
msgstr "%s تبدیل"
|
47 |
|
48 |
-
#: ../includes/settings.php:
|
49 |
#, php-format
|
50 |
msgid "%s Plugins compability"
|
51 |
msgstr "%s هماهنگی با افزونهها"
|
52 |
|
53 |
-
#: ../includes/settings.php:
|
54 |
msgid "Settings updated"
|
55 |
msgstr "پیکربندی بهروز شد"
|
56 |
|
57 |
-
#: ../includes/settings.php:
|
58 |
-
msgid "
|
59 |
-
msgstr "زبان
|
60 |
|
61 |
-
#: ../includes/settings.php:
|
62 |
-
msgid ""
|
63 |
-
"
|
64 |
-
"Deactivate)"
|
65 |
-
msgstr ""
|
66 |
-
"این گزینه، زبان وردپرس را فارسی و جهت نوشتهها را راستبهجپ میکند (غیرفعال است)"
|
67 |
|
68 |
-
#: ../includes/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
msgid "Shamsi date"
|
70 |
-
msgstr "تاریخ
|
71 |
|
72 |
-
#: ../includes/settings.php:
|
73 |
msgid "By enabling this, Dates will convert to Shamsi (Jalali) dates"
|
74 |
-
msgstr "با فعالکردن این گزینه، تاریخها به صورت تاریخ
|
75 |
|
76 |
-
#: ../includes/settings.php:
|
77 |
msgid "Persian digits"
|
78 |
msgstr "رقمهای پارسی"
|
79 |
|
80 |
-
#: ../includes/settings.php:
|
81 |
msgid "Page title"
|
82 |
msgstr "در عنوان صفحه"
|
83 |
|
84 |
-
#: ../includes/settings.php:
|
85 |
msgid "Post title"
|
86 |
msgstr "در عنوان نوشتهها"
|
87 |
|
88 |
-
#: ../includes/settings.php:
|
89 |
msgid "Post content"
|
90 |
msgstr "در محتوای نوشتهها"
|
91 |
|
92 |
-
#: ../includes/settings.php:
|
93 |
msgid "Post excerpt"
|
94 |
msgstr "در خلاصهی نوشتهها"
|
95 |
|
96 |
-
#: ../includes/settings.php:
|
97 |
msgid "Comments text"
|
98 |
msgstr "در نوشتهی دیدگاهها"
|
99 |
|
100 |
-
#: ../includes/settings.php:
|
101 |
msgid "Comments count"
|
102 |
msgstr "تعداد دیدگاهها"
|
103 |
|
104 |
-
#: ../includes/settings.php:
|
105 |
msgid "Dates"
|
106 |
msgstr "تاریخها"
|
107 |
|
108 |
-
#: ../includes/settings.php:
|
109 |
msgid "Categories"
|
110 |
msgstr "دستهبندیها"
|
111 |
|
112 |
-
#: ../includes/settings.php:
|
113 |
msgid "Fix arabic characters"
|
114 |
msgstr "تصحیح حروف عربی"
|
115 |
|
116 |
-
#: ../includes/settings.php:
|
117 |
msgid "Fixes arabic characters caused by wrong keyboard layouts"
|
118 |
msgstr ""
|
119 |
"این گزینه، حروف عربی را در کل سیستم به حروف فارسی تصحیح میکند<br>برای مثال "
|
120 |
"٤/٥/٦ به ۴ / ۵ / ۶ و ك / ي به ک / ی"
|
121 |
|
122 |
-
#: ../includes/settings.php:
|
123 |
msgid "Fix permalinks dates"
|
124 |
msgstr "تبدیل تاریخ در پیوندهای یکتا"
|
125 |
|
126 |
-
#: ../includes/settings.php:
|
127 |
msgid "By enabling this, dates in permalinks converted to Shamsi (Jalali) date"
|
128 |
msgstr ""
|
129 |
-
"با فعالکردن این گزینه، تاریخها در پیوندهای یکتا به تاریخ
|
130 |
"میشوند"
|
131 |
|
132 |
-
#: ../includes/settings.php:
|
133 |
msgid "Upload File"
|
134 |
msgstr "آپلود فایل"
|
135 |
|
136 |
-
#: ../includes/settings.php:501 ../includes/settings.php:538
|
137 |
-
#: ../includes/settings.php:539
|
138 |
-
msgid "Parsi Settings"
|
139 |
-
msgstr "تنظیمات پارسی"
|
140 |
-
|
141 |
#: ../includes/widget/widget_archive.php:11
|
142 |
#: ../includes/widget/widget_archive.php:20
|
143 |
#: ../includes/widget/widget_archive.php:49
|
@@ -179,15 +194,15 @@ msgstr "بسته وردپرس پارسی"
|
|
179 |
|
180 |
#: ../parsi-languages/common-strings.php:3
|
181 |
msgid ""
|
182 |
-
"Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support "
|
183 |
-
"
|
184 |
-
"
|
185 |
-
"
|
186 |
msgstr ""
|
187 |
-
"بستهی پارسی سازی وردپرس، اضافهکردن پشتیبانی کامل راستبهچپ و تاریخ
|
188 |
"وردپرس. این افزونه از نوشتهها، دیدگاهها، برگهها، بایگانیها، جستجوها و "
|
189 |
-
"دستهبندیها و پیوندهای یکتا پشتیبانی میکند و تمام قسمتهای مدیریت و ویرایشگر "
|
190 |
-
"
|
191 |
|
192 |
#: ../parsi-languages/common-strings.php:4
|
193 |
msgid "WP-Parsi Team"
|
@@ -197,6 +212,15 @@ msgstr "تیم وردپرس پارسی"
|
|
197 |
msgid "settings"
|
198 |
msgstr "تنظیمات"
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
#~ msgid "%s Misc"
|
201 |
#~ msgstr "%s متفرقه"
|
202 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-Parsi additional strings\n"
|
4 |
+
"POT-Creation-Date: 2014-12-26 02:53+0330\n"
|
5 |
+
"PO-Revision-Date: 2014-12-26 02:59+0330\n"
|
6 |
"Last-Translator: Ehsan <iehsan.ir@gmail.com>\n"
|
7 |
+
"Language-Team: WP-Pari Team\n"
|
8 |
"Language: fa_IR\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.7.1\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
#: ../includes/admin/lists-fix.php:74
|
20 |
msgid "Show All Dates"
|
21 |
msgstr "نمایش همهی تاریخها"
|
22 |
|
23 |
+
#: ../includes/plugins/woocommerce.php:47 ../includes/settings.php:214
|
24 |
msgid "Enable"
|
25 |
msgstr "فعال"
|
26 |
|
27 |
+
#: ../includes/plugins/woocommerce.php:48 ../includes/settings.php:215
|
28 |
msgid "Disable"
|
29 |
msgstr "غیرفعال"
|
30 |
|
36 |
msgid "Fix prices"
|
37 |
msgstr "تصحیح قیمتها"
|
38 |
|
39 |
+
#: ../includes/settings.php:24 ../includes/settings.php:25
|
40 |
+
#: ../includes/settings.php:553
|
41 |
+
msgid "Parsi Settings"
|
42 |
+
msgstr "تنظیمات پارسی"
|
43 |
+
|
44 |
+
#: ../includes/settings.php:45
|
45 |
+
#, php-format
|
46 |
+
msgid ""
|
47 |
+
"WP-Parsidate plugin Activated, Please go to <a href=\"%s\">plugin page "
|
48 |
+
"settings</a> and setup plugin."
|
49 |
+
msgstr ""
|
50 |
+
"افزونه بسته پارسیساز فعال است، لطفا به <a href=\"%s\">صفحه تنظیمات افزونه</a> "
|
51 |
+
"بروید و تنظیمات دلخواه را انجام دهید."
|
52 |
+
|
53 |
+
#: ../includes/settings.php:136
|
54 |
#, php-format
|
55 |
msgid "%s Core"
|
56 |
msgstr "%s هسته"
|
57 |
|
58 |
+
#: ../includes/settings.php:137
|
59 |
#, php-format
|
60 |
msgid "%s Converts"
|
61 |
msgstr "%s تبدیل"
|
62 |
|
63 |
+
#: ../includes/settings.php:138
|
64 |
#, php-format
|
65 |
msgid "%s Plugins compability"
|
66 |
msgstr "%s هماهنگی با افزونهها"
|
67 |
|
68 |
+
#: ../includes/settings.php:200
|
69 |
msgid "Settings updated"
|
70 |
msgstr "پیکربندی بهروز شد"
|
71 |
|
72 |
+
#: ../includes/settings.php:221
|
73 |
+
msgid "Change Locale in admin"
|
74 |
+
msgstr "تغییر زبان مدیریت"
|
75 |
|
76 |
+
#: ../includes/settings.php:225
|
77 |
+
msgid "This option change WordPress locale in Admin"
|
78 |
+
msgstr "این گزینه باعث تغییر زبان مدیریت میشود"
|
|
|
|
|
|
|
79 |
|
80 |
+
#: ../includes/settings.php:229
|
81 |
+
msgid "Change Locale in theme"
|
82 |
+
msgstr "تغییر زبان سایت"
|
83 |
+
|
84 |
+
#: ../includes/settings.php:233
|
85 |
+
msgid "This option change WordPress locale in theme"
|
86 |
+
msgstr "این گزینه باعث تغییر زبان سایت میشود"
|
87 |
+
|
88 |
+
#: ../includes/settings.php:238
|
89 |
msgid "Shamsi date"
|
90 |
+
msgstr "تاریخ خورشیدی"
|
91 |
|
92 |
+
#: ../includes/settings.php:242
|
93 |
msgid "By enabling this, Dates will convert to Shamsi (Jalali) dates"
|
94 |
+
msgstr "با فعالکردن این گزینه، تاریخها به صورت تاریخ خورشیدی (جلالی) درمیآیند"
|
95 |
|
96 |
+
#: ../includes/settings.php:248
|
97 |
msgid "Persian digits"
|
98 |
msgstr "رقمهای پارسی"
|
99 |
|
100 |
+
#: ../includes/settings.php:253
|
101 |
msgid "Page title"
|
102 |
msgstr "در عنوان صفحه"
|
103 |
|
104 |
+
#: ../includes/settings.php:260
|
105 |
msgid "Post title"
|
106 |
msgstr "در عنوان نوشتهها"
|
107 |
|
108 |
+
#: ../includes/settings.php:267
|
109 |
msgid "Post content"
|
110 |
msgstr "در محتوای نوشتهها"
|
111 |
|
112 |
+
#: ../includes/settings.php:274
|
113 |
msgid "Post excerpt"
|
114 |
msgstr "در خلاصهی نوشتهها"
|
115 |
|
116 |
+
#: ../includes/settings.php:281
|
117 |
msgid "Comments text"
|
118 |
msgstr "در نوشتهی دیدگاهها"
|
119 |
|
120 |
+
#: ../includes/settings.php:288
|
121 |
msgid "Comments count"
|
122 |
msgstr "تعداد دیدگاهها"
|
123 |
|
124 |
+
#: ../includes/settings.php:295
|
125 |
msgid "Dates"
|
126 |
msgstr "تاریخها"
|
127 |
|
128 |
+
#: ../includes/settings.php:302
|
129 |
msgid "Categories"
|
130 |
msgstr "دستهبندیها"
|
131 |
|
132 |
+
#: ../includes/settings.php:313
|
133 |
msgid "Fix arabic characters"
|
134 |
msgstr "تصحیح حروف عربی"
|
135 |
|
136 |
+
#: ../includes/settings.php:317
|
137 |
msgid "Fixes arabic characters caused by wrong keyboard layouts"
|
138 |
msgstr ""
|
139 |
"این گزینه، حروف عربی را در کل سیستم به حروف فارسی تصحیح میکند<br>برای مثال "
|
140 |
"٤/٥/٦ به ۴ / ۵ / ۶ و ك / ي به ک / ی"
|
141 |
|
142 |
+
#: ../includes/settings.php:321
|
143 |
msgid "Fix permalinks dates"
|
144 |
msgstr "تبدیل تاریخ در پیوندهای یکتا"
|
145 |
|
146 |
+
#: ../includes/settings.php:325
|
147 |
msgid "By enabling this, dates in permalinks converted to Shamsi (Jalali) date"
|
148 |
msgstr ""
|
149 |
+
"با فعالکردن این گزینه، تاریخها در پیوندهای یکتا به تاریخ خورشیدی (جلالی) تبدیل "
|
150 |
"میشوند"
|
151 |
|
152 |
+
#: ../includes/settings.php:523
|
153 |
msgid "Upload File"
|
154 |
msgstr "آپلود فایل"
|
155 |
|
|
|
|
|
|
|
|
|
|
|
156 |
#: ../includes/widget/widget_archive.php:11
|
157 |
#: ../includes/widget/widget_archive.php:20
|
158 |
#: ../includes/widget/widget_archive.php:49
|
194 |
|
195 |
#: ../parsi-languages/common-strings.php:3
|
196 |
msgid ""
|
197 |
+
"Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: "
|
198 |
+
"posts, comments, pages, archives, search, categories, permalinks and all admin "
|
199 |
+
"sections and TinyMce editor, lists, quick editor. This package has Jalali "
|
200 |
+
"archive widget."
|
201 |
msgstr ""
|
202 |
+
"بستهی پارسی سازی وردپرس، اضافهکردن پشتیبانی کامل راستبهچپ و تاریخ خورشیدی برای "
|
203 |
"وردپرس. این افزونه از نوشتهها، دیدگاهها، برگهها، بایگانیها، جستجوها و "
|
204 |
+
"دستهبندیها و پیوندهای یکتا پشتیبانی میکند و تمام قسمتهای مدیریت و ویرایشگر را "
|
205 |
+
"پارسی میکند. این افزونه همچنین یک ابزارک بایگانی شمسی نیز دارد."
|
206 |
|
207 |
#: ../parsi-languages/common-strings.php:4
|
208 |
msgid "WP-Parsi Team"
|
212 |
msgid "settings"
|
213 |
msgstr "تنظیمات"
|
214 |
|
215 |
+
#~ msgid "Persian language"
|
216 |
+
#~ msgstr "زبان پارسی"
|
217 |
+
|
218 |
+
#~ msgid ""
|
219 |
+
#~ "This option, makes WordPress Persian and texts right to left (Currently "
|
220 |
+
#~ "Deactivate)"
|
221 |
+
#~ msgstr ""
|
222 |
+
#~ "این گزینه، زبان وردپرس را فارسی و جهت نوشتهها را راستبهجپ میکند (غیرفعال است)"
|
223 |
+
|
224 |
#~ msgid "%s Misc"
|
225 |
#~ msgstr "%s متفرقه"
|
226 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: lord_viper, man4toman
|
|
3 |
Donate link: http://forum.wp-parsi.com/
|
4 |
Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
Persian package builder for WordPress, Full RTL and Shamsi(Jalali) date
|
10 |
|
@@ -32,8 +32,6 @@ List of some features:
|
|
32 |
3. To use the widget, go to 'Widgets' and choose 'بایگانی تاریخ خورشیدی'
|
33 |
4. To use the widget, go to 'Widgets' and choose 'گاهشمار تاریخ خورشیدی'
|
34 |
|
35 |
-
== Frequently Asked Questions ==
|
36 |
-
|
37 |
== Screenshots ==
|
38 |
|
39 |
1. Persian package builder admin page
|
@@ -42,6 +40,13 @@ List of some features:
|
|
42 |
4. Display widget 'Jalali Date Calender' in theme
|
43 |
|
44 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
= 2.0.0-alpha =
|
46 |
* Fully recorded!
|
47 |
* WordPress languages (Persian) files removed
|
3 |
Donate link: http://forum.wp-parsi.com/
|
4 |
Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 2.1
|
8 |
|
9 |
Persian package builder for WordPress, Full RTL and Shamsi(Jalali) date
|
10 |
|
32 |
3. To use the widget, go to 'Widgets' and choose 'بایگانی تاریخ خورشیدی'
|
33 |
4. To use the widget, go to 'Widgets' and choose 'گاهشمار تاریخ خورشیدی'
|
34 |
|
|
|
|
|
35 |
== Screenshots ==
|
36 |
|
37 |
1. Persian package builder admin page
|
40 |
4. Display widget 'Jalali Date Calender' in theme
|
41 |
|
42 |
== Changelog ==
|
43 |
+
= 2.1 =
|
44 |
+
* Post Permalink Fixed
|
45 |
+
* WordPress SEO OpenGraph Dates fixed
|
46 |
+
* WooCommerce order detail date fixed
|
47 |
+
* New option for set locale in plugin page settings
|
48 |
+
* LTR post editor text mode
|
49 |
+
|
50 |
= 2.0.0-alpha =
|
51 |
* Fully recorded!
|
52 |
* WordPress languages (Persian) files removed
|
screenshot-1.png
CHANGED
Binary file
|
wp-parsidate.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP-Parsidate
|
4 |
-
* Version: 2.
|
5 |
* Plugin URI: http://forum.wp-parsi.com/
|
6 |
* Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
|
7 |
* Author: WP-Parsi Team
|
@@ -29,6 +29,8 @@
|
|
29 |
* @package WP-Parsidate
|
30 |
* @subpackage Core
|
31 |
*/
|
|
|
|
|
32 |
if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed
|
33 |
|
34 |
final class WP_Parsidate {
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WP-Parsidate
|
4 |
+
* Version: 2.1
|
5 |
* Plugin URI: http://forum.wp-parsi.com/
|
6 |
* Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
|
7 |
* Author: WP-Parsi Team
|
29 |
* @package WP-Parsidate
|
30 |
* @subpackage Core
|
31 |
*/
|
32 |
+
|
33 |
+
|
34 |
if ( ! defined( 'ABSPATH' ) ) exit; // No direct access allowed
|
35 |
|
36 |
final class WP_Parsidate {
|