var/cache/dev/twig/7d/7d9a3f27f92bd6467d66d016f048858abb08dcbe96d5cf800103be5b56b088c4.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusUi/Macro/pagination.html.twig */
  14. class __TwigTemplate_159afd4ddfc4d2f67d9d60f5cc917ff302cdaaf15198cbe99d5d43d2bf308aec extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusUi/Macro/pagination.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusUi/Macro/pagination.html.twig"));
  33.         // line 6
  34.         echo "
  35. ";
  36.         
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  38.         
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  40.     }
  41.     // line 1
  42.     public function macro_simple($__paginator__ null$__options__ null, ...$__varargs__)
  43.     {
  44.         $macros $this->macros;
  45.         $context $this->env->mergeGlobals([
  46.             "paginator" => $__paginator__,
  47.             "options" => $__options__,
  48.             "varargs" => $__varargs__,
  49.         ]);
  50.         $blocks = [];
  51.         ob_start();
  52.         try {
  53.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""simple"));
  55.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""simple"));
  57.             // line 2
  58.             echo "    ";
  59.             if (twig_get_attribute($this->env$this->source, (isset($context["paginator"]) || array_key_exists("paginator"$context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.'2$this->source); })()), "haveToPaginate", [], "method"falsefalsefalse2)) {
  60.                 // line 3
  61.                 echo "        ";
  62.                 echo $this->env->getRuntime('Pagerfanta\Twig\Extension\PagerfantaRuntime')->renderPagerfanta((isset($context["paginator"]) || array_key_exists("paginator"$context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.'3$this->source); })()), "semantic_ui_translated", ((array_key_exists("options"$context)) ? (_twig_default_filter((isset($context["options"]) || array_key_exists("options"$context) ? $context["options"] : (function () { throw new RuntimeError('Variable "options" does not exist.'3$this->source); })()), [])) : ([])));
  63.                 echo "
  64.     ";
  65.             }
  66.             
  67.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  68.             
  69.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  70.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  71.         } finally {
  72.             ob_end_clean();
  73.         }
  74.     }
  75.     // line 7
  76.     public function macro_perPage($__paginator__ null$__paginationLimits__ null, ...$__varargs__)
  77.     {
  78.         $macros $this->macros;
  79.         $context $this->env->mergeGlobals([
  80.             "paginator" => $__paginator__,
  81.             "paginationLimits" => $__paginationLimits__,
  82.             "varargs" => $__varargs__,
  83.         ]);
  84.         $blocks = [];
  85.         ob_start();
  86.         try {
  87.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  88.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""perPage"));
  89.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  90.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""perPage"));
  91.             // line 8
  92.             echo "    <div class=\"ui simple fluid dropdown item\">
  93.         ";
  94.             // line 9
  95.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.show"), "html"nulltrue);
  96.             echo " ";
  97.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["paginator"]) || array_key_exists("paginator"$context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.'9$this->source); })()), "maxPerPage", [], "any"falsefalsefalse9), "html"nulltrue);
  98.             echo "
  99.         <i class=\"dropdown icon\"></i>
  100.         <div class=\"menu\">
  101.         ";
  102.             // line 12
  103.             $context['_parent'] = $context;
  104.             $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["paginationLimits"]) || array_key_exists("paginationLimits"$context) ? $context["paginationLimits"] : (function () { throw new RuntimeError('Variable "paginationLimits" does not exist.'12$this->source); })()), function ($__limit__) use ($context$macros) { $context["limit"] = $__limit__; return ($context["limit"] != twig_get_attribute($this->env$this->source, (isset($context["paginator"]) || array_key_exists("paginator"$context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.'12$this->source); })()), "maxPerPage", [], "any"falsefalsefalse12)); }));
  105.             foreach ($context['_seq'] as $context["_key"] => $context["limit"]) {
  106.                 // line 13
  107.                 echo "            ";
  108.                 $context["path"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "attributes", [], "any"falsefalsefalse13), "get", [=> "_route"], "method"falsefalsefalse13), twig_array_merge(twig_array_merge(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "attributes", [], "any"falsefalsefalse13), "get", [=> "_route_params"], "method"falsefalsefalse13), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "query", [], "any"falsefalsefalse13)), ["limit" => $context["limit"]]));
  109.                 // line 14
  110.                 echo "            <a class=\"item\" href=\"";
  111.                 echo twig_escape_filter($this->env, (isset($context["path"]) || array_key_exists("path"$context) ? $context["path"] : (function () { throw new RuntimeError('Variable "path" does not exist.'14$this->source); })()), "html"nulltrue);
  112.                 echo "\">";
  113.                 echo twig_escape_filter($this->env$context["limit"], "html"nulltrue);
  114.                 echo "</a>
  115.         ";
  116.             }
  117.             $_parent $context['_parent'];
  118.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['limit'], $context['_parent'], $context['loop']);
  119.             $context array_intersect_key($context$_parent) + $_parent;
  120.             // line 16
  121.             echo "        </div>
  122.     </div>
  123. ";
  124.             
  125.             $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  126.             
  127.             $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  128.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  129.         } finally {
  130.             ob_end_clean();
  131.         }
  132.     }
  133.     public function getTemplateName()
  134.     {
  135.         return "@SyliusUi/Macro/pagination.html.twig";
  136.     }
  137.     public function isTraitable()
  138.     {
  139.         return false;
  140.     }
  141.     public function getDebugInfo()
  142.     {
  143.         return array (  145 => 16,  134 => 14,  131 => 13,  127 => 12,  119 => 9,  116 => 8,  96 => 7,  77 => 3,  74 => 2,  54 => 1,  43 => 6,);
  144.     }
  145.     public function getSourceContext()
  146.     {
  147.         return new Source("{% macro simple(paginator, options) %}
  148.     {% if paginator.haveToPaginate() %}
  149.         {{ pagerfanta(paginator, 'semantic_ui_translated', options|default({})) }}
  150.     {% endif %}
  151. {% endmacro %}
  152. {% macro perPage(paginator, paginationLimits) %}
  153.     <div class=\"ui simple fluid dropdown item\">
  154.         {{ 'sylius.ui.show'|trans }} {{ paginator.maxPerPage }}
  155.         <i class=\"dropdown icon\"></i>
  156.         <div class=\"menu\">
  157.         {% for limit in paginationLimits|filter(limit => limit != paginator.maxPerPage) %}
  158.             {% set path = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge(app.request.query)|merge({'limit': limit})) %}
  159.             <a class=\"item\" href=\"{{ path }}\">{{ limit }}</a>
  160.         {% endfor %}
  161.         </div>
  162.     </div>
  163. {% endmacro %}
  164. ""@SyliusUi/Macro/pagination.html.twig""/var/www/html/vendor/sylius/sylius/src/Sylius/Bundle/UiBundle/Resources/views/Macro/pagination.html.twig");
  165.     }
  166. }