var/cache/dev/twig/7a/7a197a0ffbef0300daa492ebd2fdaa9f.php line 56

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. /* Faq/detail.twig */
  14. class __TwigTemplate_f784d41d4b395e0452239b6f6c422c31 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->blocks = [
  23.             'javascript' => [$this'block_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 5
  32.         return "default_frame.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Faq/detail.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Faq/detail.twig"));
  41.         // line 7
  42.         $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"falsefalsetrue7), 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), ["/詳細" => ""]));
  43.         // line 8
  44.         $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"falsefalsetrue8), 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"falsefalsetrue8), 8$this->source));
  45.         // line 5
  46.         $this->parent $this->loadTemplate("default_frame.twig""Faq/detail.twig"5);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 10
  54.     public function block_javascript($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 13
  67.     public function block_main($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  74.         // line 14
  75.         echo "    <div class=\"container\">
  76.         <!-- パンくずリスト -->
  77.         <nav aria-label=\"breadcrumb\" class=\"my-3\">
  78.             <ol class=\"breadcrumb\">
  79.                 <li class=\"breadcrumb-item\"><a href=\"";
  80.         // line 18
  81.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  82.         echo "\">ホーム</a></li>
  83.                 <li class=\"breadcrumb-item\"><a href=\"";
  84.         // line 19
  85.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq");
  86.         echo "\">よくある質問</a></li>
  87.                 <li class=\"breadcrumb-item active\" aria-current=\"page\">";
  88.         // line 20
  89.         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"falsefalsetrue20), 20$this->source), "html"nulltrue);
  90.         echo "</li>
  91.             </ol>
  92.         </nav>
  93.         <div class=\"layout-2colmun\">
  94. ";
  95.         // line 24
  96.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/aside_others.twig");
  97.         echo "
  98.             <main class=\"main\">
  99.                 <div class=\"card p-3 mb-5\">
  100.                     <div class=\"card-body\">
  101.                         <h1 class=\"card-title mt-0 fw-bold border-bottom mb-4 pb-3\">";
  102.         // line 28
  103.         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"falsefalsetrue28), 28$this->source), "html"nulltrue);
  104.         echo "</h1>
  105.                         <p class=\"card-text _fs-4\">";
  106.         // line 29
  107.         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"falsefalsetrue29), 29$this->source);
  108.         echo "</p>
  109.                     </div>
  110.                 </div>
  111. ";
  112.         // line 33
  113.         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); })()))) {
  114.             // line 34
  115.             echo "                <h2 class=\"fw-bold mb-3\">関連するFAQ</h2>
  116.                 <div class=\"faq-list mb-5\">
  117. ";
  118.             // line 36
  119.             $context['_parent'] = $context;
  120.             $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); })()));
  121.             foreach ($context['_seq'] as $context["_key"] => $context["RelationData"]) {
  122.                 // line 37
  123.                 echo "                    <a href=\"";
  124.                 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"falsefalsetrue37)]), "html"nulltrue);
  125.                 echo "\"><i class=\"icon-help\"></i> ";
  126.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["RelationData"], "title", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  127.                 echo "</a>
  128. ";
  129.             }
  130.             $_parent $context['_parent'];
  131.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['RelationData'], $context['_parent'], $context['loop']);
  132.             $context array_intersect_key($context$_parent) + $_parent;
  133.             // line 39
  134.             echo "                </div>
  135. ";
  136.         }
  137.         // line 41
  138.         echo "
  139.                 <div class=\"text-center\">
  140.                     <a href=\"";
  141.         // line 43
  142.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq");
  143.         echo "\" class=\"btn btn-outline-dark btn-lg py-3\">よくある質問一覧に戻る</a>
  144.                 </div>
  145.             </main>
  146.         </div>
  147.     </div>
  148. ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.     }
  154.     public function getTemplateName()
  155.     {
  156.         return "Faq/detail.twig";
  157.     }
  158.     public function isTraitable()
  159.     {
  160.         return false;
  161.     }
  162.     public function getDebugInfo()
  163.     {
  164.         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,);
  165.     }
  166.     public function getSourceContext()
  167.     {
  168.         return new Source("{#
  169. This file is part of EC-CUBE, Addition by INSPIRATION
  170. #}
  171. {% extends 'default_frame.twig' %}
  172. {% set subtitle = FaqData.title ~ ' | ' ~ title|replace({'/詳細': ''}) %}
  173. {% set meta_description = 'Q:' ~ FaqData.title ~ 'A:' ~ FaqData.comment %}
  174. {% block javascript %}
  175. {% endblock javascript %}
  176. {% block main %}
  177.     <div class=\"container\">
  178.         <!-- パンくずリスト -->
  179.         <nav aria-label=\"breadcrumb\" class=\"my-3\">
  180.             <ol class=\"breadcrumb\">
  181.                 <li class=\"breadcrumb-item\"><a href=\"{{ url('homepage') }}\">ホーム</a></li>
  182.                 <li class=\"breadcrumb-item\"><a href=\"{{ url('faq') }}\">よくある質問</a></li>
  183.                 <li class=\"breadcrumb-item active\" aria-current=\"page\">{{ FaqData.title }}</li>
  184.             </ol>
  185.         </nav>
  186.         <div class=\"layout-2colmun\">
  187. {{ include('Block/aside_others.twig') }}
  188.             <main class=\"main\">
  189.                 <div class=\"card p-3 mb-5\">
  190.                     <div class=\"card-body\">
  191.                         <h1 class=\"card-title mt-0 fw-bold border-bottom mb-4 pb-3\">{{ FaqData.title }}</h1>
  192.                         <p class=\"card-text _fs-4\">{{ FaqData.comment|raw }}</p>
  193.                     </div>
  194.                 </div>
  195. {% if RelationDatas is not empty %}
  196.                 <h2 class=\"fw-bold mb-3\">関連するFAQ</h2>
  197.                 <div class=\"faq-list mb-5\">
  198. {% for RelationData in RelationDatas %}
  199.                     <a href=\"{{ url('faq_detail', {'id': RelationData.id}) }}\"><i class=\"icon-help\"></i> {{ RelationData.title }}</a>
  200. {% endfor %}
  201.                 </div>
  202. {% endif %}
  203.                 <div class=\"text-center\">
  204.                     <a href=\"{{ url('faq') }}\" class=\"btn btn-outline-dark btn-lg py-3\">よくある質問一覧に戻る</a>
  205.                 </div>
  206.             </main>
  207.         </div>
  208.     </div>
  209. {% endblock %}
  210. ""Faq/detail.twig""/home/insp/insp.sixcore.jp/public_html/app/template/default/Faq/detail.twig");
  211.     }
  212.     
  213.     public function checkSecurity()
  214.     {
  215.         static $tags = array("set" => 7"if" => 33"for" => 36);
  216.         static $filters = array("replace" => 7"escape" => 20"raw" => 29);
  217.         static $functions = array("url" => 18"include" => 24);
  218.         try {
  219.             $this->sandbox->checkSecurity(
  220.                 ['set''if''for'],
  221.                 ['replace''escape''raw'],
  222.                 ['url''include']
  223.             );
  224.         } catch (SecurityError $e) {
  225.             $e->setSourceContext($this->source);
  226.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  227.                 $e->setTemplateLine($tags[$e->getTagName()]);
  228.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  229.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  230.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  231.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  232.             }
  233.             throw $e;
  234.         }
  235.     }
  236. }