Current File : //var/www/prestashop/var/cache/prod/twig/1a/1a264c63d2baf992a163d15dd33f4a1b.php |
<?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/Common/Grid/Columns/Content/preview.html.twig */
class __TwigTemplate_bf1c111287a1ff1f58073a98e5cd349f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 25
echo "
<span
class=\"preview-toggle\"
";
// line 28
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "options", [], "any", false, true, false, 28), "preview_data_route", [], "any", true, true, false, 28)) {
// line 29
echo " ";
$context["params"] = [];
// line 30
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "options", [], "any", false, true, false, 30), "preview_route_params", [], "any", true, true, false, 30)) {
// line 31
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "options", [], "any", false, false, false, 31), "preview_route_params", [], "any", false, false, false, 31));
foreach ($context['_seq'] as $context["param_name"] => $context["record_field"]) {
// line 32
echo " ";
$context["params"] = twig_array_merge(($context["params"] ?? null), [$context["param_name"] => (($__internal_compile_0 = ($context["record"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[$context["record_field"]] ?? null) : null)]);
// line 33
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['param_name'], $context['record_field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " ";
}
// line 35
echo " data-preview-data-url=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "options", [], "any", false, false, false, 35), "preview_data_route", [], "any", false, false, false, 35), ($context["params"] ?? null)), "html", null, true);
echo "\"
";
}
// line 37
echo ">
<i class=\"text-primary material-icons js-expand d-none\">";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "options", [], "any", false, false, false, 38), "icon_expand", [], "any", false, false, false, 38), "html", null, true);
echo "</i>
<i class=\"text-primary material-icons js-collapse d-none\">";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["column"] ?? null), "options", [], "any", false, false, false, 39), "icon_collapse", [], "any", false, false, false, 39), "html", null, true);
echo "</i>
</span>
";
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Common/Grid/Columns/Content/preview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 80 => 39, 76 => 38, 73 => 37, 67 => 35, 64 => 34, 58 => 33, 55 => 32, 50 => 31, 47 => 30, 44 => 29, 42 => 28, 37 => 25,);
}
public function getSourceContext()
{
return new Source("", "@PrestaShop/Admin/Common/Grid/Columns/Content/preview.html.twig", "/var/www/prestashop/src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Columns/Content/preview.html.twig");
}
}