var/cache/dev/twig/f0/f04c8f332ed784eb6fc424899bfc99c5.php line 79

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. /* Block/lm_column_list.twig */
  14. class __TwigTemplate_1ddd3fc22192aaa5779289025b7c3c6b 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/lm_column_list.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/lm_column_list.twig"));
  35.         // line 1
  36.         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); })()))) {
  37.             // line 2
  38.             echo "    <article id=\"relation-area\">
  39.         <h2 style=\" font-size: 16px; font-weight: 700; \">関連コラム</h2>
  40.         ";
  41.             // line 4
  42.             $context['_parent'] = $context;
  43.             $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); })()));
  44.             foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
  45.                 // line 5
  46.                 echo "            ";
  47.                 $context["column_link_url"] = twig_get_attribute($this->env$this->source$context["column"], "uri", [], "any"falsefalsetrue5);
  48.                 // line 6
  49.                 echo "            ";
  50.                 if (twig_get_attribute($this->env$this->source$context["column"], "column_custom_url", [], "any"truetruetrue6)) {
  51.                     // line 7
  52.                     echo "                ";
  53.                     $context["column_link_url"] = twig_get_attribute($this->env$this->source$context["column"], "column_custom_url", [], "any"falsefalsetrue7);
  54.                     // line 8
  55.                     echo "            ";
  56.                 }
  57.                 // line 9
  58.                 echo "            <a href=\"";
  59.                 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"nulltrue);
  60.                 echo "\">
  61.                 <div class=\"relation\">
  62.                     <img src=\"/images/column/";
  63.                 // line 11
  64.                 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"falsefalsetrue11), 11$this->source)), "html"nulltrue);
  65.                 echo "/c-";
  66.                 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"falsefalsetrue11), 11$this->source)), "html"nulltrue);
  67.                 echo "/";
  68.                 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"falsefalsetrue11), 11$this->source)), "html"nulltrue);
  69.                 echo "\" alt=\" ";
  70.                 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"truetruetrue11)) ? (twig_get_attribute($this->env$this->source$context["column"], "column_related_image_alt", [], "any"falsefalsetrue11)) : (twig_get_attribute($this->env$this->source$context["column"], "column_name", [], "any"falsefalsetrue11)))), "html"nulltrue);
  71.                 echo " \">
  72.                     <div class=\"relation-ttl\">
  73.                         <p style=\"font-size: 16px;\">
  74.                             ";
  75.                 // line 14
  76.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["column"], "column_related_link_text", [], "any"falsefalsetrue14)) ? (twig_get_attribute($this->env$this->source$context["column"], "column_related_link_text", [], "any"falsefalsetrue14)) : (((twig_get_attribute($this->env$this->source$context["column"], "column_h1_tag", [], "any"falsefalsetrue14)) ? (twig_get_attribute($this->env$this->source$context["column"], "column_h1_tag", [], "any"falsefalsetrue14)) : (twig_get_attribute($this->env$this->source$context["column"], "column_name", [], "any"falsefalsetrue14))))), "html"nulltrue);
  77.                 echo "
  78.                         </p>
  79.                     </div>
  80.                 </div>
  81.             </a>
  82.         ";
  83.             }
  84.             $_parent $context['_parent'];
  85.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
  86.             $context array_intersect_key($context$_parent) + $_parent;
  87.             // line 20
  88.             echo "    </article>
  89. ";
  90.         }
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.     }
  96.     public function getTemplateName()
  97.     {
  98.         return "Block/lm_column_list.twig";
  99.     }
  100.     public function isTraitable()
  101.     {
  102.         return false;
  103.     }
  104.     public function getDebugInfo()
  105.     {
  106.         return array (  97 => 20,  85 => 14,  73 => 11,  67 => 9,  64 => 8,  61 => 7,  58 => 6,  55 => 5,  51 => 4,  47 => 2,  45 => 1,);
  107.     }
  108.     public function getSourceContext()
  109.     {
  110.         return new Source("{% if columnList is defined and columnList %}
  111.     <article id=\"relation-area\">
  112.         <h2 style=\" font-size: 16px; font-weight: 700; \">関連コラム</h2>
  113.         {% for column in columnList %}
  114.             {% set column_link_url =  column.uri %}
  115.             {% if column.column_custom_url is defined %}
  116.                 {% set column_link_url =  column.column_custom_url %}
  117.             {% endif %}
  118.             <a href=\"{{ column_link_url }}\">
  119.                 <div class=\"relation\">
  120.                     <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 }} \">
  121.                     <div class=\"relation-ttl\">
  122.                         <p style=\"font-size: 16px;\">
  123.                             {{  ( column.column_related_link_text ) ? column.column_related_link_text : ( column.column_h1_tag ) ? column.column_h1_tag : column.column_name }}
  124.                         </p>
  125.                     </div>
  126.                 </div>
  127.             </a>
  128.         {% endfor %}
  129.     </article>
  130. {% endif %}
  131. ""Block/lm_column_list.twig""/var/www/html/app/template/default/Block/lm_column_list.twig");
  132.     }
  133.     
  134.     public function checkSecurity()
  135.     {
  136.         static $tags = array("if" => 1"for" => 4"set" => 5);
  137.         static $filters = array("escape" => 9"display_text" => 11);
  138.         static $functions = array();
  139.         try {
  140.             $this->sandbox->checkSecurity(
  141.                 ['if''for''set'],
  142.                 ['escape''display_text'],
  143.                 []
  144.             );
  145.         } catch (SecurityError $e) {
  146.             $e->setSourceContext($this->source);
  147.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  148.                 $e->setTemplateLine($tags[$e->getTagName()]);
  149.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  150.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  151.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  152.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  153.             }
  154.             throw $e;
  155.         }
  156.     }
  157. }