/home/sharedstore/.trash/prod/twig/f1
NameSizeModeActions
f1df1734c86cc80934a00df852dab108.php243370644editdlrm
Edit: /home/sharedstore/.trash/prod/twig/f1/f1df1734c86cc80934a00df852dab108.php (24337B)
source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ 'multistore_header' => [$this, 'block_multistore_header'], 'multishop_header_right' => [$this, 'block_multishop_header_right'], 'search_shops' => [$this, 'block_search_shops'], 'all_shops_item' => [$this, 'block_all_shops_item'], 'shop_group_item' => [$this, 'block_shop_group_item'], 'shop_item' => [$this, 'block_shop_item'], ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 25 $this->displayBlock('multistore_header', $context, $blocks); } public function block_multistore_header($context, array $blocks = []) { $macros = $this->macros; // line 26 echo " "; if ((($context["isMultistoreUsed"] ?? null) && !(null === twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 26)))) { // line 27 echo "
env, $this->source, ($context["currentContext"] ?? null), "color", [], "any", false, false, false, 29))) { echo " header-multishop-default"; } if ((($context["isTitleDark"] ?? null) === true)) { echo " header-multishop-dark"; } else { echo " header-multishop-bright"; } echo "\" "; // line 30 if (($context["isShopContext"] ?? null)) { echo "data-shop-id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["currentContext"] ?? null), "id", [], "any", false, false, false, 30), "html", null, true); echo "\""; } elseif (($context["isGroupContext"] ?? null)) { echo "data-group-id=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["currentContext"] ?? null), "id", [], "any", false, false, false, 30), "html", null, true); echo "\""; } else { echo "data-all-shops=\"1\""; } // line 31 echo " "; if (($context["colorConfigLink"] ?? null)) { echo "data-header-color-notification=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Customize your multistore header, [1]pick a color[/1] for this store context.", ["[1]" => ((""), "[/1]" => ""], "Admin.Navigation.Header"), "html", null, true); echo "\""; } // line 32 echo " data-checkbox-notification=\""; echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("To apply specific settings to a store or a group of stores, select the parameter to modify, make your changes and save.", [], "Admin.Navigation.Header") . " "), "html", null, true); echo "\" >
env, $this->source, ($context["currentContext"] ?? null), "color", [], "any", false, false, false, 34))) { echo " style=\"background-color: "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["currentContext"] ?? null), "color", [], "any", false, false, false, 34), "html", null, true); echo ";\""; } echo ">
"; // line 36 if (($context["isShopContext"] ?? null)) { // line 37 echo " "; $this->loadTemplate("@PrestaShop/Admin/Multistore/shop_icon.html.twig", "@PrestaShop/Admin/Multistore/header.html.twig", 37)->display($context); // line 38 echo " "; } else { // line 39 echo " "; $this->loadTemplate("@PrestaShop/Admin/Multistore/multi_shops_icon.html.twig", "@PrestaShop/Admin/Multistore/header.html.twig", 39)->display($context); // line 40 echo " "; } // line 41 echo "

"; // line 43 if (($context["isGroupContext"] ?? null)) { echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Group", [], "Admin.Global") . " "), "html", null, true); echo " "; } echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["currentContext"] ?? null), "name", [], "any", false, false, false, 43), "html", null, true); echo "

"; // line 52 if (($context["isShopContext"] ?? null)) { // line 53 echo "
"; // line 54 $this->displayBlock('multishop_header_right', $context, $blocks); // line 57 echo "
"; } // line 59 echo "
"; // line 63 $this->displayBlock('search_shops', $context, $blocks); // line 71 echo "
    "; // line 73 $this->displayBlock('all_shops_item', $context, $blocks); // line 85 echo " "; // line 86 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, ($context["groupList"] ?? null), function ($__group__) use ($context, $macros) { $context["group"] = $__group__; return !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["group"], "shops", [], "any", false, false, false, 86)); })); $context['loop'] = [ '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["group"]) { // line 87 echo "
  • env, $this->source, $context["loop"], "first", [], "any", false, false, false, 87)) { echo " first-group-item"; } echo "\"> "; // line 88 $this->displayBlock('shop_group_item', $context, $blocks); // line 95 echo "
  • "; // line 97 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["group"], "shops", [], "any", false, false, false, 97)); $context['loop'] = [ '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["shop"]) { // line 98 echo "
  • "; // line 99 $this->displayBlock('shop_item', $context, $blocks); // line 113 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['shop'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 115 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['group'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 116 echo "
"; } } // line 54 public function block_multishop_header_right($context, array $blocks = []) { $macros = $this->macros; // line 55 echo " env, twig_get_attribute($this->env, $this->source, ($context["link"] ?? null), "getBaseLink", [0 => twig_get_attribute($this->env, $this->source, ($context["currentContext"] ?? null), "id", [], "any", false, false, false, 55)], "method", false, false, false, 55), "html", null, true); echo "\" target=\"_blank\" rel=\"nofollow\">"; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("View my store", [], "Admin.Navigation.Header"), "html", null, true); echo " visibility "; } // line 63 public function block_search_shops($context, array $blocks = []) { $macros = $this->macros; // line 64 echo " "; if ((($context["lockedToAllShopContext"] ?? null) == false)) { // line 65 echo "
search env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Search store name", [], "Admin.Navigation.Header"), "html", null, true); echo "\" data-no-results=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No results found for", [], "Admin.Global"), "html", null, true); echo "\" data-searching=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Searching for", [], "Admin.Global"), "html", null, true); echo "\">
"; } // line 70 echo " "; } // line 73 public function block_all_shops_item($context, array $blocks = []) { $macros = $this->macros; // line 74 echo "
  • "; // line 75 if (($context["isAllShopContext"] ?? null)) { // line 76 echo " check "; } else { // line 78 echo " "; } // line 80 echo " env, $this->extensions['PrestaShopBundle\Twig\Extension\MultistoreUrlExtension']->generateUrl(), "html", null, true); echo "\"> "; // line 81 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("All stores", [], "Admin.Global"), "html", null, true); echo "
  • "; } // line 88 public function block_shop_group_item($context, array $blocks = []) { $macros = $this->macros; // line 89 echo " env, $this->source, ($context["currentContext"] ?? null), "id", [], "any", false, false, false, 89) == twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "id", [], "any", false, false, false, 89)))) { echo " multishop-modal-color-check"; } echo "\"> check env, $this->source, ($context["group"] ?? null), "color", [], "any", false, false, false, 91))) { echo " style=\"background-color: "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "color", [], "any", false, false, false, 91), "html", null, true); echo ";\""; } echo " href=\""; echo twig_escape_filter($this->env, $this->extensions['PrestaShopBundle\Twig\LayoutExtension']->getAdminLink("AdminShopGroup", true, ["id_shop_group" => twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "id", [], "any", false, false, false, 91), "updateshop_group" => true]), "html", null, true); echo "\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"top\" data-content=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit color", [], "Admin.Global"), "html", null, true); echo "\" data-original-title=\"\" title=\"\"> env, $this->extensions['PrestaShopBundle\Twig\Extension\MultistoreUrlExtension']->generateGroupUrl(($context["group"] ?? null)), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, (($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Group", [], "Admin.Global") . " ") . twig_get_attribute($this->env, $this->source, ($context["group"] ?? null), "name", [], "any", false, false, false, 93)), "html", null, true); echo " "; } // line 99 public function block_shop_item($context, array $blocks = []) { $macros = $this->macros; // line 100 echo "
    env, $this->source, ($context["currentContext"] ?? null), "id", [], "any", false, false, false, 101) == twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "id", [], "any", false, false, false, 101)))) { echo " multishop-modal-color-check"; } echo "\"> check env, $this->source, ($context["shop"] ?? null), "color", [], "any", false, false, false, 103))) { echo " style=\"background-color: "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "color", [], "any", false, false, false, 103), "html", null, true); echo ";\""; } echo " href=\""; echo twig_escape_filter($this->env, $this->extensions['PrestaShopBundle\Twig\LayoutExtension']->getAdminLink("AdminShop", true, ["shop_id" => twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "id", [], "any", false, false, false, 103), "updateshop" => true]), "html", null, true); echo "\" data-toggle=\"popover\" data-trigger=\"hover\" data-placement=\"top\" data-content=\""; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit color", [], "Admin.Global"), "html", null, true); echo "\" data-original-title=\"\" title=\"\"> env, $this->source, ($context["shop"] ?? null), "hasMainUrl", [], "method", false, false, false, 105) == false)) { echo " multishop-modal-no-url\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "name", [], "any", false, false, false, 105), "html", null, true); echo ""; } else { echo "\" href=\""; echo twig_escape_filter($this->env, $this->extensions['PrestaShopBundle\Twig\Extension\MultistoreUrlExtension']->generateShopUrl(($context["shop"] ?? null)), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "name", [], "any", false, false, false, 105), "html", null, true); echo ""; } // line 106 echo "
    "; // line 107 if (twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "hasMainUrl", [], "method", false, false, false, 107)) { // line 108 echo " env, twig_get_attribute($this->env, $this->source, ($context["link"] ?? null), "getBaseLink", [0 => twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "id", [], "any", false, false, false, 108)], "method", false, false, false, 108), "html", null, true); echo "\" target=\"_blank\" rel=\"noreferrer\">"; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("View my store", [], "Admin.Navigation.Header"), "html", null, true); echo " visibility "; } else { // line 110 echo " env, $this->extensions['PrestaShopBundle\Twig\LayoutExtension']->getAdminLink("AdminShopUrl", true, ["shop_id" => twig_get_attribute($this->env, $this->source, ($context["shop"] ?? null), "id", [], "any", false, false, false, 110), "addshop_url" => 1]), "html", null, true); echo "\" rel=\"noreferrer\">"; echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Configure URL", [], "Admin.Actions"), "html", null, true); echo " visibility "; } // line 112 echo " "; } public function getTemplateName() { return "@PrestaShop/Admin/Multistore/header.html.twig"; } public function getDebugInfo() { return array ( 423 => 112, 415 => 110, 407 => 108, 405 => 107, 402 => 106, 390 => 105, 377 => 103, 370 => 101, 367 => 100, 363 => 99, 355 => 93, 342 => 91, 334 => 89, 330 => 88, 322 => 81, 317 => 80, 313 => 78, 309 => 76, 307 => 75, 304 => 74, 300 => 73, 296 => 70, 286 => 67, 282 => 65, 279 => 64, 275 => 63, 266 => 55, 262 => 54, 255 => 122, 247 => 116, 233 => 115, 218 => 113, 216 => 99, 213 => 98, 196 => 97, 192 => 95, 190 => 88, 183 => 87, 166 => 86, 163 => 85, 161 => 73, 157 => 71, 155 => 63, 149 => 59, 145 => 57, 143 => 54, 140 => 53, 138 => 52, 122 => 43, 118 => 41, 115 => 40, 112 => 39, 109 => 38, 106 => 37, 104 => 36, 95 => 34, 89 => 32, 82 => 31, 70 => 30, 57 => 29, 53 => 27, 50 => 26, 43 => 25,); } public function getSourceContext() { return new Source("", "@PrestaShop/Admin/Multistore/header.html.twig", "/home/sharedstore/public_html/prestashop.sharedstore.ma/src/PrestaShopBundle/Resources/views/Admin/Multistore/header.html.twig"); } }