Changeset 449355
- Timestamp:
- 10/10/2011 04:23:51 AM (14 years ago)
- Location:
- zmanim-widget
- Files:
-
- 5 edited
- 16 copied
-
tags/1.13 (copied) (copied from zmanim-widget/trunk)
-
tags/1.13/config.php (copied) (copied from zmanim-widget/trunk/config.php)
-
tags/1.13/config_admin.php (copied) (copied from zmanim-widget/trunk/config_admin.php)
-
tags/1.13/functions.php (modified) (2 diffs)
-
tags/1.13/hdate/day.php (copied) (copied from zmanim-widget/trunk/hdate/day.php)
-
tags/1.13/hdate/hdate.php (copied) (copied from zmanim-widget/trunk/hdate/hdate.php)
-
tags/1.13/hdate/hol.php (copied) (copied from zmanim-widget/trunk/hdate/hol.php)
-
tags/1.13/hdate/today.php (copied) (copied from zmanim-widget/trunk/hdate/today.php)
-
tags/1.13/lib/main.js (copied) (copied from zmanim-widget/trunk/lib/main.js)
-
tags/1.13/lib/main_admin.js (copied) (copied from zmanim-widget/trunk/lib/main_admin.js)
-
tags/1.13/localization/zmanim-ru_RU.mo (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.mo)
-
tags/1.13/localization/zmanim-ru_RU.po (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.po)
-
tags/1.13/message.php (copied) (copied from zmanim-widget/trunk/message.php) (1 diff)
-
tags/1.13/readme.txt (copied) (copied from zmanim-widget/trunk/readme.txt) (2 diffs)
-
tags/1.13/week_zmanin.php (copied) (copied from zmanim-widget/trunk/week_zmanin.php)
-
tags/1.13/weeklytorah.php (copied) (copied from zmanim-widget/trunk/weeklytorah.php)
-
tags/1.13/zmanim-widget.php (copied) (copied from zmanim-widget/trunk/zmanim-widget.php) (1 diff)
-
trunk/functions.php (modified) (2 diffs)
-
trunk/message.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/zmanim-widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zmanim-widget/tags/1.13/functions.php
r273189 r449355 30 30 } 31 31 32 function dstWindow ($ts )32 function dstWindow ($ts, $location="None") 33 33 { 34 34 $in_dst="false"; … … 40 40 $hour=date("H",$sunday_ts); 41 41 $day=date("j",$ts); 42 if( ($sunday_month>=3) && ($sunday_month<=10) ) // IS CURRENT DATE INSIDE OF APRIL->OCT WINDOW? 42 $year=date("Y",$ts); 43 if (preg_match("/.*Israel.*/i",$location)) 43 44 { 45 $jdCurrent_t = gregoriantojd($month, $day, $year); 46 $jewishDate_t = jdtojewish($jdCurrent_t); 47 list($jewishMonth_t, $jewishDay_t, $jewishYear_t) = split('/', $jewishDate_t); 48 //print $jewishDate_t; 49 if (($jewishMonth_t >=1) && ($jewishMonth_t <=7)) 50 { 44 51 $in_dst="true"; 45 /*if($sunday_month=="4") //IS IT APRIL?52 if (($jewishMonth_t >=1) && ($sunday_ts <= $ts)) 46 53 { 47 if ($sunday<=7) //IS IT THE FIRST SUN OF THE MONTH? 48 { 49 $in_dst="true"; 50 }else{ 51 $in_dst="false"; 52 } 53 54 $in_dst="false"; 54 55 } 55 else*/ if($sunday_month=="3") //IS IT MARCH? 56 { 57 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH? 58 { 59 $in_dst="true"; 60 }else{ 61 $in_dst="false"; 62 } 63 } 56 if (($jewishMonth_t <=7) && ($sunday_ts >= $ts)) 57 { 58 $in_dst="false"; 59 } 60 } 61 }else{ 62 if( ($sunday_month>=3) && ($sunday_month<=10) ) // IS CURRENT DATE INSIDE OF MARCH->OCT WINDOW? 63 { 64 $in_dst="true"; 65 if($sunday_month=="3") //IS IT MARCH? 66 { 67 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH? 68 { 69 $in_dst="true"; 70 }else{ 71 $in_dst="false"; 72 } 73 } 64 74 elseif($sunday_month=="10") //IS IT OCT? 65 75 { 66 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH?67 {68 $in_dst="false";69 }else{70 $in_dst="true";71 }76 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH? 77 { 78 $in_dst="false"; 79 }else{ 80 $in_dst="true"; 81 } 72 82 } 83 } 73 84 } 74 85 return $in_dst; -
zmanim-widget/tags/1.13/message.php
r427430 r449355 94 94 95 95 //timestamp according to UTC offset 96 if (dstWindow($ts)=="true" ){ 96 97 if (dstWindow($ts, $data['location'])=="true" ){ 97 98 if ($data['dst'] == "true") 98 99 $shoffset++; -
zmanim-widget/tags/1.13/readme.txt
r446309 r449355 4 4 Requires at least: 2.7 5 5 Tested up from : 3.0 6 Stable tag: 1.1 2.36 Stable tag: 1.13 7 7 8 8 Displays Jewish calendar information in a widget. … … 24 24 25 25 == Changelog == 26 = 1.13 = 27 - added mechanism for detection of Israel Day Saving Time. 26 28 = 1.12.2 = 27 29 - small wording fix in admin part -
zmanim-widget/tags/1.13/zmanim-widget.php
r446309 r449355 4 4 Plugin URI: http://kosherdev.com/category/zmanim-widget/ 5 5 Description: Allows to show zmanim, upcoming hollidays and current Torah chapter on your Wordpress site. 6 Version: 1.1 2.36 Version: 1.13 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv/ -
zmanim-widget/trunk/functions.php
r273189 r449355 30 30 } 31 31 32 function dstWindow ($ts )32 function dstWindow ($ts, $location="None") 33 33 { 34 34 $in_dst="false"; … … 40 40 $hour=date("H",$sunday_ts); 41 41 $day=date("j",$ts); 42 if( ($sunday_month>=3) && ($sunday_month<=10) ) // IS CURRENT DATE INSIDE OF APRIL->OCT WINDOW? 42 $year=date("Y",$ts); 43 if (preg_match("/.*Israel.*/i",$location)) 43 44 { 45 $jdCurrent_t = gregoriantojd($month, $day, $year); 46 $jewishDate_t = jdtojewish($jdCurrent_t); 47 list($jewishMonth_t, $jewishDay_t, $jewishYear_t) = split('/', $jewishDate_t); 48 //print $jewishDate_t; 49 if (($jewishMonth_t >=1) && ($jewishMonth_t <=7)) 50 { 44 51 $in_dst="true"; 45 /*if($sunday_month=="4") //IS IT APRIL?52 if (($jewishMonth_t >=1) && ($sunday_ts <= $ts)) 46 53 { 47 if ($sunday<=7) //IS IT THE FIRST SUN OF THE MONTH? 48 { 49 $in_dst="true"; 50 }else{ 51 $in_dst="false"; 52 } 53 54 $in_dst="false"; 54 55 } 55 else*/ if($sunday_month=="3") //IS IT MARCH? 56 { 57 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH? 58 { 59 $in_dst="true"; 60 }else{ 61 $in_dst="false"; 62 } 63 } 56 if (($jewishMonth_t <=7) && ($sunday_ts >= $ts)) 57 { 58 $in_dst="false"; 59 } 60 } 61 }else{ 62 if( ($sunday_month>=3) && ($sunday_month<=10) ) // IS CURRENT DATE INSIDE OF MARCH->OCT WINDOW? 63 { 64 $in_dst="true"; 65 if($sunday_month=="3") //IS IT MARCH? 66 { 67 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH? 68 { 69 $in_dst="true"; 70 }else{ 71 $in_dst="false"; 72 } 73 } 64 74 elseif($sunday_month=="10") //IS IT OCT? 65 75 { 66 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH?67 {68 $in_dst="false";69 }else{70 $in_dst="true";71 }76 if ($sunday>=25 ) //IS IT THE LAST SUN OF THE MONTH? 77 { 78 $in_dst="false"; 79 }else{ 80 $in_dst="true"; 81 } 72 82 } 83 } 73 84 } 74 85 return $in_dst; -
zmanim-widget/trunk/message.php
r427430 r449355 94 94 95 95 //timestamp according to UTC offset 96 if (dstWindow($ts)=="true" ){ 96 97 if (dstWindow($ts, $data['location'])=="true" ){ 97 98 if ($data['dst'] == "true") 98 99 $shoffset++; -
zmanim-widget/trunk/readme.txt
r446309 r449355 4 4 Requires at least: 2.7 5 5 Tested up from : 3.0 6 Stable tag: 1.1 2.36 Stable tag: 1.13 7 7 8 8 Displays Jewish calendar information in a widget. … … 24 24 25 25 == Changelog == 26 = 1.13 = 27 - added mechanism for detection of Israel Day Saving Time. 26 28 = 1.12.2 = 27 29 - small wording fix in admin part -
zmanim-widget/trunk/zmanim-widget.php
r446309 r449355 4 4 Plugin URI: http://kosherdev.com/category/zmanim-widget/ 5 5 Description: Allows to show zmanim, upcoming hollidays and current Torah chapter on your Wordpress site. 6 Version: 1.1 2.36 Version: 1.13 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv/
Note: See TracChangeset
for help on using the changeset viewer.