var/cache/dev/twig/fd/fd0c55289118b5cbd9ace8851559d123.php line 48

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_item_breadcrumb_addable_category.twig */
  14. class __TwigTemplate_8e28b36a2e3bdfead96de842e0c41df6 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_item_breadcrumb_addable_category.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_item_breadcrumb_addable_category.twig"));
  35.         // line 1
  36.         if ((twig_get_attribute($this->env$this->source, ($context["data"] ?? null), "goods_breadcrumb_category_name", [], "any"truetruetrue1) && (twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'1$this->source); })()), "goods_breadcrumb_category_link", [], "any"falsefalsetrue1) == 1))) {
  37.             // line 2
  38.             echo "<div class=\"breadcrumb_category\"><a href=\"";
  39.             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'2$this->source); })()), "goods_breadcrumb_category_url", [], "any"falsefalsetrue2), 2$this->source)), "html"nulltrue);
  40.             echo "\">";
  41.             echo twig_escape_filter($this->env$this->extensions['Customize\Twig\Extension\CustomExtension']->displayText($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'2$this->source); })()), "goods_breadcrumb_category_name", [], "any"falsefalsetrue2), 2$this->source)), "html"nulltrue);
  42.             echo "シリーズページへ</a></div>
  43. ";
  44.         }
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     public function getTemplateName()
  51.     {
  52.         return "Block/lm_item_breadcrumb_addable_category.twig";
  53.     }
  54.     public function isTraitable()
  55.     {
  56.         return false;
  57.     }
  58.     public function getDebugInfo()
  59.     {
  60.         return array (  47 => 2,  45 => 1,);
  61.     }
  62.     public function getSourceContext()
  63.     {
  64.         return new Source("{% if data.goods_breadcrumb_category_name is defined and data.goods_breadcrumb_category_link == 1 %}
  65. <div class=\"breadcrumb_category\"><a href=\"{{ data.goods_breadcrumb_category_url | display_text }}\">{{ data.goods_breadcrumb_category_name | display_text }}シリーズページへ</a></div>
  66. {% endif %}""Block/lm_item_breadcrumb_addable_category.twig""/var/www/html/app/template/default/Block/lm_item_breadcrumb_addable_category.twig");
  67.     }
  68.     
  69.     public function checkSecurity()
  70.     {
  71.         static $tags = array("if" => 1);
  72.         static $filters = array("escape" => 2"display_text" => 2);
  73.         static $functions = array();
  74.         try {
  75.             $this->sandbox->checkSecurity(
  76.                 ['if'],
  77.                 ['escape''display_text'],
  78.                 []
  79.             );
  80.         } catch (SecurityError $e) {
  81.             $e->setSourceContext($this->source);
  82.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  83.                 $e->setTemplateLine($tags[$e->getTagName()]);
  84.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  85.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  86.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  87.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  88.             }
  89.             throw $e;
  90.         }
  91.     }
  92. }