<?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;
/* Brand/view.twig */
class __TwigTemplate_50ab38246cfb3161e303c90c251f1c89c5885e16b45437eb07c84f1df9c6a476 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", "Brand/view.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Brand/view.twig"));
// line 13
$context["body_class"] = "product_list";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Brand/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=\"brand_detail\">
<div class=\"box1\">
<div class=\"img\">
<img src=\"";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Brand"]) || array_key_exists("Brand", $context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.', 29, $this->source); })()), "image", [], "any", false, false, false, 29), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Brand"]) || array_key_exists("Brand", $context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.', 29, $this->source); })()), "name", [], "any", false, false, false, 29), "html", null, true);
echo "\" width=\"100%\">
</div>
</div>
<div class=\"box2\">
<div class=\"ec-pageHeader\">
<h2>";
// line 34
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Brand"]) || array_key_exists("Brand", $context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34), "html", null, true);
echo "<span class=\"kana\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Brand"]) || array_key_exists("Brand", $context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.', 34, $this->source); })()), "kana", [], "any", false, false, false, 34), "html", null, true);
echo "</span></h2>
</div>
<div class=\"description\">
";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["Brand"]) || array_key_exists("Brand", $context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.', 37, $this->source); })()), "description", [], "any", false, false, false, 37), "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 47
$context["Products"] = twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\Product"]), "getBrandProducts", [0 => ["Brand" => (isset($context["Brand"]) || array_key_exists("Brand", $context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.', 47, $this->source); })())]], "method", false, false, false, 47);
// line 48
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.', 48, $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 49
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 51
echo " </ul>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Brand/view.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 177 => 51, 160 => 49, 142 => 48, 140 => 47, 127 => 37, 119 => 34, 109 => 29, 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=\"brand_detail\">
<div class=\"box1\">
<div class=\"img\">
<img src=\"{{ Brand.image }}\" alt=\"{{ Brand.name }}\" width=\"100%\">
</div>
</div>
<div class=\"box2\">
<div class=\"ec-pageHeader\">
<h2>{{ Brand.name }}<span class=\"kana\">{{ Brand.kana }}</span></h2>
</div>
<div class=\"description\">
{{ Brand.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').getBrandProducts({'Brand': Brand}) %}
{% for Product in Products %}
{{ include('Product/list_single_item.twig') }}
{% endfor %}
</ul>
</div>
{% endblock %}
", "Brand/view.twig", "/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/Brand/view.twig");
}
}