Changeset 228887
- Timestamp:
- 04/14/2010 01:53:23 PM (16 years ago)
- Location:
- zmanim-widget
- Files:
-
- 2 added
- 7 edited
- 24 copied
-
tags/1.0 (copied) (copied from zmanim-widget/trunk)
-
tags/1.0/config.php (copied) (copied from zmanim-widget/trunk/config.php)
-
tags/1.0/config_admin.php (added)
-
tags/1.0/countomer.php (copied) (copied from zmanim-widget/trunk/countomer.php)
-
tags/1.0/dictionary (copied) (copied from zmanim-widget/trunk/dictionary)
-
tags/1.0/dictionary/ashkenaz.php (copied) (copied from zmanim-widget/trunk/dictionary/ashkenaz.php) (1 diff)
-
tags/1.0/dictionary/fullkriyah.csv (copied) (copied from zmanim-widget/trunk/dictionary/fullkriyah.csv)
-
tags/1.0/dictionary/sephard.php (copied) (copied from zmanim-widget/trunk/dictionary/sephard.php) (1 diff)
-
tags/1.0/functions.php (copied) (copied from zmanim-widget/trunk/functions.php)
-
tags/1.0/hdate (copied) (copied from zmanim-widget/trunk/hdate)
-
tags/1.0/hdate/hdate.php (copied) (copied from zmanim-widget/trunk/hdate/hdate.php)
-
tags/1.0/hdate/hebrewdate.inc (copied) (copied from zmanim-widget/trunk/hdate/hebrewdate.inc)
-
tags/1.0/hdate/hol.php (copied) (copied from zmanim-widget/trunk/hdate/hol.php)
-
tags/1.0/hdate/holidays.inc (copied) (copied from zmanim-widget/trunk/hdate/holidays.inc)
-
tags/1.0/hdate/holidays.php (copied) (copied from zmanim-widget/trunk/hdate/holidays.php)
-
tags/1.0/hdate/today.php (copied) (copied from zmanim-widget/trunk/hdate/today.php) (3 diffs)
-
tags/1.0/img (copied) (copied from zmanim-widget/trunk/img)
-
tags/1.0/lib (copied) (copied from zmanim-widget/trunk/lib)
-
tags/1.0/localization (copied) (copied from zmanim-widget/trunk/localization)
-
tags/1.0/localization/zmanim-ru_RU.mo (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.mo)
-
tags/1.0/localization/zmanim-ru_RU.po (copied) (copied from zmanim-widget/trunk/localization/zmanim-ru_RU.po)
-
tags/1.0/message.php (copied) (copied from zmanim-widget/trunk/message.php) (1 diff)
-
tags/1.0/readme.txt (copied) (copied from zmanim-widget/trunk/readme.txt) (3 diffs)
-
tags/1.0/weeklytorah.php (copied) (copied from zmanim-widget/trunk/weeklytorah.php) (1 diff)
-
tags/1.0/zmanim-widget.php (copied) (copied from zmanim-widget/trunk/zmanim-widget.php) (3 diffs)
-
trunk/config_admin.php (added)
-
trunk/dictionary/ashkenaz.php (modified) (1 diff)
-
trunk/dictionary/sephard.php (modified) (1 diff)
-
trunk/hdate/today.php (modified) (3 diffs)
-
trunk/message.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/weeklytorah.php (modified) (1 diff)
-
trunk/zmanim-widget.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zmanim-widget/tags/1.0/dictionary/ashkenaz.php
r210167 r228887 10 10 'Plag_Hamincha'=>__('Plag Hamincha','zmanim'), 11 11 'Tevet'=>__('Teves','zmanim'), 12 'Av'=>__('Ov','zmanim') 12 'Av'=>__('Ov','zmanim'), 13 'Mincha_Ktana'=>__('Mincha Ktana','zmanim') 13 14 14 15 ); -
zmanim-widget/tags/1.0/dictionary/sephard.php
r210167 r228887 10 10 'Plag_Hamincha'=>__('Plag Hamincha','zmanim'), 11 11 'Tevet'=>__('Tevet','zmanim'), 12 'Av'=>__('Av','zmanim') 12 'Av'=>__('Av','zmanim'), 13 'Mincha_Ktana'=>__('Mincha Ktana','zmanim') 13 14 14 15 ); -
zmanim-widget/tags/1.0/hdate/today.php
r228307 r228887 25 25 echo '<ul><li><b>'.__("Zmanim","zmanim").'</b></li><li>'; 26 26 echo '<ul>'; 27 //$zman=" 72";28 if ( $zman == "72" ) {27 //$zman="90"; 28 if ( $zman_alot == "72" ) { 29 29 list($hour,$min) = explode(':',$sunriseStr_t); 30 30 $hour--; … … 34 34 $min += 60; 35 35 } 36 if (strlen($min)<2) $min='0'.$min; 37 if (strlen($hour)<2) $hour='0'.$hour; 36 38 $time_2 = $hour.':'.$min; 39 }elseif ( $zman_alot == "90" ) { 40 list($hour,$min) = explode(':',$sunriseStr_t); 41 $hour--; 42 $min -= 30; 43 if ($min <0) { 44 $hour--; 45 $min += 60; 46 } 47 if (strlen($min)<2) $min='0'.$min; 48 if (strlen($hour)<2) $hour='0'.$hour; 49 $time_2 = $hour.':'.$min; 50 }elseif ( $zman_alot == "72prop" ) { 51 $time_2 = implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,-1.2)); 37 52 }else{ 38 53 $time_2 = date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+16.1, $shoffset); … … 40 55 print '<li>'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2.'</li>'; 41 56 print '<li>'.translate_z('Netz',$data['accent']).': '.$sunriseStr_t.'</li>'; 42 print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+ 11, $shoffset).'</li>';57 print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset).'</li>'; 43 58 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,3)); 59 if ($zman_shma == "MA") { 60 list($hour,$min) = explode(':',$time_2); 61 $min -= 36; 62 if ($min <0) { 63 $hour--; 64 $min += 60; 65 } 66 if (strlen($min)<2) $min='0'.$min; 67 if (strlen($hour)<2) $hour='0'.$hour; 68 $time_2 = $hour.':'.$min; 69 } 44 70 print '<li>'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2.'</li>'; 45 71 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6)); 46 72 print '<li>'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2.'</li>'; 47 73 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6.5)); 74 if ($zman_shma == "MA") { 75 list($hour,$min) = explode(':',$time_2); 76 $min += 6; 77 if ($min >59) { 78 $hour++; 79 $min -= 60; 80 } 81 if (strlen($min)<2) $min='0'.$min; 82 if (strlen($hour)<2) $hour='0'.$hour; 83 $time_2 = $hour.':'.$min; 84 } 48 85 print '<li>'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2.'</li>'; 86 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,9.5)); 87 if ($zman_shma == "MA") { 88 list($hour,$min) = explode(':',$time_2); 89 $min += 42; 90 if ($min >59) { 91 $hour++; 92 $min -= 60; 93 } 94 if (strlen($min)<2) $min='0'.$min; 95 if (strlen($hour)<2) $hour='0'.$hour; 96 $time_2 = $hour.':'.$min; 97 } 98 print '<li>'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2.'</li>'; 49 99 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,11.75)); 100 if ($zman_shma == "MA") { 101 list($hour,$min) = explode(':',$time_2); 102 $min += 57; 103 if ($min >59) { 104 $hour++; 105 $min -= 60; 106 } 107 if (strlen($min)<2) $min='0'.$min; 108 if (strlen($hour)<2) $hour='0'.$hour; 109 $time_2 = $hour.':'.$min; 110 } 50 111 print '<li>'.__("Plag Hamincha","zmanim").': '.$time_2.'</li>'; 51 112 print '<li>'.__("Shkiah","zmanim").': '.$sunsetStr_t.'</li>'; -
zmanim-widget/tags/1.0/message.php
r228307 r228887 18 18 if($data['dst']) $dst=$data['dst']; 19 19 else $dst=''; 20 $zman_tallit = 11; 21 foreach ($data as $o=>$v) 22 { 23 if (preg_match('/zman_/',$o)) $$o=$v; 24 } 20 25 endif; 21 26 -
zmanim-widget/tags/1.0/readme.txt
r228307 r228887 4 4 Requires at least: 2.7 5 5 Tested up from : 2.9 6 Stable tag: 0.10.46 Stable tag: 1.0 7 7 8 8 Displays Jewish calendar information in a widget. … … 24 24 25 25 == Changelog == 26 = 1.0 = 27 - Advanced options administration section is added 28 - 4 ways of counting Alot haShachar 29 - 2 ways earliets Tallit 30 - 2 ways for praying time 31 - added Mincha Ktana time 26 32 = 0.10.4 = 27 33 - fixed not counting DST difference. … … 88 94 89 95 == Credits == 96 - Tichnut.de for a wonderful description of various types of Zmanim 97 http://www.tichnut.de/jewish/jewcalsdkdoc/times.html 90 98 - HebCal.com for a csv file with all the order of torah reading 91 99 http://www.hebcal.com/help/sedra.html -
zmanim-widget/tags/1.0/weeklytorah.php
r223726 r228887 11 11 $data['weekly_havtara_name'] = str_replace('"','',$weekly_portion[3]); 12 12 update_option('zmanim_widget', $data); 13 print 'TEST'; 13 14 } 14 15 $weekly_portion_name = $data['weekly_portion_name']; -
zmanim-widget/tags/1.0/zmanim-widget.php
r228307 r228887 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: 0.10.46 Version: 1.0 7 7 Author: Misha Beshkin 8 8 Author URI: http://kosherdev.com/ … … 34 34 include "config.php"; 35 35 } 36 function options_page () { 37 add_options_page('Zmanim widget Advanced Options', 'Zmanim Widget', 8,dirname(__FILE__)."/config_admin.php" ); 38 } 36 39 function widget($args){ 37 40 echo $args['before_widget']; … … 46 49 register_sidebar_widget('Zmanim widget', array('zmanim_widget', 'widget')); 47 50 register_widget_control('Zmanim widget', array('zmanim_widget', 'control')); 51 add_action('admin_menu', array('zmanim_widget', 'options_page')); 52 48 53 $currentLocale = get_locale(); 49 54 if(!empty($currentLocale)) { -
zmanim-widget/trunk/dictionary/ashkenaz.php
r210167 r228887 10 10 'Plag_Hamincha'=>__('Plag Hamincha','zmanim'), 11 11 'Tevet'=>__('Teves','zmanim'), 12 'Av'=>__('Ov','zmanim') 12 'Av'=>__('Ov','zmanim'), 13 'Mincha_Ktana'=>__('Mincha Ktana','zmanim') 13 14 14 15 ); -
zmanim-widget/trunk/dictionary/sephard.php
r210167 r228887 10 10 'Plag_Hamincha'=>__('Plag Hamincha','zmanim'), 11 11 'Tevet'=>__('Tevet','zmanim'), 12 'Av'=>__('Av','zmanim') 12 'Av'=>__('Av','zmanim'), 13 'Mincha_Ktana'=>__('Mincha Ktana','zmanim') 13 14 14 15 ); -
zmanim-widget/trunk/hdate/today.php
r228307 r228887 25 25 echo '<ul><li><b>'.__("Zmanim","zmanim").'</b></li><li>'; 26 26 echo '<ul>'; 27 //$zman=" 72";28 if ( $zman == "72" ) {27 //$zman="90"; 28 if ( $zman_alot == "72" ) { 29 29 list($hour,$min) = explode(':',$sunriseStr_t); 30 30 $hour--; … … 34 34 $min += 60; 35 35 } 36 if (strlen($min)<2) $min='0'.$min; 37 if (strlen($hour)<2) $hour='0'.$hour; 36 38 $time_2 = $hour.':'.$min; 39 }elseif ( $zman_alot == "90" ) { 40 list($hour,$min) = explode(':',$sunriseStr_t); 41 $hour--; 42 $min -= 30; 43 if ($min <0) { 44 $hour--; 45 $min += 60; 46 } 47 if (strlen($min)<2) $min='0'.$min; 48 if (strlen($hour)<2) $hour='0'.$hour; 49 $time_2 = $hour.':'.$min; 50 }elseif ( $zman_alot == "72prop" ) { 51 $time_2 = implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,-1.2)); 37 52 }else{ 38 53 $time_2 = date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+16.1, $shoffset); … … 40 55 print '<li>'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2.'</li>'; 41 56 print '<li>'.translate_z('Netz',$data['accent']).': '.$sunriseStr_t.'</li>'; 42 print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+ 11, $shoffset).'</li>';57 print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset).'</li>'; 43 58 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,3)); 59 if ($zman_shma == "MA") { 60 list($hour,$min) = explode(':',$time_2); 61 $min -= 36; 62 if ($min <0) { 63 $hour--; 64 $min += 60; 65 } 66 if (strlen($min)<2) $min='0'.$min; 67 if (strlen($hour)<2) $hour='0'.$hour; 68 $time_2 = $hour.':'.$min; 69 } 44 70 print '<li>'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2.'</li>'; 45 71 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6)); 46 72 print '<li>'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2.'</li>'; 47 73 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6.5)); 74 if ($zman_shma == "MA") { 75 list($hour,$min) = explode(':',$time_2); 76 $min += 6; 77 if ($min >59) { 78 $hour++; 79 $min -= 60; 80 } 81 if (strlen($min)<2) $min='0'.$min; 82 if (strlen($hour)<2) $hour='0'.$hour; 83 $time_2 = $hour.':'.$min; 84 } 48 85 print '<li>'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2.'</li>'; 86 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,9.5)); 87 if ($zman_shma == "MA") { 88 list($hour,$min) = explode(':',$time_2); 89 $min += 42; 90 if ($min >59) { 91 $hour++; 92 $min -= 60; 93 } 94 if (strlen($min)<2) $min='0'.$min; 95 if (strlen($hour)<2) $hour='0'.$hour; 96 $time_2 = $hour.':'.$min; 97 } 98 print '<li>'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2.'</li>'; 49 99 $time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,11.75)); 100 if ($zman_shma == "MA") { 101 list($hour,$min) = explode(':',$time_2); 102 $min += 57; 103 if ($min >59) { 104 $hour++; 105 $min -= 60; 106 } 107 if (strlen($min)<2) $min='0'.$min; 108 if (strlen($hour)<2) $hour='0'.$hour; 109 $time_2 = $hour.':'.$min; 110 } 50 111 print '<li>'.__("Plag Hamincha","zmanim").': '.$time_2.'</li>'; 51 112 print '<li>'.__("Shkiah","zmanim").': '.$sunsetStr_t.'</li>'; -
zmanim-widget/trunk/message.php
r228307 r228887 18 18 if($data['dst']) $dst=$data['dst']; 19 19 else $dst=''; 20 $zman_tallit = 11; 21 foreach ($data as $o=>$v) 22 { 23 if (preg_match('/zman_/',$o)) $$o=$v; 24 } 20 25 endif; 21 26 -
zmanim-widget/trunk/readme.txt
r228307 r228887 4 4 Requires at least: 2.7 5 5 Tested up from : 2.9 6 Stable tag: 0.10.46 Stable tag: 1.0 7 7 8 8 Displays Jewish calendar information in a widget. … … 24 24 25 25 == Changelog == 26 = 1.0 = 27 - Advanced options administration section is added 28 - 4 ways of counting Alot haShachar 29 - 2 ways earliets Tallit 30 - 2 ways for praying time 31 - added Mincha Ktana time 26 32 = 0.10.4 = 27 33 - fixed not counting DST difference. … … 88 94 89 95 == Credits == 96 - Tichnut.de for a wonderful description of various types of Zmanim 97 http://www.tichnut.de/jewish/jewcalsdkdoc/times.html 90 98 - HebCal.com for a csv file with all the order of torah reading 91 99 http://www.hebcal.com/help/sedra.html -
zmanim-widget/trunk/weeklytorah.php
r223726 r228887 11 11 $data['weekly_havtara_name'] = str_replace('"','',$weekly_portion[3]); 12 12 update_option('zmanim_widget', $data); 13 print 'TEST'; 13 14 } 14 15 $weekly_portion_name = $data['weekly_portion_name']; -
zmanim-widget/trunk/zmanim-widget.php
r228307 r228887 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: 0.10.46 Version: 1.0 7 7 Author: Misha Beshkin 8 8 Author URI: http://kosherdev.com/ … … 34 34 include "config.php"; 35 35 } 36 function options_page () { 37 add_options_page('Zmanim widget Advanced Options', 'Zmanim Widget', 8,dirname(__FILE__)."/config_admin.php" ); 38 } 36 39 function widget($args){ 37 40 echo $args['before_widget']; … … 46 49 register_sidebar_widget('Zmanim widget', array('zmanim_widget', 'widget')); 47 50 register_widget_control('Zmanim widget', array('zmanim_widget', 'control')); 51 add_action('admin_menu', array('zmanim_widget', 'options_page')); 52 48 53 $currentLocale = get_locale(); 49 54 if(!empty($currentLocale)) {
Note: See TracChangeset
for help on using the changeset viewer.