Changeset 920308
- Timestamp:
- 05/24/2014 10:37:19 AM (12 years ago)
- Location:
- wp-parsidate
- Files:
-
- 30 added
- 3 edited
-
tags/1.3.3 (added)
-
tags/1.3.3/admin.php (added)
-
tags/1.3.3/css (added)
-
tags/1.3.3/css/admin.css (added)
-
tags/1.3.3/css/editor.css (added)
-
tags/1.3.3/css/index.php (added)
-
tags/1.3.3/index.php (added)
-
tags/1.3.3/js (added)
-
tags/1.3.3/js/index.php (added)
-
tags/1.3.3/js/parsidate.js (added)
-
tags/1.3.3/languages (added)
-
tags/1.3.3/languages/admin-fa_IR.mo (added)
-
tags/1.3.3/languages/admin-fa_IR.po (added)
-
tags/1.3.3/languages/admin-network-fa_IR.mo (added)
-
tags/1.3.3/languages/admin-network-fa_IR.po (added)
-
tags/1.3.3/languages/continents-cities-fa_IR.mo (added)
-
tags/1.3.3/languages/continents-cities-fa_IR.po (added)
-
tags/1.3.3/languages/fa_IR.mo (added)
-
tags/1.3.3/languages/fa_IR.php (added)
-
tags/1.3.3/languages/fa_IR.po (added)
-
tags/1.3.3/languages/index.php (added)
-
tags/1.3.3/lib (added)
-
tags/1.3.3/lib/functions.php (added)
-
tags/1.3.3/lib/index.php (added)
-
tags/1.3.3/lib/parsidate.php (added)
-
tags/1.3.3/readme.txt (added)
-
tags/1.3.3/screenshot-1.png (added)
-
tags/1.3.3/screenshot-2.png (added)
-
tags/1.3.3/widegets.php (added)
-
tags/1.3.3/wp-parsidate.php (added)
-
trunk/lib/parsidate.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-parsidate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-parsidate/trunk/lib/parsidate.php
r839056 r920308 65 65 $leap=self::IsLeapYear($gy-1); 66 66 $leab=self::IsLeapYear($gy); 67 if($leap and $gm>2)68 ++$gd;69 67 if($dayofyear>79) 70 68 { 71 69 $jd=($leab)?$dayofyear-78:$dayofyear-79; 72 70 $jy=$gy-621; 73 for($i=0;$jd>$this->j_days_in_month[$i];$i++)74 $jd-=$this->j_days_in_month[$i];75 71 } 76 72 else 77 73 { 78 74 $jd=($leap||($leab&&$gm>2))?287+$dayofyear:286+$dayofyear; 79 $jy=$gy-622; 80 if($jd==366) 81 return array($jy,12,30); 82 for($i=0;$jd>$this->j_days_in_month[$i];$i++) 83 $jd-=$this->j_days_in_month[$i]; 75 $jy=$gy-622; 84 76 } 77 for($i=0;$i<11 and $jd>$this->j_days_in_month[$i];$i++) 78 $jd-=$this->j_days_in_month[$i]; 85 79 $jm=++$i; 86 80 return array($jy,$jm,$jd); 87 } 81 } 88 82 89 83 public function trim_number($num,$sp='٫') … … 98 92 { 99 93 $j_days_in_month = array(31, 62, 93, 124, 155, 186, 216, 246, 276, 306, 336, 365); 100 if(strtotime($date)){ 101 $timestamp=strtotime($date); 102 }else{ 103 $timestamp = $date ; 104 } 94 $timestamp = is_numeric($date) && (int)$date == $date?$date:strtotime($date); 105 95 106 96 $date=getdate($timestamp); -
wp-parsidate/trunk/readme.txt
r898582 r920308 4 4 Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl 5 5 Requires at least: 3.6 6 Tested up to: 3.9 7 Stable tag: 1.3. 36 Tested up to: 3.9.1 7 Stable tag: 1.3.4 8 8 9 9 Persian package builder for WordPress, Full RTL and Shamsi(Jalali) date … … 39 39 40 40 == Changelog == 41 = 1.3.4 = 42 * unix timstamp problems fixed 43 * languages fixed 44 * core functions improved 45 41 46 = 1.3.3 = 42 47 * editor problems fixed -
wp-parsidate/trunk/wp-parsidate.php
r919456 r920308 3 3 /* 4 4 Plugin Name: WP-Parsidate 5 Version: 1.3. 35 Version: 1.3.4 6 6 Author: Mobin Ghasempoor 7 7 Author URI: http://wp-parsi.com/
Note: See TracChangeset
for help on using the changeset viewer.