var/cache/dev/twig/2d/2dd48fb9093186875a201de6dbd2d1436a49bfdaf2f88b87e2e890c794222113.php line 16

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. /* /home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig */
  14. class __TwigTemplate_31adfd067dc23998bf7fee2de65c240e91173a9de6d8b346dde534b8be19c1a1 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig"));
  42.         // line 10
  43.         $context["post_list"] = $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->postList();
  44.         // line 7
  45.         $this->parent $this->loadTemplate("default_frame.twig""/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig"7);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 12
  53.     public function block_javascript($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  60.         // line 13
  61.         echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->asset("script.js""script");
  62.         echo "
  63. ";
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.     }
  69.     // line 16
  70.     public function block_stylesheet($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  77.         // line 17
  78.         echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->asset("style.css""style");
  79.         echo "
  80. ";
  81.         
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  83.         
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  85.     }
  86.     // line 20
  87.     public function block_main($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  94.         // line 21
  95.         echo "<div class=\"ec-pageHeader\"><h1 class=\"open_sans\">";
  96.         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.'21$this->source); })()), "getTypeName", [], "any"falsefalsetrue21), 21$this->source), "html"nulltrue);
  97.         echo "</h1></div>
  98. <div class=\"row\">
  99. \t<div class=\"col-md-9\">
  100. \t\t<ul class=\"tabacms_post_list\">
  101. \t\t\t";
  102.         // line 25
  103.         $context['_parent'] = $context;
  104.         $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.'25$this->source); })()));
  105.         foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
  106.             // line 26
  107.             echo "\t\t\t<li class=\"row\">
  108. \t\t\t\t<div class=\"col-md-4\">
  109. \t\t\t\t\t<time>
  110. \t\t\t\t\t\t";
  111.             // line 29
  112.             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"falsefalsetrue29), 29$this->source), "Y/m/d"), "html"nulltrue);
  113.             echo "
  114. \t\t\t\t\t</time>
  115. \t\t\t\t\t";
  116.             // line 31
  117.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["post"], "getCategory", [], "any"falsefalsetrue31))) {
  118.                 // line 32
  119.                 echo "\t\t\t\t\t<label class=\"text-nowrap tabacms_category_";
  120.                 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"falsefalsetrue32), "getDataKey", [], "any"falsefalsetrue32), 32$this->source), "html"nulltrue);
  121.                 echo "_";
  122.                 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"falsefalsetrue32), "getDataKey", [], "any"falsefalsetrue32), 32$this->source), "html"nulltrue);
  123.                 echo "\" ";
  124.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["post"], "getCategory", [], "any"falsefalsetrue32), "getTagAttributes", [], "any"falsefalsetrue32), 32$this->source);
  125.                 echo ">";
  126.                 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"falsefalsetrue32), "getCategoryName", [], "any"falsefalsetrue32), 32$this->source), "html"nulltrue);
  127.                 echo "</label>
  128. \t\t\t\t\t";
  129.             }
  130.             // line 34
  131.             echo "\t\t\t\t</div>
  132. \t\t\t\t<div class=\"col-md-8\">
  133. \t\t\t\t\t";
  134.             // line 36
  135.             if ((twig_get_attribute($this->env$this->source$context["post"], "getContentDiv", [], "any"falsefalsetrue36) == twig_constant("CONTENT_DIV_BODY"$context["post"]))) {
  136.                 // line 37
  137.                 echo "\t\t\t\t\t<a href=\"";
  138.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getURI", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  139.                 echo "\"><strong>";
  140.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  141.                 echo "</strong></a>
  142. \t\t\t\t\t";
  143.             } elseif ((twig_get_attribute($this->env$this->source,             // line 38
  144. $context["post"], "getContentDiv", [], "any"falsefalsetrue38) == twig_constant("CONTENT_DIV_LINK"$context["post"]))) {
  145.                 // line 39
  146.                 echo "\t\t\t\t\t<a href=\"";
  147.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getLinkUrl", [], "any"falsefalsetrue39), 39$this->source), "html"nulltrue);
  148.                 echo "\" ";
  149.                 if (twig_get_attribute($this->env$this->source$context["post"], "getLinkTarget", [], "any"falsefalsetrue39)) {
  150.                     echo " target=\"";
  151.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getLinkTarget", [], "any"falsefalsetrue39), 39$this->source), "html"nulltrue);
  152.                     echo "\" ";
  153.                 }
  154.                 echo "><strong>";
  155.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue39), 39$this->source), "html"nulltrue);
  156.                 echo "</strong></a>
  157. \t\t\t\t\t";
  158.             } elseif ((twig_get_attribute($this->env$this->source,             // line 40
  159. $context["post"], "getContentDiv", [], "any"falsefalsetrue40) == twig_constant("CONTENT_DIV_TITLE"$context["post"]))) {
  160.                 // line 41
  161.                 echo "\t\t\t\t\t<strong>";
  162.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["post"], "getTitle", [], "any"falsefalsetrue41), 41$this->source), "html"nulltrue);
  163.                 echo "</strong>
  164. \t\t\t\t\t";
  165.             }
  166.             // line 43
  167.             echo "\t\t\t\t</div>
  168. \t\t\t</li>
  169. \t\t\t";
  170.         }
  171.         $_parent $context['_parent'];
  172.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
  173.         $context array_intersect_key($context$_parent) + $_parent;
  174.         // line 46
  175.         echo "\t\t</ul>
  176. \t\t";
  177.         // line 47
  178.         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.'47$this->source); })()), "totalItemCount", [], "any"falsefalsetrue47) > 0)) {
  179.             // line 48
  180.             echo "\t\t";
  181.             $this->loadTemplate("pager.twig""/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig"48)->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.'48$this->source); })()), "paginationData", [], "any"falsefalsetrue48)]));
  182.             // line 49
  183.             echo "\t\t";
  184.         }
  185.         // line 50
  186.         echo "\t</div>
  187. \t<div class=\"col-md-3\">
  188. \t    ";
  189.         // line 52
  190.         echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->widget("search");
  191.         echo "
  192. \t\t";
  193.         // line 53
  194.         echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->widget("category");
  195.         echo "
  196. \t\t";
  197.         // line 54
  198.         echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->widget("tag");
  199.         echo "
  200. \t</div>
  201. </div>
  202. ";
  203.         
  204.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  205.         
  206.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  207.     }
  208.     public function getTemplateName()
  209.     {
  210.         return "/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig";
  211.     }
  212.     public function isTraitable()
  213.     {
  214.         return false;
  215.     }
  216.     public function getDebugInfo()
  217.     {
  218.         return array (  222 => 54,  218 => 53,  214 => 52,  210 => 50,  207 => 49,  204 => 48,  202 => 47,  199 => 46,  191 => 43,  185 => 41,  183 => 40,  170 => 39,  168 => 38,  161 => 37,  159 => 36,  155 => 34,  143 => 32,  141 => 31,  136 => 29,  131 => 26,  127 => 25,  119 => 21,  109 => 20,  97 => 17,  87 => 16,  75 => 13,  65 => 12,  54 => 7,  52 => 10,  39 => 7,);
  219.     }
  220.     public function getSourceContext()
  221.     {
  222.         return new Source("{#
  223. Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
  224. For the full copyright and license information, please view the LICENSE
  225. file that was distributed with this source code.
  226. #}
  227. {% extends 'default_frame.twig' %}
  228. {# 投稿リストの取得 #}
  229. {% set post_list = TabaCMSPostList() %}
  230. {% block javascript %}
  231. {{ TabaCMSAsset('script.js','script')|raw }}
  232. {% endblock javascript %}
  233. {% block stylesheet %}
  234. {{ TabaCMSAsset('style.css','style')|raw }}
  235. {% endblock stylesheet %}
  236. {% block main %}
  237. <div class=\"ec-pageHeader\"><h1 class=\"open_sans\">{{ type.getTypeName }}</h1></div>
  238. <div class=\"row\">
  239. \t<div class=\"col-md-9\">
  240. \t\t<ul class=\"tabacms_post_list\">
  241. \t\t\t{% for post in post_list %}
  242. \t\t\t<li class=\"row\">
  243. \t\t\t\t<div class=\"col-md-4\">
  244. \t\t\t\t\t<time>
  245. \t\t\t\t\t\t{{ post.getPublicDate|date('Y/m/d') }}
  246. \t\t\t\t\t</time>
  247. \t\t\t\t\t{% if post.getCategory is not empty %}
  248. \t\t\t\t\t<label class=\"text-nowrap tabacms_category_{{ post.getType.getDataKey }}_{{ post.getCategory.getDataKey }}\" {{ post.getCategory.getTagAttributes|raw }}>{{ post.getCategory.getCategoryName }}</label>
  249. \t\t\t\t\t{% endif %}
  250. \t\t\t\t</div>
  251. \t\t\t\t<div class=\"col-md-8\">
  252. \t\t\t\t\t{% if post.getContentDiv == constant('CONTENT_DIV_BODY',post) %}
  253. \t\t\t\t\t<a href=\"{{ post.getURI }}\"><strong>{{ post.getTitle }}</strong></a>
  254. \t\t\t\t\t{% elseif post.getContentDiv == constant('CONTENT_DIV_LINK',post) %}
  255. \t\t\t\t\t<a href=\"{{ post.getLinkUrl }}\" {% if post.getLinkTarget %} target=\"{{ post.getLinkTarget }}\" {% endif %}><strong>{{ post.getTitle }}</strong></a>
  256. \t\t\t\t\t{% elseif post.getContentDiv == constant('CONTENT_DIV_TITLE',post) %}
  257. \t\t\t\t\t<strong>{{ post.getTitle }}</strong>
  258. \t\t\t\t\t{% endif %}
  259. \t\t\t\t</div>
  260. \t\t\t</li>
  261. \t\t\t{% endfor %}
  262. \t\t</ul>
  263. \t\t{% if post_list.totalItemCount > 0 %}
  264. \t\t{% include \"pager.twig\" with {'pages':post_list.paginationData} %}
  265. \t\t{% endif %}
  266. \t</div>
  267. \t<div class=\"col-md-3\">
  268. \t    {{ TabaCMSWidget('search')|raw }}
  269. \t\t{{ TabaCMSWidget('category')|raw }}
  270. \t\t{{ TabaCMSWidget('tag')|raw }}
  271. \t</div>
  272. </div>
  273. {% endblock %}
  274. ""/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig""/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig");
  275.     }
  276.     
  277.     public function checkSecurity()
  278.     {
  279.         static $tags = array("set" => 10"for" => 25"if" => 31"include" => 48);
  280.         static $filters = array("raw" => 13"escape" => 21"date" => 29);
  281.         static $functions = array("TabaCMSPostList" => 10"TabaCMSAsset" => 13"constant" => 36"TabaCMSWidget" => 52);
  282.         try {
  283.             $this->sandbox->checkSecurity(
  284.                 ['set''for''if''include'],
  285.                 ['raw''escape''date'],
  286.                 ['TabaCMSPostList''TabaCMSAsset''constant''TabaCMSWidget'],
  287.                 $this->source
  288.             );
  289.         } catch (SecurityError $e) {
  290.             $e->setSourceContext($this->source);
  291.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  292.                 $e->setTemplateLine($tags[$e->getTagName()]);
  293.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  294.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  295.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  296.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  297.             }
  298.             throw $e;
  299.         }
  300.     }
  301. }