<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/order_by_sale.twig */
class __TwigTemplate_1b855590d7d6255e68f91f54f9c9205861da21513b87485a8c01a2fa2379098a extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/order_by_sale.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/order_by_sale.twig"));
// line 1
$this->displayBlock('stylesheet', $context, $blocks);
// line 4
echo "
";
// line 5
$this->displayBlock('javascript', $context, $blocks);
// line 32
echo "
";
// line 33
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); })()))) {
// line 34
echo "<div class=\"ec-role\">
<div class=\"ec-rankingRole ec-contentRole\">
<div class=\"ec-secHeading\">
<div>
<span class=\"ec-secHeading__en\">";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("RANKING"), "html", null, true);
echo "</span>
<img src=\"";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slash.svg"), "html", null, true);
echo "\" alt=\"\" class=\"ec-slash is-pc\">
<span class=\"ec-secHeading__ja\">";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ランキング"), "html", null, true);
echo "</span>
</div>
<div class=\"ranking-arrows content-arrows\" id=\"ranking_arrows\"></div>
</div>
<div class=\"ec-rankingRole__List\" id=\"slide_ranking\">
";
// line 45
$context['_parent'] = $context;
$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); })()));
$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["Product"]) {
// line 46
echo " ";
echo twig_include($this->env, $context, "Product/list_single_slide_item.twig");
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['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
echo "
</div>
</div>
</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 1
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 2
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 6
echo "<script>
";
// line 7
$context["arrowLeft"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slick-arrow-left-white.svg");
// line 8
echo " ";
$context["arrowRight"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/slick-arrow-right-white.svg");
// line 9
echo "
\$(function() {
\$('#slide_ranking').slick({
slidesToShow: 4,
dots: false,
arrows: true,
autoplay: false,
speed: 300,
infinite: false,
appendArrows: \$('#ranking_arrows'),
prevArrow: '<button type=\"button\" class=\"btn\"><img src=\"";
// line 19
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", null, true);
echo "\" alt=\"\"></button>',
nextArrow: '<button type=\"button\" class=\"btn btn-juliet\"><img src=\"";
// line 20
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", null, true);
echo "\" alt=\"\"></button>',
responsive: [{
breakpoint: 768,
settings: {
slidesToShow: 2
}
}]
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Block/order_by_sale.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% block stylesheet %}
{% endblock %}
{% block javascript %}
<script>
{% set arrowLeft = asset('assets/icon/slick-arrow-left-white.svg') %}
{% set arrowRight = asset('assets/icon/slick-arrow-right-white.svg') %}
\$(function() {
\$('#slide_ranking').slick({
slidesToShow: 4,
dots: false,
arrows: true,
autoplay: false,
speed: 300,
infinite: false,
appendArrows: \$('#ranking_arrows'),
prevArrow: '<button type=\"button\" class=\"btn\"><img src=\"{{ arrowLeft }}\" alt=\"\"></button>',
nextArrow: '<button type=\"button\" class=\"btn btn-juliet\"><img src=\"{{ arrowRight }}\" alt=\"\"></button>',
responsive: [{
breakpoint: 768,
settings: {
slidesToShow: 2
}
}]
});
});
</script>
{% endblock javascript %}
{% if Products|length %}
<div class=\"ec-role\">
<div class=\"ec-rankingRole ec-contentRole\">
<div class=\"ec-secHeading\">
<div>
<span class=\"ec-secHeading__en\">{{ 'RANKING'|trans }}</span>
<img src=\"{{ asset('assets/icon/slash.svg') }}\" alt=\"\" class=\"ec-slash is-pc\">
<span class=\"ec-secHeading__ja\">{{ 'ランキング'|trans }}</span>
</div>
<div class=\"ranking-arrows content-arrows\" id=\"ranking_arrows\"></div>
</div>
<div class=\"ec-rankingRole__List\" id=\"slide_ranking\">
{% for Product in Products %}
{{ include('Product/list_single_slide_item.twig') }}
{% endfor %}
</div>
</div>
</div>
{% endif %}", "Block/order_by_sale.twig", "/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/Block/order_by_sale.twig");
}
}