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,414 @@
<?php
/* @Product/CatalogPage/Blocks/filters.html.twig */
class __TwigTemplate_6d5b1b5a2e670b00148bd2e7d1b90c53863912c74bb29774f416490f92719ab9 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
'product_catalog_filter_by_categories' => array($this, 'block_product_catalog_filter_by_categories'),
'product_catalog_filter_bulk_actions' => array($this, 'block_product_catalog_filter_bulk_actions'),
'product_catalog_filter_select_all' => array($this, 'block_product_catalog_filter_select_all'),
);
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_f0a8a257d12c115e7bee90b79496e6fcf0e11620a3df310add94091d23e6dd4e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_f0a8a257d12c115e7bee90b79496e6fcf0e11620a3df310add94091d23e6dd4e->enter($__internal_f0a8a257d12c115e7bee90b79496e6fcf0e11620a3df310add94091d23e6dd4e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Product/CatalogPage/Blocks/filters.html.twig"));
$__internal_dc93b25f5aa12c6b7e6d89934c3c94ab17f583b02c4b9c4951c5d3a2723ebae7 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_dc93b25f5aa12c6b7e6d89934c3c94ab17f583b02c4b9c4951c5d3a2723ebae7->enter($__internal_dc93b25f5aa12c6b7e6d89934c3c94ab17f583b02c4b9c4951c5d3a2723ebae7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Product/CatalogPage/Blocks/filters.html.twig"));
// line 25
echo "<div id=\"catalog-actions\" class=\"col order-first\">
<div class=\"row\">
<div class=\"col\">
";
// line 28
$this->displayBlock('product_catalog_filter_by_categories', $context, $blocks);
// line 76
echo "
";
// line 77
$this->displayBlock('product_catalog_filter_bulk_actions', $context, $blocks);
// line 129
echo " </div>
</div>
";
// line 132
$this->displayBlock('product_catalog_filter_select_all', $context, $blocks);
// line 150
echo "</div>
";
$__internal_f0a8a257d12c115e7bee90b79496e6fcf0e11620a3df310add94091d23e6dd4e->leave($__internal_f0a8a257d12c115e7bee90b79496e6fcf0e11620a3df310add94091d23e6dd4e_prof);
$__internal_dc93b25f5aa12c6b7e6d89934c3c94ab17f583b02c4b9c4951c5d3a2723ebae7->leave($__internal_dc93b25f5aa12c6b7e6d89934c3c94ab17f583b02c4b9c4951c5d3a2723ebae7_prof);
}
// line 28
public function block_product_catalog_filter_by_categories($context, array $blocks = array())
{
$__internal_3caf0ba04f51f063f53b26a72716f6f3abcd38306af733424a276faa9a3aa719 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_3caf0ba04f51f063f53b26a72716f6f3abcd38306af733424a276faa9a3aa719->enter($__internal_3caf0ba04f51f063f53b26a72716f6f3abcd38306af733424a276faa9a3aa719_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "product_catalog_filter_by_categories"));
$__internal_9844e231dc50e91a749a0a4562a1a95d83aa3095cbb4e51e879bc8914d9c0fff = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_9844e231dc50e91a749a0a4562a1a95d83aa3095cbb4e51e879bc8914d9c0fff->enter($__internal_9844e231dc50e91a749a0a4562a1a95d83aa3095cbb4e51e879bc8914d9c0fff_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "product_catalog_filter_by_categories"));
// line 29
echo " <div id=\"product_catalog_category_tree_filter\" class=\"d-inline-block dropdown dropdown-clickable mr-2\">
<button
class=\"btn btn-outline-secondary dropdown-toggle\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
>
";
// line 37
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Filter by categories", array(), "Admin.Actions"), "html", null, true);
echo "
";
// line 38
if ((array_key_exists("selected_category", $context) && !(null === ($context["selected_category"] ?? $this->getContext($context, "selected_category"))))) {
// line 39
echo " (";
echo twig_escape_filter($this->env, $this->getAttribute(($context["selected_category"] ?? $this->getContext($context, "selected_category")), "getName", array(), "method"), "html", null, true);
echo ")
";
}
// line 41
echo " </button>
<div id=\"tree-categories\" class=\"dropdown-menu\">
<div class=\"categories-tree-actions\">
<a
href=\"#\"
name=\"product_catalog_category_tree_filter_expand\"
onclick=\"productCategoryFilterExpand(\$('div#product_catalog_category_tree_filter'), this);\"
id=\"product_catalog_category_tree_filter_expand\"
>
<i class=\"material-icons\">expand_more</i>
";
// line 51
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Expand", array(), "Admin.Actions"), "html", null, true);
echo "
</a>
<a
href=\"#\"
name=\"product_catalog_category_tree_filter_collapse\"
onclick=\"productCategoryFilterCollapse(\$('div#product_catalog_category_tree_filter'), this);\"
id=\"product_catalog_category_tree_filter_collapse\"
>
<i class=\"material-icons\">expand_less</i>
";
// line 60
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Collapse", array(), "Admin.Actions"), "html", null, true);
echo "
</a>
<a
href=\"#\"
name=\"product_catalog_category_tree_filter_reset\"
onclick=\"productCategoryFilterReset(\$('div#product_catalog_category_tree_filter'));\"
id=\"product_catalog_category_tree_filter_reset\"
>
<i class=\"material-icons\">radio_button_unchecked</i>
";
// line 69
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Unselect", array(), "Admin.Actions"), "html", null, true);
echo "
</a>
</div>
";
// line 72
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["categories"] ?? $this->getContext($context, "categories")), 'widget');
echo "
</div>
</div>
";
$__internal_9844e231dc50e91a749a0a4562a1a95d83aa3095cbb4e51e879bc8914d9c0fff->leave($__internal_9844e231dc50e91a749a0a4562a1a95d83aa3095cbb4e51e879bc8914d9c0fff_prof);
$__internal_3caf0ba04f51f063f53b26a72716f6f3abcd38306af733424a276faa9a3aa719->leave($__internal_3caf0ba04f51f063f53b26a72716f6f3abcd38306af733424a276faa9a3aa719_prof);
}
// line 77
public function block_product_catalog_filter_bulk_actions($context, array $blocks = array())
{
$__internal_bc5515a03149220758c9d1dff525045f6e2d13927d8cebe760072558b70afa59 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_bc5515a03149220758c9d1dff525045f6e2d13927d8cebe760072558b70afa59->enter($__internal_bc5515a03149220758c9d1dff525045f6e2d13927d8cebe760072558b70afa59_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "product_catalog_filter_bulk_actions"));
$__internal_c2bc171b46c97e83cca54a47c96856b5956bfd082fcb629e5a8ec43b02f2cb89 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_c2bc171b46c97e83cca54a47c96856b5956bfd082fcb629e5a8ec43b02f2cb89->enter($__internal_c2bc171b46c97e83cca54a47c96856b5956bfd082fcb629e5a8ec43b02f2cb89_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "product_catalog_filter_bulk_actions"));
// line 78
echo " <div
class=\"d-inline-block\"
bulkurl=\"";
// line 80
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_product_bulk_action", array("action" => "activate_all"));
echo "\"
massediturl=\"";
// line 81
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_product_mass_edit_action", array("action" => "sort"));
echo "\"
redirecturl=\"";
// line 82
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_product_catalog", array("limit" => ($context["limit"] ?? $this->getContext($context, "limit")), "offset" => ($context["offset"] ?? $this->getContext($context, "offset")), "orderBy" => ($context["orderBy"] ?? $this->getContext($context, "orderBy")), "sortOrder" => ($context["sortOrder"] ?? $this->getContext($context, "sortOrder")))), "html", null, true);
echo "\"
redirecturlnextpage=\"";
// line 83
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("admin_product_catalog", array("limit" => ($context["limit"] ?? $this->getContext($context, "limit")), "offset" => (($context["offset"] ?? $this->getContext($context, "offset")) + ($context["limit"] ?? $this->getContext($context, "limit"))), "orderBy" => ($context["orderBy"] ?? $this->getContext($context, "orderBy")), "sortOrder" => ($context["sortOrder"] ?? $this->getContext($context, "sortOrder")))), "html", null, true);
echo "\"
>
";
// line 85
$context["buttons_action"] = array(0 => array("onclick" => "bulkProductAction(this, 'activate_all');", "icon" => "radio_button_checked", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Activate selection", array(), "Admin.Actions")), 1 => array("onclick" => "bulkProductAction(this, 'deactivate_all');", "icon" => "radio_button_unchecked", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Deactivate selection", array(), "Admin.Actions")));
// line 96
echo "
";
// line 97
$context["buttons_action"] = twig_array_merge(($context["buttons_action"] ?? $this->getContext($context, "buttons_action")), array(0 => array("divider" => true), 1 => array("onclick" => "bulkProductAction(this, 'duplicate_all');", "icon" => "content_copy", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Duplicate selection", array(), "Admin.Actions"))));
// line 106
echo "
";
// line 108
$context["buttons_action"] = twig_array_merge(($context["buttons_action"] ?? $this->getContext($context, "buttons_action")), array(0 => array("divider" => true), 1 => array("onclick" => "bulkProductAction(this, 'delete_all');", "icon" => "delete", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Delete selection", array(), "Admin.Actions"))));
// line 117
echo "
";
// line 118
$this->loadTemplate("@PrestaShop/Admin/Helpers/dropdown_menu.html.twig", "@Product/CatalogPage/Blocks/filters.html.twig", 118)->display(array_merge($context, array("div_style" => "btn-group dropdown bulk-catalog", "button_id" => "product_bulk_menu", "disabled" => true, "menu_label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Bulk actions", array(), "Admin.Global"), "buttonType" => "outline-secondary", "menu_icon" => "icon-caret-up", "items" => // line 125
($context["buttons_action"] ?? $this->getContext($context, "buttons_action")))));
// line 127
echo " </div>
";
$__internal_c2bc171b46c97e83cca54a47c96856b5956bfd082fcb629e5a8ec43b02f2cb89->leave($__internal_c2bc171b46c97e83cca54a47c96856b5956bfd082fcb629e5a8ec43b02f2cb89_prof);
$__internal_bc5515a03149220758c9d1dff525045f6e2d13927d8cebe760072558b70afa59->leave($__internal_bc5515a03149220758c9d1dff525045f6e2d13927d8cebe760072558b70afa59_prof);
}
// line 132
public function block_product_catalog_filter_select_all($context, array $blocks = array())
{
$__internal_a4e1900ada35bda6e4d123d796a9c7fbb97c1f1494972beef9264a1c1d311086 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_a4e1900ada35bda6e4d123d796a9c7fbb97c1f1494972beef9264a1c1d311086->enter($__internal_a4e1900ada35bda6e4d123d796a9c7fbb97c1f1494972beef9264a1c1d311086_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "product_catalog_filter_select_all"));
$__internal_5937de8ef4da1fa4c1c9e801b800c0e2ce4f1e4e3d9a5128b13a3445e83ef495 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_5937de8ef4da1fa4c1c9e801b800c0e2ce4f1e4e3d9a5128b13a3445e83ef495->enter($__internal_5937de8ef4da1fa4c1c9e801b800c0e2ce4f1e4e3d9a5128b13a3445e83ef495_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "product_catalog_filter_select_all"));
// line 133
echo " <div class=\"row\">
<div class=\"col\">
<div class=\"md-checkbox\">
<label>
<input
type=\"checkbox\"
id=\"bulk_action_select_all\"
onclick=\"\$('#product_catalog_list').find('table td.checkbox-column input:checkbox').prop('checked', \$(this).prop('checked')); updateBulkMenu();\"
value=\"\"
>
<i class=\"md-checkbox-control\"></i>
";
// line 144
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Select all", array(), "Admin.Actions"), "html", null, true);
echo "
</label>
</div>
</div>
</div>
";
$__internal_5937de8ef4da1fa4c1c9e801b800c0e2ce4f1e4e3d9a5128b13a3445e83ef495->leave($__internal_5937de8ef4da1fa4c1c9e801b800c0e2ce4f1e4e3d9a5128b13a3445e83ef495_prof);
$__internal_a4e1900ada35bda6e4d123d796a9c7fbb97c1f1494972beef9264a1c1d311086->leave($__internal_a4e1900ada35bda6e4d123d796a9c7fbb97c1f1494972beef9264a1c1d311086_prof);
}
public function getTemplateName()
{
return "@Product/CatalogPage/Blocks/filters.html.twig";
}
public function getDebugInfo()
{
return array ( 227 => 144, 214 => 133, 205 => 132, 194 => 127, 192 => 125, 191 => 118, 188 => 117, 186 => 108, 182 => 106, 180 => 97, 177 => 96, 175 => 85, 170 => 83, 166 => 82, 162 => 81, 158 => 80, 154 => 78, 145 => 77, 131 => 72, 125 => 69, 113 => 60, 101 => 51, 89 => 41, 83 => 39, 81 => 38, 77 => 37, 67 => 29, 58 => 28, 47 => 150, 45 => 132, 40 => 129, 38 => 77, 35 => 76, 33 => 28, 28 => 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
*#}
<div id=\"catalog-actions\" class=\"col order-first\">
<div class=\"row\">
<div class=\"col\">
{% block product_catalog_filter_by_categories %}
<div id=\"product_catalog_category_tree_filter\" class=\"d-inline-block dropdown dropdown-clickable mr-2\">
<button
class=\"btn btn-outline-secondary dropdown-toggle\"
type=\"button\"
data-toggle=\"dropdown\"
aria-haspopup=\"true\"
aria-expanded=\"false\"
>
{{ 'Filter by categories'|trans({}, 'Admin.Actions') }}
{% if selected_category is defined and selected_category is not null %}
({{ selected_category.getName() }})
{% endif %}
</button>
<div id=\"tree-categories\" class=\"dropdown-menu\">
<div class=\"categories-tree-actions\">
<a
href=\"#\"
name=\"product_catalog_category_tree_filter_expand\"
onclick=\"productCategoryFilterExpand(\$('div#product_catalog_category_tree_filter'), this);\"
id=\"product_catalog_category_tree_filter_expand\"
>
<i class=\"material-icons\">expand_more</i>
{{ 'Expand'|trans({}, 'Admin.Actions') }}
</a>
<a
href=\"#\"
name=\"product_catalog_category_tree_filter_collapse\"
onclick=\"productCategoryFilterCollapse(\$('div#product_catalog_category_tree_filter'), this);\"
id=\"product_catalog_category_tree_filter_collapse\"
>
<i class=\"material-icons\">expand_less</i>
{{ 'Collapse'|trans({}, 'Admin.Actions') }}
</a>
<a
href=\"#\"
name=\"product_catalog_category_tree_filter_reset\"
onclick=\"productCategoryFilterReset(\$('div#product_catalog_category_tree_filter'));\"
id=\"product_catalog_category_tree_filter_reset\"
>
<i class=\"material-icons\">radio_button_unchecked</i>
{{ 'Unselect'|trans({}, 'Admin.Actions') }}
</a>
</div>
{{ form_widget(categories) }}
</div>
</div>
{% endblock %}
{% block product_catalog_filter_bulk_actions %}
<div
class=\"d-inline-block\"
bulkurl=\"{{ path('admin_product_bulk_action', {'action': 'activate_all'}) }}\"
massediturl=\"{{ path('admin_product_mass_edit_action', {'action': 'sort'}) }}\"
redirecturl=\"{{ path('admin_product_catalog', {'limit': limit, 'offset': offset, 'orderBy': orderBy, 'sortOrder': sortOrder}) }}\"
redirecturlnextpage=\"{{ path('admin_product_catalog', {'limit': limit, 'offset': offset+limit, 'orderBy': orderBy, 'sortOrder': sortOrder}) }}\"
>
{% set buttons_action = [
{
\"onclick\": \"bulkProductAction(this, 'activate_all');\",
\"icon\": \"radio_button_checked\",
\"label\": \"Activate selection\"|trans({}, 'Admin.Actions')
}, {
\"onclick\": \"bulkProductAction(this, 'deactivate_all');\",
\"icon\": \"radio_button_unchecked\",
\"label\": \"Deactivate selection\"|trans({}, 'Admin.Actions')
}
] %}
{% set buttons_action = buttons_action|merge([
{
\"divider\": true
}, {
\"onclick\": \"bulkProductAction(this, 'duplicate_all');\",
\"icon\": \"content_copy\",
\"label\": \"Duplicate selection\"|trans({}, 'Admin.Actions')
}
]) %}
{% set buttons_action = buttons_action|merge([
{
\"divider\": true
}, {
\"onclick\": \"bulkProductAction(this, 'delete_all');\",
\"icon\": \"delete\",
\"label\": \"Delete selection\"|trans({}, 'Admin.Actions')
}
]) %}
{% include '@PrestaShop/Admin/Helpers/dropdown_menu.html.twig' with {
'div_style': \"btn-group dropdown bulk-catalog\",
'button_id': \"product_bulk_menu\",
'disabled': true,
'menu_label': \"Bulk actions\"|trans({}, 'Admin.Global'),
'buttonType': \"outline-secondary\",
'menu_icon': \"icon-caret-up\",
'items': buttons_action
} %}
</div>
{% endblock %}
</div>
</div>
{% block product_catalog_filter_select_all %}
<div class=\"row\">
<div class=\"col\">
<div class=\"md-checkbox\">
<label>
<input
type=\"checkbox\"
id=\"bulk_action_select_all\"
onclick=\"\$('#product_catalog_list').find('table td.checkbox-column input:checkbox').prop('checked', \$(this).prop('checked')); updateBulkMenu();\"
value=\"\"
>
<i class=\"md-checkbox-control\"></i>
{{ \"Select all\"|trans({}, 'Admin.Actions') }}
</label>
</div>
</div>
</div>
{% endblock %}
</div>
", "@Product/CatalogPage/Blocks/filters.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/Product/CatalogPage/Blocks/filters.html.twig");
}
}