<?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;
/* Case/detail.twig */
class __TwigTemplate_41a3382dacdaa922ce35b280fc8b4719 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 5
return "default_frame.twig";
}
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", "Case/detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Case/detail.twig"));
// line 7
$context["subtitle"] = ((((("[NO." . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 7, $this->source); })()), "id", [], "any", false, false, true, 7), 7, $this->source)) . "] ") . twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 7, $this->source); })()), "title", [], "any", false, false, true, 7), 7, $this->source))) . " | ") . twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 7, $this->source); })()), 7, $this->source), ["/詳細" => ""]));
// line 8
$context["meta_description"] = (((("ゴルフプリントの導入事例【" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 8, $this->source); })()), "id", [], "any", false, false, true, 8), 8, $this->source)) . "】。") . twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 8, $this->source); })()), "title", [], "any", false, false, true, 8), 8, $this->source))) . "の仕上がりをご紹介。");
// line 5
$this->parent = $this->loadTemplate("default_frame.twig", "Case/detail.twig", 5);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 10
public function block_main($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(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 11
echo " <div class=\"container\">
<!-- パンくずリスト -->
<nav aria-label=\"breadcrumb\" class=\"my-3\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 15
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">ホーム</a></li>
<li class=\"breadcrumb-item\"><a href=\"";
// line 16
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("case");
echo "\">";
echo twig_escape_filter($this->env, twig_replace_filter($this->sandbox->ensureToStringAllowed((isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 16, $this->source); })()), 16, $this->source), ["/詳細" => ""]), "html", null, true);
echo "</a></li>
<li class=\"breadcrumb-item\"><a href=\"";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("case");
echo "?category=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CategoryData"]) || array_key_exists("CategoryData", $context) ? $context["CategoryData"] : (function () { throw new RuntimeError('Variable "CategoryData" does not exist.', 17, $this->source); })()), "id", [], "any", false, false, true, 17), 17, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CategoryData"]) || array_key_exists("CategoryData", $context) ? $context["CategoryData"] : (function () { throw new RuntimeError('Variable "CategoryData" does not exist.', 17, $this->source); })()), "title", [], "any", false, false, true, 17), 17, $this->source), "html", null, true);
echo "</a></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">[NO.";
// line 18
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, true, 18), 18, $this->source), "html", null, true);
echo "] ";
echo twig_escape_filter($this->env, twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 18, $this->source); })()), "title", [], "any", false, false, true, 18), 18, $this->source)), "html", null, true);
echo "</li>
</ol>
</nav>
<div class=\"layout-2colmun\">
";
// line 22
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/aside_others.twig");
echo "
<main class=\"main\">
<h1 class=\"fw-bold mb-5\">[NO.";
// line 24
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 24, $this->source); })()), "id", [], "any", false, false, true, 24), 24, $this->source), "html", null, true);
echo "] ";
echo twig_escape_filter($this->env, twig_striptags($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 24, $this->source); })()), "title", [], "any", false, false, true, 24), 24, $this->source)), "html", null, true);
echo "</h1>
<div class=\"row\">
<div class=\"col-md-6 mb-3\">
<img src=\"/icms/user_data/image/Voice1/";
// line 27
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 27, $this->source); })()), "thumbnail_gazo", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
echo "\" class=\"img-fluid\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 27, $this->source); })()), "title", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
echo "\" width=\"500\" height=\"500\">
</div>
<div class=\"col-md-6\">
<div class=\"text-center text-md-start\">
<img src=\"/icms/user_data/image/Voice1/";
// line 31
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 31, $this->source); })()), "main_image01", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
echo "\" class=\"img-fluid border mb-3\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 31, $this->source); })()), "title", [], "any", false, false, true, 31), 31, $this->source), "html", null, true);
echo "\" width=\"309\" height=\"231\">
</div>
";
// line 33
if (twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 33, $this->source); })()), "comment", [], "any", false, false, true, 33)) {
// line 34
echo " <p>お客様より</p>
<p>
";
// line 36
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["CaseData"]) || array_key_exists("CaseData", $context) ? $context["CaseData"] : (function () { throw new RuntimeError('Variable "CaseData" does not exist.', 36, $this->source); })()), "comment", [], "any", false, false, true, 36), 36, $this->source);
echo "
</p>
";
}
// line 39
echo " </div>
</div>
<div class=\"border my-5\">
<div class=\"row px-3 pt-3\">
<p class=\"text-center fw-bold pt-3 _fs-4\">事例を絞り込む</p>
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["CategoryDatas"]) || array_key_exists("CategoryDatas", $context) ? $context["CategoryDatas"] : (function () { throw new RuntimeError('Variable "CategoryDatas" does not exist.', 44, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["CategoryData"]) {
// line 45
if (twig_in_filter(twig_get_attribute($this->env, $this->source, $context["CategoryData"], "id", [], "any", false, false, true, 45), (isset($context["CheckCategory"]) || array_key_exists("CheckCategory", $context) ? $context["CheckCategory"] : (function () { throw new RuntimeError('Variable "CheckCategory" does not exist.', 45, $this->source); })()))) {
// line 46
echo " <div class=\"col-6 col-sm-4 col-md-3 mb-3\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("case");
echo "?category=";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CategoryData"], "id", [], "any", false, false, true, 46), 46, $this->source), "html", null, true);
echo "\" class=\"btn btn-outline-dark w-100 rounded-0 py-3\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["CategoryData"], "title", [], "any", false, false, true, 46), 46, $this->source), "html", null, true);
echo "</a></div>
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " </div>
</div>
</main>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Case/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 176 => 49, 162 => 46, 160 => 45, 156 => 44, 149 => 39, 143 => 36, 139 => 34, 137 => 33, 130 => 31, 121 => 27, 113 => 24, 108 => 22, 99 => 18, 91 => 17, 85 => 16, 81 => 15, 75 => 11, 65 => 10, 54 => 5, 52 => 8, 50 => 7, 37 => 5,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE, Addition by INSPIRATION
#}
{% extends 'default_frame.twig' %}
{% set subtitle = '[NO.' ~ CaseData.id ~ '] ' ~ CaseData.title|striptags ~ ' | ' ~ title|replace({'/詳細': ''}) %}
{% set meta_description = 'ゴルフプリントの導入事例【' ~ CaseData.id ~ '】。' ~ CaseData.title|striptags ~ 'の仕上がりをご紹介。' %}
{% block main %}
<div class=\"container\">
<!-- パンくずリスト -->
<nav aria-label=\"breadcrumb\" class=\"my-3\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"{{ url('homepage') }}\">ホーム</a></li>
<li class=\"breadcrumb-item\"><a href=\"{{ url('case') }}\">{{ title|replace({'/詳細': ''}) }}</a></li>
<li class=\"breadcrumb-item\"><a href=\"{{ url('case') }}?category={{ CategoryData.id }}\">{{ CategoryData.title }}</a></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">[NO.{{ CaseData.id }}] {{ CaseData.title|striptags }}</li>
</ol>
</nav>
<div class=\"layout-2colmun\">
{{ include('Block/aside_others.twig') }}
<main class=\"main\">
<h1 class=\"fw-bold mb-5\">[NO.{{ CaseData.id }}] {{ CaseData.title|striptags }}</h1>
<div class=\"row\">
<div class=\"col-md-6 mb-3\">
<img src=\"/icms/user_data/image/Voice1/{{ CaseData.thumbnail_gazo }}\" class=\"img-fluid\" alt=\"{{ CaseData.title }}\" width=\"500\" height=\"500\">
</div>
<div class=\"col-md-6\">
<div class=\"text-center text-md-start\">
<img src=\"/icms/user_data/image/Voice1/{{ CaseData.main_image01 }}\" class=\"img-fluid border mb-3\" alt=\"{{ CaseData.title }}\" width=\"309\" height=\"231\">
</div>
{% if CaseData.comment %}
<p>お客様より</p>
<p>
{{ CaseData.comment|raw }}
</p>
{% endif %}
</div>
</div>
<div class=\"border my-5\">
<div class=\"row px-3 pt-3\">
<p class=\"text-center fw-bold pt-3 _fs-4\">事例を絞り込む</p>
{% for CategoryData in CategoryDatas %}
{% if CategoryData.id in CheckCategory %}
<div class=\"col-6 col-sm-4 col-md-3 mb-3\"><a href=\"{{ url('case') }}?category={{ CategoryData.id }}\" class=\"btn btn-outline-dark w-100 rounded-0 py-3\">{{ CategoryData.title }}</a></div>
{% endif %}
{% endfor %}
</div>
</div>
</main>
</div>
</div>
{% endblock %}", "Case/detail.twig", "/home/insp/insp.sixcore.jp/public_html/app/template/default/Case/detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 7, "if" => 33, "for" => 44);
static $filters = array("striptags" => 7, "replace" => 7, "escape" => 16, "raw" => 36);
static $functions = array("url" => 15, "include" => 22);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['striptags', 'replace', 'escape', 'raw'],
['url', 'include']
);
} 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;
}
}
}