var/cache/dev/twig/38/386ceb5666a84e04539c21d07c3a1a31.php line 109

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. /* @TabaCMS2/default/list_blog.twig */
  14. class __TwigTemplate_90d59b1a61aac16a0693cde400313250 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.             'javascript' => [$this'block_javascript'],
  24.             'stylesheet' => [$this'block_stylesheet'],
  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 7
  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""@TabaCMS2/default/list_blog.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""@TabaCMS2/default/list_blog.twig"));
  42.         // line 10
  43.         $context["post_list"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->postList();
  44.         // line 7
  45.         $this->parent $this->loadTemplate("default_frame.twig""@TabaCMS2/default/list_blog.twig"7);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 12
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 13
  61.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("script.js""script");
  62.         echo "
  63. ";
  64.         
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  66.         
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  68.     }
  69.     // line 16
  70.     public function block_stylesheet($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  77.         // line 17
  78.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("style.css""style");
  79.         echo "
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 20
  87.     public function block_main($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  94.         // line 21
  95.         echo "<div class=\"container-lg\">
  96.     <div class=\"row\">
  97.         <div class=\"col-12\">
  98.             <div class=\"ec-pageHeader\"><h1>";
  99.         // line 24
  100.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'24$this->source); })()), "getTypeName", [], "any"falsefalsetrue24), 24$this->source), "html"nulltrue);
  101.         echo "</h1></div>
  102.         </div>
  103.     </div>
  104.     <div class=\"row\">
  105.         <div class=\"col-md-9\">
  106.             <ul class=\"row tabacms_blog_list tabacms_height_match\">
  107.                 ";
  108.         // line 30
  109.         $context["no_image"] = $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->asset("no_image.jpg");
  110.         // line 31
  111.         echo "                ";
  112.         $context['_parent'] = $context;
  113.         $context['_seq'] = twig_ensure_traversable((isset($context["post_list"]) || array_key_exists("post_list"$context) ? $context["post_list"] : (function () { throw new RuntimeError('Variable "post_list" does not exist.'31$this->source); })()));
  114.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  115.             // line 32
  116.             echo "                <li class=\"col-sm-6 col-md-4\">
  117.                     <article>
  118.                         <div class=\"tabacms_thumbnail_wrapper\">
  119.                             <div class=\"tabacms_thumbnail\">
  120.                                 ";
  121.             // line 36
  122.             $context["thumb"] = (isset($context["no_image"]) || array_key_exists("no_image"$context) ? $context["no_image"] : (function () { throw new RuntimeError('Variable "no_image" does not exist.'36$this->source); })());
  123.             // line 37
  124.             echo "                                ";
  125.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["post"], "getThumbnail", [], "any"falsefalsetrue37))) {
  126.                 // line 38
  127.                 echo "                                ";
  128.                 $context["thumb"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getThumbnail", [], "any"falsefalsetrue38), 38$this->source), "save_image");
  129.                 // line 39
  130.                 echo "                                ";
  131.             }
  132.             // line 40
  133.             echo "                                ";
  134.             if ((twig_get_attribute($this->env$this->source$context["post"], "getContentDiv", [], "any"falsefalsetrue40) == twig_constant("CONTENT_DIV_BODY"$context["post"]))) {
  135.                 // line 41
  136.                 echo "                                <a href=\"";
  137.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  138.                 echo "\"><img src=\"";
  139.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["thumb"]) || array_key_exists("thumb"$context) ? $context["thumb"] : (function () { throw new RuntimeError('Variable "thumb" does not exist.'41$this->source); })()), 41$this->source), "html"nulltrue);
  140.                 echo "\"></a>
  141.                                 ";
  142.             } elseif ((twig_get_attribute($this->env$this->source,             // line 42
  143. $context["post"], "getContentDiv", [], "any"falsefalsetrue42) == twig_constant("CONTENT_DIV_LINK"$context["post"]))) {
  144.                 // line 43
  145.                 echo "                                <a href=\"";
  146.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getLinkUrl", [], "any"falsefalsetrue43), 43$this->source), "html"nulltrue);
  147.                 echo "\" ";
  148.                 if (twig_get_attribute($this->env$this->source$context["post"], "getLinkTarget", [], "any"falsefalsetrue43)) {
  149.                     echo " target=\"";
  150.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getLinkTarget", [], "any"falsefalsetrue43), 43$this->source), "html"nulltrue);
  151.                     echo "\" ";
  152.                 }
  153.                 echo "><img src=\"";
  154.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["thumb"]) || array_key_exists("thumb"$context) ? $context["thumb"] : (function () { throw new RuntimeError('Variable "thumb" does not exist.'43$this->source); })()), 43$this->source), "html"nulltrue);
  155.                 echo "\"></a>
  156.                                 ";
  157.             } elseif ((twig_get_attribute($this->env$this->source,             // line 44
  158. $context["post"], "getContentDiv", [], "any"falsefalsetrue44) == twig_constant("CONTENT_DIV_TITLE"$context["post"]))) {
  159.                 // line 45
  160.                 echo "                                <img src=\"";
  161.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["thumb"]) || array_key_exists("thumb"$context) ? $context["thumb"] : (function () { throw new RuntimeError('Variable "thumb" does not exist.'45$this->source); })()), 45$this->source), "html"nulltrue);
  162.                 echo "\">
  163.                                 ";
  164.             }
  165.             // line 47
  166.             echo "                            </div>
  167.                         </div>
  168.                         <div class=\"tabacms_detail\">
  169.                             ";
  170.             // line 50
  171.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["post"], "getCategory", [], "any"falsefalsetrue50))) {
  172.                 // line 51
  173.                 echo "                            <label class=\"text-nowrap tabacms_category_";
  174.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getType", [], "any"falsefalsetrue51), "getDataKey", [], "any"falsefalsetrue51), 51$this->source), "html"nulltrue);
  175.                 echo "_";
  176.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getCategory", [], "any"falsefalsetrue51), "getDataKey", [], "any"falsefalsetrue51), 51$this->source), "html"nulltrue);
  177.                 echo "\" ";
  178.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getCategory", [], "any"falsefalsetrue51), "getTagAttributes", [], "any"falsefalsetrue51), 51$this->source);
  179.                 echo ">";
  180.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getCategory", [], "any"falsefalsetrue51), "getCategoryName", [], "any"falsefalsetrue51), 51$this->source), "html"nulltrue);
  181.                 echo "</label>
  182.                             ";
  183.             }
  184.             // line 53
  185.             echo "                            <time>
  186.                                 ";
  187.             // line 54
  188.             echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getPublicDate", [], "any"falsefalsetrue54), 54$this->source), "Y/m/d"), "html"nulltrue);
  189.             echo "
  190.                             </time>
  191.                             ";
  192.             // line 56
  193.             if ((twig_get_attribute($this->env$this->source$context["post"], "getContentDiv", [], "any"falsefalsetrue56) == twig_constant("CONTENT_DIV_BODY"$context["post"]))) {
  194.                 // line 57
  195.                 echo "                            <h2 class=\"tabacms_ellipsis_2\">
  196.                                 <a href=\"";
  197.                 // line 58
  198.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue58), 58$this->source), "html"nulltrue);
  199.                 echo "\">";
  200.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue58), 58$this->source), "html"nulltrue);
  201.                 echo "</a>
  202.                             </h2>
  203.                             <p class=\"tabacms_ellipsis_3\">
  204.                                 ";
  205.                 // line 61
  206.                 echo twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getBody", [], "any"falsefalsetrue61), 61$this->source));
  207.                 echo "
  208.                             </p>
  209.                             <a href=\"";
  210.                 // line 63
  211.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue63), 63$this->source), "html"nulltrue);
  212.                 echo "\" class=\"tabacms_readmore\">もっと読む</a>
  213.                             ";
  214.             } elseif ((twig_get_attribute($this->env$this->source,             // line 64
  215. $context["post"], "getContentDiv", [], "any"falsefalsetrue64) == twig_constant("CONTENT_DIV_LINK"$context["post"]))) {
  216.                 // line 65
  217.                 echo "                            <h2 class=\"tabacms_ellipsis_2\">
  218.                                 <a href=\"";
  219.                 // line 66
  220.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getLinkUrl", [], "any"falsefalsetrue66), 66$this->source), "html"nulltrue);
  221.                 echo "\" ";
  222.                 if (twig_get_attribute($this->env$this->source$context["post"], "getLinkTarget", [], "any"falsefalsetrue66)) {
  223.                     echo " target=\"";
  224.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getLinkTarget", [], "any"falsefalsetrue66), 66$this->source), "html"nulltrue);
  225.                     echo "\" ";
  226.                 }
  227.                 echo ">";
  228.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue66), 66$this->source), "html"nulltrue);
  229.                 echo "</a>
  230.                             </h2>
  231.                             ";
  232.             } elseif ((twig_get_attribute($this->env$this->source,             // line 68
  233. $context["post"], "getContentDiv", [], "any"falsefalsetrue68) == twig_constant("CONTENT_DIV_TITLE"$context["post"]))) {
  234.                 // line 69
  235.                 echo "                            <h2 class=\"tabacms_ellipsis_2\">
  236.                                 ";
  237.                 // line 70
  238.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue70), 70$this->source), "html"nulltrue);
  239.                 echo "
  240.                             </h2>
  241.                             ";
  242.             }
  243.             // line 73
  244.             echo "                        </div>
  245.                     </article>
  246.                 </li>
  247.                 ";
  248.         }
  249.         $_parent $context['_parent'];
  250.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  251.         $context array_intersect_key($context$_parent) + $_parent;
  252.         // line 77
  253.         echo "            </ul>
  254.             ";
  255.         // line 78
  256.         if ((twig_get_attribute($this->env$this->source, (isset($context["post_list"]) || array_key_exists("post_list"$context) ? $context["post_list"] : (function () { throw new RuntimeError('Variable "post_list" does not exist.'78$this->source); })()), "totalItemCount", [], "any"falsefalsetrue78) > 0)) {
  257.             // line 79
  258.             echo "                ";
  259.             $this->loadTemplate("pager.twig""@TabaCMS2/default/list_blog.twig"79)->display(twig_array_merge($context, ["pages" => twig_get_attribute($this->env$this->source, (isset($context["post_list"]) || array_key_exists("post_list"$context) ? $context["post_list"] : (function () { throw new RuntimeError('Variable "post_list" does not exist.'79$this->source); })()), "paginationData", [], "any"falsefalsetrue79)]));
  260.             // line 80
  261.             echo "            ";
  262.         }
  263.         // line 81
  264.         echo "        </div>
  265.         <div class=\"col-md-3\">
  266.             ";
  267.         // line 83
  268.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->widget("search");
  269.         echo "
  270.             ";
  271.         // line 84
  272.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->widget("category");
  273.         echo "
  274.             ";
  275.         // line 85
  276.         echo $this->extensions['Plugin\TabaCMS2\Twig\Extension\TwigExtension']->widget("tag");
  277.         echo "
  278.         </div>
  279.     </div>
  280. </div>
  281. ";
  282.         
  283.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  284.         
  285.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  286.     }
  287.     public function getTemplateName()
  288.     {
  289.         return "@TabaCMS2/default/list_blog.twig";
  290.     }
  291.     public function isTraitable()
  292.     {
  293.         return false;
  294.     }
  295.     public function getDebugInfo()
  296.     {
  297.         return array (  300 => 85,  296 => 84,  292 => 83,  288 => 81,  285 => 80,  282 => 79,  280 => 78,  277 => 77,  268 => 73,  262 => 70,  259 => 69,  257 => 68,  244 => 66,  241 => 65,  239 => 64,  235 => 63,  230 => 61,  222 => 58,  219 => 57,  217 => 56,  212 => 54,  209 => 53,  197 => 51,  195 => 50,  190 => 47,  184 => 45,  182 => 44,  169 => 43,  167 => 42,  160 => 41,  157 => 40,  154 => 39,  151 => 38,  148 => 37,  146 => 36,  140 => 32,  135 => 31,  133 => 30,  124 => 24,  119 => 21,  109 => 20,  97 => 17,  87 => 16,  75 => 13,  65 => 12,  54 => 7,  52 => 10,  39 => 7,);
  298.     }
  299.     public function getSourceContext()
  300.     {
  301.         return new Source("{#
  302. Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
  303. For the full copyright and license information, please view the LICENSE
  304. file that was distributed with this source code.
  305. #}
  306. {% extends 'default_frame.twig' %}
  307. {# 投稿リストの取得 #}
  308. {% set post_list = TabaCMSPostList() %}
  309. {% block javascript %}
  310. {{ TabaCMSAsset('script.js','script')|raw }}
  311. {% endblock javascript %}
  312. {% block stylesheet %}
  313. {{ TabaCMSAsset('style.css','style')|raw }}
  314. {% endblock stylesheet %}
  315. {% block main %}
  316. <div class=\"container-lg\">
  317.     <div class=\"row\">
  318.         <div class=\"col-12\">
  319.             <div class=\"ec-pageHeader\"><h1>{{ type.getTypeName }}</h1></div>
  320.         </div>
  321.     </div>
  322.     <div class=\"row\">
  323.         <div class=\"col-md-9\">
  324.             <ul class=\"row tabacms_blog_list tabacms_height_match\">
  325.                 {% set no_image = TabaCMSAsset('no_image.jpg') %}
  326.                 {% for post in post_list %}
  327.                 <li class=\"col-sm-6 col-md-4\">
  328.                     <article>
  329.                         <div class=\"tabacms_thumbnail_wrapper\">
  330.                             <div class=\"tabacms_thumbnail\">
  331.                                 {% set thumb = no_image %}
  332.                                 {% if post.getThumbnail is not empty %}
  333.                                 {% set thumb = asset(post.getThumbnail,'save_image') %}
  334.                                 {% endif %}
  335.                                 {% if post.getContentDiv == constant('CONTENT_DIV_BODY',post) %}
  336.                                 <a href=\"{{ post.getURI }}\"><img src=\"{{ thumb }}\"></a>
  337.                                 {% elseif post.getContentDiv == constant('CONTENT_DIV_LINK',post) %}
  338.                                 <a href=\"{{ post.getLinkUrl }}\" {% if post.getLinkTarget %} target=\"{{ post.getLinkTarget }}\" {% endif %}><img src=\"{{ thumb }}\"></a>
  339.                                 {% elseif post.getContentDiv == constant('CONTENT_DIV_TITLE',post) %}
  340.                                 <img src=\"{{ thumb }}\">
  341.                                 {% endif %}
  342.                             </div>
  343.                         </div>
  344.                         <div class=\"tabacms_detail\">
  345.                             {% if post.getCategory is not empty %}
  346.                             <label class=\"text-nowrap tabacms_category_{{ post.getType.getDataKey }}_{{ post.getCategory.getDataKey }}\" {{ post.getCategory.getTagAttributes|raw }}>{{ post.getCategory.getCategoryName }}</label>
  347.                             {% endif %}
  348.                             <time>
  349.                                 {{ post.getPublicDate|date('Y/m/d') }}
  350.                             </time>
  351.                             {% if post.getContentDiv == constant('CONTENT_DIV_BODY',post) %}
  352.                             <h2 class=\"tabacms_ellipsis_2\">
  353.                                 <a href=\"{{ post.getURI }}\">{{ post.getTitle }}</a>
  354.                             </h2>
  355.                             <p class=\"tabacms_ellipsis_3\">
  356.                                 {{ post.getBody|striptags|raw }}
  357.                             </p>
  358.                             <a href=\"{{ post.getURI }}\" class=\"tabacms_readmore\">もっと読む</a>
  359.                             {% elseif post.getContentDiv == constant('CONTENT_DIV_LINK',post) %}
  360.                             <h2 class=\"tabacms_ellipsis_2\">
  361.                                 <a href=\"{{ post.getLinkUrl }}\" {% if post.getLinkTarget %} target=\"{{ post.getLinkTarget }}\" {% endif %}>{{ post.getTitle }}</a>
  362.                             </h2>
  363.                             {% elseif post.getContentDiv == constant('CONTENT_DIV_TITLE',post) %}
  364.                             <h2 class=\"tabacms_ellipsis_2\">
  365.                                 {{ post.getTitle }}
  366.                             </h2>
  367.                             {% endif %}
  368.                         </div>
  369.                     </article>
  370.                 </li>
  371.                 {% endfor %}
  372.             </ul>
  373.             {% if post_list.totalItemCount > 0 %}
  374.                 {% include \"pager.twig\" with {'pages':post_list.paginationData} %}
  375.             {% endif %}
  376.         </div>
  377.         <div class=\"col-md-3\">
  378.             {{ TabaCMSWidget('search')|raw }}
  379.             {{ TabaCMSWidget('category')|raw }}
  380.             {{ TabaCMSWidget('tag')|raw }}
  381.         </div>
  382.     </div>
  383. </div>
  384. {% endblock %}
  385. ""@TabaCMS2/default/list_blog.twig""/home/xs545372/itsukushi-store.com/public_html/stg.itsukushi-store.com/app/Plugin/TabaCMS2/Resource/template/default/list_blog.twig");
  386.     }
  387.     
  388.     public function checkSecurity()
  389.     {
  390.         static $tags = array("set" => 10"for" => 31"if" => 37"include" => 79);
  391.         static $filters = array("raw" => 13"escape" => 24"date" => 54"striptags" => 61);
  392.         static $functions = array("TabaCMSPostList" => 10"TabaCMSAsset" => 13"asset" => 38"constant" => 40"TabaCMSWidget" => 83);
  393.         try {
  394.             $this->sandbox->checkSecurity(
  395.                 ['set''for''if''include'],
  396.                 ['raw''escape''date''striptags'],
  397.                 ['TabaCMSPostList''TabaCMSAsset''asset''constant''TabaCMSWidget']
  398.             );
  399.         } catch (SecurityError $e) {
  400.             $e->setSourceContext($this->source);
  401.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  402.                 $e->setTemplateLine($tags[$e->getTagName()]);
  403.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  404.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  405.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  406.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  407.             }
  408.             throw $e;
  409.         }
  410.     }
  411. }