} </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); echo "<li><a href=\"", $anchor, "\">", $h, "</a>\n"; } } } // parashah hashavuah list($saturday_gy, $saturday_gm, $saturday_gd) = get_saturday($gy, $gm, $gd); $saturday_iso = sprintf("%04d%02d%02d", $saturday_gy, $saturday_gm, $saturday_gd); if (isset($sedra) && isset($sedra[$saturday_iso])) { if (is_array($sedra[$saturday_iso])) { $sat_events = $sedra[$saturday_iso];
$gd = $gd[1]; } $dow = jddayofweek($jd, 2); if (strncmp("Adar", $hm, 4) == 0 && !is_leap_year($hy)) { $hm = "Adar"; } elseif ($hm == "Adar" && is_leap_year($hy)) { $hm = "Adar1"; } $month_name = $hmstr_to_hebcal[$hm]; $hebrew = build_hebrew_date($month_name, $hd, $hy); if ($type == "g2h") { $first = "{$dow}, {$gd} " . $MoY_long[$gm] . " " . sprintf("%04d", $gy); $second = format_hebrew_date($hd, $hm, $hy); $header_hebdate = $second; } else { $first = format_hebrew_date($hd, $hm, $hy); $second = "{$dow}, {$gd} " . $MoY_long[$gm] . " " . sprintf("%04d", $gy); $header_hebdate = $first; } $events = array(); if ($gy >= 1900 && $gy <= 2099) { $century = substr($gy, 0, 2); $f = $_SERVER["DOCUMENT_ROOT"] . "/converter/sedra/{$century}/{$gy}.inc"; @(include $f); $iso = sprintf("%04d%02d%02d", $gy, $gm, $gd); if (isset($sedra) && isset($sedra[$iso])) { if (is_array($sedra[$iso])) { foreach ($sedra[$iso] as $evt) { $events[] = $evt; } } else {