var/cache/dev/twig/f8/f8ca1d11a0422d9d705ebd9b00c474e0.php line 55

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_7b0a171607ada774807d93ea5665bd41 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.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 11
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.twig"));
  42.         // line 13
  43.         $context["body_class"] = "front_page";
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""index.twig"11);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 15
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 16
  61.         echo "    <style>
  62.         .slick-slider {
  63.             margin-bottom: 30px;
  64.         }
  65.         .slick-dots {
  66.             position: absolute;
  67.             bottom: -45px;
  68.             display: block;
  69.             width: 100%;
  70.             padding: 0;
  71.             list-style: none;
  72.             text-align: center;
  73.         }
  74.         .slick-dots li {
  75.             position: relative;
  76.             display: inline-block;
  77.             width: 20px;
  78.             height: 20px;
  79.             margin: 0 5px;
  80.             padding: 0;
  81.             cursor: pointer;
  82.         }
  83.         .slick-dots li button {
  84.             font-size: 0;
  85.             line-height: 0;
  86.             display: block;
  87.             width: 20px;
  88.             height: 20px;
  89.             padding: 5px;
  90.             cursor: pointer;
  91.             color: transparent;
  92.             border: 0;
  93.             outline: none;
  94.             background: transparent;
  95.         }
  96.         .slick-dots li button:hover,
  97.         .slick-dots li button:focus {
  98.             outline: none;
  99.         }
  100.         .slick-dots li button:hover:before,
  101.         .slick-dots li button:focus:before {
  102.             opacity: 1;
  103.         }
  104.         .slick-dots li button:before {
  105.             content: \" \";
  106.             line-height: 20px;
  107.             position: absolute;
  108.             top: 0;
  109.             left: 0;
  110.             width: 12px;
  111.             height: 12px;
  112.             text-align: center;
  113.             opacity: .25;
  114.             background-color: black;
  115.             border-radius: 50%;
  116.         }
  117.         .slick-dots li.slick-active button:before {
  118.             opacity: .75;
  119.             background-color: black;
  120.         }
  121.         .slick-dots li button.thumbnail img {
  122.             width: 0;
  123.             height: 0;
  124.         }
  125.     </style>
  126. ";
  127.         
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.     }
  132.     // line 93
  133.     public function block_javascript($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  140.         // line 94
  141.         echo "    <script>
  142.         \$(function() {
  143.             \$('.main_visual').slick({
  144.                 dots: true,
  145.                 arrows: false,
  146.                 autoplay: true,
  147.                 speed: 300
  148.             });
  149.         });
  150.     </script>
  151. <script>
  152. /*
  153. <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\">
  154. function showWeather(zipCode) {
  155.   const apiKey = 'YOUR_API_KEY';
  156.   const url = `https://map.yahooapis.jp/weather/V1/place?coordinates=135.99668266689392,34.634682905099524&appid=dj00aiZpPXM4Y0ZhTXliT3ZaTCZzPWNvbnN1bWVyc2VjcmV0Jng9ODY-`;
  157.   \$.getJSON(url, function(data) {
  158.     const weather = data.query.results.channel;
  159.     const weatherWidget = document.getElementById('weather-widget');
  160.     weatherWidget.innerHTML = `
  161.       <h3>\${weather.location.city}の天気</h3>
  162.       <p>気温: \${weather.item.condition.temp}°C</p>
  163.       <p>天気: \${weather.item.condition.text}</p>
  164.     `;
  165.   });
  166. }
  167. // 郵便番号を指定して天気を表示
  168. showWeather('6302234');
  169. */
  170. </script>
  171. ";
  172.         
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174.         
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176.     }
  177.     // line 130
  178.     public function block_main($context, array $blocks = [])
  179.     {
  180.         $macros $this->macros;
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  184.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  185.         // line 131
  186.         echo "
  187.     <div class=\"ec-sliderRole position-relative\">
  188.         <div class=\"main_visual\">
  189.             <div class=\"item slick-slide\"><img src=\"";
  190.         // line 134
  191.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/top_slider_1.jpg"), "html"nulltrue);
  192.         echo "\"></div>
  193.         </div>
  194.         <div id=\"header_wrap\" class=\"position-absolute top-50 end-0\">
  195.             <div class=\"inner\">
  196.                 <div class=\"\">奈良県山添村、<br class=\"sp_on\">名阪国道に隣接する<br>総合モータースポーツ施設<br class=\"sp_on\">「名阪スポーツランド」です。</div>
  197.                 <div class=\"text-center\">
  198.                 </div>
  199.             </div>
  200.         </div>
  201.     </div>
  202.     <section id=\"course_wrap\" class=\"\">
  203.         <div class=\"inner\">
  204.             <div class=\"section_title\"><span>コース紹介</span></div>
  205.             <div class=\"section_data d-flex flex-wrap justify-content-center\">
  206.                 ";
  207.         // line 150
  208.         $context['_parent'] = $context;
  209.         $context['_seq'] = twig_ensure_traversable((isset($context["courses"]) || array_key_exists("courses"$context) ? $context["courses"] : (function () { throw new RuntimeError('Variable "courses" does not exist.'150$this->source); })()));
  210.         foreach ($context['_seq'] as $context["k"] => $context["v"]) {
  211.             // line 151
  212.             echo "                    <a class=\"course_data \" href=\"";
  213.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("course_detail", ["id" => twig_get_attribute($this->env$this->source$context["v"], "id", [], "any"falsefalsetrue151)]), "html"nulltrue);
  214.             echo "\">
  215.                         <img src=\"";
  216.             // line 152
  217.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config"$context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.'152$this->source); })()), "course_image_dir_default", [], "any"falsefalsetrue152), 152$this->source), "html"nulltrue);
  218.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "image_before1", [], "any"falsefalsetrue152), 152$this->source), "html"nulltrue);
  219.             echo "\" alt=\"前半画像1\" width=\"100%\">
  220.                         <div class=\"\">";
  221.             // line 153
  222.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "name", [], "any"falsefalsetrue153), 153$this->source), "html"nulltrue);
  223.             echo "</div>
  224.                     </a>
  225.                 ";
  226.         }
  227.         $_parent $context['_parent'];
  228.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
  229.         $context array_intersect_key($context$_parent) + $_parent;
  230.         // line 156
  231.         echo "            </div>
  232.         </div>
  233.     </section>
  234.     
  235.     
  236.     <section class=\"weather_daily\">
  237.         <div class=\"inner\">
  238.             <div class=\"section_title\"><span>お天気情報</span></div>
  239.             <div class=\"daily_data d-flex flex-wrap justify-content-between\">
  240.                 ";
  241.         // line 165
  242.         $context['_parent'] = $context;
  243.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'165$this->source); })()), "time", [], "any"falsefalsetrue165));
  244.         foreach ($context['_seq'] as $context["k"] => $context["v"]) {
  245.             // line 166
  246.             echo "                    <div class=\"text-center mb-4 border border-secondary rounded p-2\">
  247.                         <div class=\"day mb-2 fw-bold h4\">";
  248.             // line 167
  249.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed($context["v"], 167$this->source), "m月d日"), "html"nulltrue);
  250.             echo "</div>
  251.                         <div class=\"d-flex flex-wrap justify-content-center align-items-\">
  252.                             <div class=\"w-75 mx-auto mb-2\">
  253.                             ";
  254.             // line 170
  255.             $context["codes"] = $this->extensions['Customize\Twig\Extension\EccubeExtension']->getWeatherInfo($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'170$this->source); })()), "weather_code", [], "any"falsefalsetrue170), $context["k"], [], "array"falsefalsetrue170), 170$this->source));
  256.             // line 171
  257.             echo "                                <img src=\"/html/template/default/assets/img/weathers/";
  258.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["codes"]) || array_key_exists("codes"$context) ? $context["codes"] : (function () { throw new RuntimeError('Variable "codes" does not exist.'171$this->source); })()), "jma_code", [], "array"falsefalsetrue171), 171$this->source), "html"nulltrue);
  259.             echo ".svg\">
  260.                                 <div class=\"\">";
  261.             // line 172
  262.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["codes"]) || array_key_exists("codes"$context) ? $context["codes"] : (function () { throw new RuntimeError('Variable "codes" does not exist.'172$this->source); })()), "description", [], "array"falsefalsetrue172), 172$this->source), "html"nulltrue);
  263.             echo "</div>
  264.                             </div>
  265.                             <div class=\"w-100 d-flex text-center\">
  266.                                 <div class=\"max col-6 px-2\">
  267.                                     <div>最高気温</div>
  268.                                     <div class=\"h5\">";
  269.             // line 177
  270.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'177$this->source); })()), "temperature_2m_max", [], "any"falsefalsetrue177), $context["k"], [], "array"falsefalsetrue177), 177$this->source), "html"nulltrue);
  271.             echo "℃</div>
  272.                                 </div>
  273.                                 <div class=\"min col-6 px-2\">
  274.                                     <div>最低気温</div>
  275.                                     <div class=\"h5\">";
  276.             // line 181
  277.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'181$this->source); })()), "temperature_2m_min", [], "any"falsefalsetrue181), $context["k"], [], "array"falsefalsetrue181), 181$this->source), "html"nulltrue);
  278.             echo "℃</div>
  279.                                 </div>
  280.                             </div>
  281.                             <div class=\"w-100 d-flex text-center my-2 py-2 border border-secondary border-start-0 border-end-0\">
  282.                                 <div class=\"sunrise col-6 px-2\">
  283.                                     <div>日の出</div>
  284.                                     <div class=\"h5\">";
  285.             // line 187
  286.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'187$this->source); })()), "sunrise", [], "any"falsefalsetrue187), $context["k"], [], "array"falsefalsetrue187), 187$this->source), "H時i分"), "html"nulltrue);
  287.             echo "</div>
  288.                                 </div>
  289.                                 <div class=\"sunset col-6 px-2\">
  290.                                     <div>日の入</div>
  291.                                     <div class=\"h5\">";
  292.             // line 191
  293.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'191$this->source); })()), "sunset", [], "any"falsefalsetrue191), $context["k"], [], "array"falsefalsetrue191), 191$this->source), "H時i分"), "html"nulltrue);
  294.             echo "</div>
  295.                                 </div>
  296.                             </div>
  297.                             <div class=\"w-100 d-flex text-center\">
  298.                                 <div class=\"max col-6 px-2\">
  299.                                     <div>降水確率</div>
  300.                                     <div class=\"h5\">";
  301.             // line 197
  302.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'197$this->source); })()), "precipitation_sum", [], "any"falsefalsetrue197), $context["k"], [], "array"falsefalsetrue197), 197$this->source), "html"nulltrue);
  303.             echo "%</div>
  304.                                 </div>
  305.                                 <div class=\"min col-6 px-2\">
  306.                                     <div>最低気温</div>
  307.                                     <div class=\"h5\">";
  308.             // line 201
  309.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["daily"]) || array_key_exists("daily"$context) ? $context["daily"] : (function () { throw new RuntimeError('Variable "daily" does not exist.'201$this->source); })()), "wind_speed_10m_max", [], "any"falsefalsetrue201), $context["k"], [], "array"falsefalsetrue201), 201$this->source), "html"nulltrue);
  310.             echo "km/h</div>
  311.                                 </div>
  312.                             </div>
  313.                         </div>
  314.                     </div>
  315.                 ";
  316.         }
  317.         $_parent $context['_parent'];
  318.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
  319.         $context array_intersect_key($context$_parent) + $_parent;
  320.         // line 207
  321.         echo "            </div>
  322.         </div>
  323.     </section>
  324.     <section id=\"product_wrap\" class=\"\">
  325.         <div class=\"inner\">
  326.             <div class=\"section_title\"><span>販売中グッズ</span></div>
  327.         </div>
  328.         <div class=\"product_items\">
  329.         
  330.             <div class=\"ec-role\">
  331.                 <div class=\"ec-newItemRole\">
  332.                     <div class=\"top_sales_list\">
  333.                         ";
  334.         // line 221
  335.         $context['_parent'] = $context;
  336.         $context['_seq'] = twig_ensure_traversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'221$this->source); })()));
  337.         $context['loop'] = [
  338.           'parent' => $context['_parent'],
  339.           'index0' => 0,
  340.           'index'  => 1,
  341.           'first'  => true,
  342.         ];
  343.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  344.             $length count($context['_seq']);
  345.             $context['loop']['revindex0'] = $length 1;
  346.             $context['loop']['revindex'] = $length;
  347.             $context['loop']['length'] = $length;
  348.             $context['loop']['last'] = === $length;
  349.         }
  350.         foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  351.             // line 222
  352.             echo "                            <div class=\"top_sales_listItem\">
  353.                                 <a href=\"";
  354.             // line 223
  355.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsetrue223)]), "html"nulltrue);
  356.             echo "\">
  357.                                     <div class=\"img_wrap\">
  358.                                         <img src=\"";
  359.             // line 225
  360.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Customize\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "main_list_image", [], "any"falsefalsetrue225), 225$this->source)), "save_image"), "html"nulltrue);
  361.             echo "\" alt=\"";
  362.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue225), 225$this->source), "html"nulltrue);
  363.             echo "\" ";
  364.             if ((twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue225) > 5)) {
  365.                 echo " loading=\"lazy\"";
  366.             }
  367.             echo ">
  368.                                         <div class=\"sales_wrap\">
  369.                                             ";
  370.             // line 227
  371.             if (twig_get_attribute($this->env$this->source$context["Product"], "ProductSales", [], "any"falsefalsetrue227)) {
  372.                 // line 228
  373.                 echo "                                                <div class=\"btn fs-6\" style=\"color:";
  374.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "ProductSales", [], "any"falsefalsetrue228), "color", [], "any"falsefalsetrue228), 228$this->source), "html"nulltrue);
  375.                 echo ";background:";
  376.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "ProductSales", [], "any"falsefalsetrue228), "bg_color", [], "any"falsefalsetrue228), 228$this->source), "html"nulltrue);
  377.                 echo ";\">";
  378.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["Product"], "ProductSales", [], "any"falsefalsetrue228), "label", [], "any"falsefalsetrue228), 228$this->source), "html"nulltrue);
  379.                 echo "</div>
  380.                                             ";
  381.             } else {
  382.                 // line 230
  383.                 echo "                                                <div class=\"btn fs-6 btn-outline-secondary\">未設定</div>
  384.                                             ";
  385.             }
  386.             // line 232
  387.             echo "                                        </div>
  388.                                     </div>
  389.                                     <p class=\"ec-newItemRole__listItemTitle\">";
  390.             // line 234
  391.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsetrue234), 234$this->source), "html"nulltrue);
  392.             echo "</p>
  393.                                     <p class=\"ec-newItemRole__listItemPrice\">
  394.                                     
  395.                                     ";
  396.             // line 237
  397.             if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsetrue237)) {
  398.                 // line 238
  399.                 echo "                                        ";
  400.                 if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsetrue238) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsetrue238))) {
  401.                     // line 239
  402.                     echo "                                            ";
  403.                     echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue239), 239$this->source)), "html"nulltrue);
  404.                     echo "
  405.                                         ";
  406.                 } else {
  407.                     // line 241
  408.                     echo "                                            ";
  409.                     echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue241), 241$this->source)), "html"nulltrue);
  410.                     echo " ~ ";
  411.                     echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsetrue241), 241$this->source)), "html"nulltrue);
  412.                     echo "
  413.                                         ";
  414.                 }
  415.                 // line 243
  416.                 echo "                                    ";
  417.             } else {
  418.                 // line 244
  419.                 echo "                                        ";
  420.                 echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\EccubeExtension']->getPriceFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsetrue244), 244$this->source)), "html"nulltrue);
  421.                 echo "
  422.                                     ";
  423.             }
  424.             // line 246
  425.             echo "                                    ";
  426.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("(税込)"), "html"nulltrue);
  427.             echo "</p>
  428.                                 </a>
  429.                             </div>
  430.                         ";
  431.             ++$context['loop']['index0'];
  432.             ++$context['loop']['index'];
  433.             $context['loop']['first'] = false;
  434.             if (isset($context['loop']['length'])) {
  435.                 --$context['loop']['revindex0'];
  436.                 --$context['loop']['revindex'];
  437.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  438.             }
  439.         }
  440.         $_parent $context['_parent'];
  441.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  442.         $context array_intersect_key($context$_parent) + $_parent;
  443.         // line 250
  444.         echo "                    </div>
  445.                 </div>
  446.             </div>
  447.         </div>
  448.     </section>
  449.     <section id=\"event_wrap\" class=\"\">
  450.         <div class=\"inner\">
  451.             <div class=\"section_title\"><span>イベント情報</span></div>
  452.             <div class=\"section_data d-flex flex-wrap justify-content-center\">
  453.                 ";
  454.         // line 262
  455.         $context['_parent'] = $context;
  456.         $context['_seq'] = twig_ensure_traversable((isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'262$this->source); })()));
  457.         foreach ($context['_seq'] as $context["year"] => $context["values"]) {
  458.             // line 263
  459.             echo "                    <div class=\"event_items\">
  460.                         <div class=\"event_year\">";
  461.             // line 264
  462.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["year"], 264$this->source), "html"nulltrue);
  463.             echo "年度 イベント一覧</div>
  464.                         <div class=\"event_data\">
  465.                             ";
  466.             // line 266
  467.             $context['_parent'] = $context;
  468.             $context['_seq'] = twig_ensure_traversable($context["values"]);
  469.             foreach ($context['_seq'] as $context["k"] => $context["v"]) {
  470.                 // line 267
  471.                 echo "                                <div class=\"row\">
  472.                                     <div class=\"col-3\">
  473.                                         <div>";
  474.                 // line 269
  475.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "day_start", [], "any"falsefalsetrue269), 269$this->source), "Y.m.d"), "html"nulltrue);
  476.                 echo "</div>
  477.                                         ";
  478.                 // line 270
  479.                 if (twig_get_attribute($this->env$this->source$context["v"], "day_end", [], "any"falsefalsetrue270)) {
  480.                     // line 271
  481.                     echo "                                            <div>~";
  482.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "day_end", [], "any"falsefalsetrue271), 271$this->source), "Y.m.d"), "html"nulltrue);
  483.                     echo "</div>
  484.                                         ";
  485.                 }
  486.                 // line 273
  487.                 echo "                                    </div>
  488.                                     <div class=\"col-7\">
  489.                                         <a href=\"";
  490.                 // line 275
  491.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("event_detail", ["id" => twig_get_attribute($this->env$this->source$context["v"], "id", [], "any"falsefalsetrue275)]), "html"nulltrue);
  492.                 echo "\">";
  493.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "name", [], "any"falsefalsetrue275), 275$this->source), "html"nulltrue);
  494.                 echo "
  495.                                             ";
  496.                 // line 276
  497.                 if (twig_get_attribute($this->env$this->source$context["v"], "sub_title", [], "any"falsefalsetrue276)) {
  498.                     // line 277
  499.                     echo "                                                <p>[ ";
  500.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "sub_title", [], "any"falsefalsetrue277), 277$this->source), "html"nulltrue);
  501.                     echo " ]</p>
  502.                                             ";
  503.                 }
  504.                 // line 279
  505.                 echo "                                        </a>
  506.                                     </div>
  507.                                     <div class=\"col-2\">
  508.                                         <a href=\"";
  509.                 // line 282
  510.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("event_detail", ["id" => twig_get_attribute($this->env$this->source$context["v"], "id", [], "any"falsefalsetrue282)]), "html"nulltrue);
  511.                 echo "\">詳細 >> </a>
  512.                                     </div>
  513.                                 </div>
  514.                             ";
  515.             }
  516.             $_parent $context['_parent'];
  517.             unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
  518.             $context array_intersect_key($context$_parent) + $_parent;
  519.             // line 286
  520.             echo "                        </div>
  521.                     </div>
  522.                 ";
  523.         }
  524.         $_parent $context['_parent'];
  525.         unset($context['_seq'], $context['_iterated'], $context['year'], $context['values'], $context['_parent'], $context['loop']);
  526.         $context array_intersect_key($context$_parent) + $_parent;
  527.         // line 289
  528.         echo "            </div>
  529.         </div>
  530.     </section>
  531.     
  532.     <section id=\"document_wrap\" class=\"\">
  533.         <div class=\"inner\">
  534.             <div class=\"section_title\"><span>申込書などダウンロード</span></div>
  535.             <div class=\"document_items\">
  536.                 ";
  537.         // line 297
  538.         $context['_parent'] = $context;
  539.         $context['_seq'] = twig_ensure_traversable((isset($context["documents"]) || array_key_exists("documents"$context) ? $context["documents"] : (function () { throw new RuntimeError('Variable "documents" does not exist.'297$this->source); })()));
  540.         foreach ($context['_seq'] as $context["k"] => $context["v"]) {
  541.             // line 298
  542.             echo "                ";
  543.             if (twig_get_attribute($this->env$this->source$context["v"], "pdf", [], "any"falsefalsetrue298)) {
  544.                 // line 299
  545.                 echo "                <div class=\"row my-2 py-2 border-bottom border-seconday border-2 col-md-8 col-12 mx-auto\">
  546.                     <div class=\"col-10 h5\">";
  547.                 // line 300
  548.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "label", [], "any"falsefalsetrue300), 300$this->source), "html"nulltrue);
  549.                 echo "</div>
  550.                     <div class=\"col-2\"><a href=\"/html/user_data/assets/pdf/";
  551.                 // line 301
  552.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["v"], "pdf", [], "any"falsefalsetrue301), 301$this->source), "html"nulltrue);
  553.                 echo "\" target=\"_blank\"><i class=\"bi bi-download\"></i></a></div>
  554.                 </div>
  555.                 ";
  556.             }
  557.             // line 304
  558.             echo "                ";
  559.         }
  560.         $_parent $context['_parent'];
  561.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
  562.         $context array_intersect_key($context$_parent) + $_parent;
  563.         // line 305
  564.         echo "            </div>
  565.         </div>
  566.     </section>
  567. ";
  568.         
  569.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  570.         
  571.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  572.     }
  573.     public function getTemplateName()
  574.     {
  575.         return "index.twig";
  576.     }
  577.     public function isTraitable()
  578.     {
  579.         return false;
  580.     }
  581.     public function getDebugInfo()
  582.     {
  583.         return array (  609 => 305,  603 => 304,  597 => 301,  593 => 300,  590 => 299,  587 => 298,  583 => 297,  573 => 289,  565 => 286,  555 => 282,  550 => 279,  544 => 277,  542 => 276,  536 => 275,  532 => 273,  526 => 271,  524 => 270,  520 => 269,  516 => 267,  512 => 266,  507 => 264,  504 => 263,  500 => 262,  486 => 250,  467 => 246,  461 => 244,  458 => 243,  450 => 241,  444 => 239,  441 => 238,  439 => 237,  433 => 234,  429 => 232,  425 => 230,  415 => 228,  413 => 227,  402 => 225,  397 => 223,  394 => 222,  377 => 221,  361 => 207,  349 => 201,  342 => 197,  333 => 191,  326 => 187,  317 => 181,  310 => 177,  302 => 172,  297 => 171,  295 => 170,  289 => 167,  286 => 166,  282 => 165,  271 => 156,  262 => 153,  257 => 152,  252 => 151,  248 => 150,  229 => 134,  224 => 131,  214 => 130,  170 => 94,  160 => 93,  75 => 16,  65 => 15,  54 => 11,  52 => 13,  39 => 11,);
  584.     }
  585.     public function getSourceContext()
  586.     {
  587.         return new Source("{#
  588. This file is part of EC-CUBE
  589. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  590. http://www.ec-cube.co.jp/
  591. For the full copyright and license information, please view the LICENSE
  592. file that was distributed with this source code.
  593. #}
  594. {% extends 'default_frame.twig' %}
  595. {% set body_class = 'front_page' %}
  596. {% block stylesheet %}
  597.     <style>
  598.         .slick-slider {
  599.             margin-bottom: 30px;
  600.         }
  601.         .slick-dots {
  602.             position: absolute;
  603.             bottom: -45px;
  604.             display: block;
  605.             width: 100%;
  606.             padding: 0;
  607.             list-style: none;
  608.             text-align: center;
  609.         }
  610.         .slick-dots li {
  611.             position: relative;
  612.             display: inline-block;
  613.             width: 20px;
  614.             height: 20px;
  615.             margin: 0 5px;
  616.             padding: 0;
  617.             cursor: pointer;
  618.         }
  619.         .slick-dots li button {
  620.             font-size: 0;
  621.             line-height: 0;
  622.             display: block;
  623.             width: 20px;
  624.             height: 20px;
  625.             padding: 5px;
  626.             cursor: pointer;
  627.             color: transparent;
  628.             border: 0;
  629.             outline: none;
  630.             background: transparent;
  631.         }
  632.         .slick-dots li button:hover,
  633.         .slick-dots li button:focus {
  634.             outline: none;
  635.         }
  636.         .slick-dots li button:hover:before,
  637.         .slick-dots li button:focus:before {
  638.             opacity: 1;
  639.         }
  640.         .slick-dots li button:before {
  641.             content: \" \";
  642.             line-height: 20px;
  643.             position: absolute;
  644.             top: 0;
  645.             left: 0;
  646.             width: 12px;
  647.             height: 12px;
  648.             text-align: center;
  649.             opacity: .25;
  650.             background-color: black;
  651.             border-radius: 50%;
  652.         }
  653.         .slick-dots li.slick-active button:before {
  654.             opacity: .75;
  655.             background-color: black;
  656.         }
  657.         .slick-dots li button.thumbnail img {
  658.             width: 0;
  659.             height: 0;
  660.         }
  661.     </style>
  662. {% endblock %}
  663. {% block javascript %}
  664.     <script>
  665.         \$(function() {
  666.             \$('.main_visual').slick({
  667.                 dots: true,
  668.                 arrows: false,
  669.                 autoplay: true,
  670.                 speed: 300
  671.             });
  672.         });
  673.     </script>
  674. <script>
  675. /*
  676. <script src=\"https://code.jquery.com/jquery-3.6.0.min.js\">
  677. function showWeather(zipCode) {
  678.   const apiKey = 'YOUR_API_KEY';
  679.   const url = `https://map.yahooapis.jp/weather/V1/place?coordinates=135.99668266689392,34.634682905099524&appid=dj00aiZpPXM4Y0ZhTXliT3ZaTCZzPWNvbnN1bWVyc2VjcmV0Jng9ODY-`;
  680.   \$.getJSON(url, function(data) {
  681.     const weather = data.query.results.channel;
  682.     const weatherWidget = document.getElementById('weather-widget');
  683.     weatherWidget.innerHTML = `
  684.       <h3>\${weather.location.city}の天気</h3>
  685.       <p>気温: \${weather.item.condition.temp}°C</p>
  686.       <p>天気: \${weather.item.condition.text}</p>
  687.     `;
  688.   });
  689. }
  690. // 郵便番号を指定して天気を表示
  691. showWeather('6302234');
  692. */
  693. </script>
  694. {% endblock javascript %}
  695. {% block main %}
  696.     <div class=\"ec-sliderRole position-relative\">
  697.         <div class=\"main_visual\">
  698.             <div class=\"item slick-slide\"><img src=\"{{ asset('assets/img/top/top_slider_1.jpg') }}\"></div>
  699.         </div>
  700.         <div id=\"header_wrap\" class=\"position-absolute top-50 end-0\">
  701.             <div class=\"inner\">
  702.                 <div class=\"\">奈良県山添村、<br class=\"sp_on\">名阪国道に隣接する<br>総合モータースポーツ施設<br class=\"sp_on\">「名阪スポーツランド」です。</div>
  703.                 <div class=\"text-center\">
  704.                 </div>
  705.             </div>
  706.         </div>
  707.     </div>
  708.     <section id=\"course_wrap\" class=\"\">
  709.         <div class=\"inner\">
  710.             <div class=\"section_title\"><span>コース紹介</span></div>
  711.             <div class=\"section_data d-flex flex-wrap justify-content-center\">
  712.                 {% for k,v in courses %}
  713.                     <a class=\"course_data \" href=\"{{ url('course_detail',{id:v.id}) }}\">
  714.                         <img src=\"{{ eccube_config.course_image_dir_default }}{{ v.image_before1 }}\" alt=\"前半画像1\" width=\"100%\">
  715.                         <div class=\"\">{{ v.name }}</div>
  716.                     </a>
  717.                 {% endfor %}
  718.             </div>
  719.         </div>
  720.     </section>
  721.     
  722.     
  723.     <section class=\"weather_daily\">
  724.         <div class=\"inner\">
  725.             <div class=\"section_title\"><span>お天気情報</span></div>
  726.             <div class=\"daily_data d-flex flex-wrap justify-content-between\">
  727.                 {% for k,v in daily.time %}
  728.                     <div class=\"text-center mb-4 border border-secondary rounded p-2\">
  729.                         <div class=\"day mb-2 fw-bold h4\">{{ v|date('m月d日') }}</div>
  730.                         <div class=\"d-flex flex-wrap justify-content-center align-items-\">
  731.                             <div class=\"w-75 mx-auto mb-2\">
  732.                             {% set codes = WeatherInfo(daily.weather_code[k]) %}
  733.                                 <img src=\"/html/template/default/assets/img/weathers/{{ codes['jma_code']}}.svg\">
  734.                                 <div class=\"\">{{ codes['description'] }}</div>
  735.                             </div>
  736.                             <div class=\"w-100 d-flex text-center\">
  737.                                 <div class=\"max col-6 px-2\">
  738.                                     <div>最高気温</div>
  739.                                     <div class=\"h5\">{{ daily.temperature_2m_max[k] }}℃</div>
  740.                                 </div>
  741.                                 <div class=\"min col-6 px-2\">
  742.                                     <div>最低気温</div>
  743.                                     <div class=\"h5\">{{ daily.temperature_2m_min[k] }}℃</div>
  744.                                 </div>
  745.                             </div>
  746.                             <div class=\"w-100 d-flex text-center my-2 py-2 border border-secondary border-start-0 border-end-0\">
  747.                                 <div class=\"sunrise col-6 px-2\">
  748.                                     <div>日の出</div>
  749.                                     <div class=\"h5\">{{ daily.sunrise[k]|date('H時i分') }}</div>
  750.                                 </div>
  751.                                 <div class=\"sunset col-6 px-2\">
  752.                                     <div>日の入</div>
  753.                                     <div class=\"h5\">{{ daily.sunset[k]|date('H時i分') }}</div>
  754.                                 </div>
  755.                             </div>
  756.                             <div class=\"w-100 d-flex text-center\">
  757.                                 <div class=\"max col-6 px-2\">
  758.                                     <div>降水確率</div>
  759.                                     <div class=\"h5\">{{ daily.precipitation_sum[k] }}%</div>
  760.                                 </div>
  761.                                 <div class=\"min col-6 px-2\">
  762.                                     <div>最低気温</div>
  763.                                     <div class=\"h5\">{{ daily.wind_speed_10m_max[k] }}km/h</div>
  764.                                 </div>
  765.                             </div>
  766.                         </div>
  767.                     </div>
  768.                 {% endfor %}
  769.             </div>
  770.         </div>
  771.     </section>
  772.     <section id=\"product_wrap\" class=\"\">
  773.         <div class=\"inner\">
  774.             <div class=\"section_title\"><span>販売中グッズ</span></div>
  775.         </div>
  776.         <div class=\"product_items\">
  777.         
  778.             <div class=\"ec-role\">
  779.                 <div class=\"ec-newItemRole\">
  780.                     <div class=\"top_sales_list\">
  781.                         {% for Product in products %}
  782.                             <div class=\"top_sales_listItem\">
  783.                                 <a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
  784.                                     <div class=\"img_wrap\">
  785.                                         <img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
  786.                                         <div class=\"sales_wrap\">
  787.                                             {% if Product.ProductSales %}
  788.                                                 <div class=\"btn fs-6\" style=\"color:{{ Product.ProductSales.color }};background:{{ Product.ProductSales.bg_color }};\">{{ Product.ProductSales.label }}</div>
  789.                                             {% else %}
  790.                                                 <div class=\"btn fs-6 btn-outline-secondary\">未設定</div>
  791.                                             {% endif %}
  792.                                         </div>
  793.                                     </div>
  794.                                     <p class=\"ec-newItemRole__listItemTitle\">{{ Product.name }}</p>
  795.                                     <p class=\"ec-newItemRole__listItemPrice\">
  796.                                     
  797.                                     {% if Product.hasProductClass %}
  798.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  799.                                             {{ Product.getPrice02IncTaxMin|price }}
  800.                                         {% else %}
  801.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  802.                                         {% endif %}
  803.                                     {% else %}
  804.                                         {{ Product.getPrice02IncTaxMin|price }}
  805.                                     {% endif %}
  806.                                     {{ '(税込)'|trans }}</p>
  807.                                 </a>
  808.                             </div>
  809.                         {% endfor %}
  810.                     </div>
  811.                 </div>
  812.             </div>
  813.         </div>
  814.     </section>
  815.     <section id=\"event_wrap\" class=\"\">
  816.         <div class=\"inner\">
  817.             <div class=\"section_title\"><span>イベント情報</span></div>
  818.             <div class=\"section_data d-flex flex-wrap justify-content-center\">
  819.                 {% for year,values in events %}
  820.                     <div class=\"event_items\">
  821.                         <div class=\"event_year\">{{ year }}年度 イベント一覧</div>
  822.                         <div class=\"event_data\">
  823.                             {% for k,v in values %}
  824.                                 <div class=\"row\">
  825.                                     <div class=\"col-3\">
  826.                                         <div>{{ v.day_start|date('Y.m.d') }}</div>
  827.                                         {% if v.day_end %}
  828.                                             <div>~{{ v.day_end|date('Y.m.d') }}</div>
  829.                                         {% endif %}
  830.                                     </div>
  831.                                     <div class=\"col-7\">
  832.                                         <a href=\"{{ url('event_detail', {'id': v.id}) }}\">{{ v.name }}
  833.                                             {% if v.sub_title %}
  834.                                                 <p>[ {{ v.sub_title }} ]</p>
  835.                                             {% endif %}
  836.                                         </a>
  837.                                     </div>
  838.                                     <div class=\"col-2\">
  839.                                         <a href=\"{{ url('event_detail', {'id': v.id}) }}\">詳細 >> </a>
  840.                                     </div>
  841.                                 </div>
  842.                             {% endfor %}
  843.                         </div>
  844.                     </div>
  845.                 {% endfor %}
  846.             </div>
  847.         </div>
  848.     </section>
  849.     
  850.     <section id=\"document_wrap\" class=\"\">
  851.         <div class=\"inner\">
  852.             <div class=\"section_title\"><span>申込書などダウンロード</span></div>
  853.             <div class=\"document_items\">
  854.                 {% for k,v in documents %}
  855.                 {% if v.pdf %}
  856.                 <div class=\"row my-2 py-2 border-bottom border-seconday border-2 col-md-8 col-12 mx-auto\">
  857.                     <div class=\"col-10 h5\">{{ v.label }}</div>
  858.                     <div class=\"col-2\"><a href=\"/html/user_data/assets/pdf/{{ v.pdf }}\" target=\"_blank\"><i class=\"bi bi-download\"></i></a></div>
  859.                 </div>
  860.                 {% endif %}
  861.                 {% endfor %}
  862.             </div>
  863.         </div>
  864.     </section>
  865. {% endblock %}
  866. ""index.twig""/home/meihansl/meihan-sl.com/public_html/app/template/default/index.twig");
  867.     }
  868.     
  869.     public function checkSecurity()
  870.     {
  871.         static $tags = array("set" => 13"for" => 150"if" => 225);
  872.         static $filters = array("escape" => 134"date" => 167"no_image_product" => 225"price" => 239"trans" => 246);
  873.         static $functions = array("asset" => 134"url" => 151"WeatherInfo" => 170);
  874.         try {
  875.             $this->sandbox->checkSecurity(
  876.                 ['set''for''if'],
  877.                 ['escape''date''no_image_product''price''trans'],
  878.                 ['asset''url''WeatherInfo']
  879.             );
  880.         } catch (SecurityError $e) {
  881.             $e->setSourceContext($this->source);
  882.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  883.                 $e->setTemplateLine($tags[$e->getTagName()]);
  884.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  885.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  886.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  887.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  888.             }
  889.             throw $e;
  890.         }
  891.     }
  892. }