<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* index.twig */
class __TwigTemplate_7b0a171607ada774807d93ea5665bd41 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.twig"));
// line 13
$context["body_class"] = "front_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 16
echo " <style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: \" \";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 93
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 94
echo " <script>
\$(function() {
\$('.main_visual').slick({
dots: true,
arrows: false,
autoplay: true,
speed: 300
});
});
</script>
<script>
/*
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\">
function showWeather(zipCode) {
const apiKey = 'YOUR_API_KEY';
const url = `https://map.yahooapis.jp/weather/V1/place?coordinates=135.99668266689392,34.634682905099524&appid=dj00aiZpPXM4Y0ZhTXliT3ZaTCZzPWNvbnN1bWVyc2VjcmV0Jng9ODY-`;
\$.getJSON(url, function(data) {
const weather = data.query.results.channel;
const weatherWidget = document.getElementById('weather-widget');
weatherWidget.innerHTML = `
<h3>\${weather.location.city}の天気</h3>
<p>気温: \${weather.item.condition.temp}°C</p>
<p>天気: \${weather.item.condition.text}</p>
`;
});
}
// 郵便番号を指定して天気を表示
showWeather('6302234');
*/
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 130
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 131
echo "
<div class=\"ec-sliderRole position-relative\">
<div class=\"main_visual\">
<div class=\"item slick-slide\"><img src=\"";
// line 134
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/top/top_slider_1.jpg"), "html", null, true);
echo "\"></div>
</div>
<div id=\"header_wrap\" class=\"position-absolute top-50 end-0\">
<div class=\"inner\">
<div class=\"\">奈良県山添村、<br class=\"sp_on\">名阪国道に隣接する<br>総合モータースポーツ施設<br class=\"sp_on\">「名阪スポーツランド」です。</div>
<div class=\"text-center\">
</div>
</div>
</div>
</div>
<section id=\"course_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>コース紹介</span></div>
<div class=\"section_data d-flex flex-wrap justify-content-center\">
";
// line 150
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["k"] => $context["v"]) {
// line 151
echo " <a class=\"course_data \" href=\"";
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", false, false, true, 151)]), "html", null, true);
echo "\">
<img src=\"";
// line 152
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", false, false, true, 152), 152, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "image_before1", [], "any", false, false, true, 152), 152, $this->source), "html", null, true);
echo "\" alt=\"前半画像1\" width=\"100%\">
<div class=\"\">";
// line 153
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "name", [], "any", false, false, true, 153), 153, $this->source), "html", null, true);
echo "</div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 156
echo " </div>
</div>
</section>
<section class=\"weather_daily\">
<div class=\"inner\">
<div class=\"section_title\"><span>お天気情報</span></div>
<div class=\"daily_data d-flex flex-wrap justify-content-between\">
";
// line 165
$context['_parent'] = $context;
$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", false, false, true, 165));
foreach ($context['_seq'] as $context["k"] => $context["v"]) {
// line 166
echo " <div class=\"text-center mb-4 border border-secondary rounded p-2\">
<div class=\"day mb-2 fw-bold h4\">";
// line 167
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed($context["v"], 167, $this->source), "m月d日"), "html", null, true);
echo "</div>
<div class=\"d-flex flex-wrap justify-content-center align-items-\">
<div class=\"w-75 mx-auto mb-2\">
";
// line 170
$context["codes"] = $this->extensions['Customize\Twig\Extension\EccubeExtension']->getWeatherInfo($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 170, $this->source); })()), "weather_code", [], "any", false, false, true, 170), $context["k"], [], "array", false, false, true, 170), 170, $this->source));
// line 171
echo " <img src=\"/html/template/default/assets/img/weathers/";
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", false, false, true, 171), 171, $this->source), "html", null, true);
echo ".svg\">
<div class=\"\">";
// line 172
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", false, false, true, 172), 172, $this->source), "html", null, true);
echo "</div>
</div>
<div class=\"w-100 d-flex text-center\">
<div class=\"max col-6 px-2\">
<div>最高気温</div>
<div class=\"h5\">";
// line 177
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 177, $this->source); })()), "temperature_2m_max", [], "any", false, false, true, 177), $context["k"], [], "array", false, false, true, 177), 177, $this->source), "html", null, true);
echo "℃</div>
</div>
<div class=\"min col-6 px-2\">
<div>最低気温</div>
<div class=\"h5\">";
// line 181
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 181, $this->source); })()), "temperature_2m_min", [], "any", false, false, true, 181), $context["k"], [], "array", false, false, true, 181), 181, $this->source), "html", null, true);
echo "℃</div>
</div>
</div>
<div class=\"w-100 d-flex text-center my-2 py-2 border border-secondary border-start-0 border-end-0\">
<div class=\"sunrise col-6 px-2\">
<div>日の出</div>
<div class=\"h5\">";
// line 187
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 187, $this->source); })()), "sunrise", [], "any", false, false, true, 187), $context["k"], [], "array", false, false, true, 187), 187, $this->source), "H時i分"), "html", null, true);
echo "</div>
</div>
<div class=\"sunset col-6 px-2\">
<div>日の入</div>
<div class=\"h5\">";
// line 191
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 191, $this->source); })()), "sunset", [], "any", false, false, true, 191), $context["k"], [], "array", false, false, true, 191), 191, $this->source), "H時i分"), "html", null, true);
echo "</div>
</div>
</div>
<div class=\"w-100 d-flex text-center\">
<div class=\"max col-6 px-2\">
<div>降水確率</div>
<div class=\"h5\">";
// line 197
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 197, $this->source); })()), "precipitation_sum", [], "any", false, false, true, 197), $context["k"], [], "array", false, false, true, 197), 197, $this->source), "html", null, true);
echo "%</div>
</div>
<div class=\"min col-6 px-2\">
<div>最低気温</div>
<div class=\"h5\">";
// line 201
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, 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.', 201, $this->source); })()), "wind_speed_10m_max", [], "any", false, false, true, 201), $context["k"], [], "array", false, false, true, 201), 201, $this->source), "html", null, true);
echo "km/h</div>
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 207
echo " </div>
</div>
</section>
<section id=\"product_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>販売中グッズ</span></div>
</div>
<div class=\"product_items\">
<div class=\"ec-role\">
<div class=\"ec-newItemRole\">
<div class=\"top_sales_list\">
";
// line 221
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
// line 222
echo " <div class=\"top_sales_listItem\">
<a href=\"";
// line 223
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", false, false, true, 223)]), "html", null, true);
echo "\">
<div class=\"img_wrap\">
<img src=\"";
// line 225
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", false, false, true, 225), 225, $this->source)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 225), 225, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 225) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
<div class=\"sales_wrap\">
";
// line 227
if (twig_get_attribute($this->env, $this->source, $context["Product"], "ProductSales", [], "any", false, false, true, 227)) {
// line 228
echo " <div class=\"btn fs-6\" style=\"color:";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Product"], "ProductSales", [], "any", false, false, true, 228), "color", [], "any", false, false, true, 228), 228, $this->source), "html", null, true);
echo ";background:";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Product"], "ProductSales", [], "any", false, false, true, 228), "bg_color", [], "any", false, false, true, 228), 228, $this->source), "html", null, true);
echo ";\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["Product"], "ProductSales", [], "any", false, false, true, 228), "label", [], "any", false, false, true, 228), 228, $this->source), "html", null, true);
echo "</div>
";
} else {
// line 230
echo " <div class=\"btn fs-6 btn-outline-secondary\">未設定</div>
";
}
// line 232
echo " </div>
</div>
<p class=\"ec-newItemRole__listItemTitle\">";
// line 234
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 234), 234, $this->source), "html", null, true);
echo "</p>
<p class=\"ec-newItemRole__listItemPrice\">
";
// line 237
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 237)) {
// line 238
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 238) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 238))) {
// line 239
echo " ";
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", false, false, true, 239), 239, $this->source)), "html", null, true);
echo "
";
} else {
// line 241
echo " ";
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", false, false, true, 241), 241, $this->source)), "html", null, true);
echo " ~ ";
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", false, false, true, 241), 241, $this->source)), "html", null, true);
echo "
";
}
// line 243
echo " ";
} else {
// line 244
echo " ";
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", false, false, true, 244), 244, $this->source)), "html", null, true);
echo "
";
}
// line 246
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("(税込)"), "html", null, true);
echo "</p>
</a>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 250
echo " </div>
</div>
</div>
</div>
</section>
<section id=\"event_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>イベント情報</span></div>
<div class=\"section_data d-flex flex-wrap justify-content-center\">
";
// line 262
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["year"] => $context["values"]) {
// line 263
echo " <div class=\"event_items\">
<div class=\"event_year\">";
// line 264
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["year"], 264, $this->source), "html", null, true);
echo "年度 イベント一覧</div>
<div class=\"event_data\">
";
// line 266
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["values"]);
foreach ($context['_seq'] as $context["k"] => $context["v"]) {
// line 267
echo " <div class=\"row\">
<div class=\"col-3\">
<div>";
// line 269
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "day_start", [], "any", false, false, true, 269), 269, $this->source), "Y.m.d"), "html", null, true);
echo "</div>
";
// line 270
if (twig_get_attribute($this->env, $this->source, $context["v"], "day_end", [], "any", false, false, true, 270)) {
// line 271
echo " <div>~";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "day_end", [], "any", false, false, true, 271), 271, $this->source), "Y.m.d"), "html", null, true);
echo "</div>
";
}
// line 273
echo " </div>
<div class=\"col-7\">
<a href=\"";
// line 275
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", false, false, true, 275)]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "name", [], "any", false, false, true, 275), 275, $this->source), "html", null, true);
echo "
";
// line 276
if (twig_get_attribute($this->env, $this->source, $context["v"], "sub_title", [], "any", false, false, true, 276)) {
// line 277
echo " <p>[ ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "sub_title", [], "any", false, false, true, 277), 277, $this->source), "html", null, true);
echo " ]</p>
";
}
// line 279
echo " </a>
</div>
<div class=\"col-2\">
<a href=\"";
// line 282
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", false, false, true, 282)]), "html", null, true);
echo "\">詳細 >> </a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 286
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['year'], $context['values'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 289
echo " </div>
</div>
</section>
<section id=\"document_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>申込書などダウンロード</span></div>
<div class=\"document_items\">
";
// line 297
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["k"] => $context["v"]) {
// line 298
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["v"], "pdf", [], "any", false, false, true, 298)) {
// line 299
echo " <div class=\"row my-2 py-2 border-bottom border-seconday border-2 col-md-8 col-12 mx-auto\">
<div class=\"col-10 h5\">";
// line 300
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "label", [], "any", false, false, true, 300), 300, $this->source), "html", null, true);
echo "</div>
<div class=\"col-2\"><a href=\"/html/user_data/assets/pdf/";
// line 301
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["v"], "pdf", [], "any", false, false, true, 301), 301, $this->source), "html", null, true);
echo "\" target=\"_blank\"><i class=\"bi bi-download\"></i></a></div>
</div>
";
}
// line 304
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['k'], $context['v'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 305
echo " </div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'front_page' %}
{% block stylesheet %}
<style>
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 20px;
height: 20px;
padding: 5px;
cursor: pointer;
color: transparent;
border: 0;
outline: none;
background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li button:before {
content: \" \";
line-height: 20px;
position: absolute;
top: 0;
left: 0;
width: 12px;
height: 12px;
text-align: center;
opacity: .25;
background-color: black;
border-radius: 50%;
}
.slick-dots li.slick-active button:before {
opacity: .75;
background-color: black;
}
.slick-dots li button.thumbnail img {
width: 0;
height: 0;
}
</style>
{% endblock %}
{% block javascript %}
<script>
\$(function() {
\$('.main_visual').slick({
dots: true,
arrows: false,
autoplay: true,
speed: 300
});
});
</script>
<script>
/*
<script src=\"https://code.jquery.com/jquery-3.6.0.min.js\">
function showWeather(zipCode) {
const apiKey = 'YOUR_API_KEY';
const url = `https://map.yahooapis.jp/weather/V1/place?coordinates=135.99668266689392,34.634682905099524&appid=dj00aiZpPXM4Y0ZhTXliT3ZaTCZzPWNvbnN1bWVyc2VjcmV0Jng9ODY-`;
\$.getJSON(url, function(data) {
const weather = data.query.results.channel;
const weatherWidget = document.getElementById('weather-widget');
weatherWidget.innerHTML = `
<h3>\${weather.location.city}の天気</h3>
<p>気温: \${weather.item.condition.temp}°C</p>
<p>天気: \${weather.item.condition.text}</p>
`;
});
}
// 郵便番号を指定して天気を表示
showWeather('6302234');
*/
</script>
{% endblock javascript %}
{% block main %}
<div class=\"ec-sliderRole position-relative\">
<div class=\"main_visual\">
<div class=\"item slick-slide\"><img src=\"{{ asset('assets/img/top/top_slider_1.jpg') }}\"></div>
</div>
<div id=\"header_wrap\" class=\"position-absolute top-50 end-0\">
<div class=\"inner\">
<div class=\"\">奈良県山添村、<br class=\"sp_on\">名阪国道に隣接する<br>総合モータースポーツ施設<br class=\"sp_on\">「名阪スポーツランド」です。</div>
<div class=\"text-center\">
</div>
</div>
</div>
</div>
<section id=\"course_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>コース紹介</span></div>
<div class=\"section_data d-flex flex-wrap justify-content-center\">
{% for k,v in courses %}
<a class=\"course_data \" href=\"{{ url('course_detail',{id:v.id}) }}\">
<img src=\"{{ eccube_config.course_image_dir_default }}{{ v.image_before1 }}\" alt=\"前半画像1\" width=\"100%\">
<div class=\"\">{{ v.name }}</div>
</a>
{% endfor %}
</div>
</div>
</section>
<section class=\"weather_daily\">
<div class=\"inner\">
<div class=\"section_title\"><span>お天気情報</span></div>
<div class=\"daily_data d-flex flex-wrap justify-content-between\">
{% for k,v in daily.time %}
<div class=\"text-center mb-4 border border-secondary rounded p-2\">
<div class=\"day mb-2 fw-bold h4\">{{ v|date('m月d日') }}</div>
<div class=\"d-flex flex-wrap justify-content-center align-items-\">
<div class=\"w-75 mx-auto mb-2\">
{% set codes = WeatherInfo(daily.weather_code[k]) %}
<img src=\"/html/template/default/assets/img/weathers/{{ codes['jma_code']}}.svg\">
<div class=\"\">{{ codes['description'] }}</div>
</div>
<div class=\"w-100 d-flex text-center\">
<div class=\"max col-6 px-2\">
<div>最高気温</div>
<div class=\"h5\">{{ daily.temperature_2m_max[k] }}℃</div>
</div>
<div class=\"min col-6 px-2\">
<div>最低気温</div>
<div class=\"h5\">{{ daily.temperature_2m_min[k] }}℃</div>
</div>
</div>
<div class=\"w-100 d-flex text-center my-2 py-2 border border-secondary border-start-0 border-end-0\">
<div class=\"sunrise col-6 px-2\">
<div>日の出</div>
<div class=\"h5\">{{ daily.sunrise[k]|date('H時i分') }}</div>
</div>
<div class=\"sunset col-6 px-2\">
<div>日の入</div>
<div class=\"h5\">{{ daily.sunset[k]|date('H時i分') }}</div>
</div>
</div>
<div class=\"w-100 d-flex text-center\">
<div class=\"max col-6 px-2\">
<div>降水確率</div>
<div class=\"h5\">{{ daily.precipitation_sum[k] }}%</div>
</div>
<div class=\"min col-6 px-2\">
<div>最低気温</div>
<div class=\"h5\">{{ daily.wind_speed_10m_max[k] }}km/h</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
<section id=\"product_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>販売中グッズ</span></div>
</div>
<div class=\"product_items\">
<div class=\"ec-role\">
<div class=\"ec-newItemRole\">
<div class=\"top_sales_list\">
{% for Product in products %}
<div class=\"top_sales_listItem\">
<a href=\"{{ url('product_detail', {'id': Product.id}) }}\">
<div class=\"img_wrap\">
<img src=\"{{ asset(Product.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
<div class=\"sales_wrap\">
{% if Product.ProductSales %}
<div class=\"btn fs-6\" style=\"color:{{ Product.ProductSales.color }};background:{{ Product.ProductSales.bg_color }};\">{{ Product.ProductSales.label }}</div>
{% else %}
<div class=\"btn fs-6 btn-outline-secondary\">未設定</div>
{% endif %}
</div>
</div>
<p class=\"ec-newItemRole__listItemTitle\">{{ Product.name }}</p>
<p class=\"ec-newItemRole__listItemPrice\">
{% if Product.hasProductClass %}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ Product.getPrice02IncTaxMin|price }}
{% else %}
{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
{% endif %}
{% else %}
{{ Product.getPrice02IncTaxMin|price }}
{% endif %}
{{ '(税込)'|trans }}</p>
</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</section>
<section id=\"event_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>イベント情報</span></div>
<div class=\"section_data d-flex flex-wrap justify-content-center\">
{% for year,values in events %}
<div class=\"event_items\">
<div class=\"event_year\">{{ year }}年度 イベント一覧</div>
<div class=\"event_data\">
{% for k,v in values %}
<div class=\"row\">
<div class=\"col-3\">
<div>{{ v.day_start|date('Y.m.d') }}</div>
{% if v.day_end %}
<div>~{{ v.day_end|date('Y.m.d') }}</div>
{% endif %}
</div>
<div class=\"col-7\">
<a href=\"{{ url('event_detail', {'id': v.id}) }}\">{{ v.name }}
{% if v.sub_title %}
<p>[ {{ v.sub_title }} ]</p>
{% endif %}
</a>
</div>
<div class=\"col-2\">
<a href=\"{{ url('event_detail', {'id': v.id}) }}\">詳細 >> </a>
</div>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
</div>
</section>
<section id=\"document_wrap\" class=\"\">
<div class=\"inner\">
<div class=\"section_title\"><span>申込書などダウンロード</span></div>
<div class=\"document_items\">
{% for k,v in documents %}
{% if v.pdf %}
<div class=\"row my-2 py-2 border-bottom border-seconday border-2 col-md-8 col-12 mx-auto\">
<div class=\"col-10 h5\">{{ v.label }}</div>
<div class=\"col-2\"><a href=\"/html/user_data/assets/pdf/{{ v.pdf }}\" target=\"_blank\"><i class=\"bi bi-download\"></i></a></div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</section>
{% endblock %}
", "index.twig", "/home/meihansl/meihan-sl.com/public_html/app/template/default/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "for" => 150, "if" => 225);
static $filters = array("escape" => 134, "date" => 167, "no_image_product" => 225, "price" => 239, "trans" => 246);
static $functions = array("asset" => 134, "url" => 151, "WeatherInfo" => 170);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if'],
['escape', 'date', 'no_image_product', 'price', 'trans'],
['asset', 'url', 'WeatherInfo']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}