text-align: center; } .first-row { padding-top: 40px; } .pad-bot { padding-bottom: 32px; } .icon-lg { font-size:44px; } </style> <link rel="dns-prefetch" href="//pagead2.googlesyndication.com"> <link href='//fonts.googleapis.com/css?family=Merriweather' rel='stylesheet' type='text/css'> EOD; $header = html_header_bootstrap3("Jewish Calendar, Hebrew Date Converter, Holidays - hebcal.com", $xtra_head, false); $header = preg_replace('/<!-- \\.navbar -->.+/s', '<!-- .navbar -->', $header); echo $header; ?> <div class="masthead" tabindex="-1"> <div class="container"> <ul class="list-inline"> <?php echo "<li><time datetime=\"", date("Y-m-d"), "\">", date("D, j F Y"), "</time>\n"; $hm = $hnum_to_str[$hmnum]; echo "<li>", format_hebrew_date($hd, $hm, $hy), "\n"; // holidays today if (isset($events)) { foreach ($events as $h) { if (strncmp($h, "Parashat ", 9) != 0) { $anchor = hebcal_make_anchor($h);
$ashk = " checked"; } else { $ashk = ""; } $xtra_head = <<<EOD <style type="text/css"> ul.hebcal-results { list-style-type: none } #change-city { margin-top: 30px; margin-bottom: 80px; } </style> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/github.min.css"> <link rel="stylesheet" type="text/css" href="/i/hyspace-typeahead.css"> EOD; echo html_header_bootstrap3("Add weekly Shabbat candle-lighting times to your synagogue website", $xtra_head); ?> <div class="row"> <div class="col-sm-12"> <h1>Add Shabbat Times to your Website</h1> <p class="lead">Use these HTML tags to add weekly Shabbat candle-lighting times and Torah portion directly on your synagogue's website.</p> <p>Browse the <a href="/home/category/developers">Hebcal web developer APIs</a> to display other information on your site (e.g. today's Hebrew date, a full Jewish Calendar, RSS feeds).</p> <p>The following tags are for <b><?php echo $city_descr; ?> </b> (<a href="#change">change city</a>).</p>
function my_header($hebdate, $result = false) { header("Content-Type: text/html; charset=UTF-8"); $description = $result ? " {$result}" : ""; $xtra_head = <<<EOD <link rel="alternate" type="application/rss+xml" title="RSS" href="/etc/hdate-en.xml"> <meta name="description" content="Convert between Gregorian/civil and Hebrew/Jewish calendar dates.{$description}"> <style type="text/css"> #converter-results { margin-top: 32px; margin-bottom: 32px; text-align: center; } #converter-results .big-list { margin-bottom: 6px; font-size: 29px; font-weight: 200; line-height: normal; } #converter-results .jumbo { font-size: 37px; } .nobr { white-space: nowrap } #converter-form .form-inline .form-control { display: inline-block; } </style> EOD; echo html_header_bootstrap3("Hebrew Date Converter - {$hebdate}", $xtra_head, true, true); ?> <div class="row"> <div class="col-sm-9"> <?php }
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **********************************************************************/ require "../pear/Hebcal/common.inc"; header("Content-Type: text/html; charset=UTF-8"); $page_title = "Jewish Holiday downloads for desktop, mobile and web calendars"; $xtra_head = <<<EOD <style type="text/css"> #hebcal-ical tr td { padding: 8px; vertical-align: middle; } </style> EOD; echo html_header_bootstrap3($page_title, $xtra_head); ?> <div class="row"> <div class="col-sm-12"> <h1>Jewish Holiday downloads <small>for desktop, mobile and web calendars</small></h1> <p class="lead">Free Jewish holidays for Microsoft Outlook, iPhone, iPad, Mac OS X Desktop Calendar, Android (via Google Calendar), or to any desktop program that supports iCalendar (.ics) files.</p> <p>Click the buttons below to download/subscribe in your device or web/desktop application. Subscribers to these feeds receive perpetual updates.</p> </div><!-- .col-sm-12 --> </div><!-- .row --> <?php
$geonameid = hebcal_city_to_geoname($param["city"]); //error_log("city_to_geonameid $param[city] => $geonameid"); unset($param["city"]); if ($geonameid !== false) { $param["geo"] = "geoname"; $param["geonameid"] = $geonameid; } return $param; } $remoteAddr = $_SERVER["REMOTE_ADDR"]; $sender = "*****@*****.**"; header("Cache-Control: private"); $xtra_head = <<<EOD <link rel="stylesheet" type="text/css" href="/i/hyspace-typeahead.css"> EOD; echo html_header_bootstrap3("Shabbat Candle Lighting Times by Email", $xtra_head); $param = array(); if (!isset($_REQUEST["v"]) && !isset($_REQUEST["e"]) && isset($_COOKIE["C"])) { parse_str($_COOKIE["C"], $param); } foreach ($_REQUEST as $key => $value) { $param[$key] = trim($value); } if (isset($param["city"])) { $param = city_to_geonameid($param); } if (!isset($param["m"])) { $param["m"] = 50; } if (isset($param["v"]) && $param["v"]) { $email = isset($param["em"]) ? $param["em"] : false;
} elseif (isset($info["geonameid"]) && preg_match('/^\\d+$/', $info["geonameid"])) { list($name, $asciiname, $country, $admin1, $latitude, $longitude, $tzid) = hebcal_get_geoname($info["geonameid"]); $city_descr = geoname_city_descr($name, $admin1, $country); unset($info["zip"]); unset($info["city"]); } elseif (isset($info["city"])) { $geonameid = hebcal_city_to_geoname($info["city"]); if ($geonameid !== false) { list($name, $asciiname, $country, $admin1, $latitude, $longitude, $tzid) = hebcal_get_geoname($geonameid); $city_descr = geoname_city_descr($name, $admin1, $country); $info["geonameid"] = $geonameid; unset($info["zip"]); unset($info["city"]); } } echo html_header_bootstrap3("Confirm Email Subscription"); ?> <div class="row"> <div class="col-sm-12"> <p class="lead">Confirm your subscription to weekly Shabbat candle lighting times and Torah portion by email.</p> <p>Email: <strong><?php echo $info["em"]; ?> </strong> <br>Location: <?php echo $city_descr; ?> </p> <form method="post" action="<?php echo $_SERVER["PHP_SELF"];