var/cache/dev/twig/9b/9b999ccc5f6c81e49d4fb966c30eedfe.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. /* Topics42/index.twig */
  14. class __TwigTemplate_9ccb07e0175f3b21db7c791dcab055db 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""Topics42/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""Topics42/index.twig"));
  42.         $this->parent $this->loadTemplate("default_frame.twig""Topics42/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 "<style>
  59. .ec-newsRole__newsTitle a.news-url{
  60.   text-decoration:underline;
  61. }
  62. .ec-newsRole__newsTitle .icon.link{
  63.   margin-right:7px;
  64. }
  65. </style>
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.     }
  72.     // line 14
  73.     public function block_javascript($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.     }
  85.     // line 17
  86.     public function block_main($context, array $blocks = [])
  87.     {
  88.         $macros $this->macros;
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  93.         // line 18
  94.         echo "<div class=\"ec-pageRole\">
  95. <div class=\"ec-newsRole\">
  96. <div class=\"ec-pageHeader\">
  97.   <h1 class=\"mainttl\">お知らせ</h1>
  98. </div>
  99. <div class=\"contents-inner\" id=\"topics_list_page\">
  100. ";
  101.         // line 24
  102.         $context['_parent'] = $context;
  103.         $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'24$this->source); })()));
  104.         foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
  105.             // line 25
  106.             echo "  <div class=\"ec-newsRole__newsItem\">
  107.       <div class=\"ec-newsRole__newsHeading\">
  108.           <div class=\"ec-newsRole__newsDate\">";
  109.             // line 27
  110.             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$context["News"], "publish_date", [], "any"falsefalsetrue27), 27$this->source)), "html"nulltrue);
  111.             echo "</div>
  112.           <div class=\"ec-newsRole__newsColumn\">
  113.               <div class=\"ec-newsRole__newsTitle\">
  114.                 ";
  115.             // line 30
  116.             if (twig_get_attribute($this->env$this->source$context["News"], "description", [], "any"falsefalsetrue30)) {
  117.                 echo "<a href=\"";
  118.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topics42_detail", ["id" => twig_get_attribute($this->env$this->source$context["News"], "id", [], "any"falsefalsetrue30)]), "html"nulltrue);
  119.                 echo "\">";
  120.             }
  121.             // line 31
  122.             echo "                    ";
  123.             echo twig_nl2br($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["News"], "long_title", [], "any"falsefalsetrue31), 31$this->source));
  124.             echo "
  125.                 ";
  126.             // line 32
  127.             if (twig_get_attribute($this->env$this->source$context["News"], "description", [], "any"falsefalsetrue32)) {
  128.                 echo "</a>";
  129.             }
  130.             // line 33
  131.             echo "                ";
  132.             if (twig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsetrue33)) {
  133.                 // line 34
  134.                 echo "                    <a class=\"news-url\" href=\"";
  135.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsetrue34), 34$this->source), "html"nulltrue);
  136.                 echo "\" ";
  137.                 if ((twig_get_attribute($this->env$this->source$context["News"], "link_method", [], "any"falsefalsetrue34) == "1")) {
  138.                     echo "target=\"_blank\"";
  139.                 }
  140.                 echo "><span class=\"icon link\"></span>";
  141.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsetrue34), 34$this->source), "html"nulltrue);
  142.                 if ((twig_get_attribute($this->env$this->source$context["News"], "link_method", [], "any"falsefalsetrue34) == "1")) {
  143.                     echo " (別ウィンドウで開きます)";
  144.                 }
  145.                 echo "</a>
  146.                 ";
  147.             }
  148.             // line 36
  149.             echo "              </div>
  150.           </div>
  151.       </div>
  152.   </div>
  153. ";
  154.         }
  155.         $_parent $context['_parent'];
  156.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
  157.         $context array_intersect_key($context$_parent) + $_parent;
  158.         // line 41
  159.         echo "</div>
  160. </div>
  161. </div>
  162. ";
  163.         // line 45
  164.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'45$this->source); })()), "paginationData", [], "any"falsefalsetrue45), "pageCount", [], "any"falsefalsetrue45) > 1)) {
  165.             // line 46
  166.             echo "<div class=\"ec-pagerRole\">
  167.     ";
  168.             // line 47
  169.             $this->loadTemplate("pager.twig""Topics42/index.twig"47)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'47$this->source); })()), "paginationData", [], "any"falsefalsetrue47)]));
  170.             // line 48
  171.             echo "</div>
  172. ";
  173.         }
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.     }
  179.     public function getTemplateName()
  180.     {
  181.         return "Topics42/index.twig";
  182.     }
  183.     public function isTraitable()
  184.     {
  185.         return false;
  186.     }
  187.     public function getDebugInfo()
  188.     {
  189.         return array (  196 => 48,  194 => 47,  191 => 46,  189 => 45,  183 => 41,  173 => 36,  158 => 34,  155 => 33,  151 => 32,  146 => 31,  140 => 30,  134 => 27,  130 => 25,  126 => 24,  118 => 18,  108 => 17,  90 => 14,  72 => 4,  62 => 3,  39 => 1,);
  190.     }
  191.     public function getSourceContext()
  192.     {
  193.         return new Source("{% extends 'default_frame.twig' %}
  194. {% block stylesheet %}
  195. <style>
  196. .ec-newsRole__newsTitle a.news-url{
  197.   text-decoration:underline;
  198. }
  199. .ec-newsRole__newsTitle .icon.link{
  200.   margin-right:7px;
  201. }
  202. </style>
  203. {% endblock %}
  204. {% block javascript %}
  205. {% endblock %}
  206. {% block main %}
  207. <div class=\"ec-pageRole\">
  208. <div class=\"ec-newsRole\">
  209. <div class=\"ec-pageHeader\">
  210.   <h1 class=\"mainttl\">お知らせ</h1>
  211. </div>
  212. <div class=\"contents-inner\" id=\"topics_list_page\">
  213. {% for News in pagination %}
  214.   <div class=\"ec-newsRole__newsItem\">
  215.       <div class=\"ec-newsRole__newsHeading\">
  216.           <div class=\"ec-newsRole__newsDate\">{{ News.publish_date|date_day }}</div>
  217.           <div class=\"ec-newsRole__newsColumn\">
  218.               <div class=\"ec-newsRole__newsTitle\">
  219.                 {% if News.description %}<a href=\"{{ url('topics42_detail', {'id': News.id}) }}\">{% endif %}
  220.                     {{ News.long_title|raw|nl2br }}
  221.                 {% if News.description %}</a>{% endif %}
  222.                 {% if News.url %}
  223.                     <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>
  224.                 {% endif %}
  225.               </div>
  226.           </div>
  227.       </div>
  228.   </div>
  229. {% endfor %}
  230. </div>
  231. </div>
  232. </div>
  233. {% if pagination.paginationData.pageCount > 1 %}
  234. <div class=\"ec-pagerRole\">
  235.     {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  236. </div>
  237. {% endif %}
  238. {% endblock %}
  239. ""Topics42/index.twig""/home/higashiyamashobo/www/higashiyamashobo.jpn.org/ec-cube/app/template/default/Topics42/index.twig");
  240.     }
  241.     
  242.     public function checkSecurity()
  243.     {
  244.         static $tags = array("for" => 24"if" => 30"include" => 47);
  245.         static $filters = array("escape" => 27"date_day" => 27"nl2br" => 31"raw" => 31);
  246.         static $functions = array("url" => 30);
  247.         try {
  248.             $this->sandbox->checkSecurity(
  249.                 ['for''if''include'],
  250.                 ['escape''date_day''nl2br''raw'],
  251.                 ['url']
  252.             );
  253.         } catch (SecurityError $e) {
  254.             $e->setSourceContext($this->source);
  255.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  256.                 $e->setTemplateLine($tags[$e->getTagName()]);
  257.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  258.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  259.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  260.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  261.             }
  262.             throw $e;
  263.         }
  264.     }
  265. }