<?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_item_breadcrumb_addable_category.twig */
class __TwigTemplate_8e28b36a2e3bdfead96de842e0c41df6 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_item_breadcrumb_addable_category.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_item_breadcrumb_addable_category.twig"));
// line 1
if ((twig_get_attribute($this->env, $this->source, ($context["data"] ?? null), "goods_breadcrumb_category_name", [], "any", true, true, true, 1) && (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", false, false, true, 1) == 1))) {
// line 2
echo "<div class=\"breadcrumb_category\"><a href=\"";
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", false, false, true, 2), 2, $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, (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", false, false, true, 2), 2, $this->source)), "html", null, true);
echo "シリーズページへ</a></div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "Block/lm_item_breadcrumb_addable_category.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if data.goods_breadcrumb_category_name is defined and data.goods_breadcrumb_category_link == 1 %}
<div class=\"breadcrumb_category\"><a href=\"{{ data.goods_breadcrumb_category_url | display_text }}\">{{ data.goods_breadcrumb_category_name | display_text }}シリーズページへ</a></div>
{% endif %}", "Block/lm_item_breadcrumb_addable_category.twig", "/var/www/html/app/template/default/Block/lm_item_breadcrumb_addable_category.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1);
static $filters = array("escape" => 2, "display_text" => 2);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['if'],
['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;
}
}
}