<?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;
/* CourcesManagerPlugin/Resource/template/default/detail.twig */
class __TwigTemplate_42b8bb25a2c161daa3c93529c553a23c 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", "CourcesManagerPlugin/Resource/template/default/detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CourcesManagerPlugin/Resource/template/default/detail.twig"));
// line 13
$context["body_class"] = "course_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "CourcesManagerPlugin/Resource/template/default/detail.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>
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
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 21
echo " <script>
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 25
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 26
echo " <section class=\"detail_wrap\">
<div class=\"detail_title\">
<span>";
// line 28
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 28, $this->source); })()), "name", [], "any", false, false, true, 28), 28, $this->source), "html", null, true);
echo "</span>
</div>
<div class=\"detail_car_type\">
";
// line 31
echo twig_nl2br(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 31, $this->source); })()), "car_type", [], "any", false, false, true, 31), 31, $this->source), "html", null, true));
echo "
</div>
";
// line 33
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 33, $this->source); })()), "description", [], "any", false, false, true, 33)) {
// line 34
echo " <div class=\"detail_description\">
";
// line 35
echo twig_nl2br(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 35, $this->source); })()), "description", [], "any", false, false, true, 35), 35, $this->source), "html", null, true));
echo "
</div>
";
}
// line 38
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 38, $this->source); })()), "image_before1", [], "any", false, false, true, 38) || twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 38, $this->source); })()), "image_before2", [], "any", false, false, true, 38))) {
// line 39
echo " <div class=\"detail_image detail_image_before d-flex justify-content-center\">
";
// line 40
if ((twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 40, $this->source); })()), "image_before1", [], "any", false, false, true, 40) && twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 40, $this->source); })()), "image_before2", [], "any", false, false, true, 40))) {
// line 41
echo " <img src=\"";
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.', 41, $this->source); })()), "course_image_dir_default", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 41, $this->source); })()), "image_before1", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "\" width=\"100%\" alt=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 41, $this->source); })()), "name", [], "any", false, false, true, 41), 41, $this->source) . "画像1"), "html", null, true);
echo "\">
<img src=\"";
// line 42
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.', 42, $this->source); })()), "course_image_dir_default", [], "any", false, false, true, 42), 42, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 42, $this->source); })()), "image_before2", [], "any", false, false, true, 42), 42, $this->source), "html", null, true);
echo "\" width=\"100%\" alt=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 42, $this->source); })()), "name", [], "any", false, false, true, 42), 42, $this->source) . "画像2"), "html", null, true);
echo "\">
";
} else {
// line 44
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 44, $this->source); })()), "image_before1", [], "any", false, false, true, 44)) {
// line 45
echo " <img src=\"";
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.', 45, $this->source); })()), "course_image_dir_default", [], "any", false, false, true, 45), 45, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 45, $this->source); })()), "image_before1", [], "any", false, false, true, 45), 45, $this->source), "html", null, true);
echo "\" width=\"100%\" alt=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 45, $this->source); })()), "name", [], "any", false, false, true, 45), 45, $this->source) . "画像1"), "html", null, true);
echo "\">
";
} elseif (twig_get_attribute($this->env, $this->source, // line 46
(isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 46, $this->source); })()), "image_before2", [], "any", false, false, true, 46)) {
// line 47
echo " <img src=\"";
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.', 47, $this->source); })()), "course_image_dir_default", [], "any", false, false, true, 47), 47, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 47, $this->source); })()), "image_before2", [], "any", false, false, true, 47), 47, $this->source), "html", null, true);
echo "\" width=\"100%\" alt=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 47, $this->source); })()), "name", [], "any", false, false, true, 47), 47, $this->source) . "画像2"), "html", null, true);
echo "\">
";
}
// line 49
echo " ";
}
// line 50
echo " </div>
";
}
// line 52
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 52, $this->source); })()), "map", [], "any", false, false, true, 52)) {
// line 53
echo " <div class=\"mx-auto\">
<div class=\"item_title\"><span>コース情報</span></div>
<div class=\"item_table\">
<table class=\"table table-bordered table-striped\">
";
// line 57
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 57, $this->source); })()), "length", [], "any", false, false, true, 57)) {
// line 58
echo " <tr>
<th class=\"\">全長</th>
<td class=\"text-end\">";
// line 60
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 60, $this->source); })()), "length", [], "any", false, false, true, 60), 60, $this->source), "html", null, true);
echo " m</td>
</tr>
";
}
// line 63
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 63, $this->source); })()), "straight", [], "any", false, false, true, 63)) {
// line 64
echo " <tr>
<th class=\"\">最大直線長</th>
<td class=\"text-end\">";
// line 66
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 66, $this->source); })()), "straight", [], "any", false, false, true, 66), 66, $this->source), "html", null, true);
echo " m</td>
</tr>
";
}
// line 69
echo " ";
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 69, $this->source); })()), "height", [], "any", false, false, true, 69))) {
// line 70
echo " <tr>
<th class=\"\">高低差</th>
<td class=\"text-end\">";
// line 72
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 72, $this->source); })()), "height", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo " m</td>
</tr>
";
}
// line 75
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 75, $this->source); })()), "width", [], "any", false, false, true, 75)) {
// line 76
echo " <tr>
<th class=\"\">走行路幅員</th>
<td class=\"text-end\">";
// line 78
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 78, $this->source); })()), "width", [], "any", false, false, true, 78), 78, $this->source), "html", null, true);
echo "</td>
</tr>
";
}
// line 81
echo " </table>
</div>
<img src=\"";
// line 83
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.', 83, $this->source); })()), "course_image_dir_default", [], "any", false, false, true, 83), 83, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 83, $this->source); })()), "map", [], "any", false, false, true, 83), 83, $this->source), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, ($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 83, $this->source); })()), "name", [], "any", false, false, true, 83), 83, $this->source) . "コース図"), "html", null, true);
echo "\" width=\"100%\">
</div>
";
}
// line 86
echo "
";
// line 87
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 87, $this->source); })()), "license", [], "any", false, false, true, 87)) {
// line 88
echo " <div class=\"item_comment\">
<div class=\"item_title\"><span>必要ライセンス</span></div>
<div class=\"\">走行には、有効期限内の下記ライセンスの提示が必要です。</div>
<div class=\"text-center my-4 text-danger\">
<div class=\"\">";
// line 92
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 92, $this->source); })()), "license", [], "any", false, false, true, 92), 92, $this->source), "html", null, true);
echo "</div>
</div>
</div>
";
}
// line 96
echo "
";
// line 97
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 97, $this->source); })()), "fee1", [], "any", false, false, true, 97)) {
// line 98
echo " <div class=\"fee_wrap\">
<div class=\"item_title\"><span>走行料金</span></div>
<div class=\"mb-4\">
";
// line 101
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 101, $this->source); })()), "fee1_title", [], "any", false, false, true, 101)) {
// line 102
echo " <div class=\"fee_title\"><span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 102, $this->source); })()), "fee1_title", [], "any", false, false, true, 102), 102, $this->source), "html", null, true);
echo "</span></div>
";
}
// line 104
echo " <table class=\"table\">
";
// line 105
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 105, $this->source); })()), "fee1", [], "any", false, false, true, 105), 105, $this->source);
echo "
</table>
</div>
";
// line 108
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 108, $this->source); })()), "fee2", [], "any", false, false, true, 108)) {
// line 109
echo " <div class=\"mb-4\">
<table class=\"table\">
";
// line 111
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 111, $this->source); })()), "fee2", [], "any", false, false, true, 111), 111, $this->source);
echo "
</table>
</div>
";
}
// line 115
echo " </div>
";
}
// line 117
echo "
";
// line 118
if (((twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 118, $this->source); })()), "comment1", [], "any", false, false, true, 118) || twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 118, $this->source); })()), "comment2", [], "any", false, false, true, 118)) || twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 118, $this->source); })()), "comment3", [], "any", false, false, true, 118))) {
// line 119
echo " <div class=\"item_comment\">
<div class=\"item_title\"><span>注意事項</span></div>
<div class=\"item_comment_data\">
";
// line 122
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 122, $this->source); })()), "comment1", [], "any", false, false, true, 122)) {
// line 123
echo " <div class=\"\">・";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 123, $this->source); })()), "comment1", [], "any", false, false, true, 123), 123, $this->source), "html", null, true);
echo "</div>
";
}
// line 125
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 125, $this->source); })()), "comment2", [], "any", false, false, true, 125)) {
// line 126
echo " <div class=\"\">・";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 126, $this->source); })()), "comment2", [], "any", false, false, true, 126), 126, $this->source), "html", null, true);
echo "</div>
";
}
// line 128
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 128, $this->source); })()), "comment3", [], "any", false, false, true, 128)) {
// line 129
echo " <div class=\"\">・";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["course"]) || array_key_exists("course", $context) ? $context["course"] : (function () { throw new RuntimeError('Variable "course" does not exist.', 129, $this->source); })()), "comment3", [], "any", false, false, true, 129), 129, $this->source), "html", null, true);
echo "</div>
";
}
// line 131
echo " </div>
</div>
";
}
// line 134
echo "
<div class=\"product_list\">
<div class=\"item_title\"><span>関連商品</span></div>
<div class=\"ec-newItemRole\">
<div class=\"top_sales_ticket\">
";
// line 139
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 139, $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 140
echo " <div class=\"top_sales_listItem\">
<a href=\"";
// line 141
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, 141)]), "html", null, true);
echo "\">
<div class=\"img_wrap\">
<img src=\"";
// line 143
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, 143), 143, $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, 143), 143, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 143) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</div>
<p class=\"ec-newItemRole__listItemTitle\">";
// line 145
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 145), 145, $this->source), "html", null, true);
echo "</p>
<p class=\"ec-newItemRole__listItemPrice\">
";
// line 147
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 147)) {
// line 148
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 148) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 148))) {
// line 149
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, 149), 149, $this->source)), "html", null, true);
echo "
";
} else {
// line 151
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, 151), 151, $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, 151), 151, $this->source)), "html", null, true);
echo "
";
}
// line 153
echo " ";
} else {
// line 154
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, 154), 154, $this->source)), "html", null, true);
echo "
";
}
// line 156
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 160
echo " </div>
<div class=\"top_sales_driver\">
";
// line 162
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["drives"]) || array_key_exists("drives", $context) ? $context["drives"] : (function () { throw new RuntimeError('Variable "drives" does not exist.', 162, $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 163
echo " <div class=\"top_sales_listItem\">
<a href=\"";
// line 164
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, 164)]), "html", null, true);
echo "\">
<div class=\"img_wrap\">
<img src=\"";
// line 166
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, 166), 166, $this->source)), "save_image"), "html", null, true);
echo "\" width=\"100%\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 166), 166, $this->source), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 166) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</div>
<p class=\"ec-newItemRole__listItemTitle\">";
// line 168
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Product"], "name", [], "any", false, false, true, 168), 168, $this->source), "html", null, true);
echo "</p>
<p class=\"ec-newItemRole__listItemPrice\">
";
// line 170
if (twig_get_attribute($this->env, $this->source, $context["Product"], "hasProductClass", [], "any", false, false, true, 170)) {
// line 171
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Min", [], "any", false, false, true, 171) == twig_get_attribute($this->env, $this->source, $context["Product"], "getPrice02Max", [], "any", false, false, true, 171))) {
// line 172
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, 172), 172, $this->source)), "html", null, true);
echo "
";
} else {
// line 174
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, 174), 174, $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, 174), 174, $this->source)), "html", null, true);
echo "
";
}
// line 176
echo " ";
} else {
// line 177
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, 177), 177, $this->source)), "html", null, true);
echo "
";
}
// line 179
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 183
echo " </div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "CourcesManagerPlugin/Resource/template/default/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 561 => 183, 542 => 179, 536 => 177, 533 => 176, 525 => 174, 519 => 172, 516 => 171, 514 => 170, 509 => 168, 498 => 166, 493 => 164, 490 => 163, 473 => 162, 469 => 160, 450 => 156, 444 => 154, 441 => 153, 433 => 151, 427 => 149, 424 => 148, 422 => 147, 417 => 145, 406 => 143, 401 => 141, 398 => 140, 381 => 139, 374 => 134, 369 => 131, 363 => 129, 360 => 128, 354 => 126, 351 => 125, 345 => 123, 343 => 122, 338 => 119, 336 => 118, 333 => 117, 329 => 115, 322 => 111, 318 => 109, 316 => 108, 310 => 105, 307 => 104, 301 => 102, 299 => 101, 294 => 98, 292 => 97, 289 => 96, 282 => 92, 276 => 88, 274 => 87, 271 => 86, 262 => 83, 258 => 81, 252 => 78, 248 => 76, 245 => 75, 239 => 72, 235 => 70, 232 => 69, 226 => 66, 222 => 64, 219 => 63, 213 => 60, 209 => 58, 207 => 57, 201 => 53, 198 => 52, 194 => 50, 191 => 49, 182 => 47, 180 => 46, 172 => 45, 169 => 44, 161 => 42, 153 => 41, 151 => 40, 148 => 39, 145 => 38, 139 => 35, 136 => 34, 134 => 33, 129 => 31, 123 => 28, 119 => 26, 109 => 25, 97 => 21, 87 => 20, 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 = 'course_page' %}
{% block stylesheet %}
<style>
</style>
{% endblock %}
{% block javascript %}
<script>
</script>
{% endblock javascript %}
{% block main %}
<section class=\"detail_wrap\">
<div class=\"detail_title\">
<span>{{ course.name }}</span>
</div>
<div class=\"detail_car_type\">
{{ course.car_type|nl2br }}
</div>
{% if course.description %}
<div class=\"detail_description\">
{{ course.description|nl2br }}
</div>
{% endif %}
{% if course.image_before1 or course.image_before2 %}
<div class=\"detail_image detail_image_before d-flex justify-content-center\">
{% if course.image_before1 and course.image_before2 %}
<img src=\"{{ eccube_config.course_image_dir_default }}{{ course.image_before1 }}\" width=\"100%\" alt=\"{{ course.name ~ '画像1'}}\">
<img src=\"{{ eccube_config.course_image_dir_default }}{{ course.image_before2 }}\" width=\"100%\" alt=\"{{ course.name ~ '画像2'}}\">
{% else %}
{% if course.image_before1 %}
<img src=\"{{ eccube_config.course_image_dir_default }}{{ course.image_before1 }}\" width=\"100%\" alt=\"{{ course.name ~ '画像1'}}\">
{% elseif course.image_before2 %}
<img src=\"{{ eccube_config.course_image_dir_default }}{{ course.image_before2 }}\" width=\"100%\" alt=\"{{ course.name ~ '画像2'}}\">
{% endif %}
{% endif %}
</div>
{% endif %}
{% if course.map %}
<div class=\"mx-auto\">
<div class=\"item_title\"><span>コース情報</span></div>
<div class=\"item_table\">
<table class=\"table table-bordered table-striped\">
{% if course.length %}
<tr>
<th class=\"\">全長</th>
<td class=\"text-end\">{{ course.length }} m</td>
</tr>
{% endif %}
{% if course.straight %}
<tr>
<th class=\"\">最大直線長</th>
<td class=\"text-end\">{{ course.straight }} m</td>
</tr>
{% endif %}
{% if course.height is not null %}
<tr>
<th class=\"\">高低差</th>
<td class=\"text-end\">{{ course.height }} m</td>
</tr>
{% endif %}
{% if course.width %}
<tr>
<th class=\"\">走行路幅員</th>
<td class=\"text-end\">{{ course.width }}</td>
</tr>
{% endif %}
</table>
</div>
<img src=\"{{ eccube_config.course_image_dir_default }}{{ course.map }}\" alt=\"{{ course.name ~ 'コース図'}}\" width=\"100%\">
</div>
{% endif %}
{% if course.license %}
<div class=\"item_comment\">
<div class=\"item_title\"><span>必要ライセンス</span></div>
<div class=\"\">走行には、有効期限内の下記ライセンスの提示が必要です。</div>
<div class=\"text-center my-4 text-danger\">
<div class=\"\">{{ course.license }}</div>
</div>
</div>
{% endif %}
{% if course.fee1 %}
<div class=\"fee_wrap\">
<div class=\"item_title\"><span>走行料金</span></div>
<div class=\"mb-4\">
{% if course.fee1_title %}
<div class=\"fee_title\"><span>{{ course.fee1_title }}</span></div>
{% endif %}
<table class=\"table\">
{{ course.fee1|raw }}
</table>
</div>
{% if course.fee2 %}
<div class=\"mb-4\">
<table class=\"table\">
{{ course.fee2|raw }}
</table>
</div>
{% endif %}
</div>
{% endif %}
{% if course.comment1 or course.comment2 or course.comment3 %}
<div class=\"item_comment\">
<div class=\"item_title\"><span>注意事項</span></div>
<div class=\"item_comment_data\">
{% if course.comment1 %}
<div class=\"\">・{{ course.comment1 }}</div>
{% endif %}
{% if course.comment2 %}
<div class=\"\">・{{ course.comment2 }}</div>
{% endif %}
{% if course.comment3 %}
<div class=\"\">・{{ course.comment3 }}</div>
{% endif %}
</div>
</div>
{% endif %}
<div class=\"product_list\">
<div class=\"item_title\"><span>関連商品</span></div>
<div class=\"ec-newItemRole\">
<div class=\"top_sales_ticket\">
{% for Product in ticket %}
<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>
<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 class=\"top_sales_driver\">
{% for Product in drives %}
<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') }}\" width=\"100%\" alt=\"{{ Product.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</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>
</section>
{% endblock %}
", "CourcesManagerPlugin/Resource/template/default/detail.twig", "/home/meihansl/meihan-sl.com/public_html/app/Plugin/CourcesManagerPlugin/Resource/template/default/detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 33, "for" => 139);
static $filters = array("escape" => 28, "nl2br" => 31, "raw" => 105, "no_image_product" => 143, "price" => 149, "trans" => 156);
static $functions = array("url" => 141, "asset" => 143);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['escape', 'nl2br', 'raw', 'no_image_product', 'price', 'trans'],
['url', 'asset']
);
} 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;
}
}
}