<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* content/search.html.twig */
class __TwigTemplate_b51392a90ec439873668755a98fdcd5b extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/search.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/search.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "content/search.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 3
echo "
";
// line 4
$this->loadTemplate("content/search.html.twig", "content/search.html.twig", 4, "1423022510")->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/search.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 71 => 4, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
{% embed \"1-col-sidebar.html.twig\" %}
{% block column %}
\t{% if total %}
\t\t<div class=\"paging float-right\">
\t\t\t<div class=\"input-group\">
\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t<span>
\t\t\t\t\tShowing:
\t\t\t\t\t{{ (page-1) * limit + 1 }} -
\t\t\t\t
\t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
\t\t\t\t\t\t{{ (page-1) * limit + limit }}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{{ total }}
\t\t\t\t\t{% endif %}
\t\t\t\t\t
\t\t\t\t\tof
\t\t\t\t\t
\t\t\t\t\t{{ total }}
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"button-group input-group-append\">
\t\t\t\t\t{% if ((page-1)) %}
\t\t\t\t\t<a
\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if (page-1) * limit + limit < total %}
\t\t\t\t\t<a
\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t{% endif %}
\t
\t<h1 class=\"mb-3\">Search Results</h1>
\t<hr />
\t{% if total == 0 %}
\t\t<h6>No results found</h6>
\t{% endif %}
\t{% for result in results %}
\t\t<div class=\"row mb-3\">
\t\t\t{% if result.getFeaturedImageTag() %}
\t\t\t\t<div class=\"col-md-4\">
\t\t\t\t\t{{ result.getFeaturedImageTag(\"\",\"\")|raw }}
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-8\">
\t\t\t{% else %}
\t\t\t\t<div class=\"col-md-12\">
\t\t\t{% endif %}
\t\t\t
\t\t\t\t<h3 class=\"\">
\t\t\t\t\t<a href=\"{{ result.getUrl() }}\">
\t\t\t\t\t\t{{ result.getTypeText() }}: {{ result.getTitle() }}
\t\t\t\t\t</a>
\t\t\t\t</h3>
\t\t\t\t<p class=\"post-byline\"><strong>
\t\t\t\t\t{{ result.getPublishedAt() | date | rcsDateFormat }}
\t\t\t\t</strong></p>
\t\t\t\t{% if result.getIntroText() %}
\t\t\t\t\t<div class=\"intro\">
\t\t\t\t\t\t{{ result.getIntroText()|raw }}
\t\t\t\t\t\t<strong><a href=\"{{ result.getUrl() }}\">Read More {#<i class=\"fa fa-angle-double-right\"></i>#}</a></strong>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t\t<hr />
\t{% endfor %}
\t
\t<div class=\"row\">
\t\t<div class=\"col-md-12 mt-3\">
\t\t\t{% if total %}
\t\t\t\t<div class=\"paging float-right\">
\t\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tShowing:
\t\t\t\t\t\t\t{{ (page-1) * limit + 1 }} -
\t\t\t\t\t\t
\t\t\t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
\t\t\t\t\t\t\t\t{{ (page-1) * limit + limit }}
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{{ total }}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tof
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{{ total }}
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"button-group input-group-append\">
\t\t\t\t\t\t\t{% if ((page-1)) %}
\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
\t\t\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% if (page-1) * limit + limit < total %}
\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
\t\t\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
\t</div>
{% endblock %}
{% block sidebar %}
\t{% include \"includes/sidebar.html.twig\" %}
{% endblock %}
{% endembed %}
{% endblock %}", "content/search.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/search.html.twig");
}
}
/* content/search.html.twig */
class __TwigTemplate_b51392a90ec439873668755a98fdcd5b___1423022510 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'column' => [$this, 'block_column'],
'sidebar' => [$this, 'block_sidebar'],
];
}
protected function doGetParent(array $context)
{
return "1-col-sidebar.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/search.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/search.html.twig"));
$this->parent = $this->loadTemplate("1-col-sidebar.html.twig", "content/search.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
public function block_column($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "column"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "column"));
// line 6
echo "\t";
if ((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 6, $this->source); })())) {
// line 7
echo "\t\t<div class=\"paging float-right\">
\t\t\t<div class=\"input-group\">
\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t<span>
\t\t\t\t\tShowing:
\t\t\t\t\t";
// line 12
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", null, true);
echo " -
\t\t\t\t
\t\t\t\t\t";
// line 14
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); })()))) {
// line 15
echo "\t\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t\t";
} else {
// line 17
echo "\t\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t\t";
}
// line 19
echo "\t\t\t\t\t
\t\t\t\t\tof
\t\t\t\t\t
\t\t\t\t\t";
// line 22
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", null, true);
echo "
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"button-group input-group-append\">
\t\t\t\t\t";
// line 26
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 26, $this->source); })()) - 1)) {
// line 27
echo "\t\t\t\t\t<a
\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\thref=\"/search/";
// line 30
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", null, true);
echo "?s=";
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", null, true);
echo "\"
\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
\t\t\t\t\t";
}
// line 33
echo "\t\t\t\t\t";
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); })()))) {
// line 34
echo "\t\t\t\t\t<a
\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\thref=\"/search/";
// line 37
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", null, true);
echo "?s=";
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", null, true);
echo "\"
\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
\t\t\t\t\t";
}
// line 40
echo "\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t";
}
// line 44
echo "\t
\t<h1 class=\"mb-3\">Search Results</h1>
\t<hr />
\t";
// line 47
if (((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 47, $this->source); })()) == 0)) {
// line 48
echo "\t\t<h6>No results found</h6>
\t";
}
// line 50
echo "\t";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["result"]) {
// line 51
echo "\t\t<div class=\"row mb-3\">
\t\t\t";
// line 52
if (twig_get_attribute($this->env, $this->source, $context["result"], "getFeaturedImageTag", [], "method", false, false, false, 52)) {
// line 53
echo "\t\t\t\t<div class=\"col-md-4\">
\t\t\t\t\t";
// line 54
echo twig_get_attribute($this->env, $this->source, $context["result"], "getFeaturedImageTag", ["", ""], "method", false, false, false, 54);
echo "
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-8\">
\t\t\t";
} else {
// line 58
echo "\t\t\t\t<div class=\"col-md-12\">
\t\t\t";
}
// line 60
echo "\t\t\t
\t\t\t\t<h3 class=\"\">
\t\t\t\t\t<a href=\"";
// line 62
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["result"], "getUrl", [], "method", false, false, false, 62), "html", null, true);
echo "\">
\t\t\t\t\t\t";
// line 63
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["result"], "getTypeText", [], "method", false, false, false, 63), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["result"], "getTitle", [], "method", false, false, false, 63), "html", null, true);
echo "
\t\t\t\t\t</a>
\t\t\t\t</h3>
\t\t\t\t<p class=\"post-byline\"><strong>
\t\t\t\t\t";
// line 67
echo twig_escape_filter($this->env, $this->extensions['App\Twig\RCSExtension']->rcsDateFormat(twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["result"], "getPublishedAt", [], "method", false, false, false, 67))), "html", null, true);
echo "
\t\t\t\t</strong></p>
\t\t\t\t";
// line 69
if (twig_get_attribute($this->env, $this->source, $context["result"], "getIntroText", [], "method", false, false, false, 69)) {
// line 70
echo "\t\t\t\t\t<div class=\"intro\">
\t\t\t\t\t\t";
// line 71
echo twig_get_attribute($this->env, $this->source, $context["result"], "getIntroText", [], "method", false, false, false, 71);
echo "
\t\t\t\t\t\t<strong><a href=\"";
// line 72
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["result"], "getUrl", [], "method", false, false, false, 72), "html", null, true);
echo "\">Read More ";
echo "</a></strong>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 75
echo "\t\t\t\t
\t\t\t</div>
\t\t</div>
\t\t<hr />
\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['result'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
echo "\t
\t<div class=\"row\">
\t\t<div class=\"col-md-12 mt-3\">
\t\t\t";
// line 83
if ((isset($context["total"]) || array_key_exists("total", $context) ? $context["total"] : (function () { throw new RuntimeError('Variable "total" does not exist.', 83, $this->source); })())) {
// line 84
echo "\t\t\t\t<div class=\"paging float-right\">
\t\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tShowing:
\t\t\t\t\t\t\t";
// line 89
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", null, true);
echo " -
\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 91
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); })()))) {
// line 92
echo "\t\t\t\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t\t\t\t";
} else {
// line 94
echo "\t\t\t\t\t\t\t\t";
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", null, true);
echo "
\t\t\t\t\t\t\t";
}
// line 96
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t\tof
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 99
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", null, true);
echo "
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"button-group input-group-append\">
\t\t\t\t\t\t\t";
// line 103
if (((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 103, $this->source); })()) - 1)) {
// line 104
echo "\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\t\t\thref=\"/search/";
// line 107
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", null, true);
echo "?s=";
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", null, true);
echo "\"
\t\t\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
\t\t\t\t\t\t\t";
}
// line 110
echo "\t\t\t\t\t\t\t";
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); })()))) {
// line 111
echo "\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\t\t\thref=\"/search/";
// line 114
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", null, true);
echo "?s=";
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", null, true);
echo "\"
\t\t\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
\t\t\t\t\t\t\t";
}
// line 117
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 121
echo "\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 124
public function block_sidebar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar"));
// line 125
echo "\t";
$this->loadTemplate("includes/sidebar.html.twig", "content/search.html.twig", 125)->display($context);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "content/search.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% block body %}
{% embed \"1-col-sidebar.html.twig\" %}
{% block column %}
\t{% if total %}
\t\t<div class=\"paging float-right\">
\t\t\t<div class=\"input-group\">
\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t<span>
\t\t\t\t\tShowing:
\t\t\t\t\t{{ (page-1) * limit + 1 }} -
\t\t\t\t
\t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
\t\t\t\t\t\t{{ (page-1) * limit + limit }}
\t\t\t\t\t{% else %}
\t\t\t\t\t\t{{ total }}
\t\t\t\t\t{% endif %}
\t\t\t\t\t
\t\t\t\t\tof
\t\t\t\t\t
\t\t\t\t\t{{ total }}
\t\t\t\t\t</span>
\t\t\t\t</div>
\t\t\t\t<div class=\"button-group input-group-append\">
\t\t\t\t\t{% if ((page-1)) %}
\t\t\t\t\t<a
\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if (page-1) * limit + limit < total %}
\t\t\t\t\t<a
\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t{% endif %}
\t
\t<h1 class=\"mb-3\">Search Results</h1>
\t<hr />
\t{% if total == 0 %}
\t\t<h6>No results found</h6>
\t{% endif %}
\t{% for result in results %}
\t\t<div class=\"row mb-3\">
\t\t\t{% if result.getFeaturedImageTag() %}
\t\t\t\t<div class=\"col-md-4\">
\t\t\t\t\t{{ result.getFeaturedImageTag(\"\",\"\")|raw }}
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-8\">
\t\t\t{% else %}
\t\t\t\t<div class=\"col-md-12\">
\t\t\t{% endif %}
\t\t\t
\t\t\t\t<h3 class=\"\">
\t\t\t\t\t<a href=\"{{ result.getUrl() }}\">
\t\t\t\t\t\t{{ result.getTypeText() }}: {{ result.getTitle() }}
\t\t\t\t\t</a>
\t\t\t\t</h3>
\t\t\t\t<p class=\"post-byline\"><strong>
\t\t\t\t\t{{ result.getPublishedAt() | date | rcsDateFormat }}
\t\t\t\t</strong></p>
\t\t\t\t{% if result.getIntroText() %}
\t\t\t\t\t<div class=\"intro\">
\t\t\t\t\t\t{{ result.getIntroText()|raw }}
\t\t\t\t\t\t<strong><a href=\"{{ result.getUrl() }}\">Read More {#<i class=\"fa fa-angle-double-right\"></i>#}</a></strong>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t
\t\t\t</div>
\t\t</div>
\t\t<hr />
\t{% endfor %}
\t
\t<div class=\"row\">
\t\t<div class=\"col-md-12 mt-3\">
\t\t\t{% if total %}
\t\t\t\t<div class=\"paging float-right\">
\t\t\t\t\t<div class=\"input-group\">
\t\t\t\t\t\t<div class=\"input-group-prepend px-3\">
\t\t\t\t\t\t\t<span>
\t\t\t\t\t\t\tShowing:
\t\t\t\t\t\t\t{{ (page-1) * limit + 1 }} -
\t\t\t\t\t\t
\t\t\t\t\t\t\t{% if ((page-1) * limit + limit <= total) %}
\t\t\t\t\t\t\t\t{{ (page-1) * limit + limit }}
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t{{ total }}
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t
\t\t\t\t\t\t\tof
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{{ total }}
\t\t\t\t\t\t\t</span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"button-group input-group-append\">
\t\t\t\t\t\t\t{% if ((page-1)) %}
\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\t\t\thref=\"/search/{{ page-1 }}?s={{ search }}\"
\t\t\t\t\t\t\t><i class=\"fa fa-angle-left\"></i></a>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t{% if (page-1) * limit + limit < total %}
\t\t\t\t\t\t\t<a
\t\t\t\t\t\t\t\tclass=\"btn btn-secondary paging\"
\t\t\t\t\t\t\t\ttype=\"submit\"
\t\t\t\t\t\t\t\thref=\"/search/{{ page+1 }}?s={{ search }}\"
\t\t\t\t\t\t\t><i class=\"fa fa-angle-right\"></i></a>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
\t</div>
{% endblock %}
{% block sidebar %}
\t{% include \"includes/sidebar.html.twig\" %}
{% endblock %}
{% endembed %}
{% endblock %}", "content/search.html.twig", "/var/www/vhosts/rooferscoffeeshop.com/staging.rooferscoffeeshop.com/rcs-website/templates/content/search.html.twig");
}
}