var/cache/dev/twig/e7/e7acdb5181f10d598ff00a727bad96edfbd4bf1301aa982727c237400ef6f91d.php line 16

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. /* Block/order_by_sale.twig */
  14. class __TwigTemplate_1b855590d7d6255e68f91f54f9c9205861da21513b87485a8c01a2fa2379098a extends \Eccube\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.             'stylesheet' => [$this'block_stylesheet'],
  25.             'javascript' => [$this'block_javascript'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/order_by_sale.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/order_by_sale.twig"));
  35.         // line 1
  36.         $this->displayBlock('stylesheet'$context$blocks);
  37.         // line 4
  38.         echo "
  39. ";
  40.         // line 5
  41.         $this->displayBlock('javascript'$context$blocks);
  42.         // line 32
  43.         echo "
  44. ";
  45.         // line 33
  46.         if (twig_length_filter($this->env, (isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'33$this->source); })()))) {
  47.             // line 34
  48.             echo "<div class=\"ec-role\">
  49.     <div class=\"ec-rankingRole ec-contentRole\">
  50.         <div class=\"ec-secHeading\">
  51.             <div>
  52.                 <span class=\"ec-secHeading__en\">";
  53.             // line 38
  54.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("RANKING"), "html"nulltrue);
  55.             echo "</span>
  56.                 <img src=\"";
  57.             // line 39
  58.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slash.svg"), "html"nulltrue);
  59.             echo "\" alt=\"\" class=\"ec-slash is-pc\">
  60.                 <span class=\"ec-secHeading__ja\">";
  61.             // line 40
  62.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ランキング"), "html"nulltrue);
  63.             echo "</span>
  64.             </div>
  65.             <div class=\"ranking-arrows content-arrows\" id=\"ranking_arrows\"></div>
  66.         </div>
  67.         <div class=\"ec-rankingRole__List\" id=\"slide_ranking\">
  68.           ";
  69.             // line 45
  70.             $context['_parent'] = $context;
  71.             $context['_seq'] = twig_ensure_traversable((isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'45$this->source); })()));
  72.             $context['loop'] = [
  73.               'parent' => $context['_parent'],
  74.               'index0' => 0,
  75.               'index'  => 1,
  76.               'first'  => true,
  77.             ];
  78.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  79.                 $length count($context['_seq']);
  80.                 $context['loop']['revindex0'] = $length 1;
  81.                 $context['loop']['revindex'] = $length;
  82.                 $context['loop']['length'] = $length;
  83.                 $context['loop']['last'] = === $length;
  84.             }
  85.             foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  86.                 // line 46
  87.                 echo "            ";
  88.                 echo twig_include($this->env$context"Product/list_single_slide_item.twig");
  89.                 echo "
  90.           ";
  91.                 ++$context['loop']['index0'];
  92.                 ++$context['loop']['index'];
  93.                 $context['loop']['first'] = false;
  94.                 if (isset($context['loop']['length'])) {
  95.                     --$context['loop']['revindex0'];
  96.                     --$context['loop']['revindex'];
  97.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  98.                 }
  99.             }
  100.             $_parent $context['_parent'];
  101.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  102.             $context array_intersect_key($context$_parent) + $_parent;
  103.             // line 48
  104.             echo "            
  105.         </div>
  106.     </div>
  107. </div>
  108. ";
  109.         }
  110.         
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  112.         
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  114.     }
  115.     // line 1
  116.     public function block_stylesheet($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  121.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  123.         // line 2
  124.         echo "  
  125. ";
  126.         
  127.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  128.         
  129.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  130.     }
  131.     // line 5
  132.     public function block_javascript($context, array $blocks = [])
  133.     {
  134.         $macros $this->macros;
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  137.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  139.         // line 6
  140.         echo "<script>
  141.     ";
  142.         // line 7
  143.         $context["arrowLeft"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slick-arrow-left-white.svg");
  144.         // line 8
  145.         echo "    ";
  146.         $context["arrowRight"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slick-arrow-right-white.svg");
  147.         // line 9
  148.         echo "    
  149.     \$(function() {
  150.         \$('#slide_ranking').slick({
  151.             slidesToShow: 4,
  152.             dots: false,
  153.             arrows: true,
  154.             autoplay: false,
  155.             speed: 300,
  156.             infinite: false,
  157.             appendArrows: \$('#ranking_arrows'),
  158.             prevArrow: '<button type=\"button\" class=\"btn\"><img src=\"";
  159.         // line 19
  160.         echo twig_escape_filter($this->env, (isset($context["arrowLeft"]) || array_key_exists("arrowLeft"$context) ? $context["arrowLeft"] : (function () { throw new RuntimeError('Variable "arrowLeft" does not exist.'19$this->source); })()), "html"nulltrue);
  161.         echo "\" alt=\"\"></button>',
  162.             nextArrow: '<button type=\"button\" class=\"btn btn-juliet\"><img src=\"";
  163.         // line 20
  164.         echo twig_escape_filter($this->env, (isset($context["arrowRight"]) || array_key_exists("arrowRight"$context) ? $context["arrowRight"] : (function () { throw new RuntimeError('Variable "arrowRight" does not exist.'20$this->source); })()), "html"nulltrue);
  165.         echo "\" alt=\"\"></button>',
  166.             responsive: [{
  167.                 breakpoint: 768,
  168.                 settings: {
  169.                   slidesToShow: 2
  170.                 }
  171.             }]
  172.         });
  173.     });
  174.         
  175. </script>
  176. ";
  177.         
  178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  179.         
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  181.     }
  182.     public function getTemplateName()
  183.     {
  184.         return "Block/order_by_sale.twig";
  185.     }
  186.     public function isTraitable()
  187.     {
  188.         return false;
  189.     }
  190.     public function getDebugInfo()
  191.     {
  192.         return array (  183 => 20,  179 => 19,  167 => 9,  164 => 8,  162 => 7,  159 => 6,  149 => 5,  138 => 2,  128 => 1,  113 => 48,  96 => 46,  79 => 45,  71 => 40,  67 => 39,  63 => 38,  57 => 34,  55 => 33,  52 => 32,  50 => 5,  47 => 4,  45 => 1,);
  193.     }
  194.     public function getSourceContext()
  195.     {
  196.         return new Source("{% block stylesheet %}
  197.   
  198. {% endblock %}
  199. {% block javascript %}
  200. <script>
  201.     {% set arrowLeft = asset('assets/icon/slick-arrow-left-white.svg') %}
  202.     {% set arrowRight = asset('assets/icon/slick-arrow-right-white.svg') %}
  203.     
  204.     \$(function() {
  205.         \$('#slide_ranking').slick({
  206.             slidesToShow: 4,
  207.             dots: false,
  208.             arrows: true,
  209.             autoplay: false,
  210.             speed: 300,
  211.             infinite: false,
  212.             appendArrows: \$('#ranking_arrows'),
  213.             prevArrow: '<button type=\"button\" class=\"btn\"><img src=\"{{ arrowLeft }}\" alt=\"\"></button>',
  214.             nextArrow: '<button type=\"button\" class=\"btn btn-juliet\"><img src=\"{{ arrowRight }}\" alt=\"\"></button>',
  215.             responsive: [{
  216.                 breakpoint: 768,
  217.                 settings: {
  218.                   slidesToShow: 2
  219.                 }
  220.             }]
  221.         });
  222.     });
  223.         
  224. </script>
  225. {% endblock javascript %}
  226. {% if Products|length %}
  227. <div class=\"ec-role\">
  228.     <div class=\"ec-rankingRole ec-contentRole\">
  229.         <div class=\"ec-secHeading\">
  230.             <div>
  231.                 <span class=\"ec-secHeading__en\">{{ 'RANKING'|trans }}</span>
  232.                 <img src=\"{{ asset('assets/icon/slash.svg') }}\" alt=\"\" class=\"ec-slash is-pc\">
  233.                 <span class=\"ec-secHeading__ja\">{{ 'ランキング'|trans }}</span>
  234.             </div>
  235.             <div class=\"ranking-arrows content-arrows\" id=\"ranking_arrows\"></div>
  236.         </div>
  237.         <div class=\"ec-rankingRole__List\" id=\"slide_ranking\">
  238.           {% for Product in Products %}
  239.             {{ include('Product/list_single_slide_item.twig') }}
  240.           {% endfor %}
  241.             
  242.         </div>
  243.     </div>
  244. </div>
  245. {% endif %}""Block/order_by_sale.twig""/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/Block/order_by_sale.twig");
  246.     }
  247. }