<?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;
/* Faq/detail.twig */
class __TwigTemplate_f784d41d4b395e0452239b6f6c422c31 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'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", "Faq/detail.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Faq/detail.twig"));
// line 7
$context["subtitle"] = (($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["FaqData"]) || array_key_exists("FaqData", $context) ? $context["FaqData"] : (function () { throw new RuntimeError('Variable "FaqData" 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"] = ((("Q:" . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["FaqData"]) || array_key_exists("FaqData", $context) ? $context["FaqData"] : (function () { throw new RuntimeError('Variable "FaqData" does not exist.', 8, $this->source); })()), "title", [], "any", false, false, true, 8), 8, $this->source)) . "A:") . $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["FaqData"]) || array_key_exists("FaqData", $context) ? $context["FaqData"] : (function () { throw new RuntimeError('Variable "FaqData" does not exist.', 8, $this->source); })()), "comment", [], "any", false, false, true, 8), 8, $this->source));
// line 5
$this->parent = $this->loadTemplate("default_frame.twig", "Faq/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_javascript($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", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 13
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 14
echo " <div class=\"container\">
<!-- パンくずリスト -->
<nav aria-label=\"breadcrumb\" class=\"my-3\">
<ol class=\"breadcrumb\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 18
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">ホーム</a></li>
<li class=\"breadcrumb-item\"><a href=\"";
// line 19
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq");
echo "\">よくある質問</a></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">";
// line 20
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["FaqData"]) || array_key_exists("FaqData", $context) ? $context["FaqData"] : (function () { throw new RuntimeError('Variable "FaqData" does not exist.', 20, $this->source); })()), "title", [], "any", false, false, true, 20), 20, $this->source), "html", null, true);
echo "</li>
</ol>
</nav>
<div class=\"layout-2colmun\">
";
// line 24
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "Block/aside_others.twig");
echo "
<main class=\"main\">
<div class=\"card p-3 mb-5\">
<div class=\"card-body\">
<h1 class=\"card-title mt-0 fw-bold border-bottom mb-4 pb-3\">";
// line 28
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["FaqData"]) || array_key_exists("FaqData", $context) ? $context["FaqData"] : (function () { throw new RuntimeError('Variable "FaqData" does not exist.', 28, $this->source); })()), "title", [], "any", false, false, true, 28), 28, $this->source), "html", null, true);
echo "</h1>
<p class=\"card-text _fs-4\">";
// line 29
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["FaqData"]) || array_key_exists("FaqData", $context) ? $context["FaqData"] : (function () { throw new RuntimeError('Variable "FaqData" does not exist.', 29, $this->source); })()), "comment", [], "any", false, false, true, 29), 29, $this->source);
echo "</p>
</div>
</div>
";
// line 33
if ( !twig_test_empty((isset($context["RelationDatas"]) || array_key_exists("RelationDatas", $context) ? $context["RelationDatas"] : (function () { throw new RuntimeError('Variable "RelationDatas" does not exist.', 33, $this->source); })()))) {
// line 34
echo " <h2 class=\"fw-bold mb-3\">関連するFAQ</h2>
<div class=\"faq-list mb-5\">
";
// line 36
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["RelationDatas"]) || array_key_exists("RelationDatas", $context) ? $context["RelationDatas"] : (function () { throw new RuntimeError('Variable "RelationDatas" does not exist.', 36, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["RelationData"]) {
// line 37
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["RelationData"], "id", [], "any", false, false, true, 37)]), "html", null, true);
echo "\"><i class=\"icon-help\"></i> ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["RelationData"], "title", [], "any", false, false, true, 37), 37, $this->source), "html", null, true);
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelationData'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo " </div>
";
}
// line 41
echo "
<div class=\"text-center\">
<a href=\"";
// line 43
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq");
echo "\" class=\"btn btn-outline-dark btn-lg py-3\">よくある質問一覧に戻る</a>
</div>
</main>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Faq/detail.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 162 => 43, 158 => 41, 154 => 39, 143 => 37, 139 => 36, 135 => 34, 133 => 33, 126 => 29, 122 => 28, 115 => 24, 108 => 20, 104 => 19, 100 => 18, 94 => 14, 84 => 13, 66 => 10, 55 => 5, 53 => 8, 51 => 7, 38 => 5,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE, Addition by INSPIRATION
#}
{% extends 'default_frame.twig' %}
{% set subtitle = FaqData.title ~ ' | ' ~ title|replace({'/詳細': ''}) %}
{% set meta_description = 'Q:' ~ FaqData.title ~ 'A:' ~ FaqData.comment %}
{% block javascript %}
{% endblock javascript %}
{% 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('faq') }}\">よくある質問</a></li>
<li class=\"breadcrumb-item active\" aria-current=\"page\">{{ FaqData.title }}</li>
</ol>
</nav>
<div class=\"layout-2colmun\">
{{ include('Block/aside_others.twig') }}
<main class=\"main\">
<div class=\"card p-3 mb-5\">
<div class=\"card-body\">
<h1 class=\"card-title mt-0 fw-bold border-bottom mb-4 pb-3\">{{ FaqData.title }}</h1>
<p class=\"card-text _fs-4\">{{ FaqData.comment|raw }}</p>
</div>
</div>
{% if RelationDatas is not empty %}
<h2 class=\"fw-bold mb-3\">関連するFAQ</h2>
<div class=\"faq-list mb-5\">
{% for RelationData in RelationDatas %}
<a href=\"{{ url('faq_detail', {'id': RelationData.id}) }}\"><i class=\"icon-help\"></i> {{ RelationData.title }}</a>
{% endfor %}
</div>
{% endif %}
<div class=\"text-center\">
<a href=\"{{ url('faq') }}\" class=\"btn btn-outline-dark btn-lg py-3\">よくある質問一覧に戻る</a>
</div>
</main>
</div>
</div>
{% endblock %}
", "Faq/detail.twig", "/home/insp/insp.sixcore.jp/public_html/app/template/default/Faq/detail.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 7, "if" => 33, "for" => 36);
static $filters = array("replace" => 7, "escape" => 20, "raw" => 29);
static $functions = array("url" => 18, "include" => 24);
try {
$this->sandbox->checkSecurity(
['set', 'if', 'for'],
['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;
}
}
}