var/cache/dev/twig/1c/1c01933ff87e816b4f9561d02723643c.php line 51

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/index.twig */
  14. class __TwigTemplate_072661120ffa3c770751466b491794c1 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/index.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/index.twig"));
  41.         $this->parent $this->loadTemplate("default_frame.twig""Faq/index.twig"5);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 7
  49.     public function block_javascript($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascript"));
  56.         // line 8
  57.         echo "<script>
  58.     // 検索ボタンがクリックされたときに、検索結果ページに遷移
  59.     function redirectToSearchPage() {
  60.         const searchQuery = document.getElementById('search-box').value.trim();
  61.         // 検索ワードが入力されていない場合は遷移しない
  62.         if (searchQuery !== '') {
  63.             window.location.href = `faq/result?query=\${encodeURIComponent(searchQuery)}`;
  64.         } else {
  65.             alert('検索ワードを入力してください');
  66.         }
  67.     }
  68. </script>
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 23
  76.     public function block_main($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  83.         // line 24
  84.         echo "    <div class=\"container\">
  85.         <!-- パンくずリスト -->
  86.         <nav aria-label=\"breadcrumb\" class=\"my-3\">
  87.             <ol class=\"breadcrumb\">
  88.                 <li class=\"breadcrumb-item\"><a href=\"";
  89.         // line 28
  90.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  91.         echo "\">ホーム</a></li>
  92.                 <li class=\"breadcrumb-item active\" aria-current=\"page\">よくある質問</li>
  93.             </ol>
  94.         </nav>
  95.         <div class=\"layout-2colmun\">
  96. ";
  97.         // line 33
  98.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/aside_others.twig");
  99.         echo "
  100.             <main class=\"main\">
  101.                 <h1 class=\"fw-bold mb-5\">よくある質問</h1>
  102.                 <div class=\"_bg-gray p-3 p-md-5 mb-5\">
  103.                     <div class=\"fw-bold mb-3 _fs-4\">キーワード検索</div>
  104.                     <div class=\"input-group mb-3\">
  105.                         <input type=\"text\" id=\"search-box\" class=\"form-control form-control-lg\" placeholder=\"質問を検索...\" aria-label=\"検索\">
  106.                         <button id=\"search-button\" class=\"btn btn-primary btn-lg\" onclick=\"redirectToSearchPage()\">検索</button>
  107.                     </div>
  108.                 </div>
  109.                 <h2 class=\"fw-bold mb-3\">閲覧の多いFAQ</h2>
  110.                 <div class=\"faq-list mb-5\">
  111.                     <a href=\"";
  112.         // line 45
  113.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_detail", ["id" => 6]);
  114.         echo "\"><i class=\"icon-help\"></i> すべてのボールに違う柄を印刷したい場合は?</a>
  115.                     <a href=\"";
  116.         // line 46
  117.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_detail", ["id" => 5]);
  118.         echo "\"><i class=\"icon-help\"></i> プリントボールのキャンセル・返品はできますか?</a>
  119.                     <a href=\"";
  120.         // line 47
  121.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_detail", ["id" => 9]);
  122.         echo "\"><i class=\"icon-help\"></i> なるべく大きく印刷して欲しいのですが。</a>
  123.                     <a href=\"";
  124.         // line 48
  125.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_detail", ["id" => 14]);
  126.         echo "\"><i class=\"icon-help\"></i> いつ届きますか?</a>
  127.                     <a href=\"";
  128.         // line 49
  129.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_detail", ["id" => 4]);
  130.         echo "\"><i class=\"icon-help\"></i> 領収書の発行はできますか?</a>
  131.                 </div>
  132. ";
  133.         // line 51
  134.         if ( !twig_test_empty((isset($context["CategoryDatas"]) || array_key_exists("CategoryDatas"$context) ? $context["CategoryDatas"] : (function () { throw new RuntimeError('Variable "CategoryDatas" does not exist.'51$this->source); })()))) {
  135.             // line 52
  136.             echo "                <h3 class=\"fw-bold mb-3\">よくある質問のカテゴリー一覧</h3>
  137.                 <div class=\"border border-3 p-3 p-md-5 d-flex\">
  138.                     <div class=\"row\">
  139. ";
  140.             // line 55
  141.             $context['_parent'] = $context;
  142.             $context['_seq'] = twig_ensure_traversable((isset($context["CategoryDatas"]) || array_key_exists("CategoryDatas"$context) ? $context["CategoryDatas"] : (function () { throw new RuntimeError('Variable "CategoryDatas" does not exist.'55$this->source); })()));
  143.             foreach ($context['_seq'] as $context["_key"] => $context["CategoryData"]) {
  144.                 // line 56
  145.                 echo "                        <div class=\"col-lg-6 col-xl-4 mb-3\"><a href=\"";
  146.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("faq_category", ["id" => twig_get_attribute($this->env$this->source$context["CategoryData"], "id", [], "any"falsefalsetrue56)]), "html"nulltrue);
  147.                 echo "\" class=\"btn btn-lg btn-outline-dark py-3 w-100\"><i class=\"icon-arrow_circle_right\"></i> ";
  148.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CategoryData"], "title", [], "any"falsefalsetrue56), 56$this->source), "html"nulltrue);
  149.                 echo "</a></div>
  150. ";
  151.             }
  152.             $_parent $context['_parent'];
  153.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryData'], $context['_parent'], $context['loop']);
  154.             $context array_intersect_key($context$_parent) + $_parent;
  155.             // line 58
  156.             echo "                    </div>
  157.                 </div>
  158. ";
  159.         }
  160.         // line 61
  161.         echo "            </main>
  162.         </div>
  163.     </div>
  164. ";
  165.         
  166.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  167.         
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  169.     }
  170.     public function getTemplateName()
  171.     {
  172.         return "Faq/index.twig";
  173.     }
  174.     public function isTraitable()
  175.     {
  176.         return false;
  177.     }
  178.     public function getDebugInfo()
  179.     {
  180.         return array (  181 => 61,  176 => 58,  165 => 56,  161 => 55,  156 => 52,  154 => 51,  149 => 49,  145 => 48,  141 => 47,  137 => 46,  133 => 45,  118 => 33,  110 => 28,  104 => 24,  94 => 23,  71 => 8,  61 => 7,  38 => 5,);
  181.     }
  182.     public function getSourceContext()
  183.     {
  184.         return new Source("{#
  185. This file is part of EC-CUBE, Addition by INSPIRATION
  186. #}
  187. {% extends 'default_frame.twig' %}
  188. {% block javascript %}
  189. <script>
  190.     // 検索ボタンがクリックされたときに、検索結果ページに遷移
  191.     function redirectToSearchPage() {
  192.         const searchQuery = document.getElementById('search-box').value.trim();
  193.         // 検索ワードが入力されていない場合は遷移しない
  194.         if (searchQuery !== '') {
  195.             window.location.href = `faq/result?query=\${encodeURIComponent(searchQuery)}`;
  196.         } else {
  197.             alert('検索ワードを入力してください');
  198.         }
  199.     }
  200. </script>
  201. {% endblock javascript %}
  202. {% block main %}
  203.     <div class=\"container\">
  204.         <!-- パンくずリスト -->
  205.         <nav aria-label=\"breadcrumb\" class=\"my-3\">
  206.             <ol class=\"breadcrumb\">
  207.                 <li class=\"breadcrumb-item\"><a href=\"{{ url('homepage') }}\">ホーム</a></li>
  208.                 <li class=\"breadcrumb-item active\" aria-current=\"page\">よくある質問</li>
  209.             </ol>
  210.         </nav>
  211.         <div class=\"layout-2colmun\">
  212. {{ include('Block/aside_others.twig') }}
  213.             <main class=\"main\">
  214.                 <h1 class=\"fw-bold mb-5\">よくある質問</h1>
  215.                 <div class=\"_bg-gray p-3 p-md-5 mb-5\">
  216.                     <div class=\"fw-bold mb-3 _fs-4\">キーワード検索</div>
  217.                     <div class=\"input-group mb-3\">
  218.                         <input type=\"text\" id=\"search-box\" class=\"form-control form-control-lg\" placeholder=\"質問を検索...\" aria-label=\"検索\">
  219.                         <button id=\"search-button\" class=\"btn btn-primary btn-lg\" onclick=\"redirectToSearchPage()\">検索</button>
  220.                     </div>
  221.                 </div>
  222.                 <h2 class=\"fw-bold mb-3\">閲覧の多いFAQ</h2>
  223.                 <div class=\"faq-list mb-5\">
  224.                     <a href=\"{{ url('faq_detail', {'id': 6}) }}\"><i class=\"icon-help\"></i> すべてのボールに違う柄を印刷したい場合は?</a>
  225.                     <a href=\"{{ url('faq_detail', {'id': 5}) }}\"><i class=\"icon-help\"></i> プリントボールのキャンセル・返品はできますか?</a>
  226.                     <a href=\"{{ url('faq_detail', {'id': 9}) }}\"><i class=\"icon-help\"></i> なるべく大きく印刷して欲しいのですが。</a>
  227.                     <a href=\"{{ url('faq_detail', {'id': 14}) }}\"><i class=\"icon-help\"></i> いつ届きますか?</a>
  228.                     <a href=\"{{ url('faq_detail', {'id': 4}) }}\"><i class=\"icon-help\"></i> 領収書の発行はできますか?</a>
  229.                 </div>
  230. {% if CategoryDatas is not empty %}
  231.                 <h3 class=\"fw-bold mb-3\">よくある質問のカテゴリー一覧</h3>
  232.                 <div class=\"border border-3 p-3 p-md-5 d-flex\">
  233.                     <div class=\"row\">
  234. {% for CategoryData in CategoryDatas %}
  235.                         <div class=\"col-lg-6 col-xl-4 mb-3\"><a href=\"{{ url('faq_category', {'id': CategoryData.id}) }}\" class=\"btn btn-lg btn-outline-dark py-3 w-100\"><i class=\"icon-arrow_circle_right\"></i> {{ CategoryData.title }}</a></div>
  236. {% endfor %}
  237.                     </div>
  238.                 </div>
  239. {% endif %}
  240.             </main>
  241.         </div>
  242.     </div>
  243. {% endblock %}
  244. ""Faq/index.twig""/home/insp/insp.sixcore.jp/public_html/app/template/default/Faq/index.twig");
  245.     }
  246.     
  247.     public function checkSecurity()
  248.     {
  249.         static $tags = array("if" => 51"for" => 55);
  250.         static $filters = array("escape" => 56);
  251.         static $functions = array("url" => 28"include" => 33);
  252.         try {
  253.             $this->sandbox->checkSecurity(
  254.                 ['if''for'],
  255.                 ['escape'],
  256.                 ['url''include']
  257.             );
  258.         } catch (SecurityError $e) {
  259.             $e->setSourceContext($this->source);
  260.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  261.                 $e->setTemplateLine($tags[$e->getTagName()]);
  262.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  263.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  264.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  265.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  266.             }
  267.             throw $e;
  268.         }
  269.     }
  270. }