var/cache/dev/twig/7a/7a493a9db8029e6c445110764283112ce2a24c80bc13f54e2e218c74b1f3fe67.php line 48

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. /* News/index.twig */
  14. class __TwigTemplate_b3c4c7c58ccfb95a2269693fe014cf51b5cb25c463d10f6ed2b1cd8474dc31e2 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 11
  29.         return "default_frame.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""News/index.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""News/index.twig"));
  38.         $this->parent $this->loadTemplate("default_frame.twig""News/index.twig"11);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 13
  46.     public function block_main($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  53.         // line 14
  54.         echo "
  55. <div class=\"ec-searchnavRole\">
  56.   <div class=\"ec-searchnavRole__topicpath\">
  57.     <ol class=\"ec-topicpath\">
  58.       <li class=\"ec-topicpath__item\"><a href=\"";
  59.         // line 19
  60.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_index");
  61.         echo "\">";
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ニュース一覧"), "html"nulltrue);
  63.         echo "</a>
  64.     </ol>
  65.   </div>
  66.   <div class=\"ec-searchnavRole__infos\">
  67.     <div class=\"ec-searchnavRole__counter\">
  68.       ";
  69.         // line 25
  70.         if ((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.'25$this->source); })()), "totalItemCount", [], "any"falsefalsefalse25) > 0)) {
  71.             // line 26
  72.             echo "        ";
  73.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span class=\"ec-font-bold\">%count%件</span><span>のニュースが見つかりました</span>", ["%count%" => 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.'26$this->source); })()), "totalItemCount", [], "any"falsefalsefalse26)]);
  74.             echo "
  75.       ";
  76.         } else {
  77.             // line 28
  78.             echo "        <span>";
  79.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("まだニュースがありません"), "html"nulltrue);
  80.             echo "</span>
  81.       ";
  82.         }
  83.         // line 30
  84.         echo "    </div>
  85.   </div>
  86. </div>
  87. <div class=\"ec-role\">
  88.   ";
  89.         // line 37
  90.         if ((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.'37$this->source); })()), "totalItemCount", [], "any"falsefalsefalse37) > 0)) {
  91.             // line 38
  92.             echo "    ";
  93.             $context['_parent'] = $context;
  94.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'38$this->source); })()));
  95.             foreach ($context['_seq'] as $context["_key"] => $context["News"]) {
  96.                 // line 39
  97.                 echo "    <div style=\"border-bottom: 1px solid #ddd;padding: 30px 0;\">
  98.       <small style=\"float:right;\">";
  99.                 // line 40
  100.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsefalse40), "Y/m/d"), "html"nulltrue);
  101.                 echo "</small><br>
  102.         ";
  103.                 // line 41
  104.                 if (twig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsefalse41)) {
  105.                     // line 42
  106.                     echo "          <a href=\"";
  107.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "url", [], "any"falsefalsefalse42), "html"nulltrue);
  108.                     echo "\" ";
  109.                     if ((twig_get_attribute($this->env$this->source$context["News"], "link_method", [], "any"falsefalsefalse42) == "1")) {
  110.                         echo "target=\"_blank\"";
  111.                     }
  112.                     echo ">
  113.         ";
  114.                 } else {
  115.                     // line 44
  116.                     echo "          <a href=\"";
  117.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("news_detail", ["id" => twig_get_attribute($this->env$this->source$context["News"], "id", [], "any"falsefalsefalse44)]), "html"nulltrue);
  118.                     echo "\">
  119.         ";
  120.                 }
  121.                 // line 46
  122.                 echo "            <h2 style=\"margin:0;\">";
  123.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsefalse46), "html"nulltrue);
  124.                 echo "</h2>
  125.           </a>
  126.     </div>
  127.     ";
  128.             }
  129.             $_parent $context['_parent'];
  130.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['News'], $context['_parent'], $context['loop']);
  131.             $context array_intersect_key($context$_parent) + $_parent;
  132.             // line 50
  133.             echo "  ";
  134.         } else {
  135.             // line 51
  136.             echo "    <div>";
  137.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("まだニュースはありません。"), "html"nulltrue);
  138.             echo "</div>
  139.   ";
  140.         }
  141.         // line 53
  142.         echo "  
  143.   <div class=\"ec-pagerRole\">
  144.       ";
  145.         // line 55
  146.         $this->loadTemplate("pager.twig""News/index.twig"55)->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.'55$this->source); })()), "paginationData", [], "any"falsefalsefalse55)]));
  147.         // line 56
  148.         echo "  </div>
  149. </div>
  150. ";
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.         
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  155.     }
  156.     public function getTemplateName()
  157.     {
  158.         return "News/index.twig";
  159.     }
  160.     public function isTraitable()
  161.     {
  162.         return false;
  163.     }
  164.     public function getDebugInfo()
  165.     {
  166.         return array (  167 => 56,  165 => 55,  161 => 53,  155 => 51,  152 => 50,  141 => 46,  135 => 44,  125 => 42,  123 => 41,  119 => 40,  116 => 39,  111 => 38,  109 => 37,  100 => 30,  94 => 28,  88 => 26,  86 => 25,  75 => 19,  68 => 14,  58 => 13,  35 => 11,);
  167.     }
  168.     public function getSourceContext()
  169.     {
  170.         return new Source("{#
  171. This file is part of EC-CUBE
  172. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  173. http://www.ec-cube.co.jp/
  174. For the full copyright and license information, please view the LICENSE
  175. file that was distributed with this source code.
  176. #}
  177. {% extends 'default_frame.twig' %}
  178. {% block main %}
  179. <div class=\"ec-searchnavRole\">
  180.   <div class=\"ec-searchnavRole__topicpath\">
  181.     <ol class=\"ec-topicpath\">
  182.       <li class=\"ec-topicpath__item\"><a href=\"{{ url('news_index') }}\">{{ 'ニュース一覧'|trans }}</a>
  183.     </ol>
  184.   </div>
  185.   <div class=\"ec-searchnavRole__infos\">
  186.     <div class=\"ec-searchnavRole__counter\">
  187.       {% if pagination.totalItemCount > 0 %}
  188.         {{ '<span class=\"ec-font-bold\">%count%件</span><span>のニュースが見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
  189.       {% else %}
  190.         <span>{{ 'まだニュースがありません'|trans }}</span>
  191.       {% endif %}
  192.     </div>
  193.   </div>
  194. </div>
  195. <div class=\"ec-role\">
  196.   {% if pagination.totalItemCount > 0 %}
  197.     {% for News in pagination %}
  198.     <div style=\"border-bottom: 1px solid #ddd;padding: 30px 0;\">
  199.       <small style=\"float:right;\">{{ News.publish_date|date(\"Y/m/d\") }}</small><br>
  200.         {% if News.url %}
  201.           <a href=\"{{ News.url }}\" {% if News.link_method == '1' %}target=\"_blank\"{% endif %}>
  202.         {% else %}
  203.           <a href=\"{{ url('news_detail', {'id': News.id}) }}\">
  204.         {% endif %}
  205.             <h2 style=\"margin:0;\">{{ News.title }}</h2>
  206.           </a>
  207.     </div>
  208.     {% endfor %}
  209.   {% else %}
  210.     <div>{{ 'まだニュースはありません。'|trans }}</div>
  211.   {% endif %}
  212.   
  213.   <div class=\"ec-pagerRole\">
  214.       {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  215.   </div>
  216. </div>
  217. {% endblock %}
  218. ""News/index.twig""/home/xs538259/exterior-plus.jp/public_html/app/template/default/News/index.twig");
  219.     }
  220. }