var/cache/dev/twig/4f/4f9df98699d9f2b3a932db53ade6f503ea2495715a906c14107078c177a0b47f.php line 38

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. /* @user_data/News/index.twig */
  14. class __TwigTemplate_de0afb5423a2cbbd1e6187ae1f668d86757f84771572633d8f36821d9d974a9f 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""@user_data/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""@user_data/News/index.twig"));
  38.         $this->parent $this->loadTemplate("default_frame.twig""@user_data/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 22
  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 23
  54.         echo "    <div class=\"ec-registerPage\">
  55.         <div class=\"ec-registerPage__header ec-newsTitle\">
  56.             <h1 class=\"ec-registerPage__title\">
  57.                 ";
  58.         // line 26
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("News"), "html"nulltrue);
  60.         echo "
  61.                 <br/>
  62.                 <p>";
  63.         // line 28
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ニュース"), "html"nulltrue);
  65.         echo "</p>
  66.             </h1>
  67.         </div>
  68.     </div>
  69.     <div class=\"ec-blockspliter\"></div>
  70.     <div class=\"ec-role\">
  71.         <div class=\"ec-newsRole\">
  72.             <div class=\"ec-newsRole__news\">
  73.                 ";
  74.         // line 36
  75.         if ((twig_length_filter($this->env, (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'36$this->source); })())) > 0)) {
  76.             // line 37
  77.             echo "                    ";
  78.             $context['_parent'] = $context;
  79.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'37$this->source); })()));
  80.             foreach ($context['_seq'] as $context["key"] => $context["News"]) {
  81.                 // line 38
  82.                 echo "                        <div class=\"ec-newsRole__newsItem\">
  83.                             <a class=\"ec-newsItem\" href=\"";
  84.                 // line 39
  85.                 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"falsefalsefalse39)]), "html"nulltrue);
  86.                 echo "\">
  87.                                 <div class=\"ec-newsRole__newsHeading\">
  88.                                     <div class=\"ec-newsRole__newsDate\">
  89.                                         ";
  90.                 // line 42
  91.                 echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\IntlExtension']->date_day($this->envtwig_get_attribute($this->env$this->source$context["News"], "publish_date", [], "any"falsefalsefalse42)), "html"nulltrue);
  92.                 echo "
  93.                                     </div>
  94.                                     <div class=\"ec-newsRole__newsTitle\">
  95.                                         ";
  96.                 // line 45
  97.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["News"], "title", [], "any"falsefalsefalse45), "html"nulltrue);
  98.                 echo "
  99.                                     </div>
  100.                                     ";
  101.                 // line 47
  102.                 if ((($context["key"] % 2) == 1)) {
  103.                     // line 48
  104.                     echo "                                        <span class=\"ec-newsRole__newsBtn even\">";
  105.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お知らせ"), "html"nulltrue);
  106.                     echo "</span>
  107.                                     ";
  108.                 } else {
  109.                     // line 50
  110.                     echo "                                        <span class=\"ec-newsRole__newsBtn odd\">";
  111.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("お知らせ"), "html"nulltrue);
  112.                     echo "</span>
  113.                                     ";
  114.                 }
  115.                 // line 52
  116.                 echo "                                </div>
  117.                             </a>
  118.                         </div>
  119.                     ";
  120.             }
  121.             $_parent $context['_parent'];
  122.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['News'], $context['_parent'], $context['loop']);
  123.             $context array_intersect_key($context$_parent) + $_parent;
  124.             // line 56
  125.             echo "                ";
  126.         } else {
  127.             // line 57
  128.             echo "                    <p class=\"ec-para-normal ec-dataEmpty\">";
  129.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("資料はありません。"), "html"nulltrue);
  130.             echo "</p>
  131.                 ";
  132.         }
  133.         // line 59
  134.         echo "            </div>
  135.         </div>
  136.         ";
  137.         // line 61
  138.         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.'61$this->source); })()), "pageCount", [], "any"falsefalsefalse61) > 1)) {
  139.             // line 62
  140.             echo "            <div class=\"ec-blockspliter\"></div>
  141.         ";
  142.         }
  143.         // line 64
  144.         echo "    </div>
  145.     ";
  146.         // line 65
  147.         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.'65$this->source); })()), "pageCount", [], "any"falsefalsefalse65) > 1)) {
  148.             // line 66
  149.             echo "        <div class=\"ec-role\">
  150.             <div class=\"ec-pagerRole ec-newsPagination\">
  151.                 ";
  152.             // line 68
  153.             $this->loadTemplate("pager.twig""@user_data/News/index.twig"68)->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.'68$this->source); })()), "paginationData", [], "any"falsefalsefalse68)]));
  154.             // line 69
  155.             echo "            </div>
  156.         </div>
  157.     ";
  158.         }
  159.         // line 72
  160.         echo "    <div class=\"ec-blockspliter\"></div>
  161.     <div class=\"ec-blockempty\"></div>
  162. ";
  163.         
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  165.         
  166.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  167.     }
  168.     public function getTemplateName()
  169.     {
  170.         return "@user_data/News/index.twig";
  171.     }
  172.     public function isTraitable()
  173.     {
  174.         return false;
  175.     }
  176.     public function getDebugInfo()
  177.     {
  178.         return array (  174 => 72,  169 => 69,  167 => 68,  163 => 66,  161 => 65,  158 => 64,  154 => 62,  152 => 61,  148 => 59,  142 => 57,  139 => 56,  130 => 52,  124 => 50,  118 => 48,  116 => 47,  111 => 45,  105 => 42,  99 => 39,  96 => 38,  91 => 37,  89 => 36,  78 => 28,  73 => 26,  68 => 23,  58 => 22,  35 => 11,);
  179.     }
  180.     public function getSourceContext()
  181.     {
  182.         return new Source("{#
  183. This file is part of EC-CUBE
  184. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  185. http://www.ec-cube.co.jp/
  186. For the full copyright and license information, please view the LICENSE
  187. file that was distributed with this source code.
  188. #}
  189. {% extends 'default_frame.twig' %}
  190. {# {% set body_class = 'product_page' %} #}
  191. {# {% block javascript %} #}
  192. {# <script> #}
  193. {#    \$(document).ready(function() { #}
  194. {#        console.log(\"pagination: \", pagination) #}
  195. {#    }); #}
  196. {# </script> #}
  197. {# {% endblock %} #}
  198. {% block main %}
  199.     <div class=\"ec-registerPage\">
  200.         <div class=\"ec-registerPage__header ec-newsTitle\">
  201.             <h1 class=\"ec-registerPage__title\">
  202.                 {{ 'News'|trans }}
  203.                 <br/>
  204.                 <p>{{ 'ニュース'|trans }}</p>
  205.             </h1>
  206.         </div>
  207.     </div>
  208.     <div class=\"ec-blockspliter\"></div>
  209.     <div class=\"ec-role\">
  210.         <div class=\"ec-newsRole\">
  211.             <div class=\"ec-newsRole__news\">
  212.                 {% if pagination|length > 0 %}
  213.                     {% for key, News in pagination %}
  214.                         <div class=\"ec-newsRole__newsItem\">
  215.                             <a class=\"ec-newsItem\" href=\"{{ url('news_detail', {'id': News.id}) }}\">
  216.                                 <div class=\"ec-newsRole__newsHeading\">
  217.                                     <div class=\"ec-newsRole__newsDate\">
  218.                                         {{ News.publish_date|date_day }}
  219.                                     </div>
  220.                                     <div class=\"ec-newsRole__newsTitle\">
  221.                                         {{ News.title }}
  222.                                     </div>
  223.                                     {% if key % 2 == 1 %}
  224.                                         <span class=\"ec-newsRole__newsBtn even\">{{ 'お知らせ'|trans }}</span>
  225.                                     {% else %}
  226.                                         <span class=\"ec-newsRole__newsBtn odd\">{{ 'お知らせ'|trans }}</span>
  227.                                     {% endif %}
  228.                                 </div>
  229.                             </a>
  230.                         </div>
  231.                     {% endfor %}
  232.                 {% else %}
  233.                     <p class=\"ec-para-normal ec-dataEmpty\">{{ '資料はありません。'|trans }}</p>
  234.                 {% endif %}
  235.             </div>
  236.         </div>
  237.         {% if pagination.pageCount > 1 %}
  238.             <div class=\"ec-blockspliter\"></div>
  239.         {% endif %}
  240.     </div>
  241.     {% if pagination.pageCount > 1 %}
  242.         <div class=\"ec-role\">
  243.             <div class=\"ec-pagerRole ec-newsPagination\">
  244.                 {% include \"pager.twig\" with {'pages': pagination.paginationData} %}
  245.             </div>
  246.         </div>
  247.     {% endif %}
  248.     <div class=\"ec-blockspliter\"></div>
  249.     <div class=\"ec-blockempty\"></div>
  250. {% endblock %}""@user_data/News/index.twig""/home/snowtiger27/www/three-m.online/app/template/user_data/News/index.twig");
  251.     }
  252. }