Version Description
Download this release
Release Info
Developer | Gonahkar |
Plugin | wp-jalali |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- inc/dashboard-core.php +2 -2
- inc/editjalali-core.php +2 -3
- inc/farsinum-core.php +2 -3
- readme.txt +3 -3
- wp-jalali.php +4 -4
inc/dashboard-core.php
CHANGED
@@ -16,12 +16,12 @@ $secondary_replacement =
|
|
16 |
array (
|
17 |
1 => array (
|
18 |
'link' => 'http://planet.wordpress.org/',
|
19 |
-
'feed' => 'http://
|
20 |
'title' => 'Other WordPress News'
|
21 |
),
|
22 |
2 => array (
|
23 |
'link' => 'http://planet.wp-persian.com/',
|
24 |
-
'feed' => 'http://
|
25 |
'title' => 'سیاره وردپرس فارسی'
|
26 |
)
|
27 |
);
|
16 |
array (
|
17 |
1 => array (
|
18 |
'link' => 'http://planet.wordpress.org/',
|
19 |
+
'feed' => 'http://planet.wordpress.org/feed/',
|
20 |
'title' => 'Other WordPress News'
|
21 |
),
|
22 |
2 => array (
|
23 |
'link' => 'http://planet.wp-persian.com/',
|
24 |
+
'feed' => 'http://planet.wp-persian.com/feed/',
|
25 |
'title' => 'سیاره وردپرس فارسی'
|
26 |
)
|
27 |
);
|
inc/editjalali-core.php
CHANGED
@@ -45,8 +45,7 @@ function jalali_touch_time( $edit = 1, $for_post = 1 ) {
|
|
45 |
jQuery('select[@name=mm] > option[value='+gm+']').attr('selected','selected');
|
46 |
}
|
47 |
|
48 |
-
// injecting jalali input boxes and month list under the default georgian date place
|
49 |
-
function inject_jalali_div() {
|
50 |
jQuery("#timestampdiv *").hide();
|
51 |
jQuery("#timestampdiv").append('<div id="jalalitimestamp"></div>');
|
52 |
jQuery("#jalalitimestamp").append('<select tabindex="501" onchange="jalali_timestamp_func()" name="jm" id="jm_select"></select> ');
|
@@ -69,7 +68,7 @@ function jalali_touch_time( $edit = 1, $for_post = 1 ) {
|
|
69 |
}
|
70 |
?>
|
71 |
}
|
72 |
-
inject_jalali_div();
|
73 |
</script>
|
74 |
<?php
|
75 |
|
45 |
jQuery('select[@name=mm] > option[value='+gm+']').attr('selected','selected');
|
46 |
}
|
47 |
|
48 |
+
function inject_jalali_div() { // use for injecting jalali input boxes and month list under the default georgian date place
|
|
|
49 |
jQuery("#timestampdiv *").hide();
|
50 |
jQuery("#timestampdiv").append('<div id="jalalitimestamp"></div>');
|
51 |
jQuery("#jalalitimestamp").append('<select tabindex="501" onchange="jalali_timestamp_func()" name="jm" id="jm_select"></select> ');
|
68 |
}
|
69 |
?>
|
70 |
}
|
71 |
+
inject_jalali_div(); // inject!
|
72 |
</script>
|
73 |
<?php
|
74 |
|
inc/farsinum-core.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
Originally written by Farhadi , www.farhadi.ir
|
4 |
-
*/
|
5 |
|
6 |
function convertToFarsi($matches) {
|
7 |
$mps_jd_optionsDB = get_option(MPS_JD_OPTIONS_NAME);
|
1 |
<?php
|
2 |
+
|
3 |
+
/* Originally written by Farhadi , www.farhadi.ir */
|
|
|
4 |
|
5 |
function convertToFarsi($matches) {
|
6 |
$mps_jd_optionsDB = get_option(MPS_JD_OPTIONS_NAME);
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
=== wp-jalali ===
|
2 |
Contributors: mani_monaj, Gonahkar
|
3 |
Donate link: http://www.wishlistr.com/mani_monaj/
|
4 |
Tags: Persian, Farsi, Jalali, Date, Calendar, i18n, l10n, Iran, Iranian
|
5 |
Requires at least: 2.1
|
6 |
-
Tested up to: 2.
|
7 |
-
Stable tag: 4.2.
|
8 |
|
9 |
Turn you Wordpress into a full featured Persian (Iranian) Blogging Platform.
|
10 |
|
1 |
+
=== wp-jalali ===
|
2 |
Contributors: mani_monaj, Gonahkar
|
3 |
Donate link: http://www.wishlistr.com/mani_monaj/
|
4 |
Tags: Persian, Farsi, Jalali, Date, Calendar, i18n, l10n, Iran, Iranian
|
5 |
Requires at least: 2.1
|
6 |
+
Tested up to: 2.9
|
7 |
+
Stable tag: 4.2.2
|
8 |
|
9 |
Turn you Wordpress into a full featured Persian (Iranian) Blogging Platform.
|
10 |
|
wp-jalali.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: wp-jalali
|
4 |
Plugin URI: http://wp-persian.com/wp-jalali/
|
5 |
Description: Full Jalali Date and Persian(Farsi) Support Package for wordpress, Full posts' and comments' dates convertion , Jalali Archive , Magic(Jalali/Gregorian) Calendar and Jalali/Gregorian Compaitables Permalinks, TinyMCE RTL/LTR activation, TinyMCE Persian Improvement, Cross browser Perisan keyboard support, Jalali Archive/Calendar widgets and Persian numbers, Great tool for Persian(Iranian) Users of WordPress, part of <a href="http://wp-persian.com" title="پروژه وردپرس فارسی">Persian Wordpress Project</a>.
|
6 |
-
Version: 4.2.
|
7 |
Author: Vali Allah(Mani) Monajjemi
|
8 |
Author URI: http://www.manionline.org/
|
9 |
*/
|
@@ -275,7 +275,7 @@ function mps_jd_optionpage(){
|
|
275 |
<option value="0" <?=$mps_jd_decimal==false?'selected="selected"':'' ?>>خیر</option>
|
276 |
</select>
|
277 |
<br />
|
278 |
-
<strong>مثال:</strong> استفاده از ۲٫۶ بهجای ۲<span
|
279 |
<br />
|
280 |
<strong>توضیح:</strong> همانطور که میدانیم نشانهی اعشار در فارسی (٫) است٬ اما بهدلیل ناسازگاری برخی مرورگرها با اعداد ممیزدار٬ این گزینه را بهانتخاب کاربران گذاشتیم.
|
281 |
</td>
|
@@ -321,7 +321,7 @@ function mps_jd_optionpage(){
|
|
321 |
<option value="0" <?=$mps_jd_editjalali==false?'selected="selected"':'' ?>>میلادی</option>
|
322 |
</select>
|
323 |
<br />
|
324 |
-
در نگارشهای بالاتر از وردپرس
|
325 |
</td>
|
326 |
</tr>
|
327 |
</table>
|
@@ -1252,7 +1252,7 @@ if (version_compare($_wp_version, '2', '<')) {
|
|
1252 |
add_action('init', 'mps_fixmonthnames');
|
1253 |
add_action('wp_head', 'mps_fixmonthnames_restore');
|
1254 |
} else {
|
1255 |
-
add_filter('wp_title', 'mps_fixtitle',2);
|
1256 |
$mps_jd_optionsDB = get_option(MPS_JD_OPTIONS_NAME);
|
1257 |
$mps_jd_mcertl = $mps_jd_optionsDB['mps_jd_mcertl'];
|
1258 |
|
3 |
Plugin Name: wp-jalali
|
4 |
Plugin URI: http://wp-persian.com/wp-jalali/
|
5 |
Description: Full Jalali Date and Persian(Farsi) Support Package for wordpress, Full posts' and comments' dates convertion , Jalali Archive , Magic(Jalali/Gregorian) Calendar and Jalali/Gregorian Compaitables Permalinks, TinyMCE RTL/LTR activation, TinyMCE Persian Improvement, Cross browser Perisan keyboard support, Jalali Archive/Calendar widgets and Persian numbers, Great tool for Persian(Iranian) Users of WordPress, part of <a href="http://wp-persian.com" title="پروژه وردپرس فارسی">Persian Wordpress Project</a>.
|
6 |
+
Version: 4.2.2
|
7 |
Author: Vali Allah(Mani) Monajjemi
|
8 |
Author URI: http://www.manionline.org/
|
9 |
*/
|
275 |
<option value="0" <?=$mps_jd_decimal==false?'selected="selected"':'' ?>>خیر</option>
|
276 |
</select>
|
277 |
<br />
|
278 |
+
<strong>مثال:</strong> استفاده از ۲٫۶ بهجای ۲<span>.</span>۶
|
279 |
<br />
|
280 |
<strong>توضیح:</strong> همانطور که میدانیم نشانهی اعشار در فارسی (٫) است٬ اما بهدلیل ناسازگاری برخی مرورگرها با اعداد ممیزدار٬ این گزینه را بهانتخاب کاربران گذاشتیم.
|
281 |
</td>
|
321 |
<option value="0" <?=$mps_jd_editjalali==false?'selected="selected"':'' ?>>میلادی</option>
|
322 |
</select>
|
323 |
<br />
|
324 |
+
در نگارشهای بالاتر از وردپرس ۲/۵ می توانید نحوه ویرایش تاریخ نوشتهها و برگهها را تنظیم کنید.
|
325 |
</td>
|
326 |
</tr>
|
327 |
</table>
|
1252 |
add_action('init', 'mps_fixmonthnames');
|
1253 |
add_action('wp_head', 'mps_fixmonthnames_restore');
|
1254 |
} else {
|
1255 |
+
//add_filter('wp_title', 'mps_fixtitle',2);
|
1256 |
$mps_jd_optionsDB = get_option(MPS_JD_OPTIONS_NAME);
|
1257 |
$mps_jd_mcertl = $mps_jd_optionsDB['mps_jd_mcertl'];
|
1258 |
|