<?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;
/* event/detail.twig */
class __TwigTemplate_6ef1e4056b6b2952f3fe00e22940e654 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", "event/detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "event/detail.twig"));
// line 13
$context["body_class"] = "event_page";
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "event/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>イベント情報</span>
</div>
<div class=\"event_name\">
";
// line 31
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 31, $this->source); })()), "name", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
echo "
</div>
<div class=\"event_sub_name\">
";
// line 34
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 34, $this->source); })()), "sub_title", [], "any", false, false, true, 34), 34, $this->source), "html", null, true);
echo "
</div>
";
// line 36
if (twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 36, $this->source); })()), "image", [], "any", false, false, true, 36)) {
// line 37
echo " <div class=\"detail_image detail_image_before d-flex justify-content-center\">
<img src=\"";
// line 38
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.', 38, $this->source); })()), "event_image_dir_default", [], "any", false, false, true, 38), 38, $this->source), "html", null, true);
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 38, $this->source); })()), "image", [], "any", false, false, true, 38), 38, $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["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, true, 38), 38, $this->source) . "イベント画像"), "html", null, true);
echo "\"\\></img>
</div>
";
}
// line 41
echo "
";
// line 42
if ((twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 42, $this->source); })()), "day_start", [], "any", false, false, true, 42) && twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 42, $this->source); })()), "day_end", [], "any", false, false, true, 42))) {
// line 43
echo " <div class=\"item_comment\">
<div class=\"item_title\">
<span>イベント期間</span>
</div>
<div class=\"\">
";
// line 48
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["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 48, $this->source); })()), "day_start", [], "any", false, false, true, 48), "date", [], "any", false, false, true, 48), 48, $this->source), "Y.m.d"), "html", null, true);
echo "~";
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["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 48, $this->source); })()), "day_end", [], "any", false, false, true, 48), "date", [], "any", false, false, true, 48), 48, $this->source), "Y.m.d"), "html", null, true);
echo "
</div>
</div>
";
}
// line 52
echo "
";
// line 54
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 54, $this->source); })()), "Course", [], "any", false, false, true, 54), "id", [], "any", false, false, true, 54)) {
// line 55
echo " <div class=\"item_comment\">
<div class=\"item_title\">
<span>対象コース</span>
</div>
<div class=\"item_link_data\">
<a href=\"";
// line 60
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("course_detail", ["id" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 60, $this->source); })()), "Course", [], "any", false, false, true, 60), "id", [], "any", false, false, true, 60)]), "html", null, true);
echo "\" target=\"_blank\" class=\"\">";
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["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 60, $this->source); })()), "Course", [], "any", false, false, true, 60), "name", [], "any", false, false, true, 60), 60, $this->source), "html", null, true);
echo "</a>
</div>
</div>
";
}
// line 64
echo "
";
// line 65
if ((twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 65, $this->source); })()), "url1", [], "any", false, false, true, 65) || twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 65, $this->source); })()), "url2", [], "any", false, false, true, 65))) {
// line 66
echo " <div class=\"item_comment\">
<div class=\"item_title\">
<span>イベント詳細はこちら</span>
</div>
<div class=\"\">
外部リンク
</div>
<div class=\"item_link_data\">
";
// line 74
if ((twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 74, $this->source); })()), "url1", [], "any", false, false, true, 74) && twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 74, $this->source); })()), "url2", [], "any", false, false, true, 74))) {
// line 75
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 75, $this->source); })()), "url1", [], "any", false, false, true, 75), 75, $this->source), "html", null, true);
echo "\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
<a href=\"";
// line 76
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 76, $this->source); })()), "url2", [], "any", false, false, true, 76), 76, $this->source), "html", null, true);
echo "\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
";
} else {
// line 78
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 78, $this->source); })()), "url1", [], "any", false, false, true, 78)) {
// line 79
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 79, $this->source); })()), "url1", [], "any", false, false, true, 79), 79, $this->source), "html", null, true);
echo "\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
";
} elseif (twig_get_attribute($this->env, $this->source, // line 80
(isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 80, $this->source); })()), "url2", [], "any", false, false, true, 80)) {
// line 81
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["events"]) || array_key_exists("events", $context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.', 81, $this->source); })()), "url2", [], "any", false, false, true, 81), 81, $this->source), "html", null, true);
echo "\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
";
}
// line 84
echo " ";
}
// line 85
echo " </div>
</div>
";
}
// line 88
echo "
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "event/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 246 => 88, 241 => 85, 238 => 84, 231 => 81, 229 => 80, 224 => 79, 221 => 78, 216 => 76, 211 => 75, 209 => 74, 199 => 66, 197 => 65, 194 => 64, 185 => 60, 178 => 55, 176 => 54, 172 => 52, 163 => 48, 156 => 43, 154 => 42, 151 => 41, 142 => 38, 139 => 37, 137 => 36, 132 => 34, 126 => 31, 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 = 'event_page' %}
{% block stylesheet %}
<style>
</style>
{% endblock %}
{% block javascript %}
<script>
</script>
{% endblock %}
{% block main %}
<section class=\"detail_wrap\">
<div class=\"detail_title\">
<span>イベント情報</span>
</div>
<div class=\"event_name\">
{{ events.name }}
</div>
<div class=\"event_sub_name\">
{{ events.sub_title }}
</div>
{% if events.image %}
<div class=\"detail_image detail_image_before d-flex justify-content-center\">
<img src=\"{{ eccube_config.event_image_dir_default }}{{ events.image }}\" width=\"100%\" alt=\"{{ events.name ~ 'イベント画像'}}\"\\></img>
</div>
{% endif %}
{% if events.day_start and events.day_end %}
<div class=\"item_comment\">
<div class=\"item_title\">
<span>イベント期間</span>
</div>
<div class=\"\">
{{ events.day_start.date|date('Y.m.d') }}~{{ events.day_end.date|date('Y.m.d') }}
</div>
</div>
{% endif %}
{% if events.Course.id %}
<div class=\"item_comment\">
<div class=\"item_title\">
<span>対象コース</span>
</div>
<div class=\"item_link_data\">
<a href=\"{{ url('course_detail', { id : events.Course.id }) }}\" target=\"_blank\" class=\"\">{{ events.Course.name }}</a>
</div>
</div>
{% endif %}
{% if events.url1 or event.url2 %}
<div class=\"item_comment\">
<div class=\"item_title\">
<span>イベント詳細はこちら</span>
</div>
<div class=\"\">
外部リンク
</div>
<div class=\"item_link_data\">
{% if events.url1 and events.url2 %}
<a href=\"{{ events.url1 }}\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
<a href=\"{{ events.url2 }}\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
{% else %}
{% if events.url1 %}
<a href=\"{{ events.url1 }}\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
{% elseif events.url2 %}
<a href=\"{{ events.url2 }}\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
{% endif %}
{% endif %}
</div>
</div>
{% endif %}
</section>
{% endblock %}
", "event/detail.twig", "/home/meihansl/meihan-sl.com/public_html/app/template/default/event/detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 13, "if" => 36);
static $filters = array("escape" => 31, "date" => 48);
static $functions = array("url" => 60);
try {
$this->sandbox->checkSecurity(
['set', 'if'],
['escape', 'date'],
['url']
);
} 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;
}
}
}