Current path: home/webdevt/www/schtroumpf.fr/var/cache/dev/twig/10/
?? Go up: /home/webdevt/www/schtroumpf.fr/var/cache/dev/twig
<?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;
/* @PrestaShop/Admin/Sell/Catalog/Product/FormTheme/header.html.twig */
class __TwigTemplate_e6a070588d2d05b479abc0e5b54bed116e8ef920e0a648aed1178d4274e615e1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
// line 26
$_trait_0 = $this->loadTemplate("@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/product.html.twig", "@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/header.html.twig", 26);
if (!$_trait_0->isTraitable()) {
throw new RuntimeError('Template "'."@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/product.html.twig".'" cannot be used as a trait.', 26, $this->source);
}
$_trait_0_blocks = $_trait_0->getBlocks();
if (!isset($_trait_0_blocks["product_type_row"])) {
throw new RuntimeError('Block "product_type_row" is not defined in trait "@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/product.html.twig".', 26, $this->source);
}
$_trait_0_blocks["base_product_type_row"] = $_trait_0_blocks["product_type_row"]; unset($_trait_0_blocks["product_type_row"]);
$this->traits = $_trait_0_blocks;
$this->blocks = array_merge(
$this->traits,
[
'product_type_row' => [$this, 'block_product_type_row'],
]
);
}
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", "@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/header.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/header.html.twig"));
// line 25
echo "
";
// line 27
echo "
";
// line 28
$this->displayBlock('product_type_row', $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function block_product_type_row($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", "product_type_row"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "product_type_row"));
// line 29
echo " <div class=\"product-type-preview\">
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["choices"]) || array_key_exists("choices", $context) ? $context["choices"] : (function () { throw new RuntimeError('Variable "choices" does not exist.', 30, $this->source); })()));
foreach ($context['_seq'] as $context["group_label"] => $context["choice"]) {
// line 31
echo " ";
if (Symfony\Bridge\Twig\Extension\twig_is_selected_choice($context["choice"], (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 31, $this->source); })()))) {
// line 32
echo " <i class=\"material-icons product-type-preview-icon\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["choice"], "attr", [], "any", false, false, false, 32), "icon", [], "array", false, false, false, 32), "html", null, true);
echo "</i>
<span class=\"product-type-preview-label\">";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["choice"], "label", [], "any", false, false, false, 33), "html", null, true);
echo "</span>
";
}
// line 35
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['group_label'], $context['choice'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
echo " <div id=\"product-type-selector-modal-content\" class=\"d-none\">
";
// line 37
$this->displayBlock("base_product_type_row", $context, $blocks);
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/header.html.twig";
}
public function getDebugInfo()
{
return array ( 116 => 37, 113 => 36, 107 => 35, 102 => 33, 97 => 32, 94 => 31, 90 => 30, 87 => 29, 68 => 28, 65 => 27, 62 => 25, 30 => 26,);
}
public function getSourceContext()
{
return new Source("{#**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*#}
{% use '@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/product.html.twig' with product_type_row as base_product_type_row %}
{% block product_type_row %}
<div class=\"product-type-preview\">
{% for group_label, choice in choices %}
{% if choice is selectedchoice(value) %}
<i class=\"material-icons product-type-preview-icon\">{{ choice.attr['icon'] }}</i>
<span class=\"product-type-preview-label\">{{ choice.label }}</span>
{% endif %}
{% endfor %}
<div id=\"product-type-selector-modal-content\" class=\"d-none\">
{{ block('base_product_type_row') }}
</div>
</div>
{% endblock %}
", "@PrestaShop/Admin/Sell/Catalog/Product/FormTheme/header.html.twig", "/home/webdevt/www/schtroumpf.fr/src/PrestaShopBundle/Resources/views/Admin/Sell/Catalog/Product/FormTheme/header.html.twig");
}
}