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,282 @@
<?php
/* @PrestaShop/Admin/Helpers/dropdown_menu.html.twig */
class __TwigTemplate_31934ff0dfa6cc132d2a1e79a0b75563b60035472c18f5da12687975d98ad873 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_b2d2ee19c8d10e622aaa21b976b87809d7df6c1b7ea2361e56fa35b72a92b8bb = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_b2d2ee19c8d10e622aaa21b976b87809d7df6c1b7ea2361e56fa35b72a92b8bb->enter($__internal_b2d2ee19c8d10e622aaa21b976b87809d7df6c1b7ea2361e56fa35b72a92b8bb_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Helpers/dropdown_menu.html.twig"));
$__internal_72192542932a189c08797ebd0067c766bb69550b4844f0305312635f19d91bb2 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_72192542932a189c08797ebd0067c766bb69550b4844f0305312635f19d91bb2->enter($__internal_72192542932a189c08797ebd0067c766bb69550b4844f0305312635f19d91bb2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/Helpers/dropdown_menu.html.twig"));
// line 25
$context["buttonType"] = ((array_key_exists("buttonType", $context)) ? (_twig_default_filter(($context["buttonType"] ?? $this->getContext($context, "buttonType")), "primary")) : ("primary"));
// line 26
$context["right"] = ((array_key_exists("right", $context)) ? (_twig_default_filter(($context["right"] ?? $this->getContext($context, "right")), false)) : (false));
// line 27
echo "
<div class=\"";
// line 28
echo twig_escape_filter($this->env, ((array_key_exists("div_style", $context)) ? (_twig_default_filter(($context["div_style"] ?? $this->getContext($context, "div_style")), "btn-group dropdown")) : ("btn-group dropdown")), "html", null, true);
echo "\">
";
// line 30
if (array_key_exists("default_item", $context)) {
// line 31
echo " <a
href=\"";
// line 32
echo twig_escape_filter($this->env, (($this->getAttribute(($context["default_item"] ?? null), "href", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default_item"] ?? null), "href", array()), "#")) : ("#")), "html", null, true);
echo "\"
title=\"";
// line 33
echo twig_escape_filter($this->env, (($this->getAttribute(($context["default_item"] ?? null), "title", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default_item"] ?? null), "title", array()), (($this->getAttribute(($context["default_item"] ?? null), "label", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default_item"] ?? null), "label", array()), "")) : ("")))) : ((($this->getAttribute(($context["default_item"] ?? null), "label", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default_item"] ?? null), "label", array()), "")) : ("")))), "html", null, true);
echo "\"
class=\"btn btn-";
// line 34
echo twig_escape_filter($this->env, ($context["buttonType"] ?? $this->getContext($context, "buttonType")), "html", null, true);
echo "\"
";
// line 35
if ((array_key_exists("disabled", $context) && (($context["disabled"] ?? $this->getContext($context, "disabled")) == true))) {
echo "disabled=\"disabled\"";
}
// line 36
echo " >
";
// line 37
if ($this->getAttribute(($context["default_item"] ?? $this->getContext($context, "default_item")), "icon", array())) {
// line 38
echo " <i class=\"material-icons\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["default_item"] ?? $this->getContext($context, "default_item")), "icon", array()), "html", null, true);
echo "</i>
";
}
// line 40
echo " ";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["default_item"] ?? null), "label", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["default_item"] ?? null), "label", array()), "")) : ("")), "html", null, true);
echo "
</a>
";
}
// line 43
echo "
<button
";
// line 45
if (($context["button_id"] ?? $this->getContext($context, "button_id"))) {
echo "id=\"";
echo twig_escape_filter($this->env, ($context["button_id"] ?? $this->getContext($context, "button_id")), "html", null, true);
echo "\"";
}
// line 46
echo " class=\"btn btn-";
echo twig_escape_filter($this->env, ($context["buttonType"] ?? $this->getContext($context, "buttonType")), "html", null, true);
echo " dropdown-toggle\"
";
// line 47
if ((array_key_exists("disabled", $context) && (($context["disabled"] ?? $this->getContext($context, "disabled")) == true))) {
echo "disabled=\"disabled\"";
}
// line 48
echo " data-toggle=\"dropdown\"
>
";
// line 50
echo twig_escape_filter($this->env, ((array_key_exists("menu_label", $context)) ? (_twig_default_filter(($context["menu_label"] ?? $this->getContext($context, "menu_label")), "")) : ("")), "html", null, true);
echo "
<i class=\"";
// line 51
echo twig_escape_filter($this->env, ((array_key_exists("menu_icon", $context)) ? (_twig_default_filter(($context["menu_icon"] ?? $this->getContext($context, "menu_icon")), "icon-caret-down")) : ("icon-caret-down")), "html", null, true);
echo "\"></i>
</button>
<div class=\"dropdown-menu";
// line 54
if (($context["right"] ?? $this->getContext($context, "right"))) {
echo " dropdown-menu-right";
}
echo "\">
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["items"] ?? $this->getContext($context, "items")));
foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
// line 56
echo " ";
if (($this->getAttribute($context["entry"], "divider", array(), "any", true, true) && ($this->getAttribute($context["entry"], "divider", array()) == true))) {
// line 57
echo " <div class=\"dropdown-divider\"></div>
";
} else {
// line 59
echo " <a
class=\"dropdown-item\" href=\"";
// line 60
echo twig_escape_filter($this->env, (($this->getAttribute($context["entry"], "href", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["entry"], "href", array()), "#")) : ("#")), "html", null, true);
echo "\"
";
// line 61
if ($this->getAttribute($context["entry"], "onclick", array(), "any", true, true)) {
echo "onclick=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "onclick", array()), "html", null, true);
echo "\"";
}
// line 62
echo " ";
if ($this->getAttribute($context["entry"], "target", array(), "any", true, true)) {
echo "target=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "target", array()), "html", null, true);
echo "\"";
}
// line 63
echo " >
";
// line 64
if ($this->getAttribute($context["entry"], "icon", array())) {
// line 65
echo " <i class=\"material-icons\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["entry"], "icon", array()), "html", null, true);
echo "</i>
";
}
// line 67
echo " ";
echo twig_escape_filter($this->env, (($this->getAttribute($context["entry"], "label", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["entry"], "label", array()), "")) : ("")), "html", null, true);
echo "
</a>
";
}
// line 70
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " </div>
</div>
";
$__internal_b2d2ee19c8d10e622aaa21b976b87809d7df6c1b7ea2361e56fa35b72a92b8bb->leave($__internal_b2d2ee19c8d10e622aaa21b976b87809d7df6c1b7ea2361e56fa35b72a92b8bb_prof);
$__internal_72192542932a189c08797ebd0067c766bb69550b4844f0305312635f19d91bb2->leave($__internal_72192542932a189c08797ebd0067c766bb69550b4844f0305312635f19d91bb2_prof);
}
public function getTemplateName()
{
return "@PrestaShop/Admin/Helpers/dropdown_menu.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 170 => 71, 164 => 70, 157 => 67, 151 => 65, 149 => 64, 146 => 63, 139 => 62, 133 => 61, 129 => 60, 126 => 59, 122 => 57, 119 => 56, 115 => 55, 109 => 54, 103 => 51, 99 => 50, 95 => 48, 91 => 47, 86 => 46, 80 => 45, 76 => 43, 69 => 40, 63 => 38, 61 => 37, 58 => 36, 54 => 35, 50 => 34, 46 => 33, 42 => 32, 39 => 31, 37 => 30, 32 => 28, 29 => 27, 27 => 26, 25 => 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("{#**
* 2007-2018 PrestaShop
*
* 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.txt.
* 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 http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% set buttonType = buttonType|default('primary') %}
{% set right = right|default(false) %}
<div class=\"{{ div_style|default(\"btn-group dropdown\") }}\">
{% if default_item is defined %}
<a
href=\"{{ default_item.href|default(\"#\") }}\"
title=\"{{ default_item.title|default(default_item.label|default(\"\")) }}\"
class=\"btn btn-{{ buttonType }}\"
{% if disabled is defined and disabled == true %}disabled=\"disabled\"{% endif %}
>
{% if default_item.icon %}
<i class=\"material-icons\">{{ default_item.icon }}</i>
{% endif %}
{{ default_item.label|default('') }}
</a>
{% endif %}
<button
{% if button_id %}id=\"{{ button_id }}\"{% endif %}
class=\"btn btn-{{ buttonType }} dropdown-toggle\"
{% if disabled is defined and disabled == true %}disabled=\"disabled\"{% endif %}
data-toggle=\"dropdown\"
>
{{ menu_label|default('') }}
<i class=\"{{ menu_icon|default(\"icon-caret-down\") }}\"></i>
</button>
<div class=\"dropdown-menu{% if right %} dropdown-menu-right{% endif %}\">
{% for entry in items %}
{% if entry.divider is defined and entry.divider==true %}
<div class=\"dropdown-divider\"></div>
{% else %}
<a
class=\"dropdown-item\" href=\"{{ entry.href|default(\"#\") }}\"
{% if entry.onclick is defined %}onclick=\"{{ entry.onclick }}\"{% endif %}
{% if entry.target is defined %}target=\"{{ entry.target }}\"{% endif %}
>
{% if entry.icon %}
<i class=\"material-icons\">{{ entry.icon }}</i>
{% endif %}
{{ entry.label|default('') }}
</a>
{% endif %}
{% endfor %}
</div>
</div>
", "@PrestaShop/Admin/Helpers/dropdown_menu.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/Helpers/dropdown_menu.html.twig");
}
}