<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* /home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig */
class __TwigTemplate_31adfd067dc23998bf7fee2de65c240e91173a9de6d8b346dde534b8be19c1a1 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 7
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__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"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__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"));
// line 10
$context["post_list"] = $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->postList();
// line 7
$this->parent = $this->loadTemplate("default_frame.twig", "/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig", 7);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 12
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 13
echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->asset("script.js", "script");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 17
echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->asset("style.css", "style");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 21
echo "<div class=\"ec-pageHeader\"><h1 class=\"open_sans\">";
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", false, false, true, 21), 21, $this->source), "html", null, true);
echo "</h1></div>
<div class=\"row\">
\t<div class=\"col-md-9\">
\t\t<ul class=\"tabacms_post_list\">
\t\t\t";
// line 25
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["post"]) {
// line 26
echo "\t\t\t<li class=\"row\">
\t\t\t\t<div class=\"col-md-4\">
\t\t\t\t\t<time>
\t\t\t\t\t\t";
// line 29
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getPublicDate", [], "any", false, false, true, 29), 29, $this->source), "Y/m/d"), "html", null, true);
echo "
\t\t\t\t\t</time>
\t\t\t\t\t";
// line 31
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["post"], "getCategory", [], "any", false, false, true, 31))) {
// line 32
echo "\t\t\t\t\t<label class=\"text-nowrap tabacms_category_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "getType", [], "any", false, false, true, 32), "getDataKey", [], "any", false, false, true, 32), 32, $this->source), "html", null, true);
echo "_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "getCategory", [], "any", false, false, true, 32), "getDataKey", [], "any", false, false, true, 32), 32, $this->source), "html", null, true);
echo "\" ";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "getCategory", [], "any", false, false, true, 32), "getTagAttributes", [], "any", false, false, true, 32), 32, $this->source);
echo ">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["post"], "getCategory", [], "any", false, false, true, 32), "getCategoryName", [], "any", false, false, true, 32), 32, $this->source), "html", null, true);
echo "</label>
\t\t\t\t\t";
}
// line 34
echo "\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-8\">
\t\t\t\t\t";
// line 36
if ((twig_get_attribute($this->env, $this->source, $context["post"], "getContentDiv", [], "any", false, false, true, 36) == twig_constant("CONTENT_DIV_BODY", $context["post"]))) {
// line 37
echo "\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getURI", [], "any", false, false, true, 37), 37, $this->source), "html", null, true);
echo "\"><strong>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getTitle", [], "any", false, false, true, 37), 37, $this->source), "html", null, true);
echo "</strong></a>
\t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 38
$context["post"], "getContentDiv", [], "any", false, false, true, 38) == twig_constant("CONTENT_DIV_LINK", $context["post"]))) {
// line 39
echo "\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getLinkUrl", [], "any", false, false, true, 39), 39, $this->source), "html", null, true);
echo "\" ";
if (twig_get_attribute($this->env, $this->source, $context["post"], "getLinkTarget", [], "any", false, false, true, 39)) {
echo " target=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getLinkTarget", [], "any", false, false, true, 39), 39, $this->source), "html", null, true);
echo "\" ";
}
echo "><strong>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getTitle", [], "any", false, false, true, 39), 39, $this->source), "html", null, true);
echo "</strong></a>
\t\t\t\t\t";
} elseif ((twig_get_attribute($this->env, $this->source, // line 40
$context["post"], "getContentDiv", [], "any", false, false, true, 40) == twig_constant("CONTENT_DIV_TITLE", $context["post"]))) {
// line 41
echo "\t\t\t\t\t<strong>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["post"], "getTitle", [], "any", false, false, true, 41), 41, $this->source), "html", null, true);
echo "</strong>
\t\t\t\t\t";
}
// line 43
echo "\t\t\t\t</div>
\t\t\t</li>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['post'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 46
echo "\t\t</ul>
\t\t";
// line 47
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", false, false, true, 47) > 0)) {
// line 48
echo "\t\t";
$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", false, false, true, 48)]));
// line 49
echo "\t\t";
}
// line 50
echo "\t</div>
\t<div class=\"col-md-3\">
\t ";
// line 52
echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->widget("search");
echo "
\t\t";
// line 53
echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->widget("category");
echo "
\t\t";
// line 54
echo $this->extensions['Plugin\TabaCMS\Twig\Extension\TwigExtension']->widget("tag");
echo "
\t</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "/home/toebisu-kagoya/public_html/toebisu.website/functionshop/app/PluginData/TabaCMS/template/default/list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
Copyright (C) SPREAD WORKS Inc. All Rights Reserved.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{# 投稿リストの取得 #}
{% set post_list = TabaCMSPostList() %}
{% block javascript %}
{{ TabaCMSAsset('script.js','script')|raw }}
{% endblock javascript %}
{% block stylesheet %}
{{ TabaCMSAsset('style.css','style')|raw }}
{% endblock stylesheet %}
{% block main %}
<div class=\"ec-pageHeader\"><h1 class=\"open_sans\">{{ type.getTypeName }}</h1></div>
<div class=\"row\">
\t<div class=\"col-md-9\">
\t\t<ul class=\"tabacms_post_list\">
\t\t\t{% for post in post_list %}
\t\t\t<li class=\"row\">
\t\t\t\t<div class=\"col-md-4\">
\t\t\t\t\t<time>
\t\t\t\t\t\t{{ post.getPublicDate|date('Y/m/d') }}
\t\t\t\t\t</time>
\t\t\t\t\t{% if post.getCategory is not empty %}
\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>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-8\">
\t\t\t\t\t{% if post.getContentDiv == constant('CONTENT_DIV_BODY',post) %}
\t\t\t\t\t<a href=\"{{ post.getURI }}\"><strong>{{ post.getTitle }}</strong></a>
\t\t\t\t\t{% elseif post.getContentDiv == constant('CONTENT_DIV_LINK',post) %}
\t\t\t\t\t<a href=\"{{ post.getLinkUrl }}\" {% if post.getLinkTarget %} target=\"{{ post.getLinkTarget }}\" {% endif %}><strong>{{ post.getTitle }}</strong></a>
\t\t\t\t\t{% elseif post.getContentDiv == constant('CONTENT_DIV_TITLE',post) %}
\t\t\t\t\t<strong>{{ post.getTitle }}</strong>
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t</li>
\t\t\t{% endfor %}
\t\t</ul>
\t\t{% if post_list.totalItemCount > 0 %}
\t\t{% include \"pager.twig\" with {'pages':post_list.paginationData} %}
\t\t{% endif %}
\t</div>
\t<div class=\"col-md-3\">
\t {{ TabaCMSWidget('search')|raw }}
\t\t{{ TabaCMSWidget('category')|raw }}
\t\t{{ TabaCMSWidget('tag')|raw }}
\t</div>
</div>
{% endblock %}
", "/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");
}
public function checkSecurity()
{
static $tags = array("set" => 10, "for" => 25, "if" => 31, "include" => 48);
static $filters = array("raw" => 13, "escape" => 21, "date" => 29);
static $functions = array("TabaCMSPostList" => 10, "TabaCMSAsset" => 13, "constant" => 36, "TabaCMSWidget" => 52);
try {
$this->sandbox->checkSecurity(
['set', 'for', 'if', 'include'],
['raw', 'escape', 'date'],
['TabaCMSPostList', 'TabaCMSAsset', 'constant', 'TabaCMSWidget'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}