protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<section class=\"wrapper style1 container special\">\n <div class=\"row\">\n "; // line 3 $template_storage = new Bolt\Storage($context['app']); $context['items'] = $template_storage->getContent($this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "general", array()), "row", array()), array("limit" => 3)); // line 4 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : null); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 5 echo " <div class=\"4u\">\n <section>\n <header>\n <h3>"; // line 8 echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "title", array()), "html", null, true); echo "</h3>\n </header>\n "; // line 10 echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "teaser", array()), "html", null, true); echo "\n <footer>\n <ul class=\"buttons\">\n <li><a href=\""; // line 13 echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "link", array()), "html", null, true); echo "\" class=\"button small\">Read More</a></li>\n </ul>\n </footer>\n </section>\n </div>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 19 echo " </div>\n</section>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->loadTemplate("_header.twig", "store.twig", 1)->display($context); // line 2 echo "\n"; // line 3 $template_storage = new Bolt\Storage($context['app']); $context['phones'] = $template_storage->getContent("phones", array()); // line 4 echo "\n<section> \n <div class=\"row\">\n \t<div id=\"shopping-cart-trigger\">\n\t\t\t<i class=\"fa fa-shopping-cart\" style=\"color: #ffffff; font-size: 35px;\"></i>\n\t\t</div>\n\t\t<div class=\"shopping-cart\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-md-1\" id=\"close-cart\">\n\t\t\t\t\t<i class=\"fa fa-arrow-right white\"></i>\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-md-10 center-align\">\n\t\t\t\t\t<h3 class=\"lato-font white\">Welcome To Your Shopping Cart</h3>\n\t\t\t\t\t<h4 class=\"lato-font white\">Here is your order</h4>\n\n\t\t\t\t\t<div class=\"col-md-12\" id=\"orders\">\n\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"col-md-12 order\">\n\t\t\t\t\t\t<form class=\"order-form\" id=\"orders-form\" action=\"#\" method=\"POST\" role=\"form\">\n\t\t\t\t\t\t\t<div class=\"col-sm-12 form-input-group\">\n\t\t \t<input type=\"text\" id=\"form-name\" placeholder=\"Enter your name\" required>\n\t\t </div>\n\t\t <div class=\"col-sm-12 form-input-group\">\n\t\t <input type=\"text\" id=\"form-email\" placeholder=\"Enter your email\" required>\n\t\t </div>\n\t\t <div class=\" col-sm-12 form-input-group\">\n\t\t <input type=\"text\" id=\"form-phone\" placeholder=\"Enter your phone number\" required>\n\t\t </div>\t\t \n\t\t <button type=\"submit\" class=\"btn-fill order-btn\">Place Order</button> \n\t\t </form> \n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"col-md-12 center-align\" id=\"response-message\"><h2></h2></div>\n \t<div class=\"container\"> \t\t\n \t\t<div class=\"row\">\n \t\t\t<h2 class=\"center-align\" style=\"padding-top: 120px;\">"; // line 43 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "title", array()), "html", null, true); echo "</h2> \n\t \t\t<div class=\"col-sm-8 col-sm-offset-2\">\n\t \t\t\t<p class=\"center-align\">Welcome to our online store! Browse through our collection, see what you like and just add it to your cart. Once you are satisfied, go to your cart by clicking the <strong>cart icon</strong> <i class=\"fa fa-shopping-cart\"></i> on your right, fill out your personal information and place your order. No credit card needed. Its that simple!</p>\n\t \t\t</div>\n \t\t</div> \t\t\n \t\t<div class=\"row\">\n \t\t\t"; // line 49 $context["number"] = 1; // line 50 echo " \t\t\t"; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->env->getExtension('Bolt')->order(isset($context["phones"]) ? $context["phones"] : null, "-id")); foreach ($context['_seq'] as $context["_key"] => $context["phone"]) { // line 51 echo " \t\t\t\n \t\t\t<div class=\"col-sm-3 center-align phone\">\n \t\t\t\t<div class=\"col-sm-12 product-name\"> \t\t\t\t\t\n \t\t\t\t\t<h5 class=\"center-align lato-font\"><strong>"; // line 54 echo twig_escape_filter($this->env, $this->getAttribute($context["phone"], "title", array()), "html", null, true); echo "</strong></h5>\n \t\t\t\t\t<hr class=\"line\" />\n \t\t\t\t</div>\n \t\t\t\t<img src=\""; // line 57 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute($context["phone"], "main_image", array())), "html", null, true); echo "\" class=\"img-responsive img-rounded\">\n \t\t\t\t<div class=\"col-sm-12 product-name\"><h5 class=\"center-align lato-font\">\$"; // line 58 echo twig_escape_filter($this->env, $this->getAttribute($context["phone"], "price", array()), "html", null, true); echo "</h5></div>\n \t\t\t\t<div class=\"col-sm-12\"><button class=\"btn-small2 btn-fill add-btn\" id=\"add-btn-"; // line 59 echo twig_escape_filter($this->env, isset($context["number"]) ? $context["number"] : null, "html", null, true); echo "\" data-name=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["phone"], "title", array()), "html", null, true); echo "\" data-price=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["phone"], "price", array()), "html", null, true); echo "\">Add To Cart</button></div>\n \t\t\t</div>\n \t\t\t"; // line 61 $context["number"] = (isset($context["number"]) ? $context["number"] : null) + 1; // line 62 echo " \t\t\t"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['phone'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 63 echo " \t\t</div>\n \t</div>\n \n\n <!-- <div class=\"col-lg-6 padded minus-bottom wow bounceInLeft \" style=\"\">\n <h3 class=\"lato-font center-align highlight\">Who are we?</h3>\n "; // line 69 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "body", array()), "html", null, true); echo " \n </div>\n <div class=\"col-lg-6 company-intro-block padded wow bounceInRight\">\n <img src=\""; // line 72 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "image1", array())), "html", null, true); echo "\" class=\"img-responsive img-rounded\">\n </div> -->\n </div> \n</section>\n"; // line 76 $this->loadTemplate("_footer.twig", "store.twig", 76)->display($context); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->loadTemplate("_header.twig", "about.twig", 1)->display($context); // line 2 echo "\n"; // line 3 $template_storage = new Bolt\Storage($context['app']); $context['testimonials'] = $template_storage->getContent("testimonials", array()); // line 4 echo "<section> \n <div class=\"row company-intro-block \" style=\"padding-top: 120px;\">\n <h2 class=\"center-align\">"; // line 6 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "title", array()), "html", null, true); echo "</h2> \n <div class=\"col-lg-6 padded minus-bottom wow bounceInLeft \" style=\"\">\n <h3 class=\"lato-font center-align highlight\">Who are we?</h3>\n "; // line 9 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "body", array()), "html", null, true); echo " \n </div>\n <div class=\"col-lg-6 company-intro-block padded wow bounceInRight\">\n <img src=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "image1", array())), "html", null, true); echo "\" class=\"img-responsive img-rounded\">\n </div>\n </div> \n <div class=\"row company-intro-block\">\n <div class=\"col-lg-6 company-intro-block padded wow bounceInLeft\">\n <img src=\""; // line 17 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "image2", array())), "html", null, true); echo "\" class=\"img-responsive img-rounded\">\n </div>\n <div class=\"col-lg-6 padded minus-bottom wow bounceInRight\">\n <h3 class=\"lato-font center-align highlight\">What we do</h3>\n "; // line 21 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "body2", array()), "html", null, true); echo " \n </div> \n </div> \n</section>\n<section class=\"testimony\" >\n <div class=\"container\">\n <div class=\"col-md-8 col-md-offset-2\">\n <h3 class=\"center-align\">What do our customers say?</h3>\n <ul id=\"demo2\" class=\"header-section\">\n "; // line 30 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->env->getExtension('Bolt')->order(isset($context["testimonials"]) ? $context["testimonials"] : null, "id")); foreach ($context['_seq'] as $context["_key"] => $context["testimony"]) { // line 31 echo " <li class=\"center-align\">\n \""; // line 32 echo twig_escape_filter($this->env, $this->getAttribute($context["testimony"], "testimony", array()), "html", null, true); echo "\"\n <strong><p>"; // line 33 echo twig_escape_filter($this->env, $this->getAttribute($context["testimony"], "client_name", array()), "html", null, true); echo "</p></strong> \n </li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['testimony'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 36 echo " </ul>\n </div>\n </div> \n</section>\n"; // line 40 $this->loadTemplate("_footer.twig", "about.twig", 40)->display($context); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->loadTemplate("_header.twig", "index.twig", 1)->display($context); // line 2 echo "\n"; // line 3 $template_storage = new Bolt\Storage($context['app']); $context['sliders'] = $template_storage->getContent("sliders", array()); // line 4 echo "\n<section id=\"sliders-container\">\n <ul id=\"demo1\" class=\"header-section\">\n "; // line 7 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->env->getExtension('Bolt')->order(isset($context["sliders"]) ? $context["sliders"] : null, "id")); foreach ($context['_seq'] as $context["_key"] => $context["slide"]) { // line 8 echo " <li><img src=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute($context["slide"], "image", array())), "html", null, true); echo "\" alt='<h3 class=\"center-align lato-font white\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["slide"], "caption", array()), "html", null, true); echo "</h3>'</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['slide'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 10 echo " <!-- <li><img src=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()), "html", null, true); echo "img/nokia1.jpg\" alt='<h4 class=\"center-align\">It's all about connecting you with everyone you know.</h4><div class=\"center-align\"><a href=\"\" class=\"btn-large btn-fill2\">Find out more</a><div>'></li> \n\n <li><img src=\""; // line 12 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()), "html", null, true); echo "img/iphone12.jpg\" alt='<h4 class=\"center-align\">We can supply all your mobile needs.</h4><div class=\"center-align\"><a href=\"\" class=\"btn-large btn-fill2\">Contact us now</a><div>'></li> -->\n </ul>\n</section>\n<section> \n <div class=\"row\">\n <div class=\"container\">\n \n <div class=\"col-lg-6 med-img center-align\">\n <h3 class=\"lato-font\">Welcome to</h3>\n <h2 class=\"lato-font\">3 Kings Enterprises</h2>\n <h3 class=\"lato-font\">Bringing the <strong class=\"highlight\">best</strong> at <strong class=\"highlight\">affordable</strong> prices</h3>\n </div>\n <div class=\"col-lg-6 med-img\">\n <img src=\""; // line 25 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "theme", array()), "html", null, true); echo "img/logo-med.jpg\" class=\"img-responsive\" alt=\"\">\n </div>\n </div> \n </div> \n <div class=\"row company-intro-block \">\n <div class=\"col-lg-6 padded minus-bottom wow bounceInLeft\">\n "; // line 31 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "body", array()), "html", null, true); echo "\n <p class=\"center-align\"><a class=\"btn-large btn-fill\">Visit Our Store</a></p>\n </div>\n <div class=\"col-lg-6 company-intro-block padded wow bounceInRight\"><img src=\""; // line 34 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "image1", array())), "html", null, true); echo "\" class=\"img-responsive img-rounded\"></div>\n </div> \n</section>\n"; // line 37 $this->loadTemplate("_footer.twig", "index.twig", 37)->display($context); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $context["sub_hide"] = array(); // line 2 echo "\n"; // line 3 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "contenttypes"), "method")); foreach ($context['_seq'] as $context["slug"] => $context["contenttype"]) { // line 4 echo " "; if ($this->env->getExtension('Bolt')->isAllowed("contenttype:" . $context["slug"])) { // line 5 echo " "; $context["sub_view"] = array("icon" => $this->getAttribute($context["contenttype"], "icon_many", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["contenttype"], "icon_many", array()), $this->getAttribute($context["contenttype"], "show_in_menu", array()) ? "fa:files-o" : "fa:th-list") : ($this->getAttribute($context["contenttype"], "show_in_menu", array()) ? "fa:files-o" : "fa:th-list"), "label" => $this->env->getExtension('Bolt')->trans("contenttypes.generic.view", array("%contenttypes%" => $this->getAttribute($context["contenttype"], "slug", array()))), "link" => $this->env->getExtension('routing')->getPath("overview", array("contenttypeslug" => $context["slug"]))); // line 10 echo " "; $context["sub_new"] = array("icon" => "fa:plus", "label" => $this->env->getExtension('Bolt')->trans("contenttypes.generic.new", array("%contenttype%" => $context["slug"])), "link" => $this->env->getExtension('routing')->getPath("editcontent", array("contenttypeslug" => $context["slug"])), "isallowed" => "contenttype:" . $context["slug"] . ":create"); // line 16 echo " "; $context["sub"] = array(0 => isset($context["sub_view"]) ? $context["sub_view"] : null, 1 => isset($context["sub_new"]) ? $context["sub_new"] : null, 2 => "-"); // line 17 echo "\n "; // line 19 echo " "; if ($this->getAttribute($context["contenttype"], "show_in_menu", array())) { // line 20 echo "\n "; // line 21 $template_storage = new Bolt\Storage($context['app']); $context['records'] = $template_storage->getContent(isset($context["slug"]) ? $context["slug"] : null, array("limit" => 4, "hydrate" => false, "order" => "-datechanged")); // line 22 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["records"]) ? $context["records"] : null); foreach ($context['_seq'] as $context["_key"] => $context["record"]) { // line 23 echo " "; $context["sub"] = twig_array_merge(isset($context["sub"]) ? $context["sub"] : null, array(0 => array("icon" => $this->getAttribute($context["contenttype"], "icon_one", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["contenttype"], "icon_one", array()), "fa:file-text-o") : "fa:file-text-o", "label" => trim(twig_replace_filter($this->getAttribute($context["record"], "excerpt", array(0 => 80, 1 => true), "method"), array("</b>" => " </b>"))), "link" => $this->env->getExtension('routing')->getPath("editcontent", array("contenttypeslug" => $context["slug"], "id" => $this->getAttribute($context["record"], "id", array())))))); // line 30 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['record'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 31 echo "\n "; // line 32 $context["label"] = $this->env->getExtension('Bolt')->trans(array(0 => "contenttypes", 1 => $this->getAttribute($context["contenttype"], "slug", array()), 2 => "name", 3 => "plural"), array("DEFAULT" => $this->getAttribute($context["contenttype"], "name", array()))); // line 33 echo " "; $context["active"] = (isset($context["page_nav"]) ? $context["page_nav"] : null) == "Content/*" && ($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "slug", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "slug", array())) : "") == $context["slug"]; // line 34 echo "\n "; // line 35 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["nav"]) ? $context["nav"] : null, "submenu", array(0 => $this->getAttribute($context["contenttype"], "icon_many", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["contenttype"], "icon_many", array()), "") : "", 1 => isset($context["label"]) ? $context["label"] : null, 2 => isset($context["sub"]) ? $context["sub"] : null, 3 => isset($context["active"]) ? $context["active"] : null, 4 => true), "method"), "html", null, true); echo "\n\n "; // line 38 echo " "; } else { // line 39 echo "\n "; // line 40 $context["sub_view"] = array("icon" => $this->getAttribute($context["contenttype"], "icon_many", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["contenttype"], "icon_many", array()), $this->getAttribute($context["contenttype"], "show_in_menu", array()) ? "fa:files-o" : "fa:th-list") : ($this->getAttribute($context["contenttype"], "show_in_menu", array()) ? "fa:files-o" : "fa:th-list"), "label" => $this->env->getExtension('Bolt')->trans(array(0 => "contenttypes", 1 => $this->getAttribute($context["contenttype"], "slug", array()), 2 => "name", 3 => "plural"), array("DEFAULT" => $this->getAttribute($context["contenttype"], "name", array()))), "link" => $this->env->getExtension('routing')->getPath("overview", array("contenttypeslug" => $context["slug"]))); // line 45 echo "\n "; // line 46 $context["sub_hide"] = twig_array_merge(isset($context["sub_hide"]) ? $context["sub_hide"] : null, array(0 => isset($context["sub_view"]) ? $context["sub_view"] : null)); // line 47 echo "\n "; } // line 49 echo " "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['slug'], $context['contenttype'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 51 echo "\n"; // line 53 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["nav"]) ? $context["nav"] : null, "submenu", array(0 => "fa:th-list", 1 => $this->env->getExtension('Bolt')->trans("Other content"), 2 => isset($context["sub_hide"]) ? $context["sub_hide"] : null), "method"), "html", null, true); echo "\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "<!-- Sidebar -->\n\n<aside class=\"large-4 columns\">\n\n <div class=\"panel\">\n "; // line 8 echo " "; $template_storage = new Bolt\Storage($context['app']); $context['about'] = $template_storage->getContent("page/about", array()); // line 9 echo "\n "; // line 12 echo " "; if ($this->getAttribute(isset($context["about"]) ? $context["about"] : null, "title", array(), "any", true, true)) { // line 13 echo "\n <h5>"; // line 14 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["about"]) ? $context["about"] : null, "title", array()), "html", null, true); echo "</h5>\n "; // line 15 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["about"]) ? $context["about"] : null, "teaser", array()), "html", null, true); echo "\n\n <a href=\""; // line 17 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["about"]) ? $context["about"] : null, "link", array()), "html", null, true); echo "\">"; echo $this->env->getExtension('Bolt')->trans("Read more"); echo " »</a>\n\n "; } else { // line 20 echo "\n <h5>"; // line 21 echo $this->env->getExtension('Bolt')->trans("Alas, no about!"); echo "</h5>\n\n <p>"; // line 23 echo $this->env->getExtension('Bolt')->trans("If there was a Page with 'about' for a slug, it would've been shown here. But there isn't one, so that's why you're seeing this placeholder."); echo "</p>\n\n "; } // line 26 echo "\n </div>\n\n "; // line 37 echo "\n "; // line 38 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "config", array()), "get", array(0 => "contenttypes"), "method")); foreach ($context['_seq'] as $context["_key"] => $context["ct"]) { if (!($this->getAttribute($context["ct"], "viewless", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["ct"], "viewless", array()), false) : false)) { // line 39 echo "\n "; // line 40 $template_storage = new Bolt\Storage($context['app']); $context['records'] = $template_storage->getContent($this->getAttribute(isset($context["ct"]) ? $context["ct"] : null, "slug", array()) . "/latest/5", array()); // line 41 echo "\n <h5>"; // line 42 echo $this->env->getExtension('Bolt')->trans("contenttypes.generic.recent", array("%contenttypes%" => $this->getAttribute($context["ct"], "slug", array()))); echo "</h5>\n <ul>\n "; // line 44 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["records"]) ? $context["records"] : null); $context['_iterated'] = false; foreach ($context['_seq'] as $context["_key"] => $context["record"]) { // line 45 echo " <li><a href=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "link", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "title", array()), "html", null, true); echo "</a></li>\n "; $context['_iterated'] = true; } if (!$context['_iterated']) { // line 47 echo " <li>"; echo $this->env->getExtension('Bolt')->trans("contenttypes.generic.no-recent", array("%contenttype%" => $this->getAttribute($context["ct"], "slug", array()))); echo "</li>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['record'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 49 echo " </ul>\n <p><a href=\""; // line 50 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paths"]) ? $context["paths"] : null, "root", array()), "html", null, true); echo twig_escape_filter($this->env, $this->getAttribute($context["ct"], "slug", array()), "html", null, true); echo "\">"; echo $this->env->getExtension('Bolt')->trans("contenttypes.generic.overview", array("%contenttypes%" => $this->getAttribute($context["ct"], "slug", array()))); echo " »</a></p>\n\n\n "; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ct'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 54 echo "\n\n</aside>\n\n<!-- End Sidebar -->\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 2 echo "\n"; // line 3 $context["option"] = array("class" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "class", array()), "") : "", "label" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()), "") : "", "multiple" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array(), "any", true, true) && $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()), "values" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "values", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "values", array()), array()) : array(), "info" => $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "info", array()), "") : ""); // line 10 echo "\n"; // line 12 echo "\n"; // line 13 if (twig_test_iterable($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()))) { // line 14 echo " "; $context["values"] = $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()); } else { // line 16 echo " "; $context["lookuptype"] = $this->env->getExtension('Bolt')->first(twig_split_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()), "/")); // line 17 echo " "; $context["lookupfield"] = $this->env->getExtension('Bolt')->last(twig_split_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "values", array()), "/")); // line 18 echo " "; if (twig_in_filter(",", isset($context["lookupfield"]) ? $context["lookupfield"] : null)) { // line 19 echo " "; $context["lookupfield"] = twig_split_filter($this->env, isset($context["lookupfield"]) ? $context["lookupfield"] : null, ","); // line 20 echo " "; } // line 21 echo " "; $context["sortingorder"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "sort", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "sort", array()), $this->env->getExtension('Bolt')->first(isset($context["lookupfield"]) ? $context["lookupfield"] : null)) : $this->env->getExtension('Bolt')->first(isset($context["lookupfield"]) ? $context["lookupfield"] : null); // line 22 echo " "; $context["querylimit"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "limit", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "limit", array()), 500) : 500; // line 23 echo " "; $context["wherefilter"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "filter", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "filter", array()), array()) : array(); // line 24 echo " "; $template_storage = new Bolt\Storage($context['app']); $context['lookups'] = $template_storage->getContent(isset($context["lookuptype"]) ? $context["lookuptype"] : null, array("order" => isset($context["sortingorder"]) ? $context["sortingorder"] : null, "hydrate" => false, "limit" => isset($context["querylimit"]) ? $context["querylimit"] : null), $pager, isset($context["wherefilter"]) ? $context["wherefilter"] : null); // line 25 echo " "; $context["values"] = $this->env->getExtension('Bolt')->selectField(isset($context["lookups"]) ? $context["lookups"] : null, isset($context["lookupfield"]) ? $context["lookupfield"] : null, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()), $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "keys", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "keys", array()), "id") : "id"); } // line 27 echo "\n"; // line 29 $context["selection"] = $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array(), "any", false, true), "get", array(0 => isset($context["contentkey"]) ? $context["contentkey"] : null), "method"), null) : null; // line 30 if (!twig_test_iterable(isset($context["selection"]) ? $context["selection"] : null)) { // line 31 echo " "; $context["selection"] = array(0 => isset($context["selection"]) ? $context["selection"] : null); } // line 33 echo "\n"; // line 35 if (twig_in_filter($this->env->getExtension('Bolt')->first(isset($context["selection"]) ? $context["selection"] : null), twig_get_array_keys_filter(isset($context["values"]) ? $context["values"] : null))) { // line 36 echo " "; $context["onlyids"] = true; } else { // line 38 echo " "; $context["onlyids"] = false; } // line 40 echo "\n"; // line 41 $context["attr_select"] = array("class" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "class", array()), "id" => isset($context["key"]) ? $context["key"] : null, "multiple" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()), "name" => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()) ? (isset($context["name"]) ? $context["name"] : null) . "[]" : (isset($context["name"]) ? $context["name"] : null)); // line 47 echo "\n"; // line 49 if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), false) : false) { // line 50 echo " "; $context["attr_select"] = twig_array_merge(isset($context["attr_select"]) ? $context["attr_select"] : null, array("class" => "")); // line 51 echo " "; $context["attr_select"] = twig_array_merge(isset($context["attr_select"]) ? $context["attr_select"] : null, array("style" => "width: 100%;")); } // line 53 echo "\n"; // line 55 echo "\n<fieldset class=\"multiselect\">\n\n <label class=\"col-sm-3 control-label\">"; // line 58 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array()) ? $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "infopop", array(0 => isset($context["labelkey"]) ? $context["labelkey"] : null, 1 => $this->getAttribute(isset($context["option"]) ? $context["option"] : null, "info", array())), "method") : (isset($context["labelkey"]) ? $context["labelkey"] : null), "html", null, true); echo "</label>\n <div class=\"col-sm-9\">\n <select"; // line 60 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "attr", array(0 => isset($context["attr_select"]) ? $context["attr_select"] : null), "method"), "html", null, true); echo ">\n "; // line 61 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["values"]) ? $context["values"] : null); foreach ($context['_seq'] as $context["id"] => $context["value"]) { // line 62 echo "\n "; // line 63 $context["is_array"] = twig_test_iterable($context["value"]) && twig_length_filter($this->env, $context["value"]) > 1; // line 64 echo " "; $context["attr_opt"] = array("value" => $context["id"], "selected" => twig_in_filter($context["id"], isset($context["selection"]) ? $context["selection"] : null) || !(isset($context["onlyids"]) ? $context["onlyids"] : null) && twig_in_filter(isset($context["is_array"]) ? $context["is_array"] : null ? $this->getAttribute($context["value"], 0, array(), "array") : $context["value"], isset($context["selection"]) ? $context["selection"] : null)); // line 68 echo "\n <option"; // line 69 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["macro"]) ? $context["macro"] : null, "attr", array(0 => isset($context["attr_opt"]) ? $context["attr_opt"] : null), "method"), "html", null, true); echo ">"; echo twig_escape_filter($this->env, isset($context["is_array"]) ? $context["is_array"] : null ? twig_join_filter(twig_slice($this->env, $context["value"], 0, null), " / ") : $context["value"], "html", null, true); echo "</option>\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['id'], $context['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 71 echo " </select>\n\n "; // line 73 if ($this->getAttribute(isset($context["option"]) ? $context["option"] : null, "multiple", array()) && !($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), false) : false)) { // line 74 echo " <div>"; // line 75 echo " <a href=\"#\" class=\"btn btn-default btn-xs\" onclick=\"jQuery('#"; echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true); echo " option').prop('selected', true); return false;\">\n <i class=\"fa fa-fw fa-check-square-o\"></i>"; // line 76 echo $this->env->getExtension('Bolt')->trans("Select all"); echo "\n </a>\n <a href=\"#\" class=\"btn btn-default btn-xs\" onclick=\"jQuery('#"; // line 78 echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true); echo " option').prop('selected', false); return false;\">\n <i class=\"fa fa-fw fa-square-o\"></i>"; // line 79 echo $this->env->getExtension('Bolt')->trans("Select none"); echo "\n </a>\n </div>\n "; } // line 83 echo " </div>\n\n "; // line 85 if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), false) : false) { // line 86 echo " <script>\n \$(function() {\n \$('#"; // line 88 echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true); echo "').select2({\n placeholder: \""; // line 89 echo $this->env->getExtension('Bolt')->trans("(none)"); echo "\",\n allowClear: true\n });\n });\n </script>\n "; } // line 95 echo "\n</fieldset>\n"; }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->loadTemplate("_header.twig", "index.twig", 1)->display($context); // line 2 echo "\n<!-- Main Page Content and Sidebar -->\n\n <!-- Main Blog Content -->\n <div class=\"large-8 columns\">\n\n <article>\n "; // line 9 if (array_key_exists("record", $context)) { // line 10 echo "\n "; // line 13 echo " "; $context["home"] = isset($context["record"]) ? $context["record"] : null; // line 14 echo " "; if ($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "title", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "title", array()))) { // line 15 echo " <h1>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["home"]) ? $context["home"] : null, "title", array()), "html", null, true); echo "</h1>\n "; } // line 17 echo "\n "; // line 18 if ($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "image", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "image", array()))) { // line 19 echo " <div class=\"large-5 columns imageholder\">\n <a href=\""; // line 20 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "image", array())), "html", null, true); echo "\">\n <img src=\""; // line 21 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->thumbnail($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "image", array()), 696, 400), "html", null, true); echo "\">\n </a>\n </div>\n "; } // line 25 echo "\n "; // line 27 echo " "; if ($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "introduction", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "introduction", array()))) { // line 28 echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["home"]) ? $context["home"] : null, "introduction", array()), "html", null, true); echo "\n "; } elseif ($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "teaser", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "teaser", array()))) { // line 30 echo " "; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["home"]) ? $context["home"] : null, "teaser", array()), "html", null, true); echo "\n "; } elseif (!twig_test_empty(isset($context["home"]) ? $context["home"] : null)) { // line 32 echo " <p>"; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["home"]) ? $context["home"] : null, "excerpt", array(0 => 500), "method"), "html", null, true); echo "</p>\n "; } // line 34 echo "\n "; // line 35 if ($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "link", array(), "any", true, true) && !twig_test_empty($this->getAttribute(isset($context["home"]) ? $context["home"] : null, "link", array()))) { // line 36 echo " <a href=\""; echo twig_escape_filter($this->env, $this->getAttribute(isset($context["home"]) ? $context["home"] : null, "link", array()), "html", null, true); echo "\">Read more »</a>\n "; } // line 38 echo "\n "; // line 41 echo "\n "; } else { // line 43 echo " <p>\n "; // line 44 echo $this->env->getExtension('Bolt')->trans("Content for home not found!"); echo "\n "; // line 45 echo $this->env->getExtension('Bolt')->trans("You should set 'homepage:' in your 'app/config/config.yml' to an existing record. Make sure that the content is published, otherwise it will not be shown."); echo "\n </p>\n "; } // line 48 echo " </article>\n\n <hr>\n\n <h4>"; // line 52 echo $this->env->getExtension('Bolt')->trans("Latest entries"); echo "</h4>\n\n "; // line 58 echo " "; $template_storage = new Bolt\Storage($context['app']); $context['records'] = $template_storage->getContent("entries/latest/6", array("paging" => true)); // line 59 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(isset($context["records"]) ? $context["records"] : null); foreach ($context['_seq'] as $context["_key"] => $context["record"]) { // line 60 echo " <article>\n\n "; // line 62 if ($this->getAttribute($context["record"], "image", array()) != "") { // line 63 echo " <div class=\"large-4 imageholder\">\n <a href=\""; // line 64 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->image($this->getAttribute($context["record"], "image", array())), "html", null, true); echo "\">\n <img src=\""; // line 65 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->thumbnail($this->getAttribute($context["record"], "image", array()), 400, 260), "html", null, true); echo "\">\n </a>\n </div>\n "; } // line 69 echo "\n <h3><a href=\""; // line 70 echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "link", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "title", array()), "html", null, true); echo "</a></h3>\n\n <p>"; // line 72 echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "excerpt", array(0 => 220), "method"), "html", null, true); echo "</p>\n\n </article>\n\n <hr>\n\n "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['record'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 79 echo "\n "; // line 80 echo twig_escape_filter($this->env, $this->env->getExtension('Bolt')->pager($this->env), "html", null, true); echo "\n\n\n </div>\n\n <!-- End Main Content -->\n "; // line 88 echo " "; $this->loadTemplate("_aside.twig", "index.twig", 88)->display($context); // line 89 echo "\n<!-- End Main Content and Sidebar -->\n\n\n\n"; // line 94 $this->loadTemplate("_footer.twig", "index.twig", 94)->display($context); }
protected function doDisplay(array $context, array $blocks = array()) { // line 1 if (!$this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "has", array()), "tabs", array())) { // line 2 echo " <hr>\n\n <h3>\n "; // line 5 echo $this->env->getExtension('Bolt')->trans("Relationships"); echo "\n <span class=\"label info-pop\" data-html=\"true\" data-title=\""; // line 6 echo $this->env->getExtension('Bolt')->trans("Relationships"); echo "\"\n data-content=\""; // line 7 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "translator", array()), "trans", array(0 => "info.relationships", 1 => array(), 2 => "infos"), "method"), "html", null, true); echo "\">"; echo $this->env->getExtension('Bolt')->trans("Info"); echo "</span>\n </h3>\n"; } // line 10 echo "\n"; // line 11 if ($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "has", array()), "relations", array())) { // line 12 echo " "; $this->loadTemplate("editcontent/_relationships.twig", "editcontent/_relations.twig", 12)->display($context); } // line 14 echo "\n"; // line 16 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "content", array()), "relation", array())); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["reltype"] => $context["ids"]) { // line 17 echo " "; if (!$this->getAttribute($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array(), "any", false, true), "relations", array(), "any", false, true), $context["reltype"], array(), "array", true, true)) { // line 18 echo " <p>"; echo $this->env->getExtension('Bolt')->trans("This record is related to:"); echo "</p>\n <table class=\"table table-striped dashboardlisting\">\n "; // line 20 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($context["ids"]); $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true); if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["_key"] => $context["id"]) { // line 21 echo " "; $template_storage = new Bolt\Storage($context['app']); $context['record'] = $template_storage->getContent((isset($context["reltype"]) ? $context["reltype"] : null) . "/" . (isset($context["id"]) ? $context["id"] : null), array()); // line 22 echo " "; if (isset($context["record"]) ? $context["record"] : null) { // line 23 echo " "; $context["editable"] = $this->env->getExtension('Bolt')->isAllowed("edit", isset($context["record"]) ? $context["record"] : null); // line 24 echo " "; $this->loadTemplate(array(0 => "_sub/_listing.twig"), "editcontent/_relations.twig", 24)->display(array_merge($context, array("excerptlength" => 280, "thumbsize" => 54, "compact" => true, "content" => isset($context["record"]) ? $context["record"] : null, "permissions" => $this->getAttribute(isset($context["context"]) ? $context["context"] : null, "permissions", array())))); // line 25 echo " "; } // line 26 echo " "; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['id'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 27 echo " </table>\n "; } ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['reltype'], $context['ids'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 30 echo "\n"; // line 31 if ($this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "has", array()), "tabs", array()) && twig_in_filter("relations", $this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "contenttype", array()), "groups", array()))) { // line 32 echo " "; $this->loadTemplate("editcontent/_fields.twig", "editcontent/_relations.twig", 32)->display($context); } // line 34 echo "\n"; // line 35 if (!$this->getAttribute($this->getAttribute(isset($context["context"]) ? $context["context"] : null, "has", array()), "tabs", array())) { // line 36 echo " <hr>\n"; } }
public function block_cta($context, array $blocks = array()) { // line 100 echo " "; if (!twig_test_empty($this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "home", array()), "calltoaction", array()))) { // line 101 echo " "; $template_storage = new Bolt\Storage($context['app']); $context['cta'] = $template_storage->getContent($this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "home", array()), "calltoaction", array()), array()); // line 102 echo " <section id=\"cta\">\n <header>\n <h2>"; // line 104 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cta"]) ? $context["cta"] : null, "title", array()), "html", null, true); echo "</h2>\n "; // line 105 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cta"]) ? $context["cta"] : null, "teaser", array()), "html", null, true); echo "\n </header>\n <footer>\n <ul class=\"buttons\">\n <li><a href=\""; // line 109 echo twig_escape_filter($this->env, $this->getAttribute(isset($context["cta"]) ? $context["cta"] : null, "link", array()), "html", null, true); echo "\" class=\"button special\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["theme"]) ? $context["theme"] : null, "home", array()), "actiontext", array()), "html", null, true); echo "</a></li>\n </ul>\n </footer>\n </section>\n\n "; } // line 115 echo " "; }