Changeset 330572
- Timestamp:
- 01/10/2011 05:53:18 AM (15 years ago)
- Location:
- zmanim-widget
- Files:
-
- 5 edited
- 14 copied
-
tags/1.9 (copied) (copied from zmanim-widget/trunk)
-
tags/1.9/config.php (copied) (copied from zmanim-widget/trunk/config.php)
-
tags/1.9/config_admin.php (copied) (copied from zmanim-widget/trunk/config_admin.php) (1 diff)
-
tags/1.9/hdate/hdate.php (copied) (copied from zmanim-widget/trunk/hdate/hdate.php) (3 diffs)
-
tags/1.9/hdate/hol.php (copied) (copied from zmanim-widget/trunk/hdate/hol.php)
-
tags/1.9/hdate/today.php (copied) (copied from zmanim-widget/trunk/hdate/today.php)
-
tags/1.9/lib/main.js (copied) (copied from zmanim-widget/trunk/lib/main.js)
-
tags/1.9/lib/main_admin.js (copied) (copied from zmanim-widget/trunk/lib/main_admin.js)
-
tags/1.9/localization/zmanim-ru_RU.mo (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.mo)
-
tags/1.9/localization/zmanim-ru_RU.po (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.po)
-
tags/1.9/message.php (copied) (copied from zmanim-widget/trunk/message.php) (1 diff)
-
tags/1.9/readme.txt (copied) (copied from zmanim-widget/trunk/readme.txt) (2 diffs)
-
tags/1.9/weeklytorah.php (copied) (copied from zmanim-widget/trunk/weeklytorah.php)
-
tags/1.9/zmanim-widget.php (copied) (copied from zmanim-widget/trunk/zmanim-widget.php) (1 diff)
-
trunk/config_admin.php (modified) (1 diff)
-
trunk/hdate/hdate.php (modified) (3 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.9/config_admin.php
r297504 r330572 81 81 ?> 82 82 </select><br /> 83 <label for="zman_shabend">Shabbat end time:</label> 84 <select name="zman_shabend"> 85 <? 86 $shma_ar=array( 87 "gr8"=>"8.5 degrees below the horizon", 88 "min45"=>"45 minutes after sunset" 89 ); 90 foreach ($shma_ar as $opt=>$param){ 91 print '<option value="'.$opt.'" '; 92 if ($opt == $data['zman_shabend']) print 'selected="selected"'; 93 print '>'.$param.'</option>'; 94 } 95 ?> 96 </select><br /> 83 97 <h3><?_e('Date/Time Format configuration',"");?></h3> 84 98 <label for="date">Date:</label> -
zmanim-widget/tags/1.9/hdate/hdate.php
r297504 r330572 18 18 }*/ 19 19 20 /*COUNTING CANDLE LIGHT TIME ON FRIDAY NIGHT*/ 21 20 22 $resultStr = date_sunset($ts_start, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset); 21 23 list($resultHour, $resultMin) = split(':', $resultStr); … … 28 30 } 29 31 32 /*COUNTING END OF SHABBAT*/ 33 30 34 $tslocal = date("Z", $ts_end); 31 35 $timediff_end=1; … … 34 38 } 35 39 36 $resultStr_end = date_sunset($ts_end, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset); 40 print $data['zman_shabend']; 41 if ($data['zman_shabend'] == "min45") 42 { 43 $zenith = 90+50/60; 44 $diff_min=45; 45 }else{ 46 $zenith = 98+50/60; 47 $diff_min=0; 48 } 49 50 $resultStr_end = date_sunset($ts_end, SUNFUNCS_RET_STRING, $shlat, $shlong, $zenith, $shoffset); 37 51 list($resultHour_end, $resultMin_end) = split(':', $resultStr_end); 38 $resultHour_end += $timediff_end;39 $resultMin_end += 12;52 //$resultHour_end += $timediff_end; 53 $resultMin_end += $diff_min; 40 54 41 55 while ($resultMin_end >= 60) { -
zmanim-widget/tags/1.9/message.php
r326107 r330572 62 62 if(isset($data['long'])) $shlong=$data['long']; 63 63 else $shlong=24+44/60; 64 if(isset($data['offset'])) $shoffset= $data['offset'];64 if(isset($data['offset'])) $shoffset=(int)$data['offset']; 65 65 else $shoffset=2; 66 66 if(isset($data['dst'])) $dst=$data['dst']; -
zmanim-widget/tags/1.9/readme.txt
r326107 r330572 4 4 Requires at least: 2.7 5 5 Tested up from : 3.0 6 Stable tag: 1. 8.76 Stable tag: 1.9 7 7 8 8 Displays Jewish calendar information in a widget. … … 23 23 Enter Lattitude, Longitude and Offset to proper boxes in Widget Setup page. 24 24 25 == Changelog == 25 == Changelog ==a 26 = 1.9 = 27 - added selector for configuration of the end of Shabbat (8.5 degrees below horizon or 45 minutes after sunset). 26 28 = 1.8.7 = 27 29 - administrative console javascript was moved from main page to be executed only in admin part. (special thanks to KosherJava.com) -
zmanim-widget/tags/1.9/zmanim-widget.php
r326107 r330572 4 4 Plugin URI: http://kosherdev.com/category/zmanim-widget/ 5 5 Description: Allows to turn off the Wordpress site, while Shabat of High Holidays are going on in your area. 6 Version: 1. 8.76 Version: 1.9 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv/ -
zmanim-widget/trunk/config_admin.php
r297504 r330572 81 81 ?> 82 82 </select><br /> 83 <label for="zman_shabend">Shabbat end time:</label> 84 <select name="zman_shabend"> 85 <? 86 $shma_ar=array( 87 "gr8"=>"8.5 degrees below the horizon", 88 "min45"=>"45 minutes after sunset" 89 ); 90 foreach ($shma_ar as $opt=>$param){ 91 print '<option value="'.$opt.'" '; 92 if ($opt == $data['zman_shabend']) print 'selected="selected"'; 93 print '>'.$param.'</option>'; 94 } 95 ?> 96 </select><br /> 83 97 <h3><?_e('Date/Time Format configuration',"");?></h3> 84 98 <label for="date">Date:</label> -
zmanim-widget/trunk/hdate/hdate.php
r297504 r330572 18 18 }*/ 19 19 20 /*COUNTING CANDLE LIGHT TIME ON FRIDAY NIGHT*/ 21 20 22 $resultStr = date_sunset($ts_start, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset); 21 23 list($resultHour, $resultMin) = split(':', $resultStr); … … 28 30 } 29 31 32 /*COUNTING END OF SHABBAT*/ 33 30 34 $tslocal = date("Z", $ts_end); 31 35 $timediff_end=1; … … 34 38 } 35 39 36 $resultStr_end = date_sunset($ts_end, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset); 40 print $data['zman_shabend']; 41 if ($data['zman_shabend'] == "min45") 42 { 43 $zenith = 90+50/60; 44 $diff_min=45; 45 }else{ 46 $zenith = 98+50/60; 47 $diff_min=0; 48 } 49 50 $resultStr_end = date_sunset($ts_end, SUNFUNCS_RET_STRING, $shlat, $shlong, $zenith, $shoffset); 37 51 list($resultHour_end, $resultMin_end) = split(':', $resultStr_end); 38 $resultHour_end += $timediff_end;39 $resultMin_end += 12;52 //$resultHour_end += $timediff_end; 53 $resultMin_end += $diff_min; 40 54 41 55 while ($resultMin_end >= 60) { -
zmanim-widget/trunk/message.php
r326107 r330572 62 62 if(isset($data['long'])) $shlong=$data['long']; 63 63 else $shlong=24+44/60; 64 if(isset($data['offset'])) $shoffset= $data['offset'];64 if(isset($data['offset'])) $shoffset=(int)$data['offset']; 65 65 else $shoffset=2; 66 66 if(isset($data['dst'])) $dst=$data['dst']; -
zmanim-widget/trunk/readme.txt
r326107 r330572 4 4 Requires at least: 2.7 5 5 Tested up from : 3.0 6 Stable tag: 1. 8.76 Stable tag: 1.9 7 7 8 8 Displays Jewish calendar information in a widget. … … 23 23 Enter Lattitude, Longitude and Offset to proper boxes in Widget Setup page. 24 24 25 == Changelog == 25 == Changelog ==a 26 = 1.9 = 27 - added selector for configuration of the end of Shabbat (8.5 degrees below horizon or 45 minutes after sunset). 26 28 = 1.8.7 = 27 29 - administrative console javascript was moved from main page to be executed only in admin part. (special thanks to KosherJava.com) -
zmanim-widget/trunk/zmanim-widget.php
r326107 r330572 4 4 Plugin URI: http://kosherdev.com/category/zmanim-widget/ 5 5 Description: Allows to turn off the Wordpress site, while Shabat of High Holidays are going on in your area. 6 Version: 1. 8.76 Version: 1.9 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv/
Note: See TracChangeset
for help on using the changeset viewer.