Plugin Directory

Changeset 381096


Ignore:
Timestamp:
05/05/2011 04:46:41 AM (15 years ago)
Author:
beshkin
Message:

tagging version 1.10

Location:
zmanim-widget
Files:
5 edited
14 copied

Legend:

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

    r330572 r381096  
    1818  }
    1919//      if (!$_POST['zmanim_widget_dst']) $data['dst'] = "false";
     20        //sections
    2021    if (!isset($_POST['zman_hide'])) unset($data['zman_hide']);
    2122    if (!isset($_POST['hide-exclude'])) unset($data['hide_exclude']);
    2223    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
    2329    if (!isset($_POST['default_date'])) unset($data['default_date']);
    2430    if (!isset($_POST['default_time'])) unset($data['default_time']);
     
    131137        else print 'display:none;';?>"
    132138        >
     139
    133140    <label style="vertical-align:top;"><?_e("Except following","zmanim");?>:</label>
    134141        <?$hide_exclude = explode('|',$data['hide_exclude']);
     
    147154        </select>
    148155        </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>
    150180    <h3><?_e('Map configuration',"");?></h3>
    151181    <label for="zman_map_key">Google map API key:</label>
     
    178208    jQuery('div#hide-exclude').toggle();
    179209});
     210jQuery('input#zmanim_hide').click(function() {
     211    jQuery('div#zmanim-hide-exclude').toggle();
     212});
    180213</script>
  • zmanim-widget/tags/1.10/hdate/today.php

    r357065 r381096  
    7070    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    7171}
    72 print '<li>'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2;
     72print '<li id="alot_hashachar">'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2;
    7373if ($hebrew) print ' :'.translate_z('Alot_HaShachar','hebrew');
    7474print '</li>';
    7575list($hour,$min) = explode(':',$sunriseStr_t);
    7676$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    77 print '<li>'.translate_z('Netz',$data['accent']).': '.$time_2;
     77print '<li id="netz">'.translate_z('Netz',$data['accent']).': '.$time_2;
    7878if ($hebrew) print ' :'.translate_z('Netz','hebrew');
    7979'</li>';
    8080list($hour,$min) = explode(':',date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset)); //zman_tallit = 11 by default
    8181$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    82 print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2;
     82print '<li id="tallit">'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2;
    8383if ($hebrew) print ' :'.translate_z('Tallit','hebrew');
    8484'</li>';
     
    9797}
    9898    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    99 print '<li>'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2;
     99print '<li id="latest_shma">'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2;
    100100if ($hebrew) print ' :'.translate_z('Shma','hebrew');
    101101'</li>';
     
    103103list($hour,$min) = getProportionalHours($sunriseStr_t,$sunsetStr_t,6);
    104104        $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    105 print '<li>'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2;
     105print '<li id="hatzot_hayom">'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2;
    106106if ($hebrew) print ' :'.translate_z('Hatzot_Hayom','hebrew');
    107107print '</li>';
     
    120120}
    121121    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    122 print '<li>'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2;
     122print '<li id="mincha_gedola">'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2;
    123123if ($hebrew) print ' :'.translate_z('Mincha_Gedola','hebrew');
    124124print '</li>';
     
    137137}
    138138    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    139 print '<li>'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2;
     139print '<li id="mincha_ktana">'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2;
    140140if ($hebrew) print ' :'.translate_z('Mincha_Ktana','hebrew');
    141141print '</li>';
     
    154154}
    155155$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    156 print '<li>'.__("Plag Hamincha","zmanim").': '.$time_2;
     156print '<li id="plag_hamincha">'.__("Plag Hamincha","zmanim").': '.$time_2;
    157157if ($hebrew) print ' :'.translate_z('Plag_Hamincha',"hebrew");
    158158print '</li>';
    159159list($hour,$min) = explode(':',$sunsetStr_t);
    160160$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    161 print '<li>'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t;
     161print '<li id="shkiah">'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t;
    162162if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew");
    163163print '</li>';
     
    175175</li></ul>
    176176
     177 
  • zmanim-widget/tags/1.10/message.php

    r330572 r381096  
    3131{
    3232    print 'ul.zmanim-inner-section ul#zmanim-'.$exclude.' {display:block;}'."\n";
     33}
     34
     35}
     36
     37?>
     38    <?if (isset($data['zmanim_hide'])) {
     39print 'ul#zmanim-today li {display:none;}'."\n";
     40$zmanim_hide_exclude = explode('|',$data['zmanim_hide_exclude']);
     41foreach ($zmanim_hide_exclude as $exclude)
     42{
     43    print 'ul#zmanim-today li#'.$exclude.' {display:block;}'."\n";
    3344}
    3445
  • zmanim-widget/tags/1.10/readme.txt

    r357065 r381096  
    44Requires at least: 2.7
    55Tested up from : 3.0
    6 Stable tag: 1.9.2
     6Stable tag: 1.10
    77
    88Displays Jewish calendar information in a widget.
     
    2424
    2525== Changelog ==
     26= 1.10 =
     27- add possibility to hide zmanim
    2628= 1.9.2 =
    2729- fixed wrong time for Shabbat candle lighting
  • zmanim-widget/tags/1.10/zmanim-widget.php

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

    r330572 r381096  
    1818  }
    1919//      if (!$_POST['zmanim_widget_dst']) $data['dst'] = "false";
     20        //sections
    2021    if (!isset($_POST['zman_hide'])) unset($data['zman_hide']);
    2122    if (!isset($_POST['hide-exclude'])) unset($data['hide_exclude']);
    2223    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
    2329    if (!isset($_POST['default_date'])) unset($data['default_date']);
    2430    if (!isset($_POST['default_time'])) unset($data['default_time']);
     
    131137        else print 'display:none;';?>"
    132138        >
     139
    133140    <label style="vertical-align:top;"><?_e("Except following","zmanim");?>:</label>
    134141        <?$hide_exclude = explode('|',$data['hide_exclude']);
     
    147154        </select>
    148155        </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>
    150180    <h3><?_e('Map configuration',"");?></h3>
    151181    <label for="zman_map_key">Google map API key:</label>
     
    178208    jQuery('div#hide-exclude').toggle();
    179209});
     210jQuery('input#zmanim_hide').click(function() {
     211    jQuery('div#zmanim-hide-exclude').toggle();
     212});
    180213</script>
  • zmanim-widget/trunk/hdate/today.php

    r357065 r381096  
    7070    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    7171}
    72 print '<li>'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2;
     72print '<li id="alot_hashachar">'.translate_z('Alot_HaShachar',$data['accent']).': '.$time_2;
    7373if ($hebrew) print ' :'.translate_z('Alot_HaShachar','hebrew');
    7474print '</li>';
    7575list($hour,$min) = explode(':',$sunriseStr_t);
    7676$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    77 print '<li>'.translate_z('Netz',$data['accent']).': '.$time_2;
     77print '<li id="netz">'.translate_z('Netz',$data['accent']).': '.$time_2;
    7878if ($hebrew) print ' :'.translate_z('Netz','hebrew');
    7979'</li>';
    8080list($hour,$min) = explode(':',date_sunrise($ts_t, SUNFUNCS_RET_STRING, $shlat, $shlong, 90+$zman_tallit, $shoffset)); //zman_tallit = 11 by default
    8181$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    82 print '<li>'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2;
     82print '<li id="tallit">'.__("Earliest","zmanim").' '.translate_z('Tallit',$data['accent']).': '.$time_2;
    8383if ($hebrew) print ' :'.translate_z('Tallit','hebrew');
    8484'</li>';
     
    9797}
    9898    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    99 print '<li>'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2;
     99print '<li id="latest_shma">'.__("Latest","zmanim").' '.translate_z('Shma',$data['accent']).': '.$time_2;
    100100if ($hebrew) print ' :'.translate_z('Shma','hebrew');
    101101'</li>';
     
    103103list($hour,$min) = getProportionalHours($sunriseStr_t,$sunsetStr_t,6);
    104104        $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    105 print '<li>'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2;
     105print '<li id="hatzot_hayom">'.translate_z('Hatzot_Hayom',$data['accent']).': '.$time_2;
    106106if ($hebrew) print ' :'.translate_z('Hatzot_Hayom','hebrew');
    107107print '</li>';
     
    120120}
    121121    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    122 print '<li>'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2;
     122print '<li id="mincha_gedola">'.translate_z('Mincha_Gedola',$data['accent']).': '.$time_2;
    123123if ($hebrew) print ' :'.translate_z('Mincha_Gedola','hebrew');
    124124print '</li>';
     
    137137}
    138138    $time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    139 print '<li>'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2;
     139print '<li id="mincha_ktana">'.translate_z('Mincha_Ktana',$data['accent']).': '.$time_2;
    140140if ($hebrew) print ' :'.translate_z('Mincha_Ktana','hebrew');
    141141print '</li>';
     
    154154}
    155155$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    156 print '<li>'.__("Plag Hamincha","zmanim").': '.$time_2;
     156print '<li id="plag_hamincha">'.__("Plag Hamincha","zmanim").': '.$time_2;
    157157if ($hebrew) print ' :'.translate_z('Plag_Hamincha',"hebrew");
    158158print '</li>';
    159159list($hour,$min) = explode(':',$sunsetStr_t);
    160160$time_2 = date($time_format, $ts_zero+($hour*3600)+($min*60));
    161 print '<li>'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t;
     161print '<li id="shkiah">'.__("Shkiah","zmanim").': '.$time_2; //$sunsetStr_t;
    162162if ($hebrew) print ' :'.translate_z('Shkiah',"hebrew");
    163163print '</li>';
     
    175175</li></ul>
    176176
     177 
  • zmanim-widget/trunk/message.php

    r330572 r381096  
    3131{
    3232    print 'ul.zmanim-inner-section ul#zmanim-'.$exclude.' {display:block;}'."\n";
     33}
     34
     35}
     36
     37?>
     38    <?if (isset($data['zmanim_hide'])) {
     39print 'ul#zmanim-today li {display:none;}'."\n";
     40$zmanim_hide_exclude = explode('|',$data['zmanim_hide_exclude']);
     41foreach ($zmanim_hide_exclude as $exclude)
     42{
     43    print 'ul#zmanim-today li#'.$exclude.' {display:block;}'."\n";
    3344}
    3445
  • zmanim-widget/trunk/readme.txt

    r357065 r381096  
    44Requires at least: 2.7
    55Tested up from : 3.0
    6 Stable tag: 1.9.2
     6Stable tag: 1.10
    77
    88Displays Jewish calendar information in a widget.
     
    2424
    2525== Changelog ==
     26= 1.10 =
     27- add possibility to hide zmanim
    2628= 1.9.2 =
    2729- fixed wrong time for Shabbat candle lighting
  • zmanim-widget/trunk/zmanim-widget.php

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