Plugin Directory

Changeset 228887


Ignore:
Timestamp:
04/14/2010 01:53:23 PM (16 years ago)
Author:
beshkin
Message:

tagging version 1.0

Location:
zmanim-widget
Files:
2 added
7 edited
24 copied

Legend:

Unmodified
Added
Removed
  • zmanim-widget/tags/1.0/dictionary/ashkenaz.php

    r210167 r228887  
    1010    'Plag_Hamincha'=>__('Plag Hamincha','zmanim'),
    1111    'Tevet'=>__('Teves','zmanim'),
    12     'Av'=>__('Ov','zmanim')
     12    'Av'=>__('Ov','zmanim'),
     13    'Mincha_Ktana'=>__('Mincha Ktana','zmanim')
    1314
    1415);
  • zmanim-widget/tags/1.0/dictionary/sephard.php

    r210167 r228887  
    1010    'Plag_Hamincha'=>__('Plag Hamincha','zmanim'),
    1111    'Tevet'=>__('Tevet','zmanim'),
    12     'Av'=>__('Av','zmanim')
     12    'Av'=>__('Av','zmanim'),
     13        'Mincha_Ktana'=>__('Mincha Ktana','zmanim')
    1314
    1415);
  • zmanim-widget/tags/1.0/hdate/today.php

    r228307 r228887  
    2525echo '<ul><li><b>'.__("Zmanim","zmanim").'</b></li><li>';
    2626echo '<ul>';
    27 //$zman="72";
    28 if ( $zman == "72" ) {
     27//$zman="90";
     28if ( $zman_alot == "72" ) {
    2929    list($hour,$min) = explode(':',$sunriseStr_t);
    3030    $hour--;
     
    3434        $min += 60;
    3535    }
     36    if (strlen($min)<2) $min='0'.$min;
     37        if (strlen($hour)<2) $hour='0'.$hour;
    3638    $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));
    3752}else{
    3853    $time_2 = date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+16.1, $shoffset);
     
    4055print '<li>'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2.'</li>';
    4156print '<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>';
     57print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset).'</li>';
    4358$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,3));
     59if ($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}
    4470print '<li>'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2.'</li>';
    4571$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6));
    4672print '<li>'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2.'</li>';
    4773$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6.5));
     74if ($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}
    4885print '<li>'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2.'</li>';
     86$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,9.5));
     87if ($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}
     98print '<li>'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2.'</li>';
    4999$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,11.75));
     100if ($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}
    50111print '<li>'.__("Plag Hamincha","zmanim").': '.$time_2.'</li>';
    51112print '<li>'.__("Shkiah","zmanim").': '.$sunsetStr_t.'</li>';
  • zmanim-widget/tags/1.0/message.php

    r228307 r228887  
    1818    if($data['dst']) $dst=$data['dst'];
    1919        else $dst='';
     20    $zman_tallit = 11;
     21    foreach ($data as $o=>$v)
     22    {
     23        if (preg_match('/zman_/',$o)) $$o=$v;
     24    }
    2025endif;
    2126
  • zmanim-widget/tags/1.0/readme.txt

    r228307 r228887  
    44Requires at least: 2.7
    55Tested up from : 2.9
    6 Stable tag: 0.10.4
     6Stable tag: 1.0
    77
    88Displays Jewish calendar information in a widget.
     
    2424
    2525== 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
    2632= 0.10.4 =
    2733- fixed not counting DST difference.
     
    8894
    8995== Credits ==
     96- Tichnut.de for a wonderful description of various types of Zmanim
     97http://www.tichnut.de/jewish/jewcalsdkdoc/times.html
    9098- HebCal.com for a csv file with all the order of torah reading
    9199http://www.hebcal.com/help/sedra.html
  • zmanim-widget/tags/1.0/weeklytorah.php

    r223726 r228887  
    1111    $data['weekly_havtara_name'] = str_replace('"','',$weekly_portion[3]);
    1212    update_option('zmanim_widget', $data);
     13print 'TEST';
    1314}
    1415$weekly_portion_name = $data['weekly_portion_name'];
  • zmanim-widget/tags/1.0/zmanim-widget.php

    r228307 r228887  
    44 Plugin URI: http://kosherdev.com/category/zmanim-widget/
    55 Description: Allows to turn off the Wordpress site, while Shabat of High Holidays are going on in your area.
    6  Version: 0.10.4
     6 Version: 1.0
    77 Author: Misha Beshkin
    88 Author URI: http://kosherdev.com/
     
    3434    include "config.php";
    3535  }
     36  function options_page () {
     37    add_options_page('Zmanim widget Advanced Options', 'Zmanim Widget', 8,dirname(__FILE__)."/config_admin.php" );
     38  }
    3639  function widget($args){
    3740    echo $args['before_widget'];
     
    4649    register_sidebar_widget('Zmanim widget', array('zmanim_widget', 'widget'));
    4750    register_widget_control('Zmanim widget', array('zmanim_widget', 'control'));
     51    add_action('admin_menu', array('zmanim_widget', 'options_page'));
     52
    4853    $currentLocale = get_locale();
    4954    if(!empty($currentLocale)) {
  • zmanim-widget/trunk/dictionary/ashkenaz.php

    r210167 r228887  
    1010    'Plag_Hamincha'=>__('Plag Hamincha','zmanim'),
    1111    'Tevet'=>__('Teves','zmanim'),
    12     'Av'=>__('Ov','zmanim')
     12    'Av'=>__('Ov','zmanim'),
     13    'Mincha_Ktana'=>__('Mincha Ktana','zmanim')
    1314
    1415);
  • zmanim-widget/trunk/dictionary/sephard.php

    r210167 r228887  
    1010    'Plag_Hamincha'=>__('Plag Hamincha','zmanim'),
    1111    'Tevet'=>__('Tevet','zmanim'),
    12     'Av'=>__('Av','zmanim')
     12    'Av'=>__('Av','zmanim'),
     13        'Mincha_Ktana'=>__('Mincha Ktana','zmanim')
    1314
    1415);
  • zmanim-widget/trunk/hdate/today.php

    r228307 r228887  
    2525echo '<ul><li><b>'.__("Zmanim","zmanim").'</b></li><li>';
    2626echo '<ul>';
    27 //$zman="72";
    28 if ( $zman == "72" ) {
     27//$zman="90";
     28if ( $zman_alot == "72" ) {
    2929    list($hour,$min) = explode(':',$sunriseStr_t);
    3030    $hour--;
     
    3434        $min += 60;
    3535    }
     36    if (strlen($min)<2) $min='0'.$min;
     37        if (strlen($hour)<2) $hour='0'.$hour;
    3638    $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));
    3752}else{
    3853    $time_2 = date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+16.1, $shoffset);
     
    4055print '<li>'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2.'</li>';
    4156print '<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>';
     57print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset).'</li>';
    4358$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,3));
     59if ($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}
    4470print '<li>'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2.'</li>';
    4571$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6));
    4672print '<li>'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2.'</li>';
    4773$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,6.5));
     74if ($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}
    4885print '<li>'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2.'</li>';
     86$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,9.5));
     87if ($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}
     98print '<li>'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2.'</li>';
    4999$time_2=implode(':',getProportionalHours($sunriseStr_t,$sunsetStr_t,11.75));
     100if ($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}
    50111print '<li>'.__("Plag Hamincha","zmanim").': '.$time_2.'</li>';
    51112print '<li>'.__("Shkiah","zmanim").': '.$sunsetStr_t.'</li>';
  • zmanim-widget/trunk/message.php

    r228307 r228887  
    1818    if($data['dst']) $dst=$data['dst'];
    1919        else $dst='';
     20    $zman_tallit = 11;
     21    foreach ($data as $o=>$v)
     22    {
     23        if (preg_match('/zman_/',$o)) $$o=$v;
     24    }
    2025endif;
    2126
  • zmanim-widget/trunk/readme.txt

    r228307 r228887  
    44Requires at least: 2.7
    55Tested up from : 2.9
    6 Stable tag: 0.10.4
     6Stable tag: 1.0
    77
    88Displays Jewish calendar information in a widget.
     
    2424
    2525== 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
    2632= 0.10.4 =
    2733- fixed not counting DST difference.
     
    8894
    8995== Credits ==
     96- Tichnut.de for a wonderful description of various types of Zmanim
     97http://www.tichnut.de/jewish/jewcalsdkdoc/times.html
    9098- HebCal.com for a csv file with all the order of torah reading
    9199http://www.hebcal.com/help/sedra.html
  • zmanim-widget/trunk/weeklytorah.php

    r223726 r228887  
    1111    $data['weekly_havtara_name'] = str_replace('"','',$weekly_portion[3]);
    1212    update_option('zmanim_widget', $data);
     13print 'TEST';
    1314}
    1415$weekly_portion_name = $data['weekly_portion_name'];
  • zmanim-widget/trunk/zmanim-widget.php

    r228307 r228887  
    44 Plugin URI: http://kosherdev.com/category/zmanim-widget/
    55 Description: Allows to turn off the Wordpress site, while Shabat of High Holidays are going on in your area.
    6  Version: 0.10.4
     6 Version: 1.0
    77 Author: Misha Beshkin
    88 Author URI: http://kosherdev.com/
     
    3434    include "config.php";
    3535  }
     36  function options_page () {
     37    add_options_page('Zmanim widget Advanced Options', 'Zmanim Widget', 8,dirname(__FILE__)."/config_admin.php" );
     38  }
    3639  function widget($args){
    3740    echo $args['before_widget'];
     
    4649    register_sidebar_widget('Zmanim widget', array('zmanim_widget', 'widget'));
    4750    register_widget_control('Zmanim widget', array('zmanim_widget', 'control'));
     51    add_action('admin_menu', array('zmanim_widget', 'options_page'));
     52
    4853    $currentLocale = get_locale();
    4954    if(!empty($currentLocale)) {
Note: See TracChangeset for help on using the changeset viewer.