var/cache/dev/twig/16/16c3f6762532d0a10817f3f914bae12b.php line 40

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. /* Topics42/detail.twig */
  14. class __TwigTemplate_9396925fa405af3578f15a0db671689f 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.             'main' => [$this'block_main'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Topics42/detail.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Topics42/detail.twig"));
  40.         $this->parent $this->loadTemplate("default_frame.twig""Topics42/detail.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_main($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  55.         // line 4
  56.         echo "
  57. <div class=\"contents-inner\" id=\"news-detail\">
  58. <div class=\"bloc-header\">
  59. <p class=\"news-date\">";
  60.         // line 7
  61.         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'7$this->source); })()), "publish_date", [], "any"falsefalsetrue7), 7$this->source)), "html"nulltrue);
  62.         echo "</p>
  63. <h3 class=\"news-ttl\">";
  64.         // line 8
  65.         echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'8$this->source); })()), "long_title", [], "any"falsefalsetrue8), 8$this->source));
  66.         echo "</h3>
  67. </div>
  68. <div class=\"bloc-body\">
  69. ";
  70.         // line 11
  71.         if (twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'11$this->source); })()), "url", [], "any"falsefalsetrue11)) {
  72.             // line 12
  73.             echo "<a class=\"news-url\" href=\"";
  74.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'12$this->source); })()), "url", [], "any"falsefalsetrue12), 12$this->source), "html"nulltrue);
  75.             echo "\" ";
  76.             if ((twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'12$this->source); })()), "link_method", [], "any"falsefalsetrue12) == "1")) {
  77.                 echo "target=\"_blank\"";
  78.             }
  79.             echo "><span class=\"icon link\"></span>";
  80.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'12$this->source); })()), "url", [], "any"falsefalsetrue12), 12$this->source), "html"nulltrue);
  81.             if ((twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'12$this->source); })()), "link_method", [], "any"falsefalsetrue12) == "1")) {
  82.                 echo " (別ウィンドウで開きます)";
  83.             }
  84.             echo "</a>
  85. ";
  86.         }
  87.         // line 14
  88.         if (twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'14$this->source); })()), "description", [], "any"falsefalsetrue14)) {
  89.             // line 15
  90.             echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'15$this->source); })()), "description", [], "any"falsefalsetrue15), 15$this->source));
  91.             echo "
  92. ";
  93.         }
  94.         // line 17
  95.         echo "<p class=\"btn-area\"><a class=\"ec-blockBtn--cancel gray-btn\" href=\"";
  96.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topics42_index");
  97.         echo "\">一覧に戻る</a></p>
  98. </div>
  99. </div>
  100. ";
  101.         
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.     }
  106.     public function getTemplateName()
  107.     {
  108.         return "Topics42/detail.twig";
  109.     }
  110.     public function isTraitable()
  111.     {
  112.         return false;
  113.     }
  114.     public function getDebugInfo()
  115.     {
  116.         return array (  109 => 17,  104 => 15,  102 => 14,  87 => 12,  85 => 11,  79 => 8,  75 => 7,  70 => 4,  60 => 3,  37 => 1,);
  117.     }
  118.     public function getSourceContext()
  119.     {
  120.         return new Source("{% extends 'default_frame.twig' %}
  121. {% block main %}
  122. <div class=\"contents-inner\" id=\"news-detail\">
  123. <div class=\"bloc-header\">
  124. <p class=\"news-date\">{{ news.publish_date|date_day }}</p>
  125. <h3 class=\"news-ttl\">{{ news.long_title|raw|nl2br }}</h3>
  126. </div>
  127. <div class=\"bloc-body\">
  128. {% if news.url %}
  129. <a class=\"news-url\" href=\"{{ news.url }}\" {% if news.link_method == '1' %}target=\"_blank\"{% endif %}><span class=\"icon link\"></span>{{ news.url }}{% if news.link_method == '1' %} (別ウィンドウで開きます){% endif %}</a>
  130. {% endif %}
  131. {% if news.description %}
  132. {{ news.description|raw|nl2br }}
  133. {% endif %}
  134. <p class=\"btn-area\"><a class=\"ec-blockBtn--cancel gray-btn\" href=\"{{url('topics42_index')}}\">一覧に戻る</a></p>
  135. </div>
  136. </div>
  137. {% endblock %}""Topics42/detail.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Topics42/detail.twig");
  138.     }
  139.     
  140.     public function checkSecurity()
  141.     {
  142.         static $tags = array("if" => 11);
  143.         static $filters = array("escape" => 7"date_day" => 7"nl2br" => 8"raw" => 8);
  144.         static $functions = array("url" => 17);
  145.         try {
  146.             $this->sandbox->checkSecurity(
  147.                 ['if'],
  148.                 ['escape''date_day''nl2br''raw'],
  149.                 ['url']
  150.             );
  151.         } catch (SecurityError $e) {
  152.             $e->setSourceContext($this->source);
  153.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  154.                 $e->setTemplateLine($tags[$e->getTagName()]);
  155.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  156.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  157.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  158.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  159.             }
  160.             throw $e;
  161.         }
  162.     }
  163. }