wp-jalali - Version 3.5.1

Version Description

Download this release

Release Info

Developer mani_monaj
Plugin Icon 128x128 wp-jalali
Version 3.5.1
Comparing to
See all releases

Code changes from version 3.5 to 3.5.1

mps-jalalidate35.php → mps-jalalidate351.php RENAMED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Full Jalali Date & Persian Support Package for Wordpress
4
- Plugin URI: http://www.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: 3.5
7
  Author: Vali Allah(Mani) Monajjemi
8
  Author URI: http://www.manionline.org/
9
  */
@@ -208,30 +208,30 @@ function mps_jd_optionpage(){
208
  ?>
209
 
210
  <?php
211
- $logo_uri = get_settings('siteurl').'/wp-content/plugins/WP-Jalali/wp-fa-logo.png';
212
  ?>
213
 
214
- <div class="wrap" style="direction:rtl ">
215
- <p style="text-align: center">
216
- <a href="http://www.wp-persian.com" style="border: none" title="وردپرس فارسی"><img src="<?=$logo_uri?>" alt="Persian Wordpress Logo" width="300" height="70" border="0"/></a>
217
  </p>
218
  <h2>اخبار وردپرس فارسی</h2>
219
  <h3>وبلاگ توسعه وردپرس فارسی</h3>
220
 
221
  <?php
222
- $rss = @fetch_rss('http://www.wp-persian.com/feed/');
223
  if ( isset($rss->items) && 0 != count($rss->items) ) {
224
  ?>
225
  <?php
226
  $rss->items = array_slice($rss->items, 0, 3);
227
  foreach ($rss->items as $item ) {
228
  ?>
229
- <h4 dir="rtl" style="color: gray; margin-right: 25px; "><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> &#8212; <?php printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() ) ) ); ?></h4>
230
  <?php
231
  }
232
  }
233
  ?>
234
- <div id="planetnews">
235
  <h3>سیاره وردپرس فارسی <a href="http://planet.wp-persian.com/">بیشتر »</a></h3>
236
  <?php
237
  $rss = @fetch_rss('http://planet.wp-persian.com/feed/');
@@ -244,15 +244,15 @@ function mps_jd_optionpage(){
244
  foreach ($rss->items as $item ) {
245
 
246
  ?>
247
- <li><?php echo wp_specialchars($item['dc']['creator']); ?> : <a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a><?php// printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() ) ) ); ?></li>
248
  <?php
249
  }
250
  ?>
251
- </ul><br style="clear: both;"/>
252
  <?php
253
  }
254
  ?>
255
-
256
 
257
 
258
  <h2>تنظیمات وردپرس فارسی</h2>
@@ -367,10 +367,10 @@ endfor;
367
  </form>
368
 
369
  <br />
370
- </div><br />&nbsp;
371
  <div id="wp-bookmarklet" class="wrap" style="direction:rtl; text-align:right">
372
  <h3>پروژه وردپرس فارسی</h3>
373
- <p>این افزونه، بخشی از <a href="http://www.wp-persian.com/">پروژه وردپرس فارسی</a> می باشد. برای اطلاعات بیشتر در مورد این پلاگ-این می توانید <a href="http://www.wp-persian.com/wp-jalali/">صفحه مخصوص این پلاگ-این</a> را مشاهده کنید.</p>
374
  </div>
375
 
376
 
@@ -1745,7 +1745,7 @@ function widget_jarchive_init() {
1745
  function mps_farsikeyboard() {
1746
  /* Simple API for adding farsitype.js to themes */
1747
  if (!file_exists(dirname(__FILE__) . '/farsitype.js') ) return;
1748
- $script_uri = get_settings('siteurl').'/wp-content/plugins/WP-Jalali/farsitype.js';
1749
  echo "<script language=\"javascript\" src=\"$script_uri\" type=\"text/javascript\"></script>";
1750
 
1751
  }
@@ -1762,7 +1762,7 @@ if ($_wp_version < 2) {
1762
  add_filter('wp_title', 'mps_fixtitle',2);
1763
 
1764
  //$richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true;
1765
- $richedit = true;
1766
 
1767
  if ($richedit) {
1768
  add_filter("mce_plugins","mps_mce_plugins");
@@ -1809,4 +1809,4 @@ if ($mps_jd_jperma) add_filter("post_link","get_jpermalink",10,2);
1809
 
1810
  add_action('widgets_init', 'widget_jarchive_init');
1811
  add_action('widgets_init', 'widget_mps_calendar_init');
1812
- ?>
1
  <?php
2
  /*
3
  Plugin Name: Full Jalali Date & Persian Support Package for Wordpress
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: 3.5.1
7
  Author: Vali Allah(Mani) Monajjemi
8
  Author URI: http://www.manionline.org/
9
  */
208
  ?>
209
 
210
  <?php
211
+ $logo_uri = get_settings('siteurl').'/wp-content/plugins/wp-jalali/wp-fa-logo.png';
212
  ?>
213
 
214
+ <div class="wrap" style="direction:rtl">
215
+ <p style="text-align:center">
216
+ <a href="http://wp-persian.com" style="border:none" title="وردپرس فارسی"><img src="<?=$logo_uri?>" alt="Persian Wordpress Logo" width="300" height="70" border="0"/></a>
217
  </p>
218
  <h2>اخبار وردپرس فارسی</h2>
219
  <h3>وبلاگ توسعه وردپرس فارسی</h3>
220
 
221
  <?php
222
+ $rss = @fetch_rss('http://wp-persian.com/feed/');
223
  if ( isset($rss->items) && 0 != count($rss->items) ) {
224
  ?>
225
  <?php
226
  $rss->items = array_slice($rss->items, 0, 3);
227
  foreach ($rss->items as $item ) {
228
  ?>
229
+ <h4 dir="rtl" style="color:gray; margin-right:25px; "><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> &#8212; <?php printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() ) ) ); ?></h4>
230
  <?php
231
  }
232
  }
233
  ?>
234
+ <div id="planetnews" style="direction:rtl;">
235
  <h3>سیاره وردپرس فارسی <a href="http://planet.wp-persian.com/">بیشتر »</a></h3>
236
  <?php
237
  $rss = @fetch_rss('http://planet.wp-persian.com/feed/');
244
  foreach ($rss->items as $item ) {
245
 
246
  ?>
247
+ <li><?php echo wp_specialchars($item['dc']['creator']); ?>: <a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a><?php// printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() ) ) ); ?></li>
248
  <?php
249
  }
250
  ?>
251
+ </ul><br style="clear:both;"/>
252
  <?php
253
  }
254
  ?>
255
+ </div>
256
 
257
 
258
  <h2>تنظیمات وردپرس فارسی</h2>
367
  </form>
368
 
369
  <br />
370
+ </div>
371
  <div id="wp-bookmarklet" class="wrap" style="direction:rtl; text-align:right">
372
  <h3>پروژه وردپرس فارسی</h3>
373
+ <p>این افزونه، بخشی از <a href="http://wp-persian.com/">پروژه وردپرس فارسی</a> می باشد. برای اطلاعات بیشتر در مورد این پلاگ-این می توانید <a href="http://wp-persian.com/wp-jalali/">صفحه مخصوص این پلاگ-این</a> را مشاهده کنید.</p>
374
  </div>
375
 
376
 
1745
  function mps_farsikeyboard() {
1746
  /* Simple API for adding farsitype.js to themes */
1747
  if (!file_exists(dirname(__FILE__) . '/farsitype.js') ) return;
1748
+ $script_uri = get_settings('siteurl').'/wp-content/plugins/wp-jalali/farsitype.js';
1749
  echo "<script language=\"javascript\" src=\"$script_uri\" type=\"text/javascript\"></script>";
1750
 
1751
  }
1762
  add_filter('wp_title', 'mps_fixtitle',2);
1763
 
1764
  //$richedit = ( 'true' != get_user_option('rich_editing') ) ? false : true;
1765
+ $richedit = ($_wp_version < 2.5);
1766
 
1767
  if ($richedit) {
1768
  add_filter("mce_plugins","mps_mce_plugins");
1809
 
1810
  add_action('widgets_init', 'widget_jarchive_init');
1811
  add_action('widgets_init', 'widget_mps_calendar_init');
1812
+ ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mani_monaj
3
  Donate link: http://www.wishlistr.com/mani_monaj/
4
  Tags: Persian, Farsi, Jalali, Date, Calendar, i18n, l10n
5
  Requires at least: 1.5.2
6
- Tested up to: 2.3-Alpha
7
- Stable tag: 3.5
8
 
9
  Turn you Wordpress into a full featured Persian (Iranian) Blogging Platform.
10
 
3
  Donate link: http://www.wishlistr.com/mani_monaj/
4
  Tags: Persian, Farsi, Jalali, Date, Calendar, i18n, l10n
5
  Requires at least: 1.5.2
6
+ Tested up to: 2.5-RC1
7
+ Stable tag: 3.5.1
8
 
9
  Turn you Wordpress into a full featured Persian (Iranian) Blogging Platform.
10