var/cache/dev/twig/94/945ca2926108728bf693bd15ff984c2b.php line 163

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. /* event/detail.twig */
  14. class __TwigTemplate_6ef1e4056b6b2952f3fe00e22940e654 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 11
  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""event/detail.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""event/detail.twig"));
  42.         // line 13
  43.         $context["body_class"] = "event_page";
  44.         // line 11
  45.         $this->parent $this->loadTemplate("default_frame.twig""event/detail.twig"11);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 15
  53.     public function block_stylesheet($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  60.         // line 16
  61.         echo "    <style>
  62.     </style>
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 20
  70.     public function block_javascript($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  77.         // line 21
  78.         echo "    <script>
  79.     </script>
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 25
  87.     public function block_main($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  94.         // line 26
  95.         echo "    <section class=\"detail_wrap\">
  96.         <div class=\"detail_title\">
  97.             <span>イベント情報</span>
  98.         </div>
  99.         <div class=\"event_name\">
  100.             ";
  101.         // line 31
  102.         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"falsefalsetrue31), 31$this->source), "html"nulltrue);
  103.         echo "
  104.         </div>
  105.         <div class=\"event_sub_name\">
  106.             ";
  107.         // line 34
  108.         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"falsefalsetrue34), 34$this->source), "html"nulltrue);
  109.         echo 
  110.         </div>
  111.         ";
  112.         // line 36
  113.         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"falsefalsetrue36)) {
  114.             // line 37
  115.             echo "            <div class=\"detail_image detail_image_before d-flex justify-content-center\">
  116.                 <img src=\"";
  117.             // line 38
  118.             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"falsefalsetrue38), 38$this->source), "html"nulltrue);
  119.             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"falsefalsetrue38), 38$this->source), "html"nulltrue);
  120.             echo "\" width=\"100%\" alt=\"";
  121.             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"falsefalsetrue38), 38$this->source) . "イベント画像"), "html"nulltrue);
  122.             echo "\"\\></img>
  123.             </div>
  124.         ";
  125.         }
  126.         // line 41
  127.         echo "
  128.         ";
  129.         // line 42
  130.         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"falsefalsetrue42) && 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"falsefalsetrue42))) {
  131.             // line 43
  132.             echo "            <div class=\"item_comment\">
  133.                 <div class=\"item_title\">
  134.                     <span>イベント期間</span>
  135.                 </div>
  136.                 <div class=\"\">
  137.                     ";
  138.             // line 48
  139.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue48), "date", [], "any"falsefalsetrue48), 48$this->source), "Y.m.d"), "html"nulltrue);
  140.             echo "~";
  141.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue48), "date", [], "any"falsefalsetrue48), 48$this->source), "Y.m.d"), "html"nulltrue);
  142.             echo "
  143.                 </div>
  144.             </div>
  145.         ";
  146.         }
  147.         // line 52
  148.         echo "
  149.         
  150.         ";
  151.         // line 54
  152.         if (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue54), "id", [], "any"falsefalsetrue54)) {
  153.             // line 55
  154.             echo "            <div class=\"item_comment\">
  155.                 <div class=\"item_title\">
  156.                     <span>対象コース</span>
  157.                 </div>
  158.                 <div class=\"item_link_data\">
  159.                     <a href=\"";
  160.             // line 60
  161.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("course_detail", ["id" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue60), "id", [], "any"falsefalsetrue60)]), "html"nulltrue);
  162.             echo "\" target=\"_blank\" class=\"\">";
  163.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue60), "name", [], "any"falsefalsetrue60), 60$this->source), "html"nulltrue);
  164.             echo "</a>
  165.                 </div>
  166.             </div>
  167.         ";
  168.         }
  169.         // line 64
  170.         echo "
  171.         ";
  172.         // line 65
  173.         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"falsefalsetrue65) || 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"falsefalsetrue65))) {
  174.             // line 66
  175.             echo "            <div class=\"item_comment\">
  176.                 <div class=\"item_title\">
  177.                     <span>イベント詳細はこちら</span>
  178.                 </div>
  179.                 <div class=\"\">
  180.                     外部リンク
  181.                 </div>
  182.                 <div class=\"item_link_data\">
  183.                     ";
  184.             // line 74
  185.             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"falsefalsetrue74) && 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"falsefalsetrue74))) {
  186.                 // line 75
  187.                 echo "                        <a href=\"";
  188.                 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"falsefalsetrue75), 75$this->source), "html"nulltrue);
  189.                 echo "\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  190.                         <a href=\"";
  191.                 // line 76
  192.                 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"falsefalsetrue76), 76$this->source), "html"nulltrue);
  193.                 echo "\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  194.                     ";
  195.             } else {
  196.                 // line 78
  197.                 echo "                        ";
  198.                 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"falsefalsetrue78)) {
  199.                     // line 79
  200.                     echo "                            <a href=\"";
  201.                     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"falsefalsetrue79), 79$this->source), "html"nulltrue);
  202.                     echo "\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  203.                         ";
  204.                 } elseif (twig_get_attribute($this->env$this->source,                 // line 80
  205. (isset($context["events"]) || array_key_exists("events"$context) ? $context["events"] : (function () { throw new RuntimeError('Variable "events" does not exist.'80$this->source); })()), "url2", [], "any"falsefalsetrue80)) {
  206.                     // line 81
  207.                     echo "                            <a href=\"";
  208.                     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"falsefalsetrue81), 81$this->source), "html"nulltrue);
  209.                     echo "\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  210.                         
  211.                         ";
  212.                 }
  213.                 // line 84
  214.                 echo "                    ";
  215.             }
  216.             // line 85
  217.             echo "                </div>
  218.             </div>
  219.         ";
  220.         }
  221.         // line 88
  222.         echo "
  223.     </section>
  224. ";
  225.         
  226.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  227.         
  228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  229.     }
  230.     public function getTemplateName()
  231.     {
  232.         return "event/detail.twig";
  233.     }
  234.     public function isTraitable()
  235.     {
  236.         return false;
  237.     }
  238.     public function getDebugInfo()
  239.     {
  240.         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,);
  241.     }
  242.     public function getSourceContext()
  243.     {
  244.         return new Source("{#
  245. This file is part of EC-CUBE
  246. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  247. http://www.ec-cube.co.jp/
  248. For the full copyright and license information, please view the LICENSE
  249. file that was distributed with this source code.
  250. #}
  251. {% extends 'default_frame.twig' %}
  252. {% set body_class = 'event_page' %}
  253. {% block stylesheet %}
  254.     <style>
  255.     </style>
  256. {% endblock %}
  257. {% block javascript %}
  258.     <script>
  259.     </script>
  260. {% endblock %}
  261. {% block main %}
  262.     <section class=\"detail_wrap\">
  263.         <div class=\"detail_title\">
  264.             <span>イベント情報</span>
  265.         </div>
  266.         <div class=\"event_name\">
  267.             {{ events.name }}
  268.         </div>
  269.         <div class=\"event_sub_name\">
  270.             {{ events.sub_title }} 
  271.         </div>
  272.         {% if events.image %}
  273.             <div class=\"detail_image detail_image_before d-flex justify-content-center\">
  274.                 <img src=\"{{ eccube_config.event_image_dir_default }}{{ events.image }}\" width=\"100%\" alt=\"{{ events.name ~ 'イベント画像'}}\"\\></img>
  275.             </div>
  276.         {% endif %}
  277.         {% if events.day_start and events.day_end %}
  278.             <div class=\"item_comment\">
  279.                 <div class=\"item_title\">
  280.                     <span>イベント期間</span>
  281.                 </div>
  282.                 <div class=\"\">
  283.                     {{ events.day_start.date|date('Y.m.d') }}~{{ events.day_end.date|date('Y.m.d') }}
  284.                 </div>
  285.             </div>
  286.         {% endif %}
  287.         
  288.         {% if events.Course.id %}
  289.             <div class=\"item_comment\">
  290.                 <div class=\"item_title\">
  291.                     <span>対象コース</span>
  292.                 </div>
  293.                 <div class=\"item_link_data\">
  294.                     <a href=\"{{ url('course_detail', { id : events.Course.id }) }}\" target=\"_blank\" class=\"\">{{ events.Course.name }}</a>
  295.                 </div>
  296.             </div>
  297.         {% endif %}
  298.         {% if events.url1 or event.url2 %}
  299.             <div class=\"item_comment\">
  300.                 <div class=\"item_title\">
  301.                     <span>イベント詳細はこちら</span>
  302.                 </div>
  303.                 <div class=\"\">
  304.                     外部リンク
  305.                 </div>
  306.                 <div class=\"item_link_data\">
  307.                     {% if events.url1 and events.url2 %}
  308.                         <a href=\"{{ events.url1 }}\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  309.                         <a href=\"{{ events.url2 }}\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  310.                     {% else %}
  311.                         {% if events.url1 %}
  312.                             <a href=\"{{ events.url1 }}\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  313.                         {% elseif events.url2 %}
  314.                             <a href=\"{{ events.url2 }}\" target=\"_blank\"><i class=\"ms-2 fas fa-external-link-alt\"></i></a>
  315.                         
  316.                         {% endif %}
  317.                     {% endif %}
  318.                 </div>
  319.             </div>
  320.         {% endif %}
  321.     </section>
  322. {% endblock %}
  323. ""event/detail.twig""/home/meihansl/meihan-sl.com/public_html/app/template/default/event/detail.twig");
  324.     }
  325.     
  326.     public function checkSecurity()
  327.     {
  328.         static $tags = array("set" => 13"if" => 36);
  329.         static $filters = array("escape" => 31"date" => 48);
  330.         static $functions = array("url" => 60);
  331.         try {
  332.             $this->sandbox->checkSecurity(
  333.                 ['set''if'],
  334.                 ['escape''date'],
  335.                 ['url']
  336.             );
  337.         } catch (SecurityError $e) {
  338.             $e->setSourceContext($this->source);
  339.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  340.                 $e->setTemplateLine($tags[$e->getTagName()]);
  341.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  342.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  343.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  344.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  345.             }
  346.             throw $e;
  347.         }
  348.     }
  349. }