var/cache/dev/twig/8b/8b51dc6b74611271ad0af3a6468e6e92f8a6fe2187824545c2c6a2316f136216.php line 40

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_6cb47d61a9dc90c7605f0029536f504586780aee2e7b675d2783dcd90b3536b2 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.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 11
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  40.         // line 13
  41.         $context["body_class"] = "front_page";
  42.         // line 11
  43.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  44.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  47.         
  48.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  49.     }
  50.     // line 15
  51.     public function block_stylesheet($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         // line 16
  59.         echo "    <style>
  60.     </style>
  61. ";
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 20
  68.     public function block_javascript($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  75.         // line 21
  76.         echo "    <script>
  77.     </script>
  78. ";
  79.         
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  81.         
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  83.     }
  84.     // line 26
  85.     public function block_main($context, array $blocks = [])
  86.     {
  87.         $macros $this->macros;
  88.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  90.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  92.         // line 27
  93.         echo "    <article id=\"top\">
  94.         <section class=\"visual\">
  95.             <div class=\"text\">
  96.                 <h2>LIFE TIME<br>GEAR<br> SUPPLY</h2>
  97.                 <div class=\"pc\">
  98.                     <p>SLAPSは、バイク、自転車、クルマ、キャンプなど</p>
  99.                     <p>幅広いアウトドアアクティビティを中心に</p>
  100.                     <p>魅力的な商品を厳選して提供するネットショップです。</p>
  101.                 </div><!-- /pc -->
  102.                 <div class=\"sp\">
  103.                     <p>SLAPSは、バイク、自転車、キャンプなど、</p>
  104.                     <p>幅広いアウトドアアクティビティを中心に、</p>
  105.                     <p>魅力的なアイテムを厳選してご提供しています。</p>
  106.                 </div><!-- /pc -->
  107.             </div><!-- /text -->
  108.         </section><!-- /visual -->
  109.         <section class=\"news\" style=\"display: none\">
  110.             <header>
  111.                 <h3>NEWS</h3>
  112.                 <div class=\"news-list\">
  113.                     <ul>
  114.                         <li>
  115.                             <article>
  116.                                 <time></time>
  117.                                 <h4></h4>
  118.                             </article>
  119.                         </li>
  120.                     </ul>
  121.                 </div><!-- /news-list -->
  122.             </header>
  123.         </section><!-- /news -->
  124.         <section class=\"item\">
  125.             <div class=\"content\">
  126.                 <header>
  127.                     <h2>ALL PRODUCTS</h2>
  128.                 </header>
  129.                 ";
  130.         // line 64
  131.         $context["recommend_products"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Plugin\\Recommend42\\Entity\\RecommendProduct"), "getRecommendProduct", [], "any"falsefalsefalse64);
  132.         // line 65
  133.         echo "
  134.                 <!-- ▼item_list▼ -->
  135.                 <div class=\"item-list\">
  136.                     <ul>
  137.                         ";
  138.         // line 69
  139.         $context['_parent'] = $context;
  140.         $context['_seq'] = twig_ensure_traversable((isset($context["recommend_products"]) || array_key_exists("recommend_products"$context) ? $context["recommend_products"] : (function () { throw new RuntimeError('Variable "recommend_products" does not exist.'69$this->source); })()));
  141.         foreach ($context['_seq'] as $context["_key"] => $context["RecommendProduct"]) {
  142.             // line 70
  143.             echo "                            <li class=\"ec-shelfGrid__item\">
  144.                                 <article>
  145.                                     <a href=\"";
  146.             // line 72
  147.             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["RecommendProduct"], "Product", [], "any"falsefalsefalse72), "id", [], "any"falsefalsefalse72)]), "html"nulltrue);
  148.             echo "\">
  149.                                         <div class=\"image\">
  150.                                             <img src=\"";
  151.             // line 74
  152.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse74), "mainFileName", [], "any"falsefalsefalse74), "save_image"), "html"nulltrue);
  153.             echo "\">
  154.                                         </div><!-- /image -->
  155.                                         <div class=\"text\">
  156.                                             ";
  157.             // line 78
  158.             echo $this->env->getRuntime('Exercise\HTMLPurifierBundle\Twig\HTMLPurifierRuntime')->purify(twig_get_attribute($this->env$this->source$context["RecommendProduct"], "comment", [], "any"falsefalsefalse78));
  159.             echo "
  160.                                             <span class=\"price\">
  161.                                         ";
  162.             // line 80
  163.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse80), "hasProductClass", [], "any"falsefalsefalse80)) {
  164.                 // line 81
  165.                 echo "                                            ";
  166.                 if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse81), "getPrice02Min", [], "any"falsefalsefalse81) == twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse81), "getPrice02Max", [], "any"falsefalsefalse81))) {
  167.                     // line 82
  168.                     echo "                                                ";
  169.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse82), "getPrice02IncTaxMin", [], "any"falsefalsefalse82)), "html"nulltrue);
  170.                     echo "
  171.                                             ";
  172.                 } else {
  173.                     // line 84
  174.                     echo "                                                ";
  175.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse84), "getPrice02IncTaxMin", [], "any"falsefalsefalse84)), "html"nulltrue);
  176.                     echo " ~ ";
  177.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse84), "getPrice02IncTaxMax", [], "any"falsefalsefalse84)), "html"nulltrue);
  178.                     echo "
  179.                                             ";
  180.                 }
  181.                 // line 86
  182.                 echo "                                        ";
  183.             } else {
  184.                 // line 87
  185.                 echo "                                            ";
  186.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["RecommendProduct"], "Product", [], "any"falsefalsefalse87), "getPrice02IncTaxMin", [], "any"falsefalsefalse87)), "html"nulltrue);
  187.                 echo "
  188.                                         ";
  189.             }
  190.             // line 89
  191.             echo "                                    </span><!-- /price -->
  192.                                             <span class=\"button\">ITEM PAGE</span>
  193.                                         </div><!-- /text -->
  194.                                     </a>
  195.                                 </article>
  196.                             </li>
  197.                         ";
  198.         }
  199.         $_parent $context['_parent'];
  200.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RecommendProduct'], $context['_parent'], $context['loop']);
  201.         $context array_intersect_key($context$_parent) + $_parent;
  202.         // line 96
  203.         echo "                    </ul>
  204.                 </div><!--/item-list -->
  205.                 <!-- ▲item_list▲ -->
  206.             </div><!-- /content -->
  207.         </section>
  208.         <section class=\"sns\" style=\"display: none;\">
  209.             <header>
  210.                 <h2>INSTAGRAM</h2>
  211.             </header>
  212.             インスタのフィードが入る
  213.         </section><!-- /sns -->
  214.     </article><!-- /top -->
  215. ";
  216.         
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  218.         
  219.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  220.     }
  221.     public function getTemplateName()
  222.     {
  223.         return "index.twig";
  224.     }
  225.     public function isTraitable()
  226.     {
  227.         return false;
  228.     }
  229.     public function getDebugInfo()
  230.     {
  231.         return array (  230 => 96,  218 => 89,  212 => 87,  209 => 86,  201 => 84,  195 => 82,  192 => 81,  190 => 80,  185 => 78,  178 => 74,  173 => 72,  169 => 70,  165 => 69,  159 => 65,  157 => 64,  118 => 27,  108 => 26,  95 => 21,  85 => 20,  73 => 16,  63 => 15,  52 => 11,  50 => 13,  37 => 11,);
  232.     }
  233.     public function getSourceContext()
  234.     {
  235.         return new Source("{#
  236. This file is part of EC-CUBE
  237. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  238. http://www.ec-cube.co.jp/
  239. For the full copyright and license information, please view the LICENSE
  240. file that was distributed with this source code.
  241. #}
  242. {% extends 'default_frame.twig' %}
  243. {% set body_class = 'front_page' %}
  244. {% block stylesheet %}
  245.     <style>
  246.     </style>
  247. {% endblock %}
  248. {% block javascript %}
  249.     <script>
  250.     </script>
  251. {% endblock javascript %}
  252. {% block main %}
  253.     <article id=\"top\">
  254.         <section class=\"visual\">
  255.             <div class=\"text\">
  256.                 <h2>LIFE TIME<br>GEAR<br> SUPPLY</h2>
  257.                 <div class=\"pc\">
  258.                     <p>SLAPSは、バイク、自転車、クルマ、キャンプなど</p>
  259.                     <p>幅広いアウトドアアクティビティを中心に</p>
  260.                     <p>魅力的な商品を厳選して提供するネットショップです。</p>
  261.                 </div><!-- /pc -->
  262.                 <div class=\"sp\">
  263.                     <p>SLAPSは、バイク、自転車、キャンプなど、</p>
  264.                     <p>幅広いアウトドアアクティビティを中心に、</p>
  265.                     <p>魅力的なアイテムを厳選してご提供しています。</p>
  266.                 </div><!-- /pc -->
  267.             </div><!-- /text -->
  268.         </section><!-- /visual -->
  269.         <section class=\"news\" style=\"display: none\">
  270.             <header>
  271.                 <h3>NEWS</h3>
  272.                 <div class=\"news-list\">
  273.                     <ul>
  274.                         <li>
  275.                             <article>
  276.                                 <time></time>
  277.                                 <h4></h4>
  278.                             </article>
  279.                         </li>
  280.                     </ul>
  281.                 </div><!-- /news-list -->
  282.             </header>
  283.         </section><!-- /news -->
  284.         <section class=\"item\">
  285.             <div class=\"content\">
  286.                 <header>
  287.                     <h2>ALL PRODUCTS</h2>
  288.                 </header>
  289.                 {% set recommend_products = repository('Plugin\\\\Recommend42\\\\Entity\\\\RecommendProduct').getRecommendProduct %}
  290.                 <!-- ▼item_list▼ -->
  291.                 <div class=\"item-list\">
  292.                     <ul>
  293.                         {% for RecommendProduct in recommend_products %}
  294.                             <li class=\"ec-shelfGrid__item\">
  295.                                 <article>
  296.                                     <a href=\"{{ url('product_detail', {'id': RecommendProduct.Product.id}) }}\">
  297.                                         <div class=\"image\">
  298.                                             <img src=\"{{ asset(RecommendProduct.Product.mainFileName, \"save_image\") }}\">
  299.                                         </div><!-- /image -->
  300.                                         <div class=\"text\">
  301.                                             {{ RecommendProduct.comment|raw|purify }}
  302.                                             <span class=\"price\">
  303.                                         {% if RecommendProduct.Product.hasProductClass %}
  304.                                             {% if RecommendProduct.Product.getPrice02Min == RecommendProduct.Product.getPrice02Max %}
  305.                                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  306.                                             {% else %}
  307.                                                 {{ RecommendProduct.Product.getPrice02IncTaxMin|price }} ~ {{ RecommendProduct.Product.getPrice02IncTaxMax|price }}
  308.                                             {% endif %}
  309.                                         {% else %}
  310.                                             {{ RecommendProduct.Product.getPrice02IncTaxMin|price }}
  311.                                         {% endif %}
  312.                                     </span><!-- /price -->
  313.                                             <span class=\"button\">ITEM PAGE</span>
  314.                                         </div><!-- /text -->
  315.                                     </a>
  316.                                 </article>
  317.                             </li>
  318.                         {% endfor %}
  319.                     </ul>
  320.                 </div><!--/item-list -->
  321.                 <!-- ▲item_list▲ -->
  322.             </div><!-- /content -->
  323.         </section>
  324.         <section class=\"sns\" style=\"display: none;\">
  325.             <header>
  326.                 <h2>INSTAGRAM</h2>
  327.             </header>
  328.             インスタのフィードが入る
  329.         </section><!-- /sns -->
  330.     </article><!-- /top -->
  331. {% endblock %}
  332. ""index.twig""/home/riderz/slaps.tokyo/public_html/app/template/default/index.twig");
  333.     }
  334. }