var/cache/dev/twig/c9/c9ff483f2a87c02c69fcfd3eedf728c8.php line 253

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. /* content/search.html.twig */
  14. class __TwigTemplate_b51392a90ec439873668755a98fdcd5b extends 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->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/search.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/search.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""content/search.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 3
  54.         echo "
  55. ";
  56.         // line 4
  57.         $this->loadTemplate("content/search.html.twig""content/search.html.twig"4"1423022510")->display($context);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     public function getTemplateName()
  64.     {
  65.         return "content/search.html.twig";
  66.     }
  67.     public function isTraitable()
  68.     {
  69.         return false;
  70.     }
  71.     public function getDebugInfo()
  72.     {
  73.         return array (  71 => 4,  68 => 3,  58 => 2,  35 => 1,);
  74.     }
  75.     public function getSourceContext()
  76.     {
  77.         return new Source("{% extends \"base.html.twig\" %}
  78. {% block body %}
  79. {% embed \"1-col-sidebar.html.twig\" %}
  80. {% block column %}
  81. \t{% if total %}
  82. \t\t<div class=\"paging float-right\">
  83. \t\t\t<div class=\"input-group\">
  84. \t\t\t\t<div class=\"input-group-prepend px-3\">
  85. \t\t\t\t\t<span>
  86. \t\t\t\t\tShowing: 
  87. \t\t\t\t\t{{ (page-1) * limit + 1 }} - 
  88. \t\t\t\t
  89. \t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
  90. \t\t\t\t\t\t{{ (page-1) * limit + limit }}
  91. \t\t\t\t\t{% else %}
  92. \t\t\t\t\t\t{{ total }}
  93. \t\t\t\t\t{% endif %}
  94. \t\t\t\t\t
  95. \t\t\t\t\tof 
  96. \t\t\t\t\t
  97. \t\t\t\t\t{{ total }}
  98. \t\t\t\t\t</span>
  99. \t\t\t\t</div>
  100. \t\t\t\t<div class=\"button-group input-group-append\">
  101. \t\t\t\t\t{% if ((page-1)) %}
  102. \t\t\t\t\t<a 
  103. \t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  104. \t\t\t\t\t\ttype=\"submit\"
  105. \t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
  106. \t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
  107. \t\t\t\t\t{% endif %}
  108. \t\t\t\t\t{% if (page-1) * limit + limit < total %}
  109. \t\t\t\t\t<a 
  110. \t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  111. \t\t\t\t\t\ttype=\"submit\"
  112. \t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
  113. \t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
  114. \t\t\t\t\t{% endif %}
  115. \t\t\t\t</div>
  116. \t\t\t</div>
  117. \t\t</div>
  118. \t{% endif %}
  119. \t
  120. \t<h1 class=\"mb-3\">Search Results</h1>
  121. \t<hr />
  122. \t{% if total == 0 %}
  123. \t\t<h6>No results found</h6>
  124. \t{% endif %}
  125. \t{% for result in results %}
  126. \t\t<div class=\"row mb-3\">
  127. \t\t\t{% if result.getFeaturedImageTag() %}
  128. \t\t\t\t<div class=\"col-md-4\"> 
  129. \t\t\t\t\t{{ result.getFeaturedImageTag(\"\",\"\")|raw }}
  130. \t\t\t\t</div>
  131. \t\t\t\t<div class=\"col-md-8\">
  132. \t\t\t{% else %}
  133. \t\t\t\t<div class=\"col-md-12\">
  134. \t\t\t{% endif %}
  135. \t\t\t
  136. \t\t\t\t<h3 class=\"\">
  137. \t\t\t\t\t<a href=\"{{ result.getUrl() }}\">
  138. \t\t\t\t\t\t{{ result.getTypeText() }}: {{ result.getTitle() }}
  139. \t\t\t\t\t</a>
  140. \t\t\t\t</h3>
  141. \t\t\t\t<p class=\"post-byline\"><strong>
  142. \t\t\t\t\t{{ result.getPublishedAt() | date | rcsDateFormat }}
  143. \t\t\t\t</strong></p>
  144. \t\t\t\t{% if result.getIntroText() %}
  145. \t\t\t\t\t<div class=\"intro\">
  146. \t\t\t\t\t\t{{ result.getIntroText()|raw }}
  147. \t\t\t\t\t\t<strong><a href=\"{{ result.getUrl() }}\">Read More {#<i class=\"fa fa-angle-double-right\"></i>#}</a></strong>
  148. \t\t\t\t\t</div>
  149. \t\t\t\t{% endif %}
  150. \t\t\t\t
  151. \t\t\t</div>
  152. \t\t</div>
  153. \t\t<hr />
  154. \t{% endfor %}
  155. \t
  156. \t<div class=\"row\">
  157. \t\t<div class=\"col-md-12 mt-3\">
  158. \t\t\t{% if total %}
  159. \t\t\t\t<div class=\"paging float-right\">
  160. \t\t\t\t\t<div class=\"input-group\">
  161. \t\t\t\t\t\t<div class=\"input-group-prepend px-3\">
  162. \t\t\t\t\t\t\t<span>
  163. \t\t\t\t\t\t\tShowing: 
  164. \t\t\t\t\t\t\t{{ (page-1) * limit + 1 }} - 
  165. \t\t\t\t\t\t
  166. \t\t\t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
  167. \t\t\t\t\t\t\t\t{{ (page-1) * limit + limit }}
  168. \t\t\t\t\t\t\t{% else %}
  169. \t\t\t\t\t\t\t\t{{ total }}
  170. \t\t\t\t\t\t\t{% endif %}
  171. \t\t\t\t\t\t\t
  172. \t\t\t\t\t\t\tof 
  173. \t\t\t\t\t\t\t
  174. \t\t\t\t\t\t\t{{ total }}
  175. \t\t\t\t\t\t\t</span>
  176. \t\t\t\t\t\t</div>
  177. \t\t\t\t\t\t<div class=\"button-group input-group-append\">
  178. \t\t\t\t\t\t\t{% if ((page-1)) %}
  179. \t\t\t\t\t\t\t<a 
  180. \t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  181. \t\t\t\t\t\t\t\ttype=\"submit\"
  182. \t\t\t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
  183. \t\t\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
  184. \t\t\t\t\t\t\t{% endif %}
  185. \t\t\t\t\t\t\t{% if (page-1) * limit + limit < total %}
  186. \t\t\t\t\t\t\t<a 
  187. \t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  188. \t\t\t\t\t\t\t\ttype=\"submit\"
  189. \t\t\t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
  190. \t\t\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
  191. \t\t\t\t\t\t\t{% endif %}
  192. \t\t\t\t\t\t</div>
  193. \t\t\t\t\t</div>
  194. \t\t\t\t</div>
  195. \t\t\t{% endif %}
  196. \t\t</div>
  197. \t</div>
  198. {% endblock %}
  199. {% block sidebar %}
  200. \t{% include \"includes/sidebar.html.twig\" %}
  201. {% endblock %}
  202. {% endembed %}
  203. {% endblock %}""content/search.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/search.html.twig");
  204.     }
  205. }
  206. /* content/search.html.twig */
  207. class __TwigTemplate_b51392a90ec439873668755a98fdcd5b___1423022510 extends Template
  208. {
  209.     private $source;
  210.     private $macros = [];
  211.     public function __construct(Environment $env)
  212.     {
  213.         parent::__construct($env);
  214.         $this->source $this->getSourceContext();
  215.         $this->blocks = [
  216.             'column' => [$this'block_column'],
  217.             'sidebar' => [$this'block_sidebar'],
  218.         ];
  219.     }
  220.     protected function doGetParent(array $context)
  221.     {
  222.         return "1-col-sidebar.html.twig";
  223.     }
  224.     protected function doDisplay(array $context, array $blocks = [])
  225.     {
  226.         $macros $this->macros;
  227.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/search.html.twig"));
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""content/search.html.twig"));
  231.         $this->parent $this->loadTemplate("1-col-sidebar.html.twig""content/search.html.twig"4);
  232.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  233.         
  234.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  235.         
  236.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  237.     }
  238.     // line 5
  239.     public function block_column($context, array $blocks = [])
  240.     {
  241.         $macros $this->macros;
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  243.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  244.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  245.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""column"));
  246.         // line 6
  247.         echo "\t";
  248.         if ((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'6$this->source); })())) {
  249.             // line 7
  250.             echo "\t\t<div class=\"paging float-right\">
  251. \t\t\t<div class=\"input-group\">
  252. \t\t\t\t<div class=\"input-group-prepend px-3\">
  253. \t\t\t\t\t<span>
  254. \t\t\t\t\tShowing: 
  255. \t\t\t\t\t";
  256.             // line 12
  257.             echo twig_escape_filter($this->env, ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'12$this->source); })())) + 1), "html"nulltrue);
  258.             echo " - 
  259. \t\t\t\t
  260. \t\t\t\t\t";
  261.             // line 14
  262.             if ((((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'14$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'14$this->source); })())) + (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'14$this->source); })())) <= (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'14$this->source); })()))) {
  263.                 // line 15
  264.                 echo "\t\t\t\t\t\t";
  265.                 echo twig_escape_filter($this->env, ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'15$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'15$this->source); })())) + (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'15$this->source); })())), "html"nulltrue);
  266.                 echo "
  267. \t\t\t\t\t";
  268.             } else {
  269.                 // line 17
  270.                 echo "\t\t\t\t\t\t";
  271.                 echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'17$this->source); })()), "html"nulltrue);
  272.                 echo "
  273. \t\t\t\t\t";
  274.             }
  275.             // line 19
  276.             echo "\t\t\t\t\t
  277. \t\t\t\t\tof 
  278. \t\t\t\t\t
  279. \t\t\t\t\t";
  280.             // line 22
  281.             echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'22$this->source); })()), "html"nulltrue);
  282.             echo "
  283. \t\t\t\t\t</span>
  284. \t\t\t\t</div>
  285. \t\t\t\t<div class=\"button-group input-group-append\">
  286. \t\t\t\t\t";
  287.             // line 26
  288.             if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'26$this->source); })()) - 1)) {
  289.                 // line 27
  290.                 echo "\t\t\t\t\t<a 
  291. \t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  292. \t\t\t\t\t\ttype=\"submit\"
  293. \t\t\t\t\t\thref=\"/search/";
  294.                 // line 30
  295.                 echo twig_escape_filter($this->env, ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'30$this->source); })()) - 1), "html"nulltrue);
  296.                 echo "?s=";
  297.                 echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'30$this->source); })()), "html"nulltrue);
  298.                 echo "\"
  299. \t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
  300. \t\t\t\t\t";
  301.             }
  302.             // line 33
  303.             echo "\t\t\t\t\t";
  304.             if ((((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'33$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'33$this->source); })())) + (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'33$this->source); })())) < (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'33$this->source); })()))) {
  305.                 // line 34
  306.                 echo "\t\t\t\t\t<a 
  307. \t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  308. \t\t\t\t\t\ttype=\"submit\"
  309. \t\t\t\t\t\thref=\"/search/";
  310.                 // line 37
  311.                 echo twig_escape_filter($this->env, ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'37$this->source); })()) + 1), "html"nulltrue);
  312.                 echo "?s=";
  313.                 echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'37$this->source); })()), "html"nulltrue);
  314.                 echo "\"
  315. \t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
  316. \t\t\t\t\t";
  317.             }
  318.             // line 40
  319.             echo "\t\t\t\t</div>
  320. \t\t\t</div>
  321. \t\t</div>
  322. \t";
  323.         }
  324.         // line 44
  325.         echo "\t
  326. \t<h1 class=\"mb-3\">Search Results</h1>
  327. \t<hr />
  328. \t";
  329.         // line 47
  330.         if (((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'47$this->source); })()) == 0)) {
  331.             // line 48
  332.             echo "\t\t<h6>No results found</h6>
  333. \t";
  334.         }
  335.         // line 50
  336.         echo "\t";
  337.         $context['_parent'] = $context;
  338.         $context['_seq'] = twig_ensure_traversable((isset($context["results"]) || array_key_exists("results"$context) ? $context["results"] : (function () { throw new RuntimeError('Variable "results" does not exist.'50$this->source); })()));
  339.         foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
  340.             // line 51
  341.             echo "\t\t<div class=\"row mb-3\">
  342. \t\t\t";
  343.             // line 52
  344.             if (twig_get_attribute($this->env$this->source$context["result"], "getFeaturedImageTag", [], "method"falsefalsefalse52)) {
  345.                 // line 53
  346.                 echo "\t\t\t\t<div class=\"col-md-4\"> 
  347. \t\t\t\t\t";
  348.                 // line 54
  349.                 echo twig_get_attribute($this->env$this->source$context["result"], "getFeaturedImageTag", [""""], "method"falsefalsefalse54);
  350.                 echo "
  351. \t\t\t\t</div>
  352. \t\t\t\t<div class=\"col-md-8\">
  353. \t\t\t";
  354.             } else {
  355.                 // line 58
  356.                 echo "\t\t\t\t<div class=\"col-md-12\">
  357. \t\t\t";
  358.             }
  359.             // line 60
  360.             echo "\t\t\t
  361. \t\t\t\t<h3 class=\"\">
  362. \t\t\t\t\t<a href=\"";
  363.             // line 62
  364.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "getUrl", [], "method"falsefalsefalse62), "html"nulltrue);
  365.             echo "\">
  366. \t\t\t\t\t\t";
  367.             // line 63
  368.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "getTypeText", [], "method"falsefalsefalse63), "html"nulltrue);
  369.             echo ": ";
  370.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "getTitle", [], "method"falsefalsefalse63), "html"nulltrue);
  371.             echo "
  372. \t\t\t\t\t</a>
  373. \t\t\t\t</h3>
  374. \t\t\t\t<p class=\"post-byline\"><strong>
  375. \t\t\t\t\t";
  376.             // line 67
  377.             echo twig_escape_filter($this->env$this->extensions['App\Twig\RCSExtension']->rcsDateFormat(twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "getPublishedAt", [], "method"falsefalsefalse67))), "html"nulltrue);
  378.             echo "
  379. \t\t\t\t</strong></p>
  380. \t\t\t\t";
  381.             // line 69
  382.             if (twig_get_attribute($this->env$this->source$context["result"], "getIntroText", [], "method"falsefalsefalse69)) {
  383.                 // line 70
  384.                 echo "\t\t\t\t\t<div class=\"intro\">
  385. \t\t\t\t\t\t";
  386.                 // line 71
  387.                 echo twig_get_attribute($this->env$this->source$context["result"], "getIntroText", [], "method"falsefalsefalse71);
  388.                 echo "
  389. \t\t\t\t\t\t<strong><a href=\"";
  390.                 // line 72
  391.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["result"], "getUrl", [], "method"falsefalsefalse72), "html"nulltrue);
  392.                 echo "\">Read More ";
  393.                 echo "</a></strong>
  394. \t\t\t\t\t</div>
  395. \t\t\t\t";
  396.             }
  397.             // line 75
  398.             echo "\t\t\t\t
  399. \t\t\t</div>
  400. \t\t</div>
  401. \t\t<hr />
  402. \t";
  403.         }
  404.         $_parent $context['_parent'];
  405.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
  406.         $context array_intersect_key($context$_parent) + $_parent;
  407.         // line 80
  408.         echo "\t
  409. \t<div class=\"row\">
  410. \t\t<div class=\"col-md-12 mt-3\">
  411. \t\t\t";
  412.         // line 83
  413.         if ((isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'83$this->source); })())) {
  414.             // line 84
  415.             echo "\t\t\t\t<div class=\"paging float-right\">
  416. \t\t\t\t\t<div class=\"input-group\">
  417. \t\t\t\t\t\t<div class=\"input-group-prepend px-3\">
  418. \t\t\t\t\t\t\t<span>
  419. \t\t\t\t\t\t\tShowing: 
  420. \t\t\t\t\t\t\t";
  421.             // line 89
  422.             echo twig_escape_filter($this->env, ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'89$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'89$this->source); })())) + 1), "html"nulltrue);
  423.             echo " - 
  424. \t\t\t\t\t\t
  425. \t\t\t\t\t\t\t";
  426.             // line 91
  427.             if ((((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'91$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'91$this->source); })())) + (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'91$this->source); })())) <= (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'91$this->source); })()))) {
  428.                 // line 92
  429.                 echo "\t\t\t\t\t\t\t\t";
  430.                 echo twig_escape_filter($this->env, ((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'92$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'92$this->source); })())) + (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'92$this->source); })())), "html"nulltrue);
  431.                 echo "
  432. \t\t\t\t\t\t\t";
  433.             } else {
  434.                 // line 94
  435.                 echo "\t\t\t\t\t\t\t\t";
  436.                 echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'94$this->source); })()), "html"nulltrue);
  437.                 echo "
  438. \t\t\t\t\t\t\t";
  439.             }
  440.             // line 96
  441.             echo "\t\t\t\t\t\t\t
  442. \t\t\t\t\t\t\tof 
  443. \t\t\t\t\t\t\t
  444. \t\t\t\t\t\t\t";
  445.             // line 99
  446.             echo twig_escape_filter($this->env, (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'99$this->source); })()), "html"nulltrue);
  447.             echo "
  448. \t\t\t\t\t\t\t</span>
  449. \t\t\t\t\t\t</div>
  450. \t\t\t\t\t\t<div class=\"button-group input-group-append\">
  451. \t\t\t\t\t\t\t";
  452.             // line 103
  453.             if (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'103$this->source); })()) - 1)) {
  454.                 // line 104
  455.                 echo "\t\t\t\t\t\t\t<a 
  456. \t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  457. \t\t\t\t\t\t\t\ttype=\"submit\"
  458. \t\t\t\t\t\t\t\thref=\"/search/";
  459.                 // line 107
  460.                 echo twig_escape_filter($this->env, ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'107$this->source); })()) - 1), "html"nulltrue);
  461.                 echo "?s=";
  462.                 echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'107$this->source); })()), "html"nulltrue);
  463.                 echo "\"
  464. \t\t\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
  465. \t\t\t\t\t\t\t";
  466.             }
  467.             // line 110
  468.             echo "\t\t\t\t\t\t\t";
  469.             if ((((((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'110$this->source); })()) - 1) * (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'110$this->source); })())) + (isset($context["limit"]) || array_key_exists("limit"$context) ? $context["limit"] : (function () { throw new RuntimeError('Variable "limit" does not exist.'110$this->source); })())) < (isset($context["total"]) || array_key_exists("total"$context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.'110$this->source); })()))) {
  470.                 // line 111
  471.                 echo "\t\t\t\t\t\t\t<a 
  472. \t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  473. \t\t\t\t\t\t\t\ttype=\"submit\"
  474. \t\t\t\t\t\t\t\thref=\"/search/";
  475.                 // line 114
  476.                 echo twig_escape_filter($this->env, ((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'114$this->source); })()) + 1), "html"nulltrue);
  477.                 echo "?s=";
  478.                 echo twig_escape_filter($this->env, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'114$this->source); })()), "html"nulltrue);
  479.                 echo "\"
  480. \t\t\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
  481. \t\t\t\t\t\t\t";
  482.             }
  483.             // line 117
  484.             echo "\t\t\t\t\t\t</div>
  485. \t\t\t\t\t</div>
  486. \t\t\t\t</div>
  487. \t\t\t";
  488.         }
  489.         // line 121
  490.         echo "\t\t</div>
  491. \t</div>
  492. ";
  493.         
  494.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  495.         
  496.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  497.     }
  498.     // line 124
  499.     public function block_sidebar($context, array $blocks = [])
  500.     {
  501.         $macros $this->macros;
  502.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  503.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  504.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  505.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  506.         // line 125
  507.         echo "\t";
  508.         $this->loadTemplate("includes/sidebar.html.twig""content/search.html.twig"125)->display($context);
  509.         
  510.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  511.         
  512.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  513.     }
  514.     public function getTemplateName()
  515.     {
  516.         return "content/search.html.twig";
  517.     }
  518.     public function isTraitable()
  519.     {
  520.         return false;
  521.     }
  522.     public function getDebugInfo()
  523.     {
  524.         return array (  548 => 125,  538 => 124,  526 => 121,  520 => 117,  512 => 114,  507 => 111,  504 => 110,  496 => 107,  491 => 104,  489 => 103,  482 => 99,  477 => 96,  471 => 94,  465 => 92,  463 => 91,  458 => 89,  451 => 84,  449 => 83,  444 => 80,  434 => 75,  427 => 72,  423 => 71,  420 => 70,  418 => 69,  413 => 67,  404 => 63,  400 => 62,  396 => 60,  392 => 58,  385 => 54,  382 => 53,  380 => 52,  377 => 51,  372 => 50,  368 => 48,  366 => 47,  361 => 44,  355 => 40,  347 => 37,  342 => 34,  339 => 33,  331 => 30,  326 => 27,  324 => 26,  317 => 22,  312 => 19,  306 => 17,  300 => 15,  298 => 14,  293 => 12,  286 => 7,  283 => 6,  273 => 5,  71 => 4,  68 => 3,  58 => 2,  35 => 1,);
  525.     }
  526.     public function getSourceContext()
  527.     {
  528.         return new Source("{% extends \"base.html.twig\" %}
  529. {% block body %}
  530. {% embed \"1-col-sidebar.html.twig\" %}
  531. {% block column %}
  532. \t{% if total %}
  533. \t\t<div class=\"paging float-right\">
  534. \t\t\t<div class=\"input-group\">
  535. \t\t\t\t<div class=\"input-group-prepend px-3\">
  536. \t\t\t\t\t<span>
  537. \t\t\t\t\tShowing: 
  538. \t\t\t\t\t{{ (page-1) * limit + 1 }} - 
  539. \t\t\t\t
  540. \t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
  541. \t\t\t\t\t\t{{ (page-1) * limit + limit }}
  542. \t\t\t\t\t{% else %}
  543. \t\t\t\t\t\t{{ total }}
  544. \t\t\t\t\t{% endif %}
  545. \t\t\t\t\t
  546. \t\t\t\t\tof 
  547. \t\t\t\t\t
  548. \t\t\t\t\t{{ total }}
  549. \t\t\t\t\t</span>
  550. \t\t\t\t</div>
  551. \t\t\t\t<div class=\"button-group input-group-append\">
  552. \t\t\t\t\t{% if ((page-1)) %}
  553. \t\t\t\t\t<a 
  554. \t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  555. \t\t\t\t\t\ttype=\"submit\"
  556. \t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
  557. \t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
  558. \t\t\t\t\t{% endif %}
  559. \t\t\t\t\t{% if (page-1) * limit + limit < total %}
  560. \t\t\t\t\t<a 
  561. \t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  562. \t\t\t\t\t\ttype=\"submit\"
  563. \t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
  564. \t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
  565. \t\t\t\t\t{% endif %}
  566. \t\t\t\t</div>
  567. \t\t\t</div>
  568. \t\t</div>
  569. \t{% endif %}
  570. \t
  571. \t<h1 class=\"mb-3\">Search Results</h1>
  572. \t<hr />
  573. \t{% if total == 0 %}
  574. \t\t<h6>No results found</h6>
  575. \t{% endif %}
  576. \t{% for result in results %}
  577. \t\t<div class=\"row mb-3\">
  578. \t\t\t{% if result.getFeaturedImageTag() %}
  579. \t\t\t\t<div class=\"col-md-4\"> 
  580. \t\t\t\t\t{{ result.getFeaturedImageTag(\"\",\"\")|raw }}
  581. \t\t\t\t</div>
  582. \t\t\t\t<div class=\"col-md-8\">
  583. \t\t\t{% else %}
  584. \t\t\t\t<div class=\"col-md-12\">
  585. \t\t\t{% endif %}
  586. \t\t\t
  587. \t\t\t\t<h3 class=\"\">
  588. \t\t\t\t\t<a href=\"{{ result.getUrl() }}\">
  589. \t\t\t\t\t\t{{ result.getTypeText() }}: {{ result.getTitle() }}
  590. \t\t\t\t\t</a>
  591. \t\t\t\t</h3>
  592. \t\t\t\t<p class=\"post-byline\"><strong>
  593. \t\t\t\t\t{{ result.getPublishedAt() | date | rcsDateFormat }}
  594. \t\t\t\t</strong></p>
  595. \t\t\t\t{% if result.getIntroText() %}
  596. \t\t\t\t\t<div class=\"intro\">
  597. \t\t\t\t\t\t{{ result.getIntroText()|raw }}
  598. \t\t\t\t\t\t<strong><a href=\"{{ result.getUrl() }}\">Read More {#<i class=\"fa fa-angle-double-right\"></i>#}</a></strong>
  599. \t\t\t\t\t</div>
  600. \t\t\t\t{% endif %}
  601. \t\t\t\t
  602. \t\t\t</div>
  603. \t\t</div>
  604. \t\t<hr />
  605. \t{% endfor %}
  606. \t
  607. \t<div class=\"row\">
  608. \t\t<div class=\"col-md-12 mt-3\">
  609. \t\t\t{% if total %}
  610. \t\t\t\t<div class=\"paging float-right\">
  611. \t\t\t\t\t<div class=\"input-group\">
  612. \t\t\t\t\t\t<div class=\"input-group-prepend px-3\">
  613. \t\t\t\t\t\t\t<span>
  614. \t\t\t\t\t\t\tShowing: 
  615. \t\t\t\t\t\t\t{{ (page-1) * limit + 1 }} - 
  616. \t\t\t\t\t\t
  617. \t\t\t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
  618. \t\t\t\t\t\t\t\t{{ (page-1) * limit + limit }}
  619. \t\t\t\t\t\t\t{% else %}
  620. \t\t\t\t\t\t\t\t{{ total }}
  621. \t\t\t\t\t\t\t{% endif %}
  622. \t\t\t\t\t\t\t
  623. \t\t\t\t\t\t\tof 
  624. \t\t\t\t\t\t\t
  625. \t\t\t\t\t\t\t{{ total }}
  626. \t\t\t\t\t\t\t</span>
  627. \t\t\t\t\t\t</div>
  628. \t\t\t\t\t\t<div class=\"button-group input-group-append\">
  629. \t\t\t\t\t\t\t{% if ((page-1)) %}
  630. \t\t\t\t\t\t\t<a 
  631. \t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  632. \t\t\t\t\t\t\t\ttype=\"submit\"
  633. \t\t\t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
  634. \t\t\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
  635. \t\t\t\t\t\t\t{% endif %}
  636. \t\t\t\t\t\t\t{% if (page-1) * limit + limit < total %}
  637. \t\t\t\t\t\t\t<a 
  638. \t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
  639. \t\t\t\t\t\t\t\ttype=\"submit\"
  640. \t\t\t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
  641. \t\t\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
  642. \t\t\t\t\t\t\t{% endif %}
  643. \t\t\t\t\t\t</div>
  644. \t\t\t\t\t</div>
  645. \t\t\t\t</div>
  646. \t\t\t{% endif %}
  647. \t\t</div>
  648. \t</div>
  649. {% endblock %}
  650. {% block sidebar %}
  651. \t{% include \"includes/sidebar.html.twig\" %}
  652. {% endblock %}
  653. {% endembed %}
  654. {% endblock %}""content/search.html.twig""/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/search.html.twig");
  655.     }
  656. }