var/cache/dev/twig/ba/ba5fd6ced5ab2ef384782aa94a4ab743.php line 105

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. /* Block/customize_header.twig */
  14. class __TwigTemplate_33e1c6e25b02461b589eb02d450e76bb 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/customize_header.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/customize_header.twig"));
  35.         // line 1
  36.         echo "<div class=\"customize_header_area\">
  37. \t<div class=\"customize_header\">
  38.         <div class=\"customize_header_left\">
  39.             <a href=\"";
  40.         // line 4
  41.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  42.         echo "\">
  43.                 <span>";
  44.         // line 5
  45.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.title"), "html"nulltrue);
  46.         echo "</span>
  47.                 <img id=\"customizeTopImage\" src=\"";
  48.         // line 6
  49.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/会員限定.png"), "html"nulltrue);
  50.         echo "\" alt=\"";
  51.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.image"), "html"nulltrue);
  52.         echo "\" />
  53.             </a>
  54.         </div>
  55.         <div class=\"customize_header_right\">
  56.             <a href=\"";
  57.         // line 10
  58.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("contact");
  59.         echo "\">
  60.                 <i class=\"fa-solid fa-envelope\"></i>
  61.                 <span>
  62.                     ";
  63.         // line 13
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.contact"), "html"nulltrue);
  65.         echo "
  66.                 </span>
  67.             </a>
  68.             <span>|</span>
  69.             <span>
  70.                 <a href=\"";
  71.         // line 18
  72.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/pdf/UserGuideforBuyers.pdf"), "html"nulltrue);
  73.         echo "\"
  74.                     target=\"_blank\"
  75.                     rel=\"noopener\">
  76.                     ";
  77.         // line 21
  78.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.guide"), "html"nulltrue);
  79.         echo "
  80.                 </a>
  81.             </span>
  82.         </div>
  83. \t</div>
  84.     <div class=\"customize_header_search_area\">
  85.         <div class=\"customize_header_sublogo\">
  86.             <img id=\"customizeSubLogo\" src=\"";
  87.         // line 28
  88.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/KTM_logo.png"), "html"nulltrue);
  89.         echo "\" alt=\"";
  90.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.sublogo"), "html"nulltrue);
  91.         echo "\" />
  92.         </div>
  93.         <div class=\"customize_header_search\">
  94.             ";
  95.         // line 31
  96.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customize_block_search_product"));
  97.         echo "
  98.         </div>
  99.         <div class=\"customize_header_logininfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"マイページ\">
  100.             <a href=\"";
  101.         // line 34
  102.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
  103.         echo "\">
  104.             ";
  105.         // line 36
  106.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'36$this->source); })()), "user", [], "any"falsefalsetrue36)) {
  107.             // line 37
  108.             echo "                <span>";
  109.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.greeting"), "html"nulltrue);
  110.             echo " ";
  111.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'37$this->source); })()), "user", [], "any"falsefalsetrue37), "company_name", [], "any"falsefalsetrue37), 37$this->source), "html"nulltrue);
  112.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.honor"), "html"nulltrue);
  113.             echo "</span>
  114.             ";
  115.         } else {
  116.             // line 39
  117.             echo "                <span>";
  118.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.greeting"), "html"nulltrue);
  119.             echo " ";
  120.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.guest"), "html"nulltrue);
  121.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("customize.header.honor"), "html"nulltrue);
  122.             echo "</span>
  123.             ";
  124.         }
  125.         // line 41
  126.         echo "                <span class=\"customize_divider\">|</span>
  127.                 <i class=\"fa-regular fa-circle-user fa-2x\"></i>
  128.             </a>
  129.         </div>
  130.         ";
  131.         // line 45
  132.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'45$this->source); })()), "user", [], "any"falsefalsetrue45)) {
  133.             // line 46
  134.             echo "            <div class=\"customize_header_logoutinfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"ログアウト\">
  135.                 <a href=\"";
  136.             // line 47
  137.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
  138.             echo "\">
  139.                     <i class=\"fa-solid fa-right-from-bracket fa-2x\"></i>
  140.                 </a>
  141.             </div>
  142.         ";
  143.         }
  144.         // line 52
  145.         echo "        <div class=\"customize_header_favorite\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"お気に入り\">
  146.             <a href=\"";
  147.         // line 53
  148.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
  149.         echo "\">
  150.                 <i class=\"fa-brands fa-gratipay fa-2x\"></i>
  151.             </a>
  152.         </div>
  153.         <div class=\"customize_header_cart\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"カート\">
  154.             <a href=\"";
  155.         // line 58
  156.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("cart");
  157.         echo "\">
  158.                 <i class=\"fa fa-shopping-cart fa-2x\"></i>
  159.             </a>
  160.         </div>
  161.     </div>
  162. </div>
  163. <script>
  164. \$(function () {
  165.     \$('[data-toggle=\"tooltip\"]').tooltip({
  166.         delay: { \"show\": 0, \"hide\": 0 }
  167.     });
  168. });
  169. </script>";
  170.         
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172.         
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174.     }
  175.     public function getTemplateName()
  176.     {
  177.         return "Block/customize_header.twig";
  178.     }
  179.     public function isTraitable()
  180.     {
  181.         return false;
  182.     }
  183.     public function getDebugInfo()
  184.     {
  185.         return array (  166 => 58,  158 => 53,  155 => 52,  147 => 47,  144 => 46,  142 => 45,  136 => 41,  127 => 39,  118 => 37,  116 => 36,  111 => 34,  105 => 31,  97 => 28,  87 => 21,  81 => 18,  73 => 13,  67 => 10,  58 => 6,  54 => 5,  50 => 4,  45 => 1,);
  186.     }
  187.     public function getSourceContext()
  188.     {
  189.         return new Source("<div class=\"customize_header_area\">
  190. \t<div class=\"customize_header\">
  191.         <div class=\"customize_header_left\">
  192.             <a href=\"{{ url('homepage') }}\">
  193.                 <span>{{ 'customize.header.title'|trans }}</span>
  194.                 <img id=\"customizeTopImage\" src=\"{{ asset('assets/img/common/会員限定.png') }}\" alt=\"{{ 'customize.header.image'|trans }}\" />
  195.             </a>
  196.         </div>
  197.         <div class=\"customize_header_right\">
  198.             <a href=\"{{ url('contact') }}\">
  199.                 <i class=\"fa-solid fa-envelope\"></i>
  200.                 <span>
  201.                     {{ 'customize.header.contact'|trans }}
  202.                 </span>
  203.             </a>
  204.             <span>|</span>
  205.             <span>
  206.                 <a href=\"{{ asset('assets/pdf/UserGuideforBuyers.pdf') }}\"
  207.                     target=\"_blank\"
  208.                     rel=\"noopener\">
  209.                     {{ 'customize.header.guide'|trans }}
  210.                 </a>
  211.             </span>
  212.         </div>
  213. \t</div>
  214.     <div class=\"customize_header_search_area\">
  215.         <div class=\"customize_header_sublogo\">
  216.             <img id=\"customizeSubLogo\" src=\"{{ asset('assets/img/common/KTM_logo.png') }}\" alt=\"{{ 'customize.header.sublogo'|trans }}\" />
  217.         </div>
  218.         <div class=\"customize_header_search\">
  219.             {{ render(path('customize_block_search_product')) }}
  220.         </div>
  221.         <div class=\"customize_header_logininfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"マイページ\">
  222.             <a href=\"{{ url('mypage') }}\">
  223.             {% if app.user %}
  224.                 <span>{{ 'customize.header.greeting'|trans }} {{ app.user.company_name }}{{ 'customize.header.honor'|trans }}</span>
  225.             {% else %}
  226.                 <span>{{ 'customize.header.greeting'|trans }} {{ 'customize.header.guest'|trans }}{{ 'customize.header.honor'|trans }}</span>
  227.             {% endif %}
  228.                 <span class=\"customize_divider\">|</span>
  229.                 <i class=\"fa-regular fa-circle-user fa-2x\"></i>
  230.             </a>
  231.         </div>
  232.         {% if app.user %}
  233.             <div class=\"customize_header_logoutinfo\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"ログアウト\">
  234.                 <a href=\"{{ url('logout') }}\">
  235.                     <i class=\"fa-solid fa-right-from-bracket fa-2x\"></i>
  236.                 </a>
  237.             </div>
  238.         {% endif %}
  239.         <div class=\"customize_header_favorite\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"お気に入り\">
  240.             <a href=\"{{ url('mypage_favorite') }}\">
  241.                 <i class=\"fa-brands fa-gratipay fa-2x\"></i>
  242.             </a>
  243.         </div>
  244.         <div class=\"customize_header_cart\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"カート\">
  245.             <a href=\"{{ url('cart') }}\">
  246.                 <i class=\"fa fa-shopping-cart fa-2x\"></i>
  247.             </a>
  248.         </div>
  249.     </div>
  250. </div>
  251. <script>
  252. \$(function () {
  253.     \$('[data-toggle=\"tooltip\"]').tooltip({
  254.         delay: { \"show\": 0, \"hide\": 0 }
  255.     });
  256. });
  257. </script>""Block/customize_header.twig""/home/bluehippo91/www/bluehippo91.sakura.ne.jp/app/template/ibn4203/Block/customize_header.twig");
  258.     }
  259.     
  260.     public function checkSecurity()
  261.     {
  262.         static $tags = array("if" => 36);
  263.         static $filters = array("escape" => 5"trans" => 5);
  264.         static $functions = array("url" => 4"asset" => 6"render" => 31"path" => 31);
  265.         try {
  266.             $this->sandbox->checkSecurity(
  267.                 ['if'],
  268.                 ['escape''trans'],
  269.                 ['url''asset''render''path']
  270.             );
  271.         } catch (SecurityError $e) {
  272.             $e->setSourceContext($this->source);
  273.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  274.                 $e->setTemplateLine($tags[$e->getTagName()]);
  275.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  276.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  277.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  278.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  279.             }
  280.             throw $e;
  281.         }
  282.     }
  283. }