Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,187 @@
<?php
/* @PrestaShop/Admin/Product/Themes/categories_theme.html.twig */
class __TwigTemplate_af9c6b27fae83ec68d2168e4a909825b0866555b88577ee02f5bb801524bd3b4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
'choice_tree_widget' => array($this, 'block_choice_tree_widget'),
'choice_tree_item_widget' => array($this, 'block_choice_tree_item_widget'),
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 25
$this->displayBlock('choice_tree_widget', $context, $blocks);
// line 36
echo "
";
// line 37
$this->displayBlock('choice_tree_item_widget', $context, $blocks);
}
// line 25
public function block_choice_tree_widget($context, array $blocks = array())
{
// line 26
echo "<div ";
$this->displayBlock("widget_container_attributes", $context, $blocks);
echo ">
<ul class=\"category-tree\">";
// line 29
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["choices"] ?? null));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 30
echo " ";
$this->displayBlock("choice_tree_item_widget", $context, $blocks);
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo "</ul>
</div>";
}
// line 37
public function block_choice_tree_item_widget($context, array $blocks = array())
{
// line 38
echo "<li>
";
// line 39
$context["checked"] = ((($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", array(), "any", false, true), "submitted_values", array(), "any", true, true) && $this->getAttribute(($context["submitted_values"] ?? null), $this->getAttribute(($context["child"] ?? null), "id_category", array()), array(), "array", true, true))) ? ("checked=\"checked\"") : (""));
// line 40
echo "
<div class=\"radio\">
<label class=\"category-label\" for=\"form[";
// line 42
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", array()), "id", array()), "html", null, true);
echo "][tree]\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? null), "name", array()), "html", null, true);
echo "
<input
type=\"radio\"
name=\"form[";
// line 45
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", array()), "id", array()), "html", null, true);
echo "][tree]\"
value=\"";
// line 46
echo twig_escape_filter($this->env, $this->getAttribute(($context["child"] ?? null), "id_category", array()), "html", null, true);
echo "\" ";
echo twig_escape_filter($this->env, ($context["checked"] ?? null), "html", null, true);
echo "
class=\"category float-right\"
>
</label>
</div>
";
// line 52
if ($this->getAttribute(($context["child"] ?? null), "children", array(), "any", true, true)) {
// line 53
echo " <ul ";
if (($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", array()), "expanded", array()) == false)) {
echo "style=\"display: none\"";
}
echo ">
";
// line 54
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["child"] ?? null), "children", array()));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 55
echo " ";
$context["child"] = $context["item"];
// line 56
echo " ";
$this->displayBlock("choice_tree_item_widget", $context, $blocks);
echo "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 58
echo "</ul>
";
}
// line 60
echo " </li>";
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Product/Themes/categories_theme.html.twig";
}
public function getDebugInfo()
{
return array ( 162 => 60, 158 => 58, 141 => 56, 138 => 55, 121 => 54, 114 => 53, 112 => 52, 101 => 46, 97 => 45, 89 => 42, 85 => 40, 83 => 39, 80 => 38, 77 => 37, 72 => 32, 55 => 30, 38 => 29, 33 => 26, 30 => 25, 26 => 37, 23 => 36, 21 => 25,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("", "@PrestaShop/Admin/Product/Themes/categories_theme.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/Product/Themes/categories_theme.html.twig");
}
}