Plugin Directory

Changeset 381586


Ignore:
Timestamp:
05/06/2011 04:25:26 AM (15 years ago)
Author:
beshkin
Message:

tagging version 1.11

Location:
zmanim-widget
Files:
4 edited
14 copied

Legend:

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

    r381096 r381586  
    176176            <option value="plag_hamincha" <?if (in_array("plag_hamincha",$zmanim_hide_exclude)) print 'selected="selected"';?>>Plag HaMincha</option>
    177177            <option value="shkiah" <?if (in_array("shkiah",$zmanim_hide_exclude)) print 'selected="selected"';?>>Shkiah</option>
     178            <option value="tzet_hokohavim" <?if (in_array("tzet_hokohavim",$zmanim_hide_exclude)) print 'selected="selected"';?>>Tzet haKochavim</option>
    178179        </select>
    179180    </div>
  • zmanim-widget/tags/1.11/hdate/today.php

    r381096 r381586  
    162162if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew");
    163163print '</li>';
     164if ($data['zman_shabend'] == "min45")
     165{
     166    $zenith = 90+50/60;
     167    $diff_min=45;
     168}else{
     169    $zenith = 98+50/60;
     170    $diff_min=0;
     171}
     172
     173$resultStr_end = date_sunset($ts_zero, SUNFUNCS_RET_STRING, $shlat, $shlong, $zenith, $shoffset);
     174list($resultHour_end, $resultMin_end) = split(':', $resultStr_end);
     175$resultMin_end += $diff_min;
     176
     177while ($resultMin_end >= 60) {
     178  $resultMin_end -= 60;
     179  $resultHour_end++;
     180}
     181
     182if ($resultHour_end > 23)
     183{
     184    $resultHour_end -= 24;
     185    $ts_zero += (60 * 60 * 24);
     186}
     187$ts_end_shabat = mktime($resultHour_end, $resultMin_end, 0 ,date("n",$ts_zero), date("j",$ts_zero),date("Y",$ts_zero));
     188$time_2 = date($time_format, $ts_end_shabat);
     189print '<li id="tzet_hokohavim">'.__("Tzet haKochavim","zmanim").': '.$time_2; //$sunsetStr_t;
     190//if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew");
     191print '</li>';
    164192echo "</ul>\n";
    165193if (isset($data['zman_hide']) && $data['zman_hide-button']!="one") {
  • zmanim-widget/tags/1.11/readme.txt

    r381096 r381586  
    44Requires at least: 2.7
    55Tested up from : 3.0
    6 Stable tag: 1.10
     6Stable tag: 1.11
    77
    88Displays Jewish calendar information in a widget.
     
    2424
    2525== Changelog ==
     26= 1.11 =
     27- added Tzet haKochavim to zmanim. Value depends on Shabat end setting.
    2628= 1.10 =
    2729- add possibility to hide zmanim
  • zmanim-widget/tags/1.11/zmanim-widget.php

    r381096 r381586  
    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.10
     6 Version: 1.11
    77 Author: Misha Beshkin
    88 Author URI: http://misha.beshkin.lv/
  • zmanim-widget/trunk/config_admin.php

    r381096 r381586  
    176176            <option value="plag_hamincha" <?if (in_array("plag_hamincha",$zmanim_hide_exclude)) print 'selected="selected"';?>>Plag HaMincha</option>
    177177            <option value="shkiah" <?if (in_array("shkiah",$zmanim_hide_exclude)) print 'selected="selected"';?>>Shkiah</option>
     178            <option value="tzet_hokohavim" <?if (in_array("tzet_hokohavim",$zmanim_hide_exclude)) print 'selected="selected"';?>>Tzet haKochavim</option>
    178179        </select>
    179180    </div>
  • zmanim-widget/trunk/hdate/today.php

    r381096 r381586  
    162162if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew");
    163163print '</li>';
     164if ($data['zman_shabend'] == "min45")
     165{
     166    $zenith = 90+50/60;
     167    $diff_min=45;
     168}else{
     169    $zenith = 98+50/60;
     170    $diff_min=0;
     171}
     172
     173$resultStr_end = date_sunset($ts_zero, SUNFUNCS_RET_STRING, $shlat, $shlong, $zenith, $shoffset);
     174list($resultHour_end, $resultMin_end) = split(':', $resultStr_end);
     175$resultMin_end += $diff_min;
     176
     177while ($resultMin_end >= 60) {
     178  $resultMin_end -= 60;
     179  $resultHour_end++;
     180}
     181
     182if ($resultHour_end > 23)
     183{
     184    $resultHour_end -= 24;
     185    $ts_zero += (60 * 60 * 24);
     186}
     187$ts_end_shabat = mktime($resultHour_end, $resultMin_end, 0 ,date("n",$ts_zero), date("j",$ts_zero),date("Y",$ts_zero));
     188$time_2 = date($time_format, $ts_end_shabat);
     189print '<li id="tzet_hokohavim">'.__("Tzet haKochavim","zmanim").': '.$time_2; //$sunsetStr_t;
     190//if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew");
     191print '</li>';
    164192echo "</ul>\n";
    165193if (isset($data['zman_hide']) && $data['zman_hide-button']!="one") {
  • zmanim-widget/trunk/readme.txt

    r381096 r381586  
    44Requires at least: 2.7
    55Tested up from : 3.0
    6 Stable tag: 1.10
     6Stable tag: 1.11
    77
    88Displays Jewish calendar information in a widget.
     
    2424
    2525== Changelog ==
     26= 1.11 =
     27- added Tzet haKochavim to zmanim. Value depends on Shabat end setting.
    2628= 1.10 =
    2729- add possibility to hide zmanim
  • zmanim-widget/trunk/zmanim-widget.php

    r381096 r381586  
    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.10
     6 Version: 1.11
    77 Author: Misha Beshkin
    88 Author URI: http://misha.beshkin.lv/
Note: See TracChangeset for help on using the changeset viewer.