<?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;
/* EventCalendar42/index.twig */
class __TwigTemplate_1b67a0623c2bf39d6d6d44fa583c528f 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 1
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", "EventCalendar42/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "EventCalendar42/index.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "EventCalendar42/index.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo "<link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("EventCalendar42/assets/css/contents.css", "plugin"), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 7
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 8
echo " <script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("EventCalendar42/assets/js/jquery.balloon.js", "plugin"), "html", null, true);
echo "\"></script>
\t<script type=\"text/javascript\">
\t\$ (function(){
\$('li.ahref').balloon();
\t\t\$('.accordion-btn').click(function(){
\t\t\t\$(this).parent().toggleClass('active');
\t\t\t\$(this).parents('.event-bloc').find('.calendar_comment').slideToggle();
\t\t});
\t});
\t</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 20
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 21
echo "<div class=\"event-role\" id=\"calender_area\">
<div class=\"ec-pageHeader\">
<h1 class=\"mainttl\">各種研修会などのご案内</h1>
</div>
<div class=\"contents-inner\" id=\"event_list_page\">
<div class=\"block_body\">
";
// line 28
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["eventLists"]) || array_key_exists("eventLists", $context) ? $context["eventLists"] : (function () { throw new RuntimeError('Variable "eventLists" does not exist.', 28, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
// line 29
echo " <div class=\"event-list\">
\t\t\t\t\t";
// line 30
if (twig_get_attribute($this->env, $this->source, $context["event"], "is_active", [], "any", false, false, true, 30)) {
// line 31
echo "\t\t\t\t\t\t<div class=\"event-bloc\">
<div class=\"accordion_title flex\">
<div class=\"event-icon\">
";
// line 34
if ((twig_get_attribute($this->env, $this->source, $context["event"], "icon", [], "any", false, false, true, 34) != 9)) {
// line 35
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Plugin\EventCalendar42\Twig\EventCalendarExtension']->getEventIconPath($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "icon", [], "any", false, false, true, 35), 35, $this->source)), "plugin"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "title", [], "any", false, false, true, 35), 35, $this->source), "html", null, true);
echo "\" >
";
}
// line 37
echo " </div>
<div class=\"event-title\">
<h5>
";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "start_date", [], "any", false, false, true, 40), 40, $this->source), "", "Y年m月d日"), "html", null, true);
if ((twig_get_attribute($this->env, $this->source, $context["event"], "start_date", [], "any", false, false, true, 40) != twig_get_attribute($this->env, $this->source, $context["event"], "end_date", [], "any", false, false, true, 40))) {
echo " ~ ";
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\EccubeExtension']->getDateFormatFilter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "end_date", [], "any", false, false, true, 40), 40, $this->source), "", "Y年m月d日"), "html", null, true);
}
// line 41
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "title", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "
</h5>
\t\t\t\t\t ";
// line 43
if (twig_get_attribute($this->env, $this->source, $context["event"], "url", [], "any", false, false, true, 43)) {
// line 44
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "url", [], "any", false, false, true, 44), 44, $this->source), "html", null, true);
echo "\" ";
if (twig_get_attribute($this->env, $this->source, $context["event"], "link_method", [], "any", false, false, true, 44)) {
echo "target=\"_blank\"";
}
echo "><span class=\"icon link\"></span></a>
";
}
// line 46
echo " </div>
\t\t\t\t\t\t\t\t";
// line 47
if (twig_get_attribute($this->env, $this->source, $context["event"], "free_area", [], "any", false, false, true, 47)) {
// line 48
echo " <div class=\"accordion-btn\"><div>詳細を見る<img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("EventCalendar42/assets/img/icon/deco-arrow.png", "plugin"), "html", null, true);
echo "\" alt=\"詳細を見る\"></div></div>
";
}
// line 50
echo " </div>
<div class=\"calendar_comment\">";
// line 51
echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["event"], "free_area", [], "any", false, false, true, 51), 51, $this->source));
echo "</div>
</div>
";
}
// line 54
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "EventCalendar42/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 216 => 56, 209 => 54, 203 => 51, 200 => 50, 194 => 48, 192 => 47, 189 => 46, 179 => 44, 177 => 43, 171 => 41, 165 => 40, 160 => 37, 152 => 35, 150 => 34, 145 => 31, 143 => 30, 140 => 29, 135 => 28, 127 => 21, 117 => 20, 95 => 8, 85 => 7, 72 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'default_frame.twig' %}
{% block stylesheet %}
<link rel=\"stylesheet\" href=\"{{ asset('EventCalendar42/assets/css/contents.css', 'plugin') }}\">
{% endblock %}
{% block javascript %}
<script src=\"{{ asset('EventCalendar42/assets/js/jquery.balloon.js', 'plugin') }}\"></script>
\t<script type=\"text/javascript\">
\t\$ (function(){
\$('li.ahref').balloon();
\t\t\$('.accordion-btn').click(function(){
\t\t\t\$(this).parent().toggleClass('active');
\t\t\t\$(this).parents('.event-bloc').find('.calendar_comment').slideToggle();
\t\t});
\t});
\t</script>
{% endblock javascript %}
{% block main %}
<div class=\"event-role\" id=\"calender_area\">
<div class=\"ec-pageHeader\">
<h1 class=\"mainttl\">各種研修会などのご案内</h1>
</div>
<div class=\"contents-inner\" id=\"event_list_page\">
<div class=\"block_body\">
{# イベント一覧 #}
\t\t\t{% for event in eventLists %}
<div class=\"event-list\">
\t\t\t\t\t{% if event.is_active %}{# 公開状態 #}
\t\t\t\t\t\t<div class=\"event-bloc\">
<div class=\"accordion_title flex\">
<div class=\"event-icon\">
{% if event.icon != 9 %}
<img src=\"{{ asset( event.icon|event_icon , 'plugin') }}\" alt=\"{{event.title}}\" >
{% endif %}
</div>
<div class=\"event-title\">
<h5>
{{event.start_date|date_format('', 'Y年m月d日')}}{% if event.start_date != event.end_date %} ~ {{event.end_date|date_format('', 'Y年m月d日')}}{% endif %}
{{event.title}}
</h5>
\t\t\t\t\t {% if event.url %}
<a href=\"{{event.url}}\" {% if event.link_method %}target=\"_blank\"{% endif %}><span class=\"icon link\"></span></a>
{% endif %}
</div>
\t\t\t\t\t\t\t\t{% if event.free_area %}{# フリーエリアに記述があれば #}
<div class=\"accordion-btn\"><div>詳細を見る<img src=\"{{ asset('EventCalendar42/assets/img/icon/deco-arrow.png', 'plugin') }}\" alt=\"詳細を見る\"></div></div>
{% endif %}
</div>
<div class=\"calendar_comment\">{{event.free_area|raw|nl2br}}</div>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}", "EventCalendar42/index.twig", "/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/EventCalendar42/index.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 28, "if" => 30);
static $filters = array("escape" => 4, "event_icon" => 35, "date_format" => 40, "nl2br" => 51, "raw" => 51);
static $functions = array("asset" => 4);
try {
$this->sandbox->checkSecurity(
['for', 'if'],
['escape', 'event_icon', 'date_format', 'nl2br', 'raw'],
['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;
}
}
}