Changeset 381096
- Timestamp:
- 05/05/2011 04:46:41 AM (15 years ago)
- Location:
- zmanim-widget
- Files:
-
- 5 edited
- 14 copied
-
tags/1.10 (copied) (copied from zmanim-widget/trunk)
-
tags/1.10/config.php (copied) (copied from zmanim-widget/trunk/config.php)
-
tags/1.10/config_admin.php (copied) (copied from zmanim-widget/trunk/config_admin.php) (4 diffs)
-
tags/1.10/hdate/hdate.php (copied) (copied from zmanim-widget/trunk/hdate/hdate.php)
-
tags/1.10/hdate/hol.php (copied) (copied from zmanim-widget/trunk/hdate/hol.php)
-
tags/1.10/hdate/today.php (copied) (copied from zmanim-widget/trunk/hdate/today.php) (7 diffs)
-
tags/1.10/lib/main.js (copied) (copied from zmanim-widget/trunk/lib/main.js)
-
tags/1.10/lib/main_admin.js (copied) (copied from zmanim-widget/trunk/lib/main_admin.js)
-
tags/1.10/localization/zmanim-ru_RU.mo (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.mo)
-
tags/1.10/localization/zmanim-ru_RU.po (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.po)
-
tags/1.10/message.php (copied) (copied from zmanim-widget/trunk/message.php) (1 diff)
-
tags/1.10/readme.txt (copied) (copied from zmanim-widget/trunk/readme.txt) (2 diffs)
-
tags/1.10/weeklytorah.php (copied) (copied from zmanim-widget/trunk/weeklytorah.php)
-
tags/1.10/zmanim-widget.php (copied) (copied from zmanim-widget/trunk/zmanim-widget.php) (1 diff)
-
trunk/config_admin.php (modified) (4 diffs)
-
trunk/hdate/today.php (modified) (7 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.10/config_admin.php
r330572 r381096 18 18 } 19 19 // if (!$_POST['zmanim_widget_dst']) $data['dst'] = "false"; 20 //sections 20 21 if (!isset($_POST['zman_hide'])) unset($data['zman_hide']); 21 22 if (!isset($_POST['hide-exclude'])) unset($data['hide_exclude']); 22 23 if (isset($_POST['hide-exclude'])) $data['hide_exclude']=implode('|',$_POST['hide-exclude']); 24 // zmanim 25 if (!isset($_POST['zmanim_hide'])) unset($data['zmanim_hide']); 26 if (!isset($_POST['zmanim-hide-exclude'])) unset($data['zmanim_hide_exclude']); 27 if (isset($_POST['zmanim-hide-exclude'])) $data['zmanim_hide_exclude']=implode('|',$_POST['zmanim-hide-exclude']); 28 //date 23 29 if (!isset($_POST['default_date'])) unset($data['default_date']); 24 30 if (!isset($_POST['default_time'])) unset($data['default_time']); … … 131 137 else print 'display:none;';?>" 132 138 > 139 133 140 <label style="vertical-align:top;"><?_e("Except following","zmanim");?>:</label> 134 141 <?$hide_exclude = explode('|',$data['hide_exclude']); … … 147 154 </select> 148 155 </div> 149 156 <!--ZMANIM hiding --> 157 <label for="zmanim_hide"><?_e("Hide zmanim","");?></label> 158 <input type="checkbox" name="zmanim_hide" id="zmanim_hide" value="on" 159 <?if (isset($data['zmanim_hide'])) print ' checked="checked"';?> 160 > 161 <div id="zmanim-hide-exclude" style=" 162 <?if (isset($data['zmanim_hide'])) print 'display:block;'; 163 else print 'display:none;';?>" 164 > 165 <label style="vertical-align:top;"><?_e("Except following","zmanim");?>:</label> 166 <?$zmanim_hide_exclude = explode('|',$data['zmanim_hide_exclude']); 167 ?> 168 <select name="zmanim-hide-exclude[]" multiple="true" size="4" style="height:8em;"> 169 <option value="alot_hashachar" <?if (in_array("alot_hashachar",$zmanim_hide_exclude)) print 'selected="selected"';?>>Alot HaShachar</option> 170 <option value="netz" <?if (in_array("netz",$zmanim_hide_exclude)) print 'selected="selected"';?>>Netz</option> 171 <option value="tallit" <?if (in_array("tallit",$zmanim_hide_exclude)) print 'selected="selected"';?>>Latest Tallit</option> 172 <option value="latest_shma" <?if (in_array("latest_shma",$zmanim_hide_exclude)) print 'selected="selected"';?>>Latest Shma</option> 173 <option value="hatzot_hayom" <?if (in_array("hatzot_hayom",$zmanim_hide_exclude)) print 'selected="selected"';?>>Hatzot HaYom</option> 174 <option value="mincha_gedola" <?if (in_array("mincha_gedola",$zmanim_hide_exclude)) print 'selected="selected"';?>>Mincha Gedola</option> 175 <option value="mincha_ktana" <?if (in_array("mincha_ktana",$zmanim_hide_exclude)) print 'selected="selected"';?>>Mincha Ktana</option> 176 <option value="plag_hamincha" <?if (in_array("plag_hamincha",$zmanim_hide_exclude)) print 'selected="selected"';?>>Plag HaMincha</option> 177 <option value="shkiah" <?if (in_array("shkiah",$zmanim_hide_exclude)) print 'selected="selected"';?>>Shkiah</option> 178 </select> 179 </div> 150 180 <h3><?_e('Map configuration',"");?></h3> 151 181 <label for="zman_map_key">Google map API key:</label> … … 178 208 jQuery('div#hide-exclude').toggle(); 179 209 }); 210 jQuery('input#zmanim_hide').click(function() { 211 jQuery('div#zmanim-hide-exclude').toggle(); 212 }); 180 213 </script> -
zmanim-widget/tags/1.10/hdate/today.php
r357065 r381096 70 70 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 71 71 } 72 print '<li >'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2;72 print '<li id="alot_hashachar">'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2; 73 73 if ($hebrew) print ' :'.translate_z('Alot_HaShachar','hebrew'); 74 74 print '</li>'; 75 75 list($hour,$min) = explode(':',$sunriseStr_t); 76 76 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 77 print '<li >'.translate_z('Netz',$data['accent']).': '.$time_2;77 print '<li id="netz">'.translate_z('Netz',$data['accent']).': '.$time_2; 78 78 if ($hebrew) print ' :'.translate_z('Netz','hebrew'); 79 79 '</li>'; 80 80 list($hour,$min) = explode(':',date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset)); //zman_tallit = 11 by default 81 81 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 82 print '<li >'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2;82 print '<li id="tallit">'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2; 83 83 if ($hebrew) print ' :'.translate_z('Tallit','hebrew'); 84 84 '</li>'; … … 97 97 } 98 98 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 99 print '<li >'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2;99 print '<li id="latest_shma">'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2; 100 100 if ($hebrew) print ' :'.translate_z('Shma','hebrew'); 101 101 '</li>'; … … 103 103 list($hour,$min) = getProportionalHours($sunriseStr_t,$sunsetStr_t,6); 104 104 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 105 print '<li >'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2;105 print '<li id="hatzot_hayom">'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2; 106 106 if ($hebrew) print ' :'.translate_z('Hatzot_Hayom','hebrew'); 107 107 print '</li>'; … … 120 120 } 121 121 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 122 print '<li >'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2;122 print '<li id="mincha_gedola">'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2; 123 123 if ($hebrew) print ' :'.translate_z('Mincha_Gedola','hebrew'); 124 124 print '</li>'; … … 137 137 } 138 138 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 139 print '<li >'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2;139 print '<li id="mincha_ktana">'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2; 140 140 if ($hebrew) print ' :'.translate_z('Mincha_Ktana','hebrew'); 141 141 print '</li>'; … … 154 154 } 155 155 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 156 print '<li >'.__("Plag Hamincha","zmanim").': '.$time_2;156 print '<li id="plag_hamincha">'.__("Plag Hamincha","zmanim").': '.$time_2; 157 157 if ($hebrew) print ' :'.translate_z('Plag_Hamincha',"hebrew"); 158 158 print '</li>'; 159 159 list($hour,$min) = explode(':',$sunsetStr_t); 160 160 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 161 print '<li >'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t;161 print '<li id="shkiah">'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t; 162 162 if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew"); 163 163 print '</li>'; … … 175 175 </li></ul> 176 176 177 -
zmanim-widget/tags/1.10/message.php
r330572 r381096 31 31 { 32 32 print 'ul.zmanim-inner-section ul#zmanim-'.$exclude.' {display:block;}'."\n"; 33 } 34 35 } 36 37 ?> 38 <?if (isset($data['zmanim_hide'])) { 39 print 'ul#zmanim-today li {display:none;}'."\n"; 40 $zmanim_hide_exclude = explode('|',$data['zmanim_hide_exclude']); 41 foreach ($zmanim_hide_exclude as $exclude) 42 { 43 print 'ul#zmanim-today li#'.$exclude.' {display:block;}'."\n"; 33 44 } 34 45 -
zmanim-widget/tags/1.10/readme.txt
r357065 r381096 4 4 Requires at least: 2.7 5 5 Tested up from : 3.0 6 Stable tag: 1. 9.26 Stable tag: 1.10 7 7 8 8 Displays Jewish calendar information in a widget. … … 24 24 25 25 == Changelog == 26 = 1.10 = 27 - add possibility to hide zmanim 26 28 = 1.9.2 = 27 29 - fixed wrong time for Shabbat candle lighting -
zmanim-widget/tags/1.10/zmanim-widget.php
r357065 r381096 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. 9.26 Version: 1.10 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv/ -
zmanim-widget/trunk/config_admin.php
r330572 r381096 18 18 } 19 19 // if (!$_POST['zmanim_widget_dst']) $data['dst'] = "false"; 20 //sections 20 21 if (!isset($_POST['zman_hide'])) unset($data['zman_hide']); 21 22 if (!isset($_POST['hide-exclude'])) unset($data['hide_exclude']); 22 23 if (isset($_POST['hide-exclude'])) $data['hide_exclude']=implode('|',$_POST['hide-exclude']); 24 // zmanim 25 if (!isset($_POST['zmanim_hide'])) unset($data['zmanim_hide']); 26 if (!isset($_POST['zmanim-hide-exclude'])) unset($data['zmanim_hide_exclude']); 27 if (isset($_POST['zmanim-hide-exclude'])) $data['zmanim_hide_exclude']=implode('|',$_POST['zmanim-hide-exclude']); 28 //date 23 29 if (!isset($_POST['default_date'])) unset($data['default_date']); 24 30 if (!isset($_POST['default_time'])) unset($data['default_time']); … … 131 137 else print 'display:none;';?>" 132 138 > 139 133 140 <label style="vertical-align:top;"><?_e("Except following","zmanim");?>:</label> 134 141 <?$hide_exclude = explode('|',$data['hide_exclude']); … … 147 154 </select> 148 155 </div> 149 156 <!--ZMANIM hiding --> 157 <label for="zmanim_hide"><?_e("Hide zmanim","");?></label> 158 <input type="checkbox" name="zmanim_hide" id="zmanim_hide" value="on" 159 <?if (isset($data['zmanim_hide'])) print ' checked="checked"';?> 160 > 161 <div id="zmanim-hide-exclude" style=" 162 <?if (isset($data['zmanim_hide'])) print 'display:block;'; 163 else print 'display:none;';?>" 164 > 165 <label style="vertical-align:top;"><?_e("Except following","zmanim");?>:</label> 166 <?$zmanim_hide_exclude = explode('|',$data['zmanim_hide_exclude']); 167 ?> 168 <select name="zmanim-hide-exclude[]" multiple="true" size="4" style="height:8em;"> 169 <option value="alot_hashachar" <?if (in_array("alot_hashachar",$zmanim_hide_exclude)) print 'selected="selected"';?>>Alot HaShachar</option> 170 <option value="netz" <?if (in_array("netz",$zmanim_hide_exclude)) print 'selected="selected"';?>>Netz</option> 171 <option value="tallit" <?if (in_array("tallit",$zmanim_hide_exclude)) print 'selected="selected"';?>>Latest Tallit</option> 172 <option value="latest_shma" <?if (in_array("latest_shma",$zmanim_hide_exclude)) print 'selected="selected"';?>>Latest Shma</option> 173 <option value="hatzot_hayom" <?if (in_array("hatzot_hayom",$zmanim_hide_exclude)) print 'selected="selected"';?>>Hatzot HaYom</option> 174 <option value="mincha_gedola" <?if (in_array("mincha_gedola",$zmanim_hide_exclude)) print 'selected="selected"';?>>Mincha Gedola</option> 175 <option value="mincha_ktana" <?if (in_array("mincha_ktana",$zmanim_hide_exclude)) print 'selected="selected"';?>>Mincha Ktana</option> 176 <option value="plag_hamincha" <?if (in_array("plag_hamincha",$zmanim_hide_exclude)) print 'selected="selected"';?>>Plag HaMincha</option> 177 <option value="shkiah" <?if (in_array("shkiah",$zmanim_hide_exclude)) print 'selected="selected"';?>>Shkiah</option> 178 </select> 179 </div> 150 180 <h3><?_e('Map configuration',"");?></h3> 151 181 <label for="zman_map_key">Google map API key:</label> … … 178 208 jQuery('div#hide-exclude').toggle(); 179 209 }); 210 jQuery('input#zmanim_hide').click(function() { 211 jQuery('div#zmanim-hide-exclude').toggle(); 212 }); 180 213 </script> -
zmanim-widget/trunk/hdate/today.php
r357065 r381096 70 70 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 71 71 } 72 print '<li >'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2;72 print '<li id="alot_hashachar">'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2; 73 73 if ($hebrew) print ' :'.translate_z('Alot_HaShachar','hebrew'); 74 74 print '</li>'; 75 75 list($hour,$min) = explode(':',$sunriseStr_t); 76 76 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 77 print '<li >'.translate_z('Netz',$data['accent']).': '.$time_2;77 print '<li id="netz">'.translate_z('Netz',$data['accent']).': '.$time_2; 78 78 if ($hebrew) print ' :'.translate_z('Netz','hebrew'); 79 79 '</li>'; 80 80 list($hour,$min) = explode(':',date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset)); //zman_tallit = 11 by default 81 81 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 82 print '<li >'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2;82 print '<li id="tallit">'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2; 83 83 if ($hebrew) print ' :'.translate_z('Tallit','hebrew'); 84 84 '</li>'; … … 97 97 } 98 98 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 99 print '<li >'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2;99 print '<li id="latest_shma">'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2; 100 100 if ($hebrew) print ' :'.translate_z('Shma','hebrew'); 101 101 '</li>'; … … 103 103 list($hour,$min) = getProportionalHours($sunriseStr_t,$sunsetStr_t,6); 104 104 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 105 print '<li >'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2;105 print '<li id="hatzot_hayom">'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2; 106 106 if ($hebrew) print ' :'.translate_z('Hatzot_Hayom','hebrew'); 107 107 print '</li>'; … … 120 120 } 121 121 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 122 print '<li >'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2;122 print '<li id="mincha_gedola">'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2; 123 123 if ($hebrew) print ' :'.translate_z('Mincha_Gedola','hebrew'); 124 124 print '</li>'; … … 137 137 } 138 138 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 139 print '<li >'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2;139 print '<li id="mincha_ktana">'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2; 140 140 if ($hebrew) print ' :'.translate_z('Mincha_Ktana','hebrew'); 141 141 print '</li>'; … … 154 154 } 155 155 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 156 print '<li >'.__("Plag Hamincha","zmanim").': '.$time_2;156 print '<li id="plag_hamincha">'.__("Plag Hamincha","zmanim").': '.$time_2; 157 157 if ($hebrew) print ' :'.translate_z('Plag_Hamincha',"hebrew"); 158 158 print '</li>'; 159 159 list($hour,$min) = explode(':',$sunsetStr_t); 160 160 $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60)); 161 print '<li >'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t;161 print '<li id="shkiah">'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t; 162 162 if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew"); 163 163 print '</li>'; … … 175 175 </li></ul> 176 176 177 -
zmanim-widget/trunk/message.php
r330572 r381096 31 31 { 32 32 print 'ul.zmanim-inner-section ul#zmanim-'.$exclude.' {display:block;}'."\n"; 33 } 34 35 } 36 37 ?> 38 <?if (isset($data['zmanim_hide'])) { 39 print 'ul#zmanim-today li {display:none;}'."\n"; 40 $zmanim_hide_exclude = explode('|',$data['zmanim_hide_exclude']); 41 foreach ($zmanim_hide_exclude as $exclude) 42 { 43 print 'ul#zmanim-today li#'.$exclude.' {display:block;}'."\n"; 33 44 } 34 45 -
zmanim-widget/trunk/readme.txt
r357065 r381096 4 4 Requires at least: 2.7 5 5 Tested up from : 3.0 6 Stable tag: 1. 9.26 Stable tag: 1.10 7 7 8 8 Displays Jewish calendar information in a widget. … … 24 24 25 25 == Changelog == 26 = 1.10 = 27 - add possibility to hide zmanim 26 28 = 1.9.2 = 27 29 - fixed wrong time for Shabbat candle lighting -
zmanim-widget/trunk/zmanim-widget.php
r357065 r381096 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. 9.26 Version: 1.10 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv/
Note: See TracChangeset
for help on using the changeset viewer.