var/cache/dev/twig/91/918b34e1d8f4af1aaaded282413a09e370544ff4bee5590a59c5cacc61a26102.php line 52

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. /* Brand/view.twig */
  14. class __TwigTemplate_50ab38246cfb3161e303c90c251f1c89c5885e16b45437eb07c84f1df9c6a476 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->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 11
  30.         return "default_frame.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Brand/view.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Brand/view.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_list";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Brand/view.twig"11);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 15
  50.     public function block_stylesheet($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 18
  63.     public function block_main($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  70.         // line 19
  71.         echo "
  72.   <!-- パンくず設定 -->
  73.   ";
  74.         // line 21
  75.         $context["breadcrumb"] = [];
  76.         // line 22
  77.         echo "  ";
  78.         $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); })()), [=> ["name" => "カリーノツーシントップ""path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("blog_index")]]);
  79.         // line 23
  80.         echo "  ";
  81.         echo twig_include($this->env$context"Block/breadcrumb.twig");
  82.         echo "
  83.   <!-- /パンくず設定 -->
  84.   
  85.   <div class=\"brand_detail\">
  86.     <div class=\"box1\">
  87.       <div class=\"img\">
  88.         <img src=\"";
  89.         // line 29
  90.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse29), "html"nulltrue);
  91.         echo "\" alt=\"";
  92.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse29), "html"nulltrue);
  93.         echo "\" width=\"100%\">
  94.        </div>
  95.     </div>
  96.     <div class=\"box2\">
  97.       <div class=\"ec-pageHeader\">
  98.         <h2>";
  99.         // line 34
  100.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse34), "html"nulltrue);
  101.         echo "<span class=\"kana\">";
  102.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse34), "html"nulltrue);
  103.         echo "</span></h2>
  104.       </div>
  105.       <div class=\"description\">
  106.         ";
  107.         // line 37
  108.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse37), "html"nulltrue);
  109.         echo "
  110.       </div>
  111.     </div>
  112.   </div>
  113.     
  114.   <div class=\"ec-pageHeader\">
  115.     <h2>商品一覧</h2>
  116.   </div>
  117.   <div class=\"brand_products product_list\">
  118.     <ul class=\"ec-shelfGrid\">
  119.     ";
  120.         // line 47
  121.         $context["Products"] = twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\Product"]), "getBrandProducts", [=> ["Brand" => (isset($context["Brand"]) || array_key_exists("Brand"$context) ? $context["Brand"] : (function () { throw new RuntimeError('Variable "Brand" does not exist.'47$this->source); })())]], "method"falsefalsefalse47);
  122.         // line 48
  123.         echo "    ";
  124.         $context['_parent'] = $context;
  125.         $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); })()));
  126.         $context['loop'] = [
  127.           'parent' => $context['_parent'],
  128.           'index0' => 0,
  129.           'index'  => 1,
  130.           'first'  => true,
  131.         ];
  132.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  133.             $length count($context['_seq']);
  134.             $context['loop']['revindex0'] = $length 1;
  135.             $context['loop']['revindex'] = $length;
  136.             $context['loop']['length'] = $length;
  137.             $context['loop']['last'] = === $length;
  138.         }
  139.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  140.             // line 49
  141.             echo "    ";
  142.             echo twig_include($this->env$context"Product/list_single_item.twig");
  143.             echo "
  144.     ";
  145.             ++$context['loop']['index0'];
  146.             ++$context['loop']['index'];
  147.             $context['loop']['first'] = false;
  148.             if (isset($context['loop']['length'])) {
  149.                 --$context['loop']['revindex0'];
  150.                 --$context['loop']['revindex'];
  151.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  152.             }
  153.         }
  154.         $_parent $context['_parent'];
  155.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  156.         $context array_intersect_key($context$_parent) + $_parent;
  157.         // line 51
  158.         echo "    </ul>
  159.   </div>
  160. ";
  161.         
  162.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  163.         
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "Brand/view.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         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,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{#
  181. This file is part of EC-CUBE
  182. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  183. http://www.ec-cube.co.jp/
  184. For the full copyright and license information, please view the LICENSE
  185. file that was distributed with this source code.
  186. #}
  187. {% extends 'default_frame.twig' %}
  188. {% set body_class = 'product_list' %}
  189. {% block stylesheet %}
  190. {% endblock %}
  191. {% block main %}
  192.   <!-- パンくず設定 -->
  193.   {% set breadcrumb = [] %}
  194.   {% set breadcrumb = breadcrumb|merge([{'name': 'カリーノツーシントップ','path': url('blog_index')}]) %}
  195.   {{ include('Block/breadcrumb.twig') }}
  196.   <!-- /パンくず設定 -->
  197.   
  198.   <div class=\"brand_detail\">
  199.     <div class=\"box1\">
  200.       <div class=\"img\">
  201.         <img src=\"{{ Brand.image }}\" alt=\"{{ Brand.name }}\" width=\"100%\">
  202.        </div>
  203.     </div>
  204.     <div class=\"box2\">
  205.       <div class=\"ec-pageHeader\">
  206.         <h2>{{ Brand.name }}<span class=\"kana\">{{ Brand.kana }}</span></h2>
  207.       </div>
  208.       <div class=\"description\">
  209.         {{ Brand.description }}
  210.       </div>
  211.     </div>
  212.   </div>
  213.     
  214.   <div class=\"ec-pageHeader\">
  215.     <h2>商品一覧</h2>
  216.   </div>
  217.   <div class=\"brand_products product_list\">
  218.     <ul class=\"ec-shelfGrid\">
  219.     {% set Products = repository('Eccube\\\\Entity\\\\Product').getBrandProducts({'Brand': Brand}) %}
  220.     {% for Product in Products %}
  221.     {{ include('Product/list_single_item.twig') }}
  222.     {% endfor %}
  223.     </ul>
  224.   </div>
  225. {% endblock %}
  226. ""Brand/view.twig""/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/Brand/view.twig");
  227.     }
  228. }