<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* includes/header/header-1.html.twig */
class __TwigTemplate_bbd7ed5bfd8333dae33693f47c3281c9043486b833575a131a88389c21549efc extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header/header-1.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/header/header-1.html.twig"));
// line 1
echo "
<div class=\"side-menu\">
\t";
// line 4
echo "\t";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Sonata\\CustomAdminController::JSONmegaMenuItems", ["site_code" => 1, "type" => 2]));
echo "
</div>
<div class=\"side-info\">
\t";
// line 7
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = null;
try {
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = $this->loadTemplate((("includes/mega-menu/" . (isset($context["site_code"]) || array_key_exists("site_code", $context) ? $context["site_code"] : (function () { throw new RuntimeError('Variable "site_code" does not exist.', 7, $this->source); })())) . "/mobile-info.html.twig"), "includes/header/header-1.html.twig", 7);
} catch (LoaderError $e) {
// ignore missing template
}
if ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) {
$__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4->display($context);
}
// line 8
echo "</div>
<header class=\"header\">
\t<div class=\"menu-button\">
\t\t<div></div>
\t\t<div></div>
\t\t<div></div>
\t</div>
<div class=\"container\">
\t\t";
// line 17
$context["header_ad_count"] = 0;
// line 18
echo "\t\t";
if ((array_key_exists("bottom_header_ad", $context) && (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 18, $this->source); })()))) {
// line 19
echo "\t\t\t";
$context["header_ad_count"] = ((isset($context["header_ad_count"]) || array_key_exists("header_ad_count", $context) ? $context["header_ad_count"] : (function () { throw new RuntimeError('Variable "header_ad_count" does not exist.', 19, $this->source); })()) + 1);
// line 20
echo "\t\t";
}
// line 21
echo "\t\t";
if ((array_key_exists("bottom_bottom_header_ad", $context) && (isset($context["bottom_bottom_header_ad"]) || array_key_exists("bottom_bottom_header_ad", $context) ? $context["bottom_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_bottom_header_ad" does not exist.', 21, $this->source); })()))) {
// line 22
echo "\t\t\t";
$context["header_ad_count"] = ((isset($context["header_ad_count"]) || array_key_exists("header_ad_count", $context) ? $context["header_ad_count"] : (function () { throw new RuntimeError('Variable "header_ad_count" does not exist.', 22, $this->source); })()) + 1);
// line 23
echo "\t\t";
}
// line 24
echo " <div class=\"row\" style=\"margin-top: 15px;\">
<div class=\"col-12 col-lg-5\" id=\"logo-primary\">
<a
href=\"/\"
title=\"RoofersCoffeeShop - Where The Industry Meets!\"
\t\t\t\t\tstyle=\"margin-left: 10px;\"
><img
alt=\"RoofersCoffeeShop - Where The Industry Meets!\"
title=\"RoofersCoffeeShop - Where The Industry Meets!\"
";
// line 33
if (((isset($context["header_ad_count"]) || array_key_exists("header_ad_count", $context) ? $context["header_ad_count"] : (function () { throw new RuntimeError('Variable "header_ad_count" does not exist.', 33, $this->source); })()) < 2)) {
echo " style=\"max-width: 350px;\"";
}
// line 34
echo " src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/Roofers-Coffee-Shop-Logo-R.png"), "html", null, true);
echo "\"
\t\t\t\t\tloading='lazy'
/></a>
</div>
<div class=\"col-md-8 col-lg-7\">\t\t\t\t
\t\t\t\t";
// line 39
if ((array_key_exists("countdown_ad", $context) && (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 39, $this->source); })()))) {
// line 40
echo "\t\t\t\t<div class=\"d-flex justify-content-end\">
\t\t\t\t\t<a style=\"padding:unset; width: fit-content\" class=\"header-featured-link header-featured-link-eb d-md-none d-lg-flex flex-lg-column flex-xl-row ";
// line 41
echo (((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 41, $this->source); })()), "getTitle", [], "method", false, false, false, 41)) > 30)) ? ("longtext") : (""));
echo "\" data-text-only-mitem=\"1\" data-mitem-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 41, $this->source); })()), "getId", [], "method", false, false, false, 41), "html", null, true);
echo "\" id=\"eventSrc\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 41, $this->source); })()), "getExternalUrl", [], "method", false, false, false, 41), "html", null, true);
echo "\" >
\t\t\t\t\t\t<span class=\"text-md-right px-md-2\" id=\"header-featured-text\"></span>
\t\t\t\t\t\t<span style=\"margin:unset;\" class=\"header-featured-arrow text-md-right\" id=\"eventTitle\">
\t\t\t\t\t\t\t<span class=\"text-nowrap d-block text-truncate overflow-hidden\" style=\"max-width: 350px;\">
\t\t\t\t\t\t\t\t";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 45, $this->source); })()), "getTitle", [], "method", false, false, false, 45), "html", null, true);
echo "
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</span>
\t\t\t\t\t</a>
\t\t\t\t</div>
\t\t\t\t<style>
\t\t\t\t\t@media (max-width: 1399px) {
\t\t\t\t\t\t#eventSrc {
\t\t\t\t\t\t\tflex-direction: column!important;
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t\t.longtext {
\t\t\t\t\t\tflex-direction: column!important;
\t\t\t\t\t}
\t\t\t\t</style>
\t\t\t\t<script>\t\t\t\t\t\t
\t\t\t\t\t\tfunction countDown() {
\t\t\t\t\t\t\tvar day = \"";
// line 63
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 63, $this->source); })()), "getCountdown", [], "method", false, false, false, 63), "d-F-Y"), "html", null, true);
echo "\"
\t\t\t\t\t\t\tvar time = \"";
// line 64
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["countdown_ad"]) || array_key_exists("countdown_ad", $context) ? $context["countdown_ad"] : (function () { throw new RuntimeError('Variable "countdown_ad" does not exist.', 64, $this->source); })()), "getCountdown", [], "method", false, false, false, 64), "H:i"), "html", null, true);
echo " PDT\"
\t\t\t\t\t\t\tvar currentDate = new Date();
\t\t\t\t\t\t\tvar toThisDay = Date.parse(day).at(time)
\t\t\t\t\t\t\tvar distance = toThisDay.getTime() - currentDate.getTime()
\t\t\t\t\t\t\tif(distance > 0) {
\t\t\t\t\t\t\t\tvar days = Math.floor(distance / (1000 * 60 * 60 * 24));
\t\t\t\t\t\t\t\tvar hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
\t\t\t\t\t\t\t\tvar minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
\t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').innerHTML = days + ' days, ' + hours
\t\t\t\t\t\t\t\t+ ' hours and ' + minutes + (minutes == 1 ? ' minute' : ' minutes');
\t\t\t\t\t\t\t\ttime = setTimeout(function () {
\t\t\t\t\t\t\t\t\tcountDown()
\t\t\t\t\t\t\t\t}, 10000)
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\telse {
\t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').remove();
\t\t\t\t\t\t\t\tdocument.getElementById('eventSrc').style.paddingLeft = '0px';
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}
\t\t\t\t\t\tcountDown()
\t\t\t\t\t</script>
\t\t\t\t";
} else {
// line 86
echo "\t\t\t\t\t<a class=\"float-right header-featured-link header-featured-link-eb\" id=\"eventSrc\" href=\"/coffee-conversations\" ><span id=\"header-featured-text\"></span><span class=\"header-featured-arrow\" id=\"eventTitle\">Coffee Conversations</span></a>
\t\t\t\t";
}
// line 88
echo "\t\t\t\t<div class=\"headbuttons\">
\t\t\t\t\t";
// line 89
$this->loadTemplate("includes/search-and-sign-in-revised.html.twig", "includes/header/header-1.html.twig", 89)->display($context);
// line 90
echo "\t\t\t\t\t";
$this->loadTemplate("includes/sign-in-header-button.html.twig", "includes/header/header-1.html.twig", 90)->display($context);
// line 91
echo "\t\t\t\t\t<div class=\"languageselect\">
\t\t\t\t\t\t<div id=\"google_translate_element\" class=\"notranslate\"><span id=\"lang\">English</span>
\t\t\t\t\t\t\t<div id=\"language-dropdown\">
\t\t\t\t\t\t\t\t<div class=\"in-english\">English</div>
\t\t\t\t\t\t\t\t<div class=\"en-espanol\">Español</div>
\t\t\t\t\t\t\t\t<div class=\"en-francais\">Français</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t";
// line 101
$context["true_bottom_header_ad"] = null;
// line 102
echo "\t\t\t\t";
if (((isset($context["header_ad_count"]) || array_key_exists("header_ad_count", $context) ? $context["header_ad_count"] : (function () { throw new RuntimeError('Variable "header_ad_count" does not exist.', 102, $this->source); })()) > 1)) {
// line 103
echo "\t\t\t\t\t";
if ((array_key_exists("bottom_header_ad", $context) && (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 103, $this->source); })()))) {
// line 104
echo "\t\t\t\t\t\t<div class=\"col-12 header-search d-none d-lg-flex\" style=\"top:0; padding-right:0;\">
\t\t\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
\t\t\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"";
// line 106
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 106, $this->source); })()), "getId", [], "method", false, false, false, 106), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 106, $this->source); })()), "getExternalUrl", [], "method", false, false, false, 106), "html", null, true);
echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 106, $this->source); })()), "getTitle", [], "method", false, false, false, 106), "html", null, true);
echo "</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 110
echo "\t\t\t\t";
} else {
// line 111
echo "\t\t\t\t\t";
if ((array_key_exists("bottom_header_ad", $context) && (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 111, $this->source); })()))) {
// line 112
echo "\t\t\t\t\t\t";
$context["true_bottom_header_ad"] = (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 112, $this->source); })());
// line 113
echo "\t\t\t\t\t";
}
// line 114
echo "\t\t\t\t";
}
// line 115
echo "\t\t\t\t
\t\t\t\t";
// line 116
if ((array_key_exists("bottom_bottom_header_ad", $context) && (isset($context["bottom_bottom_header_ad"]) || array_key_exists("bottom_bottom_header_ad", $context) ? $context["bottom_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_bottom_header_ad" does not exist.', 116, $this->source); })()))) {
// line 117
echo "\t\t\t\t\t";
$context["true_bottom_header_ad"] = (isset($context["bottom_bottom_header_ad"]) || array_key_exists("bottom_bottom_header_ad", $context) ? $context["bottom_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_bottom_header_ad" does not exist.', 117, $this->source); })());
// line 118
echo "\t\t\t\t";
}
// line 119
echo "\t\t\t\t";
if ((isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 119, $this->source); })())) {
// line 120
echo "\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb float-right d-none d-lg-flex d-max-none\" >
\t\t\t\t\t\t<a data-mitem-id=\"";
// line 121
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 121, $this->source); })()), "getId", [], "method", false, false, false, 121), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 121, $this->source); })()), "getExternalUrl", [], "method", false, false, false, 121), "html", null, true);
echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 121, $this->source); })()), "getTitle", [], "method", false, false, false, 121), "html", null, true);
echo "</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 124
echo "\t\t\t\t
</div>
</div>
\t\t<div class=\"row\">
\t\t\t<div class=\"col-sm-12 col-lg-9 col-xl-8 d-flex align-items-end main-menu\">
\t\t\t\t";
// line 130
echo "
\t\t\t\t";
// line 131
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Sonata\\CustomAdminController::JSONmegaMenuItems", ["site_code" => 1, "menu_ads" => (((array_key_exists("menu_ads", $context) && !(null === (isset($context["menu_ads"]) || array_key_exists("menu_ads", $context) ? $context["menu_ads"] : (function () { throw new RuntimeError('Variable "menu_ads" does not exist.', 131, $this->source); })())))) ? ((isset($context["menu_ads"]) || array_key_exists("menu_ads", $context) ? $context["menu_ads"] : (function () { throw new RuntimeError('Variable "menu_ads" does not exist.', 131, $this->source); })())) : (null))]));
echo "
\t\t\t</div>
\t\t\t<div class=\"col-sm-12 col-lg-3 d-lg-none col-xl-4 header-search\">
\t\t\t\t";
// line 134
$this->loadTemplate("includes/search-and-sign-in-revised.html.twig", "includes/header/header-1.html.twig", 134)->display($context);
// line 135
echo "\t\t\t</div>
\t\t\t";
// line 136
if (((((isset($context["header_ad_count"]) || array_key_exists("header_ad_count", $context) ? $context["header_ad_count"] : (function () { throw new RuntimeError('Variable "header_ad_count" does not exist.', 136, $this->source); })()) > 1) && array_key_exists("bottom_header_ad", $context)) && (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 136, $this->source); })()))) {
// line 137
echo "\t\t\t\t<div class=\"header-search col-sm-12 d-flex d-lg-none\">
\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"";
// line 139
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 139, $this->source); })()), "getId", [], "method", false, false, false, 139), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 139, $this->source); })()), "getExternalUrl", [], "method", false, false, false, 139), "html", null, true);
echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bottom_header_ad"]) || array_key_exists("bottom_header_ad", $context) ? $context["bottom_header_ad"] : (function () { throw new RuntimeError('Variable "bottom_header_ad" does not exist.', 139, $this->source); })()), "getTitle", [], "method", false, false, false, 139), "html", null, true);
echo "</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 143
echo "\t\t\t";
if ((array_key_exists("true_bottom_header_ad", $context) && (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 143, $this->source); })()))) {
// line 144
echo "\t\t\t\t<div class=\"header-search col-sm-12 col-lg-3 col-xl-4\">
\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"";
// line 146
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 146, $this->source); })()), "getId", [], "method", false, false, false, 146), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 146, $this->source); })()), "getExternalUrl", [], "method", false, false, false, 146), "html", null, true);
echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["true_bottom_header_ad"]) || array_key_exists("true_bottom_header_ad", $context) ? $context["true_bottom_header_ad"] : (function () { throw new RuntimeError('Variable "true_bottom_header_ad" does not exist.', 146, $this->source); })()), "getTitle", [], "method", false, false, false, 146), "html", null, true);
echo "</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 150
echo "\t\t</div>
</div>
\t<div class=\"info-button\">
\t\t<div></div>
\t\t<div></div>
\t\t<div></div>
\t</div>
</header>
";
// line 161
$this->loadTemplate("includes/breadcrumbs.html.twig", "includes/header/header-1.html.twig", 161)->display($context);
// line 162
$this->loadTemplate("includes/messages.html.twig", "includes/header/header-1.html.twig", 162)->display($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "includes/header/header-1.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 345 => 162, 343 => 161, 330 => 150, 319 => 146, 315 => 144, 312 => 143, 301 => 139, 297 => 137, 295 => 136, 292 => 135, 290 => 134, 284 => 131, 281 => 130, 274 => 124, 264 => 121, 261 => 120, 258 => 119, 255 => 118, 252 => 117, 250 => 116, 247 => 115, 244 => 114, 241 => 113, 238 => 112, 235 => 111, 232 => 110, 221 => 106, 217 => 104, 214 => 103, 211 => 102, 209 => 101, 197 => 91, 194 => 90, 192 => 89, 189 => 88, 185 => 86, 160 => 64, 156 => 63, 135 => 45, 124 => 41, 121 => 40, 119 => 39, 110 => 34, 106 => 33, 95 => 24, 92 => 23, 89 => 22, 86 => 21, 83 => 20, 80 => 19, 77 => 18, 75 => 17, 64 => 8, 54 => 7, 47 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
<div class=\"side-menu\">
\t{# {% include \"includes/mega-menu/\" ~ site_code ~ \"/mobile-main.html.twig\" %} #}
\t{{ render(controller('App\\\\Controller\\\\Sonata\\\\CustomAdminController::JSONmegaMenuItems', { 'site_code': 1, 'type' : 2 } )) }}
</div>
<div class=\"side-info\">
\t{% include \"includes/mega-menu/\" ~ site_code ~ \"/mobile-info.html.twig\" ignore missing %}
</div>
<header class=\"header\">
\t<div class=\"menu-button\">
\t\t<div></div>
\t\t<div></div>
\t\t<div></div>
\t</div>
<div class=\"container\">
\t\t{% set header_ad_count = 0 %}
\t\t{% if bottom_header_ad is defined and bottom_header_ad %}
\t\t\t{% set header_ad_count = header_ad_count + 1 %}
\t\t{% endif %}
\t\t{% if bottom_bottom_header_ad is defined and bottom_bottom_header_ad %}
\t\t\t{% set header_ad_count = header_ad_count + 1 %}
\t\t{% endif %}
<div class=\"row\" style=\"margin-top: 15px;\">
<div class=\"col-12 col-lg-5\" id=\"logo-primary\">
<a
href=\"/\"
title=\"RoofersCoffeeShop - Where The Industry Meets!\"
\t\t\t\t\tstyle=\"margin-left: 10px;\"
><img
alt=\"RoofersCoffeeShop - Where The Industry Meets!\"
title=\"RoofersCoffeeShop - Where The Industry Meets!\"
{% if header_ad_count < 2 %} style=\"max-width: 350px;\"{% endif %}
src=\"{{ asset('assets/img/Roofers-Coffee-Shop-Logo-R.png') }}\"
\t\t\t\t\tloading='lazy'
/></a>
</div>
<div class=\"col-md-8 col-lg-7\">\t\t\t\t
\t\t\t\t{% if countdown_ad is defined and countdown_ad %}
\t\t\t\t<div class=\"d-flex justify-content-end\">
\t\t\t\t\t<a style=\"padding:unset; width: fit-content\" class=\"header-featured-link header-featured-link-eb d-md-none d-lg-flex flex-lg-column flex-xl-row {{ countdown_ad.getTitle()|length > 30 ? 'longtext' : '' }}\" data-text-only-mitem=\"1\" data-mitem-id=\"{{ countdown_ad.getId() }}\" id=\"eventSrc\" href=\"{{ countdown_ad.getExternalUrl() }}\" >
\t\t\t\t\t\t<span class=\"text-md-right px-md-2\" id=\"header-featured-text\"></span>
\t\t\t\t\t\t<span style=\"margin:unset;\" class=\"header-featured-arrow text-md-right\" id=\"eventTitle\">
\t\t\t\t\t\t\t<span class=\"text-nowrap d-block text-truncate overflow-hidden\" style=\"max-width: 350px;\">
\t\t\t\t\t\t\t\t{{ countdown_ad.getTitle() }}
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</span>
\t\t\t\t\t</a>
\t\t\t\t</div>
\t\t\t\t<style>
\t\t\t\t\t@media (max-width: 1399px) {
\t\t\t\t\t\t#eventSrc {
\t\t\t\t\t\t\tflex-direction: column!important;
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t\t.longtext {
\t\t\t\t\t\tflex-direction: column!important;
\t\t\t\t\t}
\t\t\t\t</style>
\t\t\t\t<script>\t\t\t\t\t\t
\t\t\t\t\t\tfunction countDown() {
\t\t\t\t\t\t\tvar day = \"{{ countdown_ad.getCountdown() | date('d-F-Y') }}\"
\t\t\t\t\t\t\tvar time = \"{{ countdown_ad.getCountdown() | date('H:i') }} PDT\"
\t\t\t\t\t\t\tvar currentDate = new Date();
\t\t\t\t\t\t\tvar toThisDay = Date.parse(day).at(time)
\t\t\t\t\t\t\tvar distance = toThisDay.getTime() - currentDate.getTime()
\t\t\t\t\t\t\tif(distance > 0) {
\t\t\t\t\t\t\t\tvar days = Math.floor(distance / (1000 * 60 * 60 * 24));
\t\t\t\t\t\t\t\tvar hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
\t\t\t\t\t\t\t\tvar minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
\t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').innerHTML = days + ' days, ' + hours
\t\t\t\t\t\t\t\t+ ' hours and ' + minutes + (minutes == 1 ? ' minute' : ' minutes');
\t\t\t\t\t\t\t\ttime = setTimeout(function () {
\t\t\t\t\t\t\t\t\tcountDown()
\t\t\t\t\t\t\t\t}, 10000)
\t\t\t\t\t\t\t}
\t\t\t\t\t\t\telse {
\t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').remove();
\t\t\t\t\t\t\t\tdocument.getElementById('eventSrc').style.paddingLeft = '0px';
\t\t\t\t\t\t\t}
\t\t\t\t\t\t}
\t\t\t\t\t\tcountDown()
\t\t\t\t\t</script>
\t\t\t\t{% else %}
\t\t\t\t\t<a class=\"float-right header-featured-link header-featured-link-eb\" id=\"eventSrc\" href=\"/coffee-conversations\" ><span id=\"header-featured-text\"></span><span class=\"header-featured-arrow\" id=\"eventTitle\">Coffee Conversations</span></a>
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"headbuttons\">
\t\t\t\t\t{% include \"includes/search-and-sign-in-revised.html.twig\" %}
\t\t\t\t\t{% include \"includes/sign-in-header-button.html.twig\" %}
\t\t\t\t\t<div class=\"languageselect\">
\t\t\t\t\t\t<div id=\"google_translate_element\" class=\"notranslate\"><span id=\"lang\">English</span>
\t\t\t\t\t\t\t<div id=\"language-dropdown\">
\t\t\t\t\t\t\t\t<div class=\"in-english\">English</div>
\t\t\t\t\t\t\t\t<div class=\"en-espanol\">Español</div>
\t\t\t\t\t\t\t\t<div class=\"en-francais\">Français</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t{% set true_bottom_header_ad = null %}
\t\t\t\t{% if header_ad_count > 1 %}
\t\t\t\t\t{% if bottom_header_ad is defined and bottom_header_ad %}
\t\t\t\t\t\t<div class=\"col-12 header-search d-none d-lg-flex\" style=\"top:0; padding-right:0;\">
\t\t\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
\t\t\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"{{ bottom_header_ad.getId() }}\" href=\"{{ bottom_header_ad.getExternalUrl() }}\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">{{ bottom_header_ad.getTitle() }}</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% else %}
\t\t\t\t\t{% if bottom_header_ad is defined and bottom_header_ad %}
\t\t\t\t\t\t{% set true_bottom_header_ad = bottom_header_ad %}
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
\t\t\t\t
\t\t\t\t{% if bottom_bottom_header_ad is defined and bottom_bottom_header_ad %}
\t\t\t\t\t{% set true_bottom_header_ad = bottom_bottom_header_ad %}
\t\t\t\t{% endif %}
\t\t\t\t{% if true_bottom_header_ad %}
\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb float-right d-none d-lg-flex d-max-none\" >
\t\t\t\t\t\t<a data-mitem-id=\"{{ true_bottom_header_ad.getId() }}\" href=\"{{ true_bottom_header_ad.getExternalUrl() }}\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">{{ true_bottom_header_ad.getTitle() }}</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t
</div>
</div>
\t\t<div class=\"row\">
\t\t\t<div class=\"col-sm-12 col-lg-9 col-xl-8 d-flex align-items-end main-menu\">
\t\t\t\t{# {% include \"includes/mega-menu/1/main.html.twig\" %} #}
\t\t\t\t{{ render(controller('App\\\\Controller\\\\Sonata\\\\CustomAdminController::JSONmegaMenuItems', { 'site_code': 1, 'menu_ads': menu_ads is defined and menu_ads is not null ? menu_ads : null } )) }}
\t\t\t</div>
\t\t\t<div class=\"col-sm-12 col-lg-3 d-lg-none col-xl-4 header-search\">
\t\t\t\t{% include \"includes/search-and-sign-in-revised.html.twig\" %}
\t\t\t</div>
\t\t\t{% if header_ad_count > 1 and bottom_header_ad is defined and bottom_header_ad %}
\t\t\t\t<div class=\"header-search col-sm-12 d-flex d-lg-none\">
\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"{{ bottom_header_ad.getId() }}\" href=\"{{ bottom_header_ad.getExternalUrl() }}\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">{{ bottom_header_ad.getTitle() }}</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t{% if true_bottom_header_ad is defined and true_bottom_header_ad %}
\t\t\t\t<div class=\"header-search col-sm-12 col-lg-3 col-xl-4\">
\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"{{ true_bottom_header_ad.getId() }}\" href=\"{{ true_bottom_header_ad.getExternalUrl() }}\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">{{ true_bottom_header_ad.getTitle() }}</span> <span class=\"header-featured-arrow\"></span></a>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
</div>
\t<div class=\"info-button\">
\t\t<div></div>
\t\t<div></div>
\t\t<div></div>
\t</div>
</header>
{% include \"includes/breadcrumbs.html.twig\" %}
{% include \"includes/messages.html.twig\" %}", "includes/header/header-1.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/includes/header/header-1.html.twig");
}
}