</a> <h3 class="text-center">Email</h3> <p>Subscribe to weekly Shabbat candle lighting times and Torah portion by email. <br><a href="https://www.hebcal.com/email/">Sign up »</a></p> </div><!-- .col-sm-4 --> </div><!-- .row --> <div class="row" style="margin-top:40px"> <div class="col-sm-2"> <a class="icon-block" href="/home/developer-apis"> <span class="glyphicons glyphicons-embed-close icon-lg"></span> </a> </div><!-- .col-sm-2 --> <div class="col-sm-10"> <h3>Developer APIs</h3> <p>We're part of the Open Source Judaism movement. Embed Hebcal.com content directly onto your synagogue website with our JavaScript, JSON and RSS APIs, available under a Creative Commons Attribution 3.0 License. <a href="/home/developer-apis">Learn more »</a></p> </div><!-- .col-sm-10 --> </div><!-- .row --> <?php $js_typeahead_url = hebcal_js_typeahead_bundle_url(); $xtra_html = <<<EOD <script src="{$js_typeahead_url}"></script> EOD; echo html_footer_bootstrap3(false, $xtra_html); exit; ?>
margin-bottom: 11px; font-size: 21px; font-weight: 200; line-height: normal; } .hebcal-results .candles { color: red; font-size: large } .hebcal-results .havdalah { color: green } .hebcal-results .parashat { color: black; background: #ff9 } .hebcal-results .holiday { display: none } </code></pre> <p>Those fonts and colors are just an example. <a href="http://www.w3.org/Style/CSS/">Cascading Style Sheets (CSS)</a> are very powerful and flexible.</p> </div><!-- .col-sm-12 --> </div><!-- .row --> <?php $xtra_html = <<<EOD <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.10.4/typeahead.bundle.min.js"></script> <script src="/i/hebcal-app-1.4.min.js"></script> <script type="text/javascript"> hljs.initHighlightingOnLoad(); window['hebcal'].createCityTypeahead(false); \$('#havdalahInfo').click(function(e){ e.preventDefault(); }).tooltip(); </script> EOD; echo html_footer_bootstrap3(true, $xtra_html); exit;
<?php cal_item("jewish-holidays", "Jewish Holidays", "Major holidays such as Rosh Hashana, Yom Kippur, Passover, Hanukkah. Diaspora schedule (for Jews living anywhere outside of modern Israel)."); ?> <div class="col-sm-6"> <h3>Advanced Settings</h3> Candle lighting times for Shabbat and holidays, Ashkenazi transliterations, Israeli holiday schedule, etc. <div class="btn-toolbar"> <a class="btn btn-success" title="Hebcal Custom Calendar" href="/hebcal/"><i class="glyphicon glyphicon-pencil glyphicon glyphicon-white"></i> Customize your calendar »</a> </div> </div><!-- .col-sm-6 --> <?php cal_divider(); cal_item("jewish-holidays-all", "Jewish Holidays (all)", "Also includes Rosh Chodesh, minor fasts, and special Shabbatot. Diaspora schedule."); cal_item("torah-readings-diaspora", "Torah Readings", "Parashat ha-Shavua - Weekly Torah Portion such as Bereshit, Noach, Lech-Lecha. Diaspora schedule."); cal_divider(); cal_item("hdate-en", "Hebrew calendar dates (English)", "Displays the Hebrew date (such as <strong>18th of Tevet, 5770</strong>) every day of the week. Sephardic transliteration."); cal_item("hdate-he", "Hebrew calendar dates (Hebrew)", "Displays the Hebrew date (such as <strong>י״ח בטבת תש״ע</strong>) every day of the week.", true); cal_divider(); cal_item("omer", "Days of the Omer", "7 weeks from the second night of Pesach to the day before Shavuot."); cal_item("daf-yomi", "Daf Yomi", "Daily regimen of learning the Talmud."); cal_divider(); ?> <div class="col-sm-12"> <p class="lead">See our <a href="/home/category/import">help importing into apps</a> for step-by-step instructions.</p> </div><!-- .col-sm-12 --> </div><!-- .row --> <?php echo html_footer_bootstrap3();
function my_footer() { ?> <hr class="hidden-print"> <div class="row hidden-print"> <div class="col-sm-6"> <h5>Yahrzeit + Anniversary Calendar</h5> <p>Calculate anniversaries on the Hebrew calendar ten years into the future. Download/export to Outlook, iPhone, Google Calendar and more.</p> <p><a class="btn btn-default" href="/yahrzeit/"><i class="glyphicon glyphicon-user"></i> Yahrzeit + Anniversary Calendar »</a></p> </div><!-- .col-sm-6 --> <div class="col-sm-6"> <h5>Hebrew Date Feeds</h5> <p>Today's Hebrew date for your RSS reader.</p> <p><a class="btn btn-default" href="/etc/hdate-en.xml" title="Today's Hebrew Date in English Transliteration RSS"><img src="/i/feed-icon-14x14.png" style="border:none" width="14" height="14" alt="Today's Hebrew Date in English Transliteration RSS"> English transliteration feed »</a></p> <p><a class="btn btn-default" href="/etc/hdate-he.xml" title="Today's Hebrew Date in Hebrew RSS"><img src="/i/feed-icon-14x14.png" style="border:none" width="14" height="14" alt="Today's Hebrew Date in Hebrew RSS"> Hebrew feed »</a></p> </div><!-- .col-sm-6 --> </div><!-- .row --> </div><!-- .col-sm-9 --> <div class="col-sm-3 hidden-print" role="complementary"> <h5>Advertisement</h5> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- responsive textonly --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-7687563417622459" data-ad-slot="5981467974" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><!-- .col-sm-3 --> </div><!-- .row --> <?php echo html_footer_bootstrap3(false); exit; }
function form($param, $message = "", $help = "") { echo_lead_text(); if ($message != "") { ?> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <?php echo $message; echo $help; ?> </div><!-- .alert --> <?php } $action = $_SERVER["PHP_SELF"]; $pos = strpos($action, "index.php"); if ($pos !== false) { $action = substr($action, 0, $pos); } $geo = isset($param["geo"]) ? $param["geo"] : "geoname"; if ($geo == "geoname" && !isset($param["city-typeahead"]) && isset($param["geonameid"])) { list($name, $asciiname, $country, $admin1, $latitude, $longitude, $tzid) = hebcal_get_geoname($param["geonameid"]); $param["city-typeahead"] = geoname_city_descr($name, $admin1, $country); } elseif ($geo == "zip" && isset($param["zip"])) { list($city, $state, $tzid, $latitude, $longitude, $lat_deg, $lat_min, $long_deg, $long_min) = hebcal_get_zipcode_fields($param["zip"]); $param["city-typeahead"] = "{$city}, {$state} " . $param["zip"]; } ?> <div id="email-form"> <form id="f1" action="<?php echo $action; ?> " method="post"> <div class="form-group"> <label for="em">E-mail address</label> <input type="email" name="em" id="em" class="form-control" placeholder="*****@*****.**" value="<?php if (isset($param["em"])) { echo htmlspecialchars($param["em"]); } ?> "> </div> <div class="form-group"> <label for="city-typeahead">City</label> <input type="hidden" name="geo" id="geo" value="<?php echo $geo; ?> "> <input type="hidden" name="zip" id="zip" value="<?php if (isset($param["zip"])) { echo htmlspecialchars($param["zip"]); } ?> "> <input type="hidden" name="geonameid" id="geonameid" value="<?php if (isset($param["geonameid"])) { echo htmlspecialchars($param["geonameid"]); } ?> "> <div class="city-typeahead" style="margin-bottom:12px"> <input type="text" name="city-typeahead" id="city-typeahead" class="form-control" placeholder="Search for city or ZIP code" value="<?php if (isset($param["city-typeahead"])) { echo htmlentities($param["city-typeahead"]); } ?> "> </div> </div> <div class="form-group"> <label for="m">Havdalah minutes past sundown <a href="#" id="havdalahInfo" data-toggle="tooltip" data-placement="top" title="Use 42 min for three medium-sized stars, 50 min for three small stars, 72 min for Rabbeinu Tam, or 0 to suppress Havdalah times"><span class="glyphicon glyphicon-info-sign"></span></a> </label> <input type="text" name="m" id="m" class="form-control" pattern="\d*" value="<?php echo htmlspecialchars($param["m"]); ?> " maxlength="3"> </div> <input type="hidden" name="v" value="1"> <?php global $is_update, $default_unsubscribe; $modify_class = $default_unsubscribe ? "btn btn-default" : "btn btn-primary"; $unsub_class = $default_unsubscribe ? "btn btn-primary" : "btn btn-default"; if ($is_update) { ?> <input type="hidden" name="prev" value="<?php echo htmlspecialchars($param["em"]); ?> "> <?php } ?> <button type="submit" class="<?php echo $modify_class; ?> " name="modify" value="1"> <?php echo $is_update ? "Update Subscription" : "Subscribe"; ?> </button> <button type="submit" class="<?php echo $unsub_class; ?> " name="unsubscribe" value="1">Unsubscribe</button> </fieldset> </form> </div><!-- #email-form --> <hr> <p>You'll receive a maximum of one message per week, typically on Thursday morning.</p> <div id="privacy-policy"> <h3>Email Privacy Policy</h3> <p>We will never sell or give your email address to anyone. <br>We will never use your email address to send you unsolicited offers.</p> <p>To unsubscribe, send an email to <a href="mailto:shabbat-unsubscribe@hebcal.com">shabbat-unsubscribe@hebcal.com</a>.</p> </div><!-- #privacy-policy --> </div><!-- .col-sm-12 --> </div><!-- .row --> <?php $xtra_html = <<<EOD <script src="//cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.10.4/typeahead.bundle.min.js"></script> <script src="/i/hebcal-app-1.4.min.js"></script> <script type="text/javascript"> window['hebcal'].createCityTypeahead(false); \$('#havdalahInfo').click(function(e){ e.preventDefault(); }).tooltip(); </script> EOD; echo html_footer_bootstrap3(true, $xtra_html); exit; }