<?php
use Twig\Environment;
use function Shopware\Core\Framework\Adapter\Twig\sw_get_attribute;
use function Shopware\Core\Framework\Adapter\Twig\sw_escape_filter;
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;
/* @SwagCmsExtensions/storefront/page/search/index.html.twig */
class __TwigTemplate_a601d72dbb513696449a618d7da35daff22f9ad1d3c0caa4a70fcc683083ad73 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_search' => [$this, 'block_page_search'],
'page_search_quickview_modal' => [$this, 'block_page_search_quickview_modal'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "@MoorlFoundation/storefront/page/search/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagCmsExtensions/storefront/page/search/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SwagCmsExtensions/storefront/page/search/index.html.twig"));
$this->parent = $this->loadTemplate("@MoorlFoundation/storefront/page/search/index.html.twig", "@SwagCmsExtensions/storefront/page/search/index.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_page_search($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_search"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_search"));
// line 4
echo " ";
ob_start();
// line 5
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@SwagCmsExtensions/storefront/page/search/index.html.twig", 5);
})())->display(twig_array_merge($context, ["color" => "white", "name" => "arrow-head-left"]));
// line 6
echo " ";
$context["arrowHeadLeft"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 7
echo " ";
ob_start();
// line 8
echo " ";
((function () use ($context, $blocks) {
$finder = $this->env->getExtension('Shopware\Core\Framework\Adapter\Twig\Extension\NodeExtension')->getFinder();
$includeTemplate = $finder->find("@Storefront/storefront/utilities/icon.html.twig");
return $this->loadTemplate($includeTemplate ?? null, "@SwagCmsExtensions/storefront/page/search/index.html.twig", 8);
})())->display(twig_array_merge($context, ["color" => "white", "name" => "arrow-head-right"]));
// line 9
echo " ";
$context["arrowHeadRight"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 10
echo "
";
// line 11
$context["quickviewSearchMode"] = $this->extensions['Shopware\Storefront\Framework\Twig\Extension\ConfigExtension']->config($context, "SwagCmsExtensions.config.enableSearchQuickview");
// line 12
echo " ";
$context["quickviewOptions"] = ["isSearchPage" => // line 13
($context["quickviewSearchMode"] ?? null), "arrowHeadLeft" => // line 14
($context["arrowHeadLeft"] ?? null), "arrowHeadRight" => // line 15
($context["arrowHeadRight"] ?? null)];
// line 17
echo "
";
// line 18
$this->displayBlock('page_search_quickview_modal', $context, $blocks);
// line 26
echo "
";
// line 27
$this->displayParentBlock("page_search", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_page_search_quickview_modal($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_search_quickview_modal"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_search_quickview_modal"));
// line 19
echo " ";
if (($context["quickviewSearchMode"] ?? null)) {
// line 20
echo " <div class=\"d-none\"
data-swag-cms-extensions-quickview=\"true\"
data-swag-cms-extensions-quickview-options=\"";
// line 22
echo sw_escape_filter($this->env, call_user_func_array($this->env->getFilter('json_encode')->getCallable(), [($context["quickviewOptions"] ?? null)]), "html", null, true);
echo "\">
</div>
";
}
// line 25
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@SwagCmsExtensions/storefront/page/search/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 153 => 25, 147 => 22, 143 => 20, 140 => 19, 130 => 18, 118 => 27, 115 => 26, 113 => 18, 110 => 17, 108 => 15, 107 => 14, 106 => 13, 104 => 12, 102 => 11, 99 => 10, 96 => 9, 87 => 8, 84 => 7, 81 => 6, 72 => 5, 69 => 4, 59 => 3, 36 => 2,);
}
public function getSourceContext()
{
return new Source("{% sw_extends '@Storefront/storefront/page/search/index.html.twig' %}
{% block page_search %}
{% set arrowHeadLeft %}
{% sw_icon 'arrow-head-left' style { 'color': 'white' } %}
{% endset %}
{% set arrowHeadRight %}
{% sw_icon 'arrow-head-right' style { 'color': 'white' } %}
{% endset %}
{% set quickviewSearchMode = config('SwagCmsExtensions.config.enableSearchQuickview') %}
{% set quickviewOptions = {
isSearchPage: quickviewSearchMode,
arrowHeadLeft: arrowHeadLeft,
arrowHeadRight: arrowHeadRight
} %}
{% block page_search_quickview_modal %}
{% if quickviewSearchMode %}
<div class=\"d-none\"
data-swag-cms-extensions-quickview=\"true\"
data-swag-cms-extensions-quickview-options=\"{{ quickviewOptions|json_encode }}\">
</div>
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}", "@SwagCmsExtensions/storefront/page/search/index.html.twig", "/srv/users/liamoriasw6/apps/liamoriasw6/custom/plugins/SwagCmsExtensions/src/Resources/views/storefront/page/search/index.html.twig");
}
}