<?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;
/* Block/lm_column_list.twig */
class __TwigTemplate_1ddd3fc22192aaa5779289025b7c3c6b extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/lm_column_list.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/lm_column_list.twig"));
// line 1
if ((array_key_exists("columnList", $context) && (isset($context["columnList"]) || array_key_exists("columnList", $context) ? $context["columnList"] : (function () { throw new RuntimeError('Variable "columnList" does not exist.', 1, $this->source); })()))) {
// line 2
echo " <article id=\"relation-area\">
<h2 style=\" font-size: 16px; font-weight: 700; \">関連コラム</h2>
";
// line 4
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["columnList"]) || array_key_exists("columnList", $context) ? $context["columnList"] : (function () { throw new RuntimeError('Variable "columnList" does not exist.', 4, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
// line 5
echo " ";
$context["column_link_url"] = twig_get_attribute($this->env, $this->source, $context["column"], "uri", [], "any", false, false, true, 5);
// line 6
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["column"], "column_custom_url", [], "any", true, true, true, 6)) {
// line 7
echo " ";
$context["column_link_url"] = twig_get_attribute($this->env, $this->source, $context["column"], "column_custom_url", [], "any", false, false, true, 7);
// line 8
echo " ";
}
// line 9
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["column_link_url"]) || array_key_exists("column_link_url", $context) ? $context["column_link_url"] : (function () { throw new RuntimeError('Variable "column_link_url" does not exist.', 9, $this->source); })()), 9, $this->source), "html", null, true);
echo "\">
<div class=\"relation\">
<img src=\"/images/column/";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["column"], "main_category_webname", [], "any", false, false, true, 11), 11, $this->source)), "html", null, true);
echo "/c-";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["column"], "column_webname", [], "any", false, false, true, 11), 11, $this->source)), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["column"], "column_related_image_filename", [], "any", false, false, true, 11), 11, $this->source)), "html", null, true);
echo "\" alt=\" ";
echo twig_escape_filter($this->env, $this->extensions['Customize\Twig\Extension\CustomExtension']->displayText(((twig_get_attribute($this->env, $this->source, $context["column"], "column_related_image_alt", [], "any", true, true, true, 11)) ? (twig_get_attribute($this->env, $this->source, $context["column"], "column_related_image_alt", [], "any", false, false, true, 11)) : (twig_get_attribute($this->env, $this->source, $context["column"], "column_name", [], "any", false, false, true, 11)))), "html", null, true);
echo " \">
<div class=\"relation-ttl\">
<p style=\"font-size: 16px;\">
";
// line 14
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["column"], "column_related_link_text", [], "any", false, false, true, 14)) ? (twig_get_attribute($this->env, $this->source, $context["column"], "column_related_link_text", [], "any", false, false, true, 14)) : (((twig_get_attribute($this->env, $this->source, $context["column"], "column_h1_tag", [], "any", false, false, true, 14)) ? (twig_get_attribute($this->env, $this->source, $context["column"], "column_h1_tag", [], "any", false, false, true, 14)) : (twig_get_attribute($this->env, $this->source, $context["column"], "column_name", [], "any", false, false, true, 14))))), "html", null, true);
echo "
</p>
</div>
</div>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo " </article>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/lm_column_list.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 97 => 20, 85 => 14, 73 => 11, 67 => 9, 64 => 8, 61 => 7, 58 => 6, 55 => 5, 51 => 4, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if columnList is defined and columnList %}
<article id=\"relation-area\">
<h2 style=\" font-size: 16px; font-weight: 700; \">関連コラム</h2>
{% for column in columnList %}
{% set column_link_url = column.uri %}
{% if column.column_custom_url is defined %}
{% set column_link_url = column.column_custom_url %}
{% endif %}
<a href=\"{{ column_link_url }}\">
<div class=\"relation\">
<img src=\"/images/column/{{ column.main_category_webname | display_text }}/c-{{ column.column_webname | display_text }}/{{ column.column_related_image_filename | display_text }}\" alt=\" {{ (( column.column_related_image_alt is defined ) ? column.column_related_image_alt : column.column_name) | display_text }} \">
<div class=\"relation-ttl\">
<p style=\"font-size: 16px;\">
{{ ( column.column_related_link_text ) ? column.column_related_link_text : ( column.column_h1_tag ) ? column.column_h1_tag : column.column_name }}
</p>
</div>
</div>
</a>
{% endfor %}
</article>
{% endif %}
", "Block/lm_column_list.twig", "/var/www/html/app/template/default/Block/lm_column_list.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "for" => 4, "set" => 5);
static $filters = array("escape" => 9, "display_text" => 11);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['if', 'for', 'set'],
['escape', 'display_text'],
[]
);
} 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;
}
}
}