var/cache/dev/twig/31/3174824749833dd1f66893aaa78d92fc9204a6fd1c3792339a9701627effdb00.php line 61

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/header/header-1.html.twig */
  14. class __TwigTemplate_bbd7ed5bfd8333dae33693f47c3281c9043486b833575a131a88389c21549efc extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header/header-1.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header/header-1.html.twig"));
  33.         // line 1
  34.         echo "
  35. <div class=\"side-menu\">
  36. \t";
  37.         // line 4
  38.         echo "\t";
  39.         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]));
  40.         echo "
  41. </div>
  42. <div class=\"side-info\">
  43. \t";
  44.         // line 7
  45.         $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 null;
  46.         try {
  47.             $__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);
  48.         } catch (LoaderError $e) {
  49.             // ignore missing template
  50.         }
  51.         if ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) {
  52.             $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4->display($context);
  53.         }
  54.         // line 8
  55.         echo "</div>
  56. <header class=\"header\">
  57. \t<div class=\"menu-button\">
  58. \t\t<div></div>
  59. \t\t<div></div>
  60. \t\t<div></div>
  61. \t</div>
  62.     <div class=\"container\">
  63. \t\t";
  64.         // line 17
  65.         $context["header_ad_count"] = 0;
  66.         // line 18
  67.         echo "\t\t";
  68.         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); })()))) {
  69.             // line 19
  70.             echo "\t\t\t";
  71.             $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);
  72.             // line 20
  73.             echo "\t\t";
  74.         }
  75.         // line 21
  76.         echo "\t\t";
  77.         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); })()))) {
  78.             // line 22
  79.             echo "\t\t\t";
  80.             $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);
  81.             // line 23
  82.             echo "\t\t";
  83.         }
  84.         // line 24
  85.         echo "        <div class=\"row\" style=\"margin-top: 15px;\">
  86.             <div class=\"col-12 col-lg-5\" id=\"logo-primary\">
  87.                 <a
  88.                     href=\"/\"
  89.                     title=\"RoofersCoffeeShop - Where The Industry Meets!\"
  90. \t\t\t\t\tstyle=\"margin-left: 10px;\"
  91.                 ><img
  92.                     alt=\"RoofersCoffeeShop - Where The Industry Meets!\"
  93.                     title=\"RoofersCoffeeShop - Where The Industry Meets!\"
  94.                     ";
  95.         // line 33
  96.         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)) {
  97.             echo " style=\"max-width: 350px;\"";
  98.         }
  99.         // line 34
  100.         echo "                    src=\"";
  101.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/Roofers-Coffee-Shop-Logo-R.png"), "html"nulltrue);
  102.         echo "\"
  103. \t\t\t\t\tloading='lazy'
  104.                 /></a>
  105.             </div>
  106.             <div class=\"col-md-8 col-lg-7\">\t\t\t\t
  107. \t\t\t\t";
  108.         // line 39
  109.         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); })()))) {
  110.             // line 40
  111.             echo "\t\t\t\t<div class=\"d-flex justify-content-end\">
  112. \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 ";
  113.             // line 41
  114.             echo (((twig_length_filter($this->envtwig_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"falsefalsefalse41)) > 30)) ? ("longtext") : (""));
  115.             echo "\" data-text-only-mitem=\"1\" data-mitem-id=\"";
  116.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse41), "html"nulltrue);
  117.             echo "\" id=\"eventSrc\" href=\"";
  118.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse41), "html"nulltrue);
  119.             echo "\" >
  120. \t\t\t\t\t\t<span class=\"text-md-right px-md-2\" id=\"header-featured-text\"></span>
  121. \t\t\t\t\t\t<span style=\"margin:unset;\" class=\"header-featured-arrow text-md-right\"  id=\"eventTitle\">
  122. \t\t\t\t\t\t\t<span class=\"text-nowrap d-block text-truncate overflow-hidden\" style=\"max-width: 350px;\">
  123. \t\t\t\t\t\t\t\t";
  124.             // line 45
  125.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse45), "html"nulltrue);
  126.             echo "
  127. \t\t\t\t\t\t\t</span>
  128. \t\t\t\t\t\t</span>
  129. \t\t\t\t\t</a>
  130. \t\t\t\t</div>
  131. \t\t\t\t<style>
  132. \t\t\t\t\t@media (max-width: 1399px) {
  133. \t\t\t\t\t\t#eventSrc {
  134. \t\t\t\t\t\t\tflex-direction: column!important;
  135. \t\t\t\t\t\t}
  136. \t\t\t\t\t}
  137. \t\t\t\t\t.longtext {
  138. \t\t\t\t\t\tflex-direction: column!important;
  139. \t\t\t\t\t}
  140. \t\t\t\t</style>
  141. \t\t\t\t<script>\t\t\t\t\t\t
  142. \t\t\t\t\t\tfunction countDown() {
  143. \t\t\t\t\t\t\tvar day = \"";
  144.             // line 63
  145.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse63), "d-F-Y"), "html"nulltrue);
  146.             echo "\"
  147. \t\t\t\t\t\t\tvar time = \"";
  148.             // line 64
  149.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse64), "H:i"), "html"nulltrue);
  150.             echo " PDT\"
  151. \t\t\t\t\t\t\tvar currentDate = new Date();
  152. \t\t\t\t\t\t\tvar toThisDay = Date.parse(day).at(time)
  153. \t\t\t\t\t\t\tvar distance = toThisDay.getTime() - currentDate.getTime()
  154. \t\t\t\t\t\t\tif(distance > 0) {
  155. \t\t\t\t\t\t\t\tvar days = Math.floor(distance / (1000 * 60 * 60 * 24));
  156. \t\t\t\t\t\t\t\tvar hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  157. \t\t\t\t\t\t\t\tvar minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  158. \t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').innerHTML = days + ' days, ' + hours
  159. \t\t\t\t\t\t\t\t+ ' hours and ' + minutes + (minutes == 1 ? ' minute' : ' minutes');
  160. \t\t\t\t\t\t\t\ttime = setTimeout(function () {
  161. \t\t\t\t\t\t\t\t\tcountDown()
  162. \t\t\t\t\t\t\t\t}, 10000)
  163. \t\t\t\t\t\t\t}
  164. \t\t\t\t\t\t\telse {
  165. \t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').remove();
  166. \t\t\t\t\t\t\t\tdocument.getElementById('eventSrc').style.paddingLeft = '0px';
  167. \t\t\t\t\t\t\t}
  168. \t\t\t\t\t\t}
  169. \t\t\t\t\t\tcountDown()
  170. \t\t\t\t\t</script>
  171. \t\t\t\t";
  172.         } else {
  173.             // line 86
  174.             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>
  175. \t\t\t\t";
  176.         }
  177.         // line 88
  178.         echo "\t\t\t\t<div class=\"headbuttons\">
  179. \t\t\t\t\t";
  180.         // line 89
  181.         $this->loadTemplate("includes/search-and-sign-in-revised.html.twig""includes/header/header-1.html.twig"89)->display($context);
  182.         // line 90
  183.         echo "\t\t\t\t\t";
  184.         $this->loadTemplate("includes/sign-in-header-button.html.twig""includes/header/header-1.html.twig"90)->display($context);
  185.         // line 91
  186.         echo "\t\t\t\t\t<div class=\"languageselect\">
  187. \t\t\t\t\t\t<div id=\"google_translate_element\" class=\"notranslate\"><span id=\"lang\">English</span>
  188. \t\t\t\t\t\t\t<div id=\"language-dropdown\">
  189. \t\t\t\t\t\t\t\t<div class=\"in-english\">English</div>
  190. \t\t\t\t\t\t\t\t<div class=\"en-espanol\">Espa&ntilde;ol</div>
  191. \t\t\t\t\t\t\t\t<div class=\"en-francais\">Fran&ccedil;ais</div>
  192. \t\t\t\t\t\t\t</div>
  193. \t\t\t\t\t\t</div>
  194. \t\t\t\t\t</div>
  195. \t\t\t\t</div>
  196. \t\t\t\t";
  197.         // line 101
  198.         $context["true_bottom_header_ad"] = null;
  199.         // line 102
  200.         echo "\t\t\t\t";
  201.         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)) {
  202.             // line 103
  203.             echo "\t\t\t\t\t";
  204.             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); })()))) {
  205.                 // line 104
  206.                 echo "\t\t\t\t\t\t<div class=\"col-12 header-search d-none d-lg-flex\" style=\"top:0; padding-right:0;\">
  207. \t\t\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
  208. \t\t\t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"";
  209.                 // line 106
  210.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse106), "html"nulltrue);
  211.                 echo "\" href=\"";
  212.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse106), "html"nulltrue);
  213.                 echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
  214.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse106), "html"nulltrue);
  215.                 echo "</span> <span class=\"header-featured-arrow\"></span></a>
  216. \t\t\t\t\t\t\t</div>
  217. \t\t\t\t\t\t</div>
  218. \t\t\t\t\t";
  219.             }
  220.             // line 110
  221.             echo "\t\t\t\t";
  222.         } else {
  223.             // line 111
  224.             echo "\t\t\t\t\t";
  225.             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); })()))) {
  226.                 // line 112
  227.                 echo "\t\t\t\t\t\t";
  228.                 $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); })());
  229.                 // line 113
  230.                 echo "\t\t\t\t\t";
  231.             }
  232.             // line 114
  233.             echo "\t\t\t\t";
  234.         }
  235.         // line 115
  236.         echo "\t\t\t\t
  237. \t\t\t\t";
  238.         // line 116
  239.         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); })()))) {
  240.             // line 117
  241.             echo "\t\t\t\t\t";
  242.             $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); })());
  243.             // line 118
  244.             echo "\t\t\t\t";
  245.         }
  246.         // line 119
  247.         echo "\t\t\t\t";
  248.         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); })())) {
  249.             // line 120
  250.             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\" >
  251. \t\t\t\t\t\t<a data-mitem-id=\"";
  252.             // line 121
  253.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse121), "html"nulltrue);
  254.             echo "\" href=\"";
  255.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse121), "html"nulltrue);
  256.             echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
  257.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse121), "html"nulltrue);
  258.             echo "</span> <span class=\"header-featured-arrow\"></span></a>
  259. \t\t\t\t\t</div>
  260. \t\t\t\t";
  261.         }
  262.         // line 124
  263.         echo "\t\t\t\t
  264.             </div>
  265.         </div>
  266. \t\t<div class=\"row\">
  267. \t\t\t<div class=\"col-sm-12 col-lg-9 col-xl-8 d-flex align-items-end main-menu\">
  268. \t\t\t\t";
  269.         // line 130
  270.         echo "
  271. \t\t\t\t";
  272.         // line 131
  273.         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))]));
  274.         echo "
  275. \t\t\t</div>
  276. \t\t\t<div class=\"col-sm-12 col-lg-3 d-lg-none col-xl-4 header-search\">
  277. \t\t\t\t";
  278.         // line 134
  279.         $this->loadTemplate("includes/search-and-sign-in-revised.html.twig""includes/header/header-1.html.twig"134)->display($context);
  280.         // line 135
  281.         echo "\t\t\t</div>
  282. \t\t\t";
  283.         // line 136
  284.         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); })()))) {
  285.             // line 137
  286.             echo "\t\t\t\t<div class=\"header-search col-sm-12 d-flex d-lg-none\">
  287. \t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
  288. \t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"";
  289.             // line 139
  290.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse139), "html"nulltrue);
  291.             echo "\" href=\"";
  292.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse139), "html"nulltrue);
  293.             echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
  294.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse139), "html"nulltrue);
  295.             echo "</span> <span class=\"header-featured-arrow\"></span></a>
  296. \t\t\t\t\t</div>
  297. \t\t\t\t</div>
  298. \t\t\t";
  299.         }
  300.         // line 143
  301.         echo "\t\t\t";
  302.         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); })()))) {
  303.             // line 144
  304.             echo "\t\t\t\t<div class=\"header-search col-sm-12 col-lg-3 col-xl-4\">
  305. \t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
  306. \t\t\t\t\t\t<a data-text-only-mitem=\"1\" data-mitem-id=\"";
  307.             // line 146
  308.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse146), "html"nulltrue);
  309.             echo "\" href=\"";
  310.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse146), "html"nulltrue);
  311.             echo "\" >\t<span id=\"header-featured-text\" style=\"padding-right: 15px; padding-left: 15px\">";
  312.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse146), "html"nulltrue);
  313.             echo "</span> <span class=\"header-featured-arrow\"></span></a>
  314. \t\t\t\t\t</div>
  315. \t\t\t\t</div>
  316. \t\t\t";
  317.         }
  318.         // line 150
  319.         echo "\t\t</div>
  320.     </div>
  321. \t<div class=\"info-button\">
  322. \t\t<div></div>
  323. \t\t<div></div>
  324. \t\t<div></div>
  325. \t</div>
  326. </header>
  327. ";
  328.         // line 161
  329.         $this->loadTemplate("includes/breadcrumbs.html.twig""includes/header/header-1.html.twig"161)->display($context);
  330.         // line 162
  331.         $this->loadTemplate("includes/messages.html.twig""includes/header/header-1.html.twig"162)->display($context);
  332.         
  333.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  334.         
  335.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  336.     }
  337.     public function getTemplateName()
  338.     {
  339.         return "includes/header/header-1.html.twig";
  340.     }
  341.     public function isTraitable()
  342.     {
  343.         return false;
  344.     }
  345.     public function getDebugInfo()
  346.     {
  347.         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,);
  348.     }
  349.     public function getSourceContext()
  350.     {
  351.         return new Source("
  352. <div class=\"side-menu\">
  353. \t{# {% include \"includes/mega-menu/\" ~ site_code ~ \"/mobile-main.html.twig\" %} #}
  354. \t{{ render(controller('App\\\\Controller\\\\Sonata\\\\CustomAdminController::JSONmegaMenuItems', { 'site_code': 1, 'type' : 2 } )) }}
  355. </div>
  356. <div class=\"side-info\">
  357. \t{% include \"includes/mega-menu/\" ~ site_code ~ \"/mobile-info.html.twig\" ignore missing %}
  358. </div>
  359. <header class=\"header\">
  360. \t<div class=\"menu-button\">
  361. \t\t<div></div>
  362. \t\t<div></div>
  363. \t\t<div></div>
  364. \t</div>
  365.     <div class=\"container\">
  366. \t\t{% set header_ad_count = 0 %}
  367. \t\t{% if bottom_header_ad is defined and bottom_header_ad %}
  368. \t\t\t{% set header_ad_count = header_ad_count + 1 %}
  369. \t\t{% endif %}
  370. \t\t{% if bottom_bottom_header_ad is defined and bottom_bottom_header_ad %}
  371. \t\t\t{% set header_ad_count = header_ad_count + 1 %}
  372. \t\t{% endif %}
  373.         <div class=\"row\" style=\"margin-top: 15px;\">
  374.             <div class=\"col-12 col-lg-5\" id=\"logo-primary\">
  375.                 <a
  376.                     href=\"/\"
  377.                     title=\"RoofersCoffeeShop - Where The Industry Meets!\"
  378. \t\t\t\t\tstyle=\"margin-left: 10px;\"
  379.                 ><img
  380.                     alt=\"RoofersCoffeeShop - Where The Industry Meets!\"
  381.                     title=\"RoofersCoffeeShop - Where The Industry Meets!\"
  382.                     {% if header_ad_count < 2 %} style=\"max-width: 350px;\"{% endif %}
  383.                     src=\"{{ asset('assets/img/Roofers-Coffee-Shop-Logo-R.png') }}\"
  384. \t\t\t\t\tloading='lazy'
  385.                 /></a>
  386.             </div>
  387.             <div class=\"col-md-8 col-lg-7\">\t\t\t\t
  388. \t\t\t\t{% if countdown_ad is defined and countdown_ad %}
  389. \t\t\t\t<div class=\"d-flex justify-content-end\">
  390. \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() }}\" >
  391. \t\t\t\t\t\t<span class=\"text-md-right px-md-2\" id=\"header-featured-text\"></span>
  392. \t\t\t\t\t\t<span style=\"margin:unset;\" class=\"header-featured-arrow text-md-right\"  id=\"eventTitle\">
  393. \t\t\t\t\t\t\t<span class=\"text-nowrap d-block text-truncate overflow-hidden\" style=\"max-width: 350px;\">
  394. \t\t\t\t\t\t\t\t{{ countdown_ad.getTitle() }}
  395. \t\t\t\t\t\t\t</span>
  396. \t\t\t\t\t\t</span>
  397. \t\t\t\t\t</a>
  398. \t\t\t\t</div>
  399. \t\t\t\t<style>
  400. \t\t\t\t\t@media (max-width: 1399px) {
  401. \t\t\t\t\t\t#eventSrc {
  402. \t\t\t\t\t\t\tflex-direction: column!important;
  403. \t\t\t\t\t\t}
  404. \t\t\t\t\t}
  405. \t\t\t\t\t.longtext {
  406. \t\t\t\t\t\tflex-direction: column!important;
  407. \t\t\t\t\t}
  408. \t\t\t\t</style>
  409. \t\t\t\t<script>\t\t\t\t\t\t
  410. \t\t\t\t\t\tfunction countDown() {
  411. \t\t\t\t\t\t\tvar day = \"{{ countdown_ad.getCountdown() | date('d-F-Y') }}\"
  412. \t\t\t\t\t\t\tvar time = \"{{ countdown_ad.getCountdown() | date('H:i') }} PDT\"
  413. \t\t\t\t\t\t\tvar currentDate = new Date();
  414. \t\t\t\t\t\t\tvar toThisDay = Date.parse(day).at(time)
  415. \t\t\t\t\t\t\tvar distance = toThisDay.getTime() - currentDate.getTime()
  416. \t\t\t\t\t\t\tif(distance > 0) {
  417. \t\t\t\t\t\t\t\tvar days = Math.floor(distance / (1000 * 60 * 60 * 24));
  418. \t\t\t\t\t\t\t\tvar hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  419. \t\t\t\t\t\t\t\tvar minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
  420. \t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').innerHTML = days + ' days, ' + hours
  421. \t\t\t\t\t\t\t\t+ ' hours and ' + minutes + (minutes == 1 ? ' minute' : ' minutes');
  422. \t\t\t\t\t\t\t\ttime = setTimeout(function () {
  423. \t\t\t\t\t\t\t\t\tcountDown()
  424. \t\t\t\t\t\t\t\t}, 10000)
  425. \t\t\t\t\t\t\t}
  426. \t\t\t\t\t\t\telse {
  427. \t\t\t\t\t\t\t\tdocument.getElementById('header-featured-text').remove();
  428. \t\t\t\t\t\t\t\tdocument.getElementById('eventSrc').style.paddingLeft = '0px';
  429. \t\t\t\t\t\t\t}
  430. \t\t\t\t\t\t}
  431. \t\t\t\t\t\tcountDown()
  432. \t\t\t\t\t</script>
  433. \t\t\t\t{% else %}
  434. \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>
  435. \t\t\t\t{% endif %}
  436. \t\t\t\t<div class=\"headbuttons\">
  437. \t\t\t\t\t{% include \"includes/search-and-sign-in-revised.html.twig\" %}
  438. \t\t\t\t\t{% include \"includes/sign-in-header-button.html.twig\" %}
  439. \t\t\t\t\t<div class=\"languageselect\">
  440. \t\t\t\t\t\t<div id=\"google_translate_element\" class=\"notranslate\"><span id=\"lang\">English</span>
  441. \t\t\t\t\t\t\t<div id=\"language-dropdown\">
  442. \t\t\t\t\t\t\t\t<div class=\"in-english\">English</div>
  443. \t\t\t\t\t\t\t\t<div class=\"en-espanol\">Espa&ntilde;ol</div>
  444. \t\t\t\t\t\t\t\t<div class=\"en-francais\">Fran&ccedil;ais</div>
  445. \t\t\t\t\t\t\t</div>
  446. \t\t\t\t\t\t</div>
  447. \t\t\t\t\t</div>
  448. \t\t\t\t</div>
  449. \t\t\t\t{% set true_bottom_header_ad = null %}
  450. \t\t\t\t{% if header_ad_count > 1 %}
  451. \t\t\t\t\t{% if bottom_header_ad is defined and bottom_header_ad %}
  452. \t\t\t\t\t\t<div class=\"col-12 header-search d-none d-lg-flex\" style=\"top:0; padding-right:0;\">
  453. \t\t\t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
  454. \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>
  455. \t\t\t\t\t\t\t</div>
  456. \t\t\t\t\t\t</div>
  457. \t\t\t\t\t{% endif %}
  458. \t\t\t\t{% else %}
  459. \t\t\t\t\t{% if bottom_header_ad is defined and bottom_header_ad %}
  460. \t\t\t\t\t\t{% set true_bottom_header_ad = bottom_header_ad %}
  461. \t\t\t\t\t{% endif %}
  462. \t\t\t\t{% endif %}
  463. \t\t\t\t
  464. \t\t\t\t{% if bottom_bottom_header_ad is defined and bottom_bottom_header_ad %}
  465. \t\t\t\t\t{% set true_bottom_header_ad = bottom_bottom_header_ad %}
  466. \t\t\t\t{% endif %}
  467. \t\t\t\t{% if true_bottom_header_ad %}
  468. \t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb float-right d-none d-lg-flex d-max-none\" >
  469. \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>
  470. \t\t\t\t\t</div>
  471. \t\t\t\t{% endif %}
  472. \t\t\t\t
  473.             </div>
  474.         </div>
  475. \t\t<div class=\"row\">
  476. \t\t\t<div class=\"col-sm-12 col-lg-9 col-xl-8 d-flex align-items-end main-menu\">
  477. \t\t\t\t{# {% include \"includes/mega-menu/1/main.html.twig\" %} #}
  478. \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  } )) }}
  479. \t\t\t</div>
  480. \t\t\t<div class=\"col-sm-12 col-lg-3 d-lg-none col-xl-4 header-search\">
  481. \t\t\t\t{% include \"includes/search-and-sign-in-revised.html.twig\" %}
  482. \t\t\t</div>
  483. \t\t\t{% if header_ad_count > 1 and bottom_header_ad is defined and bottom_header_ad %}
  484. \t\t\t\t<div class=\"header-search col-sm-12 d-flex d-lg-none\">
  485. \t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
  486. \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>
  487. \t\t\t\t\t</div>
  488. \t\t\t\t</div>
  489. \t\t\t{% endif %}
  490. \t\t\t{% if true_bottom_header_ad is defined and true_bottom_header_ad %}
  491. \t\t\t\t<div class=\"header-search col-sm-12 col-lg-3 col-xl-4\">
  492. \t\t\t\t\t<div class=\"hot-header-news header-featured-link-eb\">
  493. \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>
  494. \t\t\t\t\t</div>
  495. \t\t\t\t</div>
  496. \t\t\t{% endif %}
  497. \t\t</div>
  498.     </div>
  499. \t<div class=\"info-button\">
  500. \t\t<div></div>
  501. \t\t<div></div>
  502. \t\t<div></div>
  503. \t</div>
  504. </header>
  505. {% include \"includes/breadcrumbs.html.twig\" %}
  506. {% 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");
  507.     }
  508. }