var/cache/dev/twig/69/69d1e823ae5b29b8df459df654509f2e.php line 42

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* EventCalendar42/index.twig */
  14. class __TwigTemplate_1b67a0623c2bf39d6d6d44fa583c528f extends \Eccube\Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'stylesheet' => [$this'block_stylesheet'],
  24.             'javascript' => [$this'block_javascript'],
  25.             'main' => [$this'block_main'],
  26.         ];
  27.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  28.         $this->checkSecurity();
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "default_frame.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""EventCalendar42/index.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""EventCalendar42/index.twig"));
  42.         $this->parent $this->loadTemplate("default_frame.twig""EventCalendar42/index.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_stylesheet($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  57.         // line 4
  58.         echo "<link rel=\"stylesheet\" href=\"";
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("EventCalendar42/assets/css/contents.css""plugin"), "html"nulltrue);
  60.         echo "\">
  61. ";
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 7
  68.     public function block_javascript($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  75.         // line 8
  76.         echo "  <script src=\"";
  77.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("EventCalendar42/assets/js/jquery.balloon.js""plugin"), "html"nulltrue);
  78.         echo "\"></script>
  79. \t<script type=\"text/javascript\">
  80. \t\$ (function(){
  81.     \$('li.ahref').balloon();
  82. \t\t\$('.accordion-btn').click(function(){
  83. \t\t\t\$(this).parent().toggleClass('active');
  84. \t\t\t\$(this).parents('.event-bloc').find('.calendar_comment').slideToggle();
  85. \t\t});
  86. \t});
  87. \t</script>
  88. ";
  89.         
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.     }
  94.     // line 20
  95.     public function block_main($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  102.         // line 21
  103.         echo "<div class=\"event-role\" id=\"calender_area\">
  104.   <div class=\"ec-pageHeader\">
  105.       <h1 class=\"mainttl\">各種研修会などのご案内</h1>
  106.   </div>
  107.   <div class=\"contents-inner\" id=\"event_list_page\">
  108.     <div class=\"block_body\">
  109.       ";
  110.         // line 28
  111.         echo "\t\t\t";
  112.         $context['_parent'] = $context;
  113.         $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); })()));
  114.         foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
  115.             // line 29
  116.             echo "      <div class=\"event-list\">
  117. \t\t\t\t\t";
  118.             // line 30
  119.             if (twig_get_attribute($this->env$this->source$context["event"], "is_active", [], "any"falsefalsetrue30)) {
  120.                 // line 31
  121.                 echo "\t\t\t\t\t\t<div class=\"event-bloc\">
  122.               <div class=\"accordion_title flex\">
  123.                 <div class=\"event-icon\">
  124.                 ";
  125.                 // line 34
  126.                 if ((twig_get_attribute($this->env$this->source$context["event"], "icon", [], "any"falsefalsetrue34) != 9)) {
  127.                     // line 35
  128.                     echo "                  <img src=\"";
  129.                     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"falsefalsetrue35), 35$this->source)), "plugin"), "html"nulltrue);
  130.                     echo "\" alt=\"";
  131.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["event"], "title", [], "any"falsefalsetrue35), 35$this->source), "html"nulltrue);
  132.                     echo "\" >
  133.                 ";
  134.                 }
  135.                 // line 37
  136.                 echo "                </div>
  137.                 <div class=\"event-title\">
  138.                   <h5>
  139.                     ";
  140.                 // line 40
  141.                 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"falsefalsetrue40), 40$this->source), """Y年m月d日"), "html"nulltrue);
  142.                 if ((twig_get_attribute($this->env$this->source$context["event"], "start_date", [], "any"falsefalsetrue40) != twig_get_attribute($this->env$this->source$context["event"], "end_date", [], "any"falsefalsetrue40))) {
  143.                     echo " ~ ";
  144.                     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"falsefalsetrue40), 40$this->source), """Y年m月d日"), "html"nulltrue);
  145.                 }
  146.                 // line 41
  147.                 echo "                     ";
  148.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["event"], "title", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  149.                 echo "
  150.                   </h5>
  151. \t\t\t\t\t        ";
  152.                 // line 43
  153.                 if (twig_get_attribute($this->env$this->source$context["event"], "url", [], "any"falsefalsetrue43)) {
  154.                     // line 44
  155.                     echo "                  <a href=\"";
  156.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["event"], "url", [], "any"falsefalsetrue44), 44$this->source), "html"nulltrue);
  157.                     echo "\" ";
  158.                     if (twig_get_attribute($this->env$this->source$context["event"], "link_method", [], "any"falsefalsetrue44)) {
  159.                         echo "target=\"_blank\"";
  160.                     }
  161.                     echo "><span class=\"icon link\"></span></a>
  162.                   ";
  163.                 }
  164.                 // line 46
  165.                 echo "                </div>
  166. \t\t\t\t\t\t\t\t";
  167.                 // line 47
  168.                 if (twig_get_attribute($this->env$this->source$context["event"], "free_area", [], "any"falsefalsetrue47)) {
  169.                     // line 48
  170.                     echo "                <div class=\"accordion-btn\"><div>詳細を見る<img src=\"";
  171.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("EventCalendar42/assets/img/icon/deco-arrow.png""plugin"), "html"nulltrue);
  172.                     echo "\" alt=\"詳細を見る\"></div></div>
  173.                 ";
  174.                 }
  175.                 // line 50
  176.                 echo "              </div>
  177.               <div class=\"calendar_comment\">";
  178.                 // line 51
  179.                 echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["event"], "free_area", [], "any"falsefalsetrue51), 51$this->source));
  180.                 echo "</div>
  181.             </div>
  182.           ";
  183.             }
  184.             // line 54
  185.             echo "      </div>
  186.       ";
  187.         }
  188.         $_parent $context['_parent'];
  189.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']);
  190.         $context array_intersect_key($context$_parent) + $_parent;
  191.         // line 56
  192.         echo "
  193.     </div>
  194.   </div>
  195. </div>
  196. ";
  197.         
  198.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  199.         
  200.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  201.     }
  202.     public function getTemplateName()
  203.     {
  204.         return "EventCalendar42/index.twig";
  205.     }
  206.     public function isTraitable()
  207.     {
  208.         return false;
  209.     }
  210.     public function getDebugInfo()
  211.     {
  212.         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,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("{% extends 'default_frame.twig' %}
  217. {% block stylesheet %}
  218. <link rel=\"stylesheet\" href=\"{{ asset('EventCalendar42/assets/css/contents.css', 'plugin') }}\">
  219. {% endblock %}
  220. {% block javascript %}
  221.   <script src=\"{{ asset('EventCalendar42/assets/js/jquery.balloon.js', 'plugin') }}\"></script>
  222. \t<script type=\"text/javascript\">
  223. \t\$ (function(){
  224.     \$('li.ahref').balloon();
  225. \t\t\$('.accordion-btn').click(function(){
  226. \t\t\t\$(this).parent().toggleClass('active');
  227. \t\t\t\$(this).parents('.event-bloc').find('.calendar_comment').slideToggle();
  228. \t\t});
  229. \t});
  230. \t</script>
  231. {% endblock javascript %}
  232. {% block main %}
  233. <div class=\"event-role\" id=\"calender_area\">
  234.   <div class=\"ec-pageHeader\">
  235.       <h1 class=\"mainttl\">各種研修会などのご案内</h1>
  236.   </div>
  237.   <div class=\"contents-inner\" id=\"event_list_page\">
  238.     <div class=\"block_body\">
  239.       {# イベント一覧 #}
  240. \t\t\t{% for event in eventLists %}
  241.       <div class=\"event-list\">
  242. \t\t\t\t\t{% if event.is_active %}{# 公開状態 #}
  243. \t\t\t\t\t\t<div class=\"event-bloc\">
  244.               <div class=\"accordion_title flex\">
  245.                 <div class=\"event-icon\">
  246.                 {% if event.icon != 9 %}
  247.                   <img src=\"{{ asset( event.icon|event_icon , 'plugin') }}\" alt=\"{{event.title}}\" >
  248.                 {% endif %}
  249.                 </div>
  250.                 <div class=\"event-title\">
  251.                   <h5>
  252.                     {{event.start_date|date_format('', 'Y年m月d日')}}{% if event.start_date != event.end_date %} ~ {{event.end_date|date_format('', 'Y年m月d日')}}{% endif %}
  253.                      {{event.title}}
  254.                   </h5>
  255. \t\t\t\t\t        {% if event.url %}
  256.                   <a href=\"{{event.url}}\" {% if event.link_method %}target=\"_blank\"{% endif %}><span class=\"icon link\"></span></a>
  257.                   {% endif %}
  258.                 </div>
  259. \t\t\t\t\t\t\t\t{% if event.free_area %}{# フリーエリアに記述があれば #}
  260.                 <div class=\"accordion-btn\"><div>詳細を見る<img src=\"{{ asset('EventCalendar42/assets/img/icon/deco-arrow.png', 'plugin') }}\" alt=\"詳細を見る\"></div></div>
  261.                 {% endif %}
  262.               </div>
  263.               <div class=\"calendar_comment\">{{event.free_area|raw|nl2br}}</div>
  264.             </div>
  265.           {% endif %}
  266.       </div>
  267.       {% endfor %}
  268.     </div>
  269.   </div>
  270. </div>
  271. {% endblock %}""EventCalendar42/index.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/EventCalendar42/index.twig");
  272.     }
  273.     
  274.     public function checkSecurity()
  275.     {
  276.         static $tags = array("for" => 28"if" => 30);
  277.         static $filters = array("escape" => 4"event_icon" => 35"date_format" => 40"nl2br" => 51"raw" => 51);
  278.         static $functions = array("asset" => 4);
  279.         try {
  280.             $this->sandbox->checkSecurity(
  281.                 ['for''if'],
  282.                 ['escape''event_icon''date_format''nl2br''raw'],
  283.                 ['asset']
  284.             );
  285.         } catch (SecurityError $e) {
  286.             $e->setSourceContext($this->source);
  287.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  288.                 $e->setTemplateLine($tags[$e->getTagName()]);
  289.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  290.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  291.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  292.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  293.             }
  294.             throw $e;
  295.         }
  296.     }
  297. }