<?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;
/* Taste/view.twig */
class __TwigTemplate_9f52597e38a58c225aaed29810d1a2d53062d8a4ae3dc249109c2ba84c0c6035 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
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", "Taste/view.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Taste/view.twig"));
// line 13
$context["body_class"] = "product_list";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Taste/view.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 15
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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_main($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", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 19
echo "
<!-- パンくず設定 -->
";
// line 21
$context["breadcrumb"] = [];
// line 22
echo " ";
$context["breadcrumb"] = twig_array_merge((isset($context["breadcrumb"]) || array_key_exists("breadcrumb", $context) ? $context["breadcrumb"] : (function () { throw new RuntimeError('Variable "breadcrumb" does not exist.', 22, $this->source); })()), [0 => ["name" => "カリーノツーシントップ", "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_index")]]);
// line 23
echo " ";
echo twig_include($this->env, $context, "Block/breadcrumb.twig");
echo "
<!-- /パンくず設定 -->
<div class=\"ec-pageHeader\">
<h2>";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Taste"]) || array_key_exists("Taste", $context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.', 27, $this->source); })()), "name", [], "any", false, false, false, 27), "html", null, true);
echo "</h2>
</div>
<div class=\"brand_detail\">
<div class=\"box1\">
<div class=\"img\">
<img src=\"";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Taste"]) || array_key_exists("Taste", $context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.', 33, $this->source); })()), "image", [], "any", false, false, false, 33), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Taste"]) || array_key_exists("Taste", $context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.', 33, $this->source); })()), "name", [], "any", false, false, false, 33), "html", null, true);
echo "\" width=\"100%\">
</div>
</div>
<div class=\"box2\">
<div class=\"ec-pageHeader\">
<h2>";
// line 38
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Taste"]) || array_key_exists("Taste", $context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, false, 38), "html", null, true);
echo "</h2>
</div>
<div class=\"description\">
";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Taste"]) || array_key_exists("Taste", $context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.', 41, $this->source); })()), "description", [], "any", false, false, false, 41), "html", null, true);
echo "
</div>
</div>
</div>
<div class=\"ec-pageHeader\">
<h2>商品一覧</h2>
</div>
<div class=\"brand_products product_list\">
<ul class=\"ec-shelfGrid\">
";
// line 51
$context["Products"] = twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\Product"]), "getTasteProducts", [0 => ["Taste" => (isset($context["Taste"]) || array_key_exists("Taste", $context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.', 51, $this->source); })())]], "method", false, false, false, 51);
// line 52
echo " ";
$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.', 52, $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 53
echo " ";
echo twig_include($this->env, $context, "Product/list_single_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 55
echo " </ul>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Taste/view.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 182 => 55, 165 => 53, 147 => 52, 145 => 51, 132 => 41, 126 => 38, 116 => 33, 107 => 27, 99 => 23, 96 => 22, 94 => 21, 90 => 19, 80 => 18, 62 => 15, 51 => 11, 49 => 13, 36 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'product_list' %}
{% block stylesheet %}
{% endblock %}
{% block main %}
<!-- パンくず設定 -->
{% set breadcrumb = [] %}
{% set breadcrumb = breadcrumb|merge([{'name': 'カリーノツーシントップ','path': url('blog_index')}]) %}
{{ include('Block/breadcrumb.twig') }}
<!-- /パンくず設定 -->
<div class=\"ec-pageHeader\">
<h2>{{ Taste.name }}</h2>
</div>
<div class=\"brand_detail\">
<div class=\"box1\">
<div class=\"img\">
<img src=\"{{ Taste.image }}\" alt=\"{{ Taste.name }}\" width=\"100%\">
</div>
</div>
<div class=\"box2\">
<div class=\"ec-pageHeader\">
<h2>{{ Taste.name }}</h2>
</div>
<div class=\"description\">
{{ Taste.description }}
</div>
</div>
</div>
<div class=\"ec-pageHeader\">
<h2>商品一覧</h2>
</div>
<div class=\"brand_products product_list\">
<ul class=\"ec-shelfGrid\">
{% set Products = repository('Eccube\\\\Entity\\\\Product').getTasteProducts({'Taste': Taste}) %}
{% for Product in Products %}
{{ include('Product/list_single_item.twig') }}
{% endfor %}
</ul>
</div>
{% endblock %}
", "Taste/view.twig", "/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/Taste/view.twig");
}
}