var/cache/dev/twig/86/86e05d65d0b6fafb799ea8e83d3922a5590b68bb9e4dddc4eddab099c3ecd1a4.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. /* Taste/view.twig */
  14. class __TwigTemplate_9f52597e38a58c225aaed29810d1a2d53062d8a4ae3dc249109c2ba84c0c6035 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""Taste/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""Taste/view.twig"));
  39.         // line 13
  40.         $context["body_class"] = "product_list";
  41.         // line 11
  42.         $this->parent $this->loadTemplate("default_frame.twig""Taste/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=\"ec-pageHeader\">
  86.     <h2>";
  87.         // line 27
  88.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), "html"nulltrue);
  89.         echo "</h2>
  90.   </div>
  91.   
  92.   <div class=\"brand_detail\">
  93.     <div class=\"box1\">
  94.       <div class=\"img\">
  95.         <img src=\"";
  96.         // line 33
  97.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  98.         echo "\" alt=\"";
  99.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse33), "html"nulltrue);
  100.         echo "\" width=\"100%\">
  101.        </div>
  102.     </div>
  103.     <div class=\"box2\">
  104.       <div class=\"ec-pageHeader\">
  105.         <h2>";
  106.         // line 38
  107.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse38), "html"nulltrue);
  108.         echo "</h2>
  109.       </div>
  110.       <div class=\"description\">
  111.         ";
  112.         // line 41
  113.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse41), "html"nulltrue);
  114.         echo "
  115.       </div>
  116.     </div>
  117.   </div>
  118.     
  119.   <div class=\"ec-pageHeader\">
  120.     <h2>商品一覧</h2>
  121.   </div>
  122.   <div class=\"brand_products product_list\">
  123.     <ul class=\"ec-shelfGrid\">
  124.     ";
  125.         // line 51
  126.         $context["Products"] = twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('repository')->getCallable(), ["Eccube\\Entity\\Product"]), "getTasteProducts", [=> ["Taste" => (isset($context["Taste"]) || array_key_exists("Taste"$context) ? $context["Taste"] : (function () { throw new RuntimeError('Variable "Taste" does not exist.'51$this->source); })())]], "method"falsefalsefalse51);
  127.         // line 52
  128.         echo "    ";
  129.         $context['_parent'] = $context;
  130.         $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); })()));
  131.         $context['loop'] = [
  132.           'parent' => $context['_parent'],
  133.           'index0' => 0,
  134.           'index'  => 1,
  135.           'first'  => true,
  136.         ];
  137.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  138.             $length count($context['_seq']);
  139.             $context['loop']['revindex0'] = $length 1;
  140.             $context['loop']['revindex'] = $length;
  141.             $context['loop']['length'] = $length;
  142.             $context['loop']['last'] = === $length;
  143.         }
  144.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  145.             // line 53
  146.             echo "    ";
  147.             echo twig_include($this->env$context"Product/list_single_item.twig");
  148.             echo "
  149.     ";
  150.             ++$context['loop']['index0'];
  151.             ++$context['loop']['index'];
  152.             $context['loop']['first'] = false;
  153.             if (isset($context['loop']['length'])) {
  154.                 --$context['loop']['revindex0'];
  155.                 --$context['loop']['revindex'];
  156.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  157.             }
  158.         }
  159.         $_parent $context['_parent'];
  160.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  161.         $context array_intersect_key($context$_parent) + $_parent;
  162.         // line 55
  163.         echo "    </ul>
  164.   </div>
  165. ";
  166.         
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  168.         
  169.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  170.     }
  171.     public function getTemplateName()
  172.     {
  173.         return "Taste/view.twig";
  174.     }
  175.     public function isTraitable()
  176.     {
  177.         return false;
  178.     }
  179.     public function getDebugInfo()
  180.     {
  181.         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,);
  182.     }
  183.     public function getSourceContext()
  184.     {
  185.         return new Source("{#
  186. This file is part of EC-CUBE
  187. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  188. http://www.ec-cube.co.jp/
  189. For the full copyright and license information, please view the LICENSE
  190. file that was distributed with this source code.
  191. #}
  192. {% extends 'default_frame.twig' %}
  193. {% set body_class = 'product_list' %}
  194. {% block stylesheet %}
  195. {% endblock %}
  196. {% block main %}
  197.   <!-- パンくず設定 -->
  198.   {% set breadcrumb = [] %}
  199.   {% set breadcrumb = breadcrumb|merge([{'name': 'カリーノツーシントップ','path': url('blog_index')}]) %}
  200.   {{ include('Block/breadcrumb.twig') }}
  201.   <!-- /パンくず設定 -->
  202.   
  203.   <div class=\"ec-pageHeader\">
  204.     <h2>{{ Taste.name }}</h2>
  205.   </div>
  206.   
  207.   <div class=\"brand_detail\">
  208.     <div class=\"box1\">
  209.       <div class=\"img\">
  210.         <img src=\"{{ Taste.image }}\" alt=\"{{ Taste.name }}\" width=\"100%\">
  211.        </div>
  212.     </div>
  213.     <div class=\"box2\">
  214.       <div class=\"ec-pageHeader\">
  215.         <h2>{{ Taste.name }}</h2>
  216.       </div>
  217.       <div class=\"description\">
  218.         {{ Taste.description }}
  219.       </div>
  220.     </div>
  221.   </div>
  222.     
  223.   <div class=\"ec-pageHeader\">
  224.     <h2>商品一覧</h2>
  225.   </div>
  226.   <div class=\"brand_products product_list\">
  227.     <ul class=\"ec-shelfGrid\">
  228.     {% set Products = repository('Eccube\\\\Entity\\\\Product').getTasteProducts({'Taste': Taste}) %}
  229.     {% for Product in Products %}
  230.     {{ include('Product/list_single_item.twig') }}
  231.     {% endfor %}
  232.     </ul>
  233.   </div>
  234. {% endblock %}
  235. ""Taste/view.twig""/home/univfukuoka3/web-srv.biz/public_html/kaiino/app/template/kaiino/Taste/view.twig");
  236.     }
  237. }