var/cache/dev/twig/2c/2c6768a4f2445956322447f9940f9c23.php line 51

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. /* index.twig */
  14. class __TwigTemplate_ca180ef53184bb1b7d17509e8ff62755 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.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  38.         // line 13
  39.         $context["body_class"] = "front_page brand-top ";
  40.         // line 11
  41.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 15
  49.     public function block_main($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  56.         // line 16
  57.         echo "    <div class=\"top_main_contents\">
  58.     </div>
  59. ";
  60.         // line 20
  61.         echo "<div class=\"ec-layoutRole__mainBottom\" id=\"top-review\">
  62.     <div class=\"top-review ec-role_cosme\">
  63.         <div class=\"ec-secHeading\">
  64.             <span class=\"ec-secHeading__en\">NEW REVIEW</span>
  65.             <span class=\"ec-secHeading__ja\">新着順20レビュー</span>
  66.         </div>
  67.         <ul class=\"ec-reviewList\">
  68.             ";
  69.         // line 27
  70.         if ( !twig_test_empty((isset($context["Reviews"]) || array_key_exists("Reviews"$context) ? $context["Reviews"] : (function () { throw new RuntimeError('Variable "Reviews" does not exist.'27$this->source); })()))) {
  71.             // line 28
  72.             echo "                ";
  73.             $context['_parent'] = $context;
  74.             $context['_seq'] = twig_ensure_traversable((isset($context["Reviews"]) || array_key_exists("Reviews"$context) ? $context["Reviews"] : (function () { throw new RuntimeError('Variable "Reviews" does not exist.'28$this->source); })()));
  75.             foreach ($context['_seq'] as $context["_key"] => $context["Review"]) {
  76.                 // line 29
  77.                 echo "                    <li class=\"ec-reviewList__item\">
  78.                     <a href=\"";
  79.                 // line 30
  80.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Review"], "Product", [], "any"falsefalsefalse30), "id", [], "any"falsefalsefalse30)]), "html"nulltrue);
  81.                 echo "\">
  82.                         <div class=\"ec-reviewList__header\">
  83.                           <h3 class=\"ec-reviewList__productName\">";
  84.                 // line 32
  85.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Review"], "Product", [], "any"falsefalsefalse32), "name", [], "any"falsefalsefalse32), "html"nulltrue);
  86.                 echo "</h3>
  87.                           <p class=\"ec-reviewList__name\">";
  88.                 // line 33
  89.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "reviewer_name", [], "any"falsefalsefalse33), "html"nulltrue);
  90.                 echo " 様 <span class=\"ec-reviewList__date\">";
  91.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "create_date", [], "any"falsefalsefalse33), "Y/m/d"), "html"nulltrue);
  92.                 echo "</span><span class=\"ec-reviewList__star\">";
  93.                 $context['_parent'] = $context;
  94.                 $context['_seq'] = twig_ensure_traversable(range(1twig_get_attribute($this->env$this->source$context["Review"], "recommend_level", [], "any"falsefalsefalse33)));
  95.                 foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  96.                     echo "★";
  97.                 }
  98.                 $_parent $context['_parent'];
  99.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  100.                 $context array_intersect_key($context$_parent) + $_parent;
  101.                 echo "</span>
  102.                           </p>
  103.                         </div>
  104.                         <p class=\"ec-reviewList__comment\">";
  105.                 // line 36
  106.                 echo twig_nl2br(twig_escape_filter($this->env, (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["Review"], "comment", [], "any"falsefalsefalse36)) > 150)) ? ((twig_slice($this->envtwig_get_attribute($this->env$this->source$context["Review"], "comment", [], "any"falsefalsefalse36), 0150) . "...")) : (twig_get_attribute($this->env$this->source$context["Review"], "comment", [], "any"falsefalsefalse36))), "html"nulltrue));
  107.                 echo "</p>
  108.                         <p class=\"right s80\">商品ページへ ></p>
  109.                     </a>
  110.                     </li>
  111.                 ";
  112.             }
  113.             $_parent $context['_parent'];
  114.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Review'], $context['_parent'], $context['loop']);
  115.             $context array_intersect_key($context$_parent) + $_parent;
  116.             // line 41
  117.             echo "            ";
  118.         } else {
  119.             // line 42
  120.             echo "                <li class=\"ec-reviewList__item--none\">レビューはまだありません。</li>
  121.             ";
  122.         }
  123.         // line 44
  124.         echo "        </ul>
  125.       
  126.         <div class=\"accordion\">
  127.         <details>
  128.         <summary>\教えてください!/<br>
  129.         <span class=\"small\">あなたの声が「ステキの道しるべ」になります</span></summary>
  130.         <p>私たちは、一つひとつの商品がまっすぐ伝わるよう、心を込めて商品紹介をしています。<br>
  131.         ですが、実際に商品を手にしてくださった「リアルな声」に勝るものはありません。<br><br>
  132.         「この使い心地が好き」<br>
  133.         「こんな使い方もおすすめです」<br>
  134.         「リピートしている決め手は」<br><br>
  135.         そんな、あなただけの素直な声が、お気に入りアイテムと出会うための、何より大切な「道しるべ」となります。<br><br>
  136.         もしよろしければ、ほんのひとことでも構いません。<br>
  137.         あなたが感じた商品とのストーリーを、ぜひお聞かせいただけないでしょうか。<br>
  138.         温かいお声が集まることで、この場所がさらにお役に立てることを願っております。</p>
  139.         </details>
  140.         <P class=\"orange bold\">レビュー投稿で300ポイント贈呈!詳しくは各商品ページ「レビューを投稿」ボタンから</P>
  141.         </div>
  142.       
  143.     </div>
  144. </div>
  145. ";
  146.         
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  148.         
  149.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  150.     }
  151.     public function getTemplateName()
  152.     {
  153.         return "index.twig";
  154.     }
  155.     public function isTraitable()
  156.     {
  157.         return false;
  158.     }
  159.     public function getDebugInfo()
  160.     {
  161.         return array (  139 => 44,  135 => 42,  132 => 41,  121 => 36,  104 => 33,  100 => 32,  95 => 30,  92 => 29,  87 => 28,  85 => 27,  76 => 20,  71 => 16,  61 => 15,  50 => 11,  48 => 13,  35 => 11,);
  162.     }
  163.     public function getSourceContext()
  164.     {
  165.         return new Source("{#
  166. This file is part of EC-CUBE
  167. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  168. http://www.ec-cube.co.jp/
  169. For the full copyright and license information, please view the LICENSE
  170. file that was distributed with this source code.
  171. #}
  172. {% extends 'default_frame.twig' %}
  173. {% set body_class = 'front_page brand-top ' %}
  174. {% block main %}
  175.     <div class=\"top_main_contents\">
  176.     </div>
  177. {# index.twig の好きな場所にこのコードを貼り付ける #}
  178. <div class=\"ec-layoutRole__mainBottom\" id=\"top-review\">
  179.     <div class=\"top-review ec-role_cosme\">
  180.         <div class=\"ec-secHeading\">
  181.             <span class=\"ec-secHeading__en\">NEW REVIEW</span>
  182.             <span class=\"ec-secHeading__ja\">新着順20レビュー</span>
  183.         </div>
  184.         <ul class=\"ec-reviewList\">
  185.             {% if Reviews is not empty %}
  186.                 {% for Review in Reviews %}
  187.                     <li class=\"ec-reviewList__item\">
  188.                     <a href=\"{{ url('product_detail', {id: Review.Product.id}) }}\">
  189.                         <div class=\"ec-reviewList__header\">
  190.                           <h3 class=\"ec-reviewList__productName\">{{ Review.Product.name }}</h3>
  191.                           <p class=\"ec-reviewList__name\">{{ Review.reviewer_name }} 様 <span class=\"ec-reviewList__date\">{{ Review.create_date|date(\"Y/m/d\") }}</span><span class=\"ec-reviewList__star\">{% for i in 1..Review.recommend_level %}★{% endfor %}</span>
  192.                           </p>
  193.                         </div>
  194.                         <p class=\"ec-reviewList__comment\">{{ (Review.comment|length > 150 ? Review.comment|slice(0, 150) ~ '...' : Review.comment)|nl2br }}</p>
  195.                         <p class=\"right s80\">商品ページへ ></p>
  196.                     </a>
  197.                     </li>
  198.                 {% endfor %}
  199.             {% else %}
  200.                 <li class=\"ec-reviewList__item--none\">レビューはまだありません。</li>
  201.             {% endif %}
  202.         </ul>
  203.       
  204.         <div class=\"accordion\">
  205.         <details>
  206.         <summary>\教えてください!/<br>
  207.         <span class=\"small\">あなたの声が「ステキの道しるべ」になります</span></summary>
  208.         <p>私たちは、一つひとつの商品がまっすぐ伝わるよう、心を込めて商品紹介をしています。<br>
  209.         ですが、実際に商品を手にしてくださった「リアルな声」に勝るものはありません。<br><br>
  210.         「この使い心地が好き」<br>
  211.         「こんな使い方もおすすめです」<br>
  212.         「リピートしている決め手は」<br><br>
  213.         そんな、あなただけの素直な声が、お気に入りアイテムと出会うための、何より大切な「道しるべ」となります。<br><br>
  214.         もしよろしければ、ほんのひとことでも構いません。<br>
  215.         あなたが感じた商品とのストーリーを、ぜひお聞かせいただけないでしょうか。<br>
  216.         温かいお声が集まることで、この場所がさらにお役に立てることを願っております。</p>
  217.         </details>
  218.         <P class=\"orange bold\">レビュー投稿で300ポイント贈呈!詳しくは各商品ページ「レビューを投稿」ボタンから</P>
  219.         </div>
  220.       
  221.     </div>
  222. </div>
  223. {% endblock %}""index.twig""/home/owl/owl-horie.com/public_html/test-eccube.owl-horie.com/app/template/cosme41/index.twig");
  224.     }
  225. }