Plugin Directory

Changeset 330572


Ignore:
Timestamp:
01/10/2011 05:53:18 AM (15 years ago)
Author:
beshkin
Message:

tagging version 1.9

Location:
zmanim-widget
Files:
5 edited
14 copied

Legend:

Unmodified
Added
Removed
  • zmanim-widget/tags/1.9/config_admin.php

    r297504 r330572  
    8181            ?>
    8282        </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 />
    8397    <h3><?_e('Date/Time Format configuration',"");?></h3>
    8498    <label for="date">Date:</label>
  • zmanim-widget/tags/1.9/hdate/hdate.php

    r297504 r330572  
    1818}*/
    1919
     20/*COUNTING CANDLE LIGHT TIME ON FRIDAY NIGHT*/
     21
    2022$resultStr = date_sunset($ts_start, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset);
    2123list($resultHour, $resultMin) = split(':', $resultStr);
     
    2830}
    2931
     32/*COUNTING END OF SHABBAT*/
     33
    3034$tslocal = date("Z", $ts_end);
    3135$timediff_end=1;
     
    3438}
    3539
    36 $resultStr_end = date_sunset($ts_end, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset);
     40print $data['zman_shabend'];
     41if ($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);
    3751list($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;
    4054
    4155while ($resultMin_end >= 60) {
  • zmanim-widget/tags/1.9/message.php

    r326107 r330572  
    6262        if(isset($data['long'])) $shlong=$data['long'];
    6363        else $shlong=24+44/60;
    64         if(isset($data['offset'])) $shoffset=$data['offset'];
     64        if(isset($data['offset'])) $shoffset=(int)$data['offset'];
    6565        else $shoffset=2;
    6666    if(isset($data['dst'])) $dst=$data['dst'];
  • zmanim-widget/tags/1.9/readme.txt

    r326107 r330572  
    44Requires at least: 2.7
    55Tested up from : 3.0
    6 Stable tag: 1.8.7
     6Stable tag: 1.9
    77
    88Displays Jewish calendar information in a widget.
     
    2323Enter Lattitude, Longitude and Offset to proper boxes in Widget Setup page.
    2424
    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).
    2628= 1.8.7 =
    2729- 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  
    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: 1.8.7
     6 Version: 1.9
    77 Author: Misha Beshkin
    88 Author URI: http://misha.beshkin.lv/
  • zmanim-widget/trunk/config_admin.php

    r297504 r330572  
    8181            ?>
    8282        </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 />
    8397    <h3><?_e('Date/Time Format configuration',"");?></h3>
    8498    <label for="date">Date:</label>
  • zmanim-widget/trunk/hdate/hdate.php

    r297504 r330572  
    1818}*/
    1919
     20/*COUNTING CANDLE LIGHT TIME ON FRIDAY NIGHT*/
     21
    2022$resultStr = date_sunset($ts_start, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset);
    2123list($resultHour, $resultMin) = split(':', $resultStr);
     
    2830}
    2931
     32/*COUNTING END OF SHABBAT*/
     33
    3034$tslocal = date("Z", $ts_end);
    3135$timediff_end=1;
     
    3438}
    3539
    36 $resultStr_end = date_sunset($ts_end, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+50/60, $shoffset);
     40print $data['zman_shabend'];
     41if ($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);
    3751list($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;
    4054
    4155while ($resultMin_end >= 60) {
  • zmanim-widget/trunk/message.php

    r326107 r330572  
    6262        if(isset($data['long'])) $shlong=$data['long'];
    6363        else $shlong=24+44/60;
    64         if(isset($data['offset'])) $shoffset=$data['offset'];
     64        if(isset($data['offset'])) $shoffset=(int)$data['offset'];
    6565        else $shoffset=2;
    6666    if(isset($data['dst'])) $dst=$data['dst'];
  • zmanim-widget/trunk/readme.txt

    r326107 r330572  
    44Requires at least: 2.7
    55Tested up from : 3.0
    6 Stable tag: 1.8.7
     6Stable tag: 1.9
    77
    88Displays Jewish calendar information in a widget.
     
    2323Enter Lattitude, Longitude and Offset to proper boxes in Widget Setup page.
    2424
    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).
    2628= 1.8.7 =
    2729- 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  
    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: 1.8.7
     6 Version: 1.9
    77 Author: Misha Beshkin
    88 Author URI: http://misha.beshkin.lv/
Note: See TracChangeset for help on using the changeset viewer.