var/cache/dev/twig/d4/d4588ba0d30b6a1042d8d4ddc8aa4374dba6f17b22229c5116fdfacd31ab46cc.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. /* @user_data/topic.twig */
  14. class __TwigTemplate_7f91b49a97e56bb4f84237eaaad039b09a728e3bc389a66d7bdb45ba96194bed 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/topic.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@user_data/topic.twig"));
  40.         $this->parent $this->loadTemplate("default_frame.twig""@user_data/topic.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 2
  48.     public function block_main($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  55.         // line 3
  56.         echo "    ";
  57.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/banner.twig", ["image" => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/topic.png""user_data"), "title" => "TOPICS""subtitle" => "トピックス"]);
  58.         echo "
  59.     <div class=\"topic\">
  60.         <div class=\"topic__container\">
  61.             <div class=\"topic__list\">
  62.                 ";
  63.         // line 7
  64.         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.'7$this->source); })()), "totalItemCount", [], "any"falsefalsetrue7) > 0)) {
  65.             // line 8
  66.             echo "                    <div class=\"topic__list__inner\">
  67.                         ";
  68.             // line 9
  69.             $context['_parent'] = $context;
  70.             $context['_seq'] = twig_ensure_traversable((isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'9$this->source); })()));
  71.             foreach ($context['_seq'] as $context["_key"] => $context["Blog"]) {
  72.                 // line 10
  73.                 echo "                            <a class=\"topic__post\" href=\"";
  74.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topic_detail", ["id" => ((twig_get_attribute($this->env$this->source$context["Blog"], "slug", [], "any"falsefalsetrue10)) ? (twig_get_attribute($this->env$this->source$context["Blog"], "slug", [], "any"falsefalsetrue10)) : (twig_get_attribute($this->env$this->source$context["Blog"], "id", [], "any"falsefalsetrue10)))]), "html"nulltrue);
  75.                 echo "\">
  76.                                 <div class=\"topic__post__image\">
  77.                                     <img src=\"";
  78.                 // line 12
  79.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Blog"], "getMainListImage", [], "any"falsefalsetrue12), 12$this->source)), "save_image"), "html"nulltrue);
  80.                 echo "\" />
  81.                                 </div>
  82.                                 <div class=\"topic__post__content\">
  83.                                     <h2 class=\"topic__post__title\">
  84.                                         ";
  85.                 // line 16
  86.                 (((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["Blog"], "getTitle", [], "any"falsefalsetrue16)) > 45)) ? (print (twig_escape_filter($this->env, (twig_slice($this->envtwig_replace_filter(twig_striptags(twig_get_attribute($this->env$this->source$context["Blog"], "getTitle", [], "any"falsefalsetrue16)), ["&nbsp;" => " "]), 045) . "..."), "html"nulltrue))) : (print (twig_get_attribute($this->env$this->source$context["Blog"], "getTitle", [], "any"falsefalsetrue16))));
  87.                 echo "
  88.                                     </h2>
  89.                                     <p class=\"topic__post__date\">
  90.                                         ";
  91.                 // line 19
  92.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Blog"], "release_date", [], "any"falsefalsetrue19), 19$this->source), "Y年m月d日"), "html"nulltrue);
  93.                 echo "
  94.                                     </p>
  95.                                     <p class=\"topic__post__desc\">
  96.                                         ";
  97.                 // line 22
  98.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Blog"], "getFigCaption", [], "any"falsefalsetrue22), 22$this->source), "html"nulltrue);
  99.                 echo "
  100.                                     </p>
  101.                                 </div>
  102.                             </a>
  103.                         ";
  104.             }
  105.             $_parent $context['_parent'];
  106.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Blog'], $context['_parent'], $context['loop']);
  107.             $context array_intersect_key($context$_parent) + $_parent;
  108.             // line 27
  109.             echo "                    </div>
  110.                     <div class=\"ec-pagerRole\">
  111.                         ";
  112.             // line 29
  113.             $this->loadTemplate("pager.twig""@user_data/topic.twig"29)->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.'29$this->source); })()), "paginationData", [], "any"falsefalsetrue29), "routes" => "topic"]));
  114.             // line 30
  115.             echo "                    </div>
  116.                 ";
  117.         }
  118.         // line 32
  119.         echo "            </div>
  120.             <div class=\"topic__archive\">
  121.                 <div class=\"topic__archive__title\">
  122.                     月別アーカイブ
  123.                 </div>
  124.                 <div class=\"topic__archive__list\">
  125.                     ";
  126.         // line 38
  127.         $context['_parent'] = $context;
  128.         $context['_seq'] = twig_ensure_traversable((isset($context["monthArr"]) || array_key_exists("monthArr"$context) ? $context["monthArr"] : (function () { throw new RuntimeError('Variable "monthArr" does not exist.'38$this->source); })()));
  129.         foreach ($context['_seq'] as $context["key"] => $context["month"]) {
  130.             // line 39
  131.             echo "                        <a href=\"";
  132.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("topic", ["date" => $context["key"]]), "html"nulltrue);
  133.             echo "\">";
  134.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["month"], 39$this->source), "html"nulltrue);
  135.             echo "</a>
  136.                     ";
  137.         }
  138.         $_parent $context['_parent'];
  139.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['month'], $context['_parent'], $context['loop']);
  140.         $context array_intersect_key($context$_parent) + $_parent;
  141.         // line 41
  142.         echo "                </div>
  143.             </div>
  144.         </div>
  145.     </div>
  146. ";
  147.         
  148.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  149.         
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  151.     }
  152.     public function getTemplateName()
  153.     {
  154.         return "@user_data/topic.twig";
  155.     }
  156.     public function isTraitable()
  157.     {
  158.         return false;
  159.     }
  160.     public function getDebugInfo()
  161.     {
  162.         return array (  156 => 41,  145 => 39,  141 => 38,  133 => 32,  129 => 30,  127 => 29,  123 => 27,  112 => 22,  106 => 19,  100 => 16,  93 => 12,  87 => 10,  83 => 9,  80 => 8,  78 => 7,  70 => 3,  60 => 2,  37 => 1,);
  163.     }
  164.     public function getSourceContext()
  165.     {
  166.         return new Source("{% extends 'default_frame.twig' %}
  167. {% block main %}
  168.     {{ include('Block/banner.twig', { 'image': asset('assets/img/topic.png', \"user_data\"), 'title': 'TOPICS', 'subtitle': 'トピックス' }) }}
  169.     <div class=\"topic\">
  170.         <div class=\"topic__container\">
  171.             <div class=\"topic__list\">
  172.                 {% if pagination.totalItemCount > 0 %}
  173.                     <div class=\"topic__list__inner\">
  174.                         {% for Blog in pagination %}
  175.                             <a class=\"topic__post\" href=\"{{ url('topic_detail', {'id': Blog.slug ? Blog.slug : Blog.id}) }}\">
  176.                                 <div class=\"topic__post__image\">
  177.                                     <img src=\"{{ asset(Blog.getMainListImage|no_image_product, 'save_image') }}\" />
  178.                                 </div>
  179.                                 <div class=\"topic__post__content\">
  180.                                     <h2 class=\"topic__post__title\">
  181.                                         {{ Blog.getTitle|length > 45 ? Blog.getTitle|striptags|replace({('&nbsp;'):' '})|slice(0, 45)|raw ~ '...' : Blog.getTitle|raw }}
  182.                                     </h2>
  183.                                     <p class=\"topic__post__date\">
  184.                                         {{ Blog.release_date|date('Y年m月d日')}}
  185.                                     </p>
  186.                                     <p class=\"topic__post__desc\">
  187.                                         {{ Blog.getFigCaption }}
  188.                                     </p>
  189.                                 </div>
  190.                             </a>
  191.                         {% endfor %}
  192.                     </div>
  193.                     <div class=\"ec-pagerRole\">
  194.                         {% include \"pager.twig\" with {'pages': pagination.paginationData, 'routes' : 'topic'} %}
  195.                     </div>
  196.                 {% endif %}
  197.             </div>
  198.             <div class=\"topic__archive\">
  199.                 <div class=\"topic__archive__title\">
  200.                     月別アーカイブ
  201.                 </div>
  202.                 <div class=\"topic__archive__list\">
  203.                     {% for key, month in monthArr %}
  204.                         <a href=\"{{ url('topic', {date: key}) }}\">{{ month }}</a>
  205.                     {% endfor %}
  206.                 </div>
  207.             </div>
  208.         </div>
  209.     </div>
  210. {% endblock %}""@user_data/topic.twig""/home/cpartners/cpartners.xbiz.jp/public_html/app/template/user_data/topic.twig");
  211.     }
  212.     
  213.     public function checkSecurity()
  214.     {
  215.         static $tags = array("if" => 7"for" => 9"include" => 29);
  216.         static $filters = array("escape" => 10"no_image_product" => 12"length" => 16"raw" => 16"slice" => 16"replace" => 16"striptags" => 16"date" => 19);
  217.         static $functions = array("include" => 3"asset" => 3"url" => 10);
  218.         try {
  219.             $this->sandbox->checkSecurity(
  220.                 ['if''for''include'],
  221.                 ['escape''no_image_product''length''raw''slice''replace''striptags''date'],
  222.                 ['include''asset''url']
  223.             );
  224.         } catch (SecurityError $e) {
  225.             $e->setSourceContext($this->source);
  226.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  227.                 $e->setTemplateLine($tags[$e->getTagName()]);
  228.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  229.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  230.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  231.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  232.             }
  233.             throw $e;
  234.         }
  235.     }
  236. }