var/cache/dev/twig/c1/c1be94b38d05fcc4853519b6740e0cec.php line 40

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. /* Case/detail.twig */
  14. class __TwigTemplate_41a3382dacdaa922ce35b280fc8b4719 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.             'main' => [$this'block_main'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 5
  31.         return "default_frame.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Case/detail.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Case/detail.twig"));
  40.         // line 7
  41.         $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"falsefalsetrue7), 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"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), ["/詳細" => ""]));
  42.         // line 8
  43.         $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"falsefalsetrue8), 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"falsefalsetrue8), 8$this->source))) . "の仕上がりをご紹介。");
  44.         // line 5
  45.         $this->parent $this->loadTemplate("default_frame.twig""Case/detail.twig"5);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 10
  53.     public function block_main($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  60.         // line 11
  61.         echo "    <div class=\"container\">
  62.         <!-- パンくずリスト -->
  63.         <nav aria-label=\"breadcrumb\" class=\"my-3\">
  64.             <ol class=\"breadcrumb\">
  65.                 <li class=\"breadcrumb-item\"><a href=\"";
  66.         // line 15
  67.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  68.         echo "\">ホーム</a></li>
  69.                 <li class=\"breadcrumb-item\"><a href=\"";
  70.         // line 16
  71.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("case");
  72.         echo "\">";
  73.         echo twig_escape_filter($this->envtwig_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"nulltrue);
  74.         echo "</a></li>
  75.                 <li class=\"breadcrumb-item\"><a href=\"";
  76.         // line 17
  77.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("case");
  78.         echo "?category=";
  79.         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"falsefalsetrue17), 17$this->source), "html"nulltrue);
  80.         echo "\">";
  81.         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"falsefalsetrue17), 17$this->source), "html"nulltrue);
  82.         echo "</a></li>
  83.                 <li class=\"breadcrumb-item active\" aria-current=\"page\">[NO.";
  84.         // line 18
  85.         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"falsefalsetrue18), 18$this->source), "html"nulltrue);
  86.         echo "] ";
  87.         echo twig_escape_filter($this->envtwig_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"falsefalsetrue18), 18$this->source)), "html"nulltrue);
  88.         echo "</li>
  89.             </ol>
  90.         </nav>
  91.         <div class=\"layout-2colmun\">
  92. ";
  93.         // line 22
  94.         echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env$context"Block/aside_others.twig");
  95.         echo "
  96.             <main class=\"main\">
  97.                 <h1 class=\"fw-bold mb-5\">[NO.";
  98.         // line 24
  99.         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"falsefalsetrue24), 24$this->source), "html"nulltrue);
  100.         echo "] ";
  101.         echo twig_escape_filter($this->envtwig_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"falsefalsetrue24), 24$this->source)), "html"nulltrue);
  102.         echo "</h1>
  103.                 <div class=\"row\">
  104.                     <div class=\"col-md-6 mb-3\">
  105.                         <img src=\"/icms/user_data/image/Voice1/";
  106.         // line 27
  107.         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"falsefalsetrue27), 27$this->source), "html"nulltrue);
  108.         echo "\" class=\"img-fluid\" alt=\"";
  109.         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"falsefalsetrue27), 27$this->source), "html"nulltrue);
  110.         echo "\" width=\"500\" height=\"500\">
  111.                     </div>
  112.                     <div class=\"col-md-6\">
  113.                         <div class=\"text-center text-md-start\">
  114.                             <img src=\"/icms/user_data/image/Voice1/";
  115.         // line 31
  116.         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"falsefalsetrue31), 31$this->source), "html"nulltrue);
  117.         echo "\" class=\"img-fluid border mb-3\" alt=\"";
  118.         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"falsefalsetrue31), 31$this->source), "html"nulltrue);
  119.         echo "\" width=\"309\" height=\"231\">
  120.                         </div>
  121. ";
  122.         // line 33
  123.         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"falsefalsetrue33)) {
  124.             // line 34
  125.             echo "                        <p>お客様より</p>
  126.                         <p>
  127. ";
  128.             // line 36
  129.             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"falsefalsetrue36), 36$this->source);
  130.             echo "
  131.                         </p>
  132. ";
  133.         }
  134.         // line 39
  135.         echo "                    </div>
  136.                 </div>
  137.                 <div class=\"border my-5\">
  138.                     <div class=\"row px-3 pt-3\">
  139.                         <p class=\"text-center fw-bold pt-3 _fs-4\">事例を絞り込む</p>
  140. ";
  141.         // line 44
  142.         $context['_parent'] = $context;
  143.         $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); })()));
  144.         foreach ($context['_seq'] as $context["_key"] => $context["CategoryData"]) {
  145.             // line 45
  146.             if (twig_in_filter(twig_get_attribute($this->env$this->source$context["CategoryData"], "id", [], "any"falsefalsetrue45), (isset($context["CheckCategory"]) || array_key_exists("CheckCategory"$context) ? $context["CheckCategory"] : (function () { throw new RuntimeError('Variable "CheckCategory" does not exist.'45$this->source); })()))) {
  147.                 // line 46
  148.                 echo "                        <div class=\"col-6 col-sm-4 col-md-3 mb-3\"><a href=\"";
  149.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("case");
  150.                 echo "?category=";
  151.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CategoryData"], "id", [], "any"falsefalsetrue46), 46$this->source), "html"nulltrue);
  152.                 echo "\" class=\"btn btn-outline-dark w-100 rounded-0 py-3\">";
  153.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["CategoryData"], "title", [], "any"falsefalsetrue46), 46$this->source), "html"nulltrue);
  154.                 echo "</a></div>
  155. ";
  156.             }
  157.         }
  158.         $_parent $context['_parent'];
  159.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['CategoryData'], $context['_parent'], $context['loop']);
  160.         $context array_intersect_key($context$_parent) + $_parent;
  161.         // line 49
  162.         echo "                    </div>
  163.                 </div>
  164.                 
  165.             </main>
  166.         </div>
  167.     </div>
  168. ";
  169.         
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171.         
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173.     }
  174.     public function getTemplateName()
  175.     {
  176.         return "Case/detail.twig";
  177.     }
  178.     public function isTraitable()
  179.     {
  180.         return false;
  181.     }
  182.     public function getDebugInfo()
  183.     {
  184.         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,);
  185.     }
  186.     public function getSourceContext()
  187.     {
  188.         return new Source("{#
  189. This file is part of EC-CUBE, Addition by INSPIRATION
  190. #}
  191. {% extends 'default_frame.twig' %}
  192. {% set subtitle = '[NO.' ~ CaseData.id ~ '] ' ~ CaseData.title|striptags ~ ' | ' ~ title|replace({'/詳細': ''}) %}
  193. {% set meta_description = 'ゴルフプリントの導入事例【' ~ CaseData.id ~ '】。' ~ CaseData.title|striptags ~ 'の仕上がりをご紹介。' %}
  194. {% block main %}
  195.     <div class=\"container\">
  196.         <!-- パンくずリスト -->
  197.         <nav aria-label=\"breadcrumb\" class=\"my-3\">
  198.             <ol class=\"breadcrumb\">
  199.                 <li class=\"breadcrumb-item\"><a href=\"{{ url('homepage') }}\">ホーム</a></li>
  200.                 <li class=\"breadcrumb-item\"><a href=\"{{ url('case') }}\">{{ title|replace({'/詳細': ''}) }}</a></li>
  201.                 <li class=\"breadcrumb-item\"><a href=\"{{ url('case') }}?category={{ CategoryData.id }}\">{{ CategoryData.title }}</a></li>
  202.                 <li class=\"breadcrumb-item active\" aria-current=\"page\">[NO.{{ CaseData.id }}] {{ CaseData.title|striptags }}</li>
  203.             </ol>
  204.         </nav>
  205.         <div class=\"layout-2colmun\">
  206. {{ include('Block/aside_others.twig') }}
  207.             <main class=\"main\">
  208.                 <h1 class=\"fw-bold mb-5\">[NO.{{ CaseData.id }}] {{ CaseData.title|striptags }}</h1>
  209.                 <div class=\"row\">
  210.                     <div class=\"col-md-6 mb-3\">
  211.                         <img src=\"/icms/user_data/image/Voice1/{{ CaseData.thumbnail_gazo }}\" class=\"img-fluid\" alt=\"{{ CaseData.title }}\" width=\"500\" height=\"500\">
  212.                     </div>
  213.                     <div class=\"col-md-6\">
  214.                         <div class=\"text-center text-md-start\">
  215.                             <img src=\"/icms/user_data/image/Voice1/{{ CaseData.main_image01 }}\" class=\"img-fluid border mb-3\" alt=\"{{ CaseData.title }}\" width=\"309\" height=\"231\">
  216.                         </div>
  217. {% if CaseData.comment %}
  218.                         <p>お客様より</p>
  219.                         <p>
  220. {{ CaseData.comment|raw }}
  221.                         </p>
  222. {% endif %}
  223.                     </div>
  224.                 </div>
  225.                 <div class=\"border my-5\">
  226.                     <div class=\"row px-3 pt-3\">
  227.                         <p class=\"text-center fw-bold pt-3 _fs-4\">事例を絞り込む</p>
  228. {% for CategoryData in CategoryDatas %}
  229. {% if CategoryData.id in CheckCategory %}
  230.                         <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>
  231. {% endif %}
  232. {% endfor %}
  233.                     </div>
  234.                 </div>
  235.                 
  236.             </main>
  237.         </div>
  238.     </div>
  239. {% endblock %}""Case/detail.twig""/home/insp/insp.sixcore.jp/public_html/app/template/default/Case/detail.twig");
  240.     }
  241.     
  242.     public function checkSecurity()
  243.     {
  244.         static $tags = array("set" => 7"if" => 33"for" => 44);
  245.         static $filters = array("striptags" => 7"replace" => 7"escape" => 16"raw" => 36);
  246.         static $functions = array("url" => 15"include" => 22);
  247.         try {
  248.             $this->sandbox->checkSecurity(
  249.                 ['set''if''for'],
  250.                 ['striptags''replace''escape''raw'],
  251.                 ['url''include']
  252.             );
  253.         } catch (SecurityError $e) {
  254.             $e->setSourceContext($this->source);
  255.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  256.                 $e->setTemplateLine($tags[$e->getTagName()]);
  257.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  258.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  259.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  260.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  261.             }
  262.             throw $e;
  263.         }
  264.     }
  265. }