var/cache/dev/twig/07/07859435d5167f4858b58d48762db6224a2bb78706bb6d25967210f8bb7c3345.php line 151

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/header.twig */
  14. class __TwigTemplate_4a981db2caafcf9777b7c9320b960b3139496ffbf9690fab633705570ebba08d 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  33.         // line 11
  34.         echo "<header>
  35. <div class=\"wrap\">
  36. <div class=\"logo\">
  37. <a href=\"";
  38.         // line 14
  39.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
  40.         echo "\"><h1><img src=\"";
  41.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/ny_logo_w.svg""user_data"), "html"nulltrue);
  42.         echo "\" alt=\"logo\">Ny Paradisa</h1></a>
  43. </div>
  44. <nav>
  45. <input type=\"checkbox\" id=\"chk\">
  46. <ul>
  47. ";
  48.         // line 20
  49.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  50.             // line 21
  51.             echo "<li><a href=\"";
  52.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage");
  53.             echo "\" class=\"btn\">マイページ</a></li>        
  54.         ";
  55.             // line 22
  56.             if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'22$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse22)) {
  57.                 // line 23
  58.                 echo "<li><a href=\"";
  59.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
  60.                 echo "\" class=\"btn\">お気に入り</a></li>            
  61.         ";
  62.             }
  63.             // line 25
  64.             echo "
  65. <li><a href=\"";
  66.             // line 26
  67.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("logout");
  68.             echo "\" class=\"btn\">ログアウト</a></li>        
  69.     ";
  70.         } else {
  71.             // line 28
  72.             echo "<li><a href=\"";
  73.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
  74.             echo "\" class=\"btn\">新規会員登録</a></li>        
  75.         ";
  76.             // line 29
  77.             if (twig_get_attribute($this->env$this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo"$context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.'29$this->source); })()), "option_favorite_product", [], "any"falsefalsefalse29)) {
  78.                 // line 30
  79.                 echo "<li><a href=\"";
  80.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_favorite");
  81.                 echo "\" class=\"btn\">お気に入り</a></li>               
  82.         ";
  83.             }
  84.             // line 32
  85.             echo "<li><a href=\"";
  86.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("mypage_login");
  87.             echo "\" class=\"btn\">ログイン</a></li>
  88.     ";
  89.         }
  90.         // line 34
  91.         echo "
  92. ";
  93.         // line 35
  94.         if ((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.'35$this->source); })()), "request", [], "any"falsefalsefalse35), "get", [=> "_route"], "method"falsefalsefalse35) != "user_data")) {
  95.             // line 36
  96.             echo "<li><label for=\"rekichk\"><img src=\"";
  97.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon_reki.svg""user_data"), "html"nulltrue);
  98.             echo "\" alt=\"閲覧履歴\"></label></li>
  99. ";
  100.         }
  101.         // line 38
  102.         echo "
  103. <li><label for=\"searchk\"><img src=\"";
  104.         // line 39
  105.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon-glass_h.svg""user_data"), "html"nulltrue);
  106.         echo "\" alt=\"検索\"></label></li>
  107. <li><a href=\"/contact\"><img src=\"";
  108.         // line 40
  109.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icon_email_h.svg""user_data"), "html"nulltrue);
  110.         echo "\" alt=\"email\"></a></li>
  111. <li><a href=\"https://www.instagram.com/ny_paradisa/\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"";
  112.         // line 41
  113.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icons8-instagram_h.svg""user_data"), "html"nulltrue);
  114.         echo "\" alt=\"instagram\"></a></li>
  115. <li><a href=\"https://twitter.com/nyparadisa\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"";
  116.         // line 42
  117.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/icons8-twitter_h.svg""user_data"), "html"nulltrue);
  118.         echo "\" alt=\"twitter\"></a></li>
  119. <li class=\"ec-headerRole__cart\">";
  120.         // line 43
  121.         echo twig_include($this->env$context"Block/cart.twig");
  122.         echo "</li>
  123. <li class=\"sp\">
  124. <label for=\"chk\">×</label>
  125. </li>
  126. </ul>
  127. <label for=\"chk\" id=\"humbt\">
  128.           <span></span>
  129.           <span></span>
  130.           <span></span>
  131. </label>
  132. </nav>
  133. </div>
  134. </header>
  135. <input type=\"checkbox\" id=\"searchk\">
  136. <div class=\"searchbox\">
  137. <p class=\"txtR\"><strong>■商品検索</strong><label for=\"searchk\">×</label></p>
  138.             ";
  139.         // line 60
  140.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  141.         echo "            
  142. </div>
  143. <input type=\"checkbox\" id=\"rekichk\">
  144. <div class=\"rirekibox\">
  145. <p class=\"txtR\"><strong>■商品閲覧履歴</strong><label for=\"rekichk\">×</label></p>
  146. ";
  147.         // line 66
  148.         $context["Products"] = $this->extensions['Customize\Twig\Extension\MyExtension']->krsort((isset($context["productHistory"]) || array_key_exists("productHistory"$context) ? $context["productHistory"] : (function () { throw new RuntimeError('Variable "productHistory" does not exist.'66$this->source); })()));
  149.         // line 67
  150.         if ((twig_length_filter($this->env, (isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'67$this->source); })())) > 0)) {
  151.             // line 68
  152.             echo "<ul>
  153. ";
  154.             // line 69
  155.             $context['_parent'] = $context;
  156.             $context['_seq'] = twig_ensure_traversable((isset($context["Products"]) || array_key_exists("Products"$context) ? $context["Products"] : (function () { throw new RuntimeError('Variable "Products" does not exist.'69$this->source); })()));
  157.             foreach ($context['_seq'] as $context["_key"] => $context["Product"]) {
  158.                 // line 70
  159.                 echo "<li>
  160. <a href=\"";
  161.                 // line 71
  162.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env$this->source$context["Product"], "id", [], "any"falsefalsefalse71)]), "html"nulltrue);
  163.                 echo "\">
  164. <div class=\"pic\">
  165. <img src=\"";
  166.                 // line 73
  167.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source$context["Product"], "getMainListImage", [], "any"falsefalsefalse73), "save_image"), "html"nulltrue);
  168.                 echo "\" alt=\"";
  169.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse73), "html"nulltrue);
  170.                 echo "\">
  171. </div>
  172. <p>";
  173.                 // line 75
  174.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["Product"], "name", [], "any"falsefalsefalse75), "html"nulltrue);
  175.                 echo ":
  176.                     ";
  177.                 // line 76
  178.                 if (twig_get_attribute($this->env$this->source$context["Product"], "hasProductClass", [], "any"falsefalsefalse76)) {
  179.                     // line 77
  180.                     echo "                        ";
  181.                     if ((twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Min", [], "any"falsefalsefalse77) == twig_get_attribute($this->env$this->source$context["Product"], "getPrice02Max", [], "any"falsefalsefalse77))) {
  182.                         // line 78
  183.                         echo "                            ";
  184.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse78)), "html"nulltrue);
  185.                         echo "
  186.                         ";
  187.                     } else {
  188.                         // line 80
  189.                         echo "                            ";
  190.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse80)), "html"nulltrue);
  191.                         echo " ~ ";
  192.                         echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMax", [], "any"falsefalsefalse80)), "html"nulltrue);
  193.                         echo "
  194.                         ";
  195.                     }
  196.                     // line 82
  197.                     echo "                    ";
  198.                 } else {
  199.                     // line 83
  200.                     echo "                        ";
  201.                     echo twig_escape_filter($this->env$this->extensions['Eccube\Twig\Extension\EccubeExtension']->getPriceFilter(twig_get_attribute($this->env$this->source$context["Product"], "getPrice02IncTaxMin", [], "any"falsefalsefalse83)), "html"nulltrue);
  202.                     echo "
  203.                     ";
  204.                 }
  205.                 // line 85
  206.                 echo "                    </p>
  207. </a>
  208. </li>
  209. ";
  210.             }
  211.             $_parent $context['_parent'];
  212.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Product'], $context['_parent'], $context['loop']);
  213.             $context array_intersect_key($context$_parent) + $_parent;
  214.             // line 89
  215.             echo "
  216. </ul>
  217. ";
  218.         } else {
  219.             // line 92
  220.             echo "<p>まだ閲覧履歴はありません。</p>
  221. ";
  222.         }
  223.         // line 94
  224.         echo "</div>";
  225.         
  226.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  227.         
  228.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  229.     }
  230.     public function getTemplateName()
  231.     {
  232.         return "Block/header.twig";
  233.     }
  234.     public function isTraitable()
  235.     {
  236.         return false;
  237.     }
  238.     public function getDebugInfo()
  239.     {
  240.         return array (  236 => 94,  232 => 92,  227 => 89,  218 => 85,  212 => 83,  209 => 82,  201 => 80,  195 => 78,  192 => 77,  190 => 76,  186 => 75,  179 => 73,  174 => 71,  171 => 70,  167 => 69,  164 => 68,  162 => 67,  160 => 66,  151 => 60,  131 => 43,  127 => 42,  123 => 41,  119 => 40,  115 => 39,  112 => 38,  106 => 36,  104 => 35,  101 => 34,  95 => 32,  89 => 30,  87 => 29,  82 => 28,  77 => 26,  74 => 25,  68 => 23,  66 => 22,  61 => 21,  59 => 20,  48 => 14,  43 => 11,);
  241.     }
  242.     public function getSourceContext()
  243.     {
  244.         return new Source("{#
  245. This file is part of EC-CUBE
  246. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  247. http://www.ec-cube.co.jp/
  248. For the full copyright and license information, please view the LICENSE
  249. file that was distributed with this source code.
  250. #}
  251. <header>
  252. <div class=\"wrap\">
  253. <div class=\"logo\">
  254. <a href=\"{{ url('homepage') }}\"><h1><img src=\"{{ asset('assets/images/ny_logo_w.svg', 'user_data') }}\" alt=\"logo\">Ny Paradisa</h1></a>
  255. </div>
  256. <nav>
  257. <input type=\"checkbox\" id=\"chk\">
  258. <ul>
  259. {% if is_granted('ROLE_USER') %}
  260. <li><a href=\"{{ url('mypage') }}\" class=\"btn\">マイページ</a></li>        
  261.         {% if BaseInfo.option_favorite_product %}
  262. <li><a href=\"{{ url('mypage_favorite') }}\" class=\"btn\">お気に入り</a></li>            
  263.         {% endif %}
  264. <li><a href=\"{{ url('logout') }}\" class=\"btn\">ログアウト</a></li>        
  265.     {% else %}
  266. <li><a href=\"{{ url('entry') }}\" class=\"btn\">新規会員登録</a></li>        
  267.         {% if BaseInfo.option_favorite_product %}
  268. <li><a href=\"{{ url('mypage_favorite') }}\" class=\"btn\">お気に入り</a></li>               
  269.         {% endif %}
  270. <li><a href=\"{{ url('mypage_login') }}\" class=\"btn\">ログイン</a></li>
  271.     {% endif %}
  272. {% if app.request.get('_route') != 'user_data' %}
  273. <li><label for=\"rekichk\"><img src=\"{{ asset('assets/images/icon_reki.svg', 'user_data') }}\" alt=\"閲覧履歴\"></label></li>
  274. {% endif %}
  275. <li><label for=\"searchk\"><img src=\"{{ asset('assets/images/icon-glass_h.svg', 'user_data') }}\" alt=\"検索\"></label></li>
  276. <li><a href=\"/contact\"><img src=\"{{ asset('assets/images/icon_email_h.svg', 'user_data') }}\" alt=\"email\"></a></li>
  277. <li><a href=\"https://www.instagram.com/ny_paradisa/\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"{{ asset('assets/images/icons8-instagram_h.svg', 'user_data') }}\" alt=\"instagram\"></a></li>
  278. <li><a href=\"https://twitter.com/nyparadisa\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"{{ asset('assets/images/icons8-twitter_h.svg', 'user_data') }}\" alt=\"twitter\"></a></li>
  279. <li class=\"ec-headerRole__cart\">{{ include('Block/cart.twig') }}</li>
  280. <li class=\"sp\">
  281. <label for=\"chk\">×</label>
  282. </li>
  283. </ul>
  284. <label for=\"chk\" id=\"humbt\">
  285.           <span></span>
  286.           <span></span>
  287.           <span></span>
  288. </label>
  289. </nav>
  290. </div>
  291. </header>
  292. <input type=\"checkbox\" id=\"searchk\">
  293. <div class=\"searchbox\">
  294. <p class=\"txtR\"><strong>■商品検索</strong><label for=\"searchk\">×</label></p>
  295.             {{ render(path('block_search_product')) }}            
  296. </div>
  297. <input type=\"checkbox\" id=\"rekichk\">
  298. <div class=\"rirekibox\">
  299. <p class=\"txtR\"><strong>■商品閲覧履歴</strong><label for=\"rekichk\">×</label></p>
  300. {% set Products = productHistory|krsort %}
  301. {% if Products|length > 0 %}
  302. <ul>
  303. {% for Product in Products %}
  304. <li>
  305. <a href=\"{{ url('product_detail', {'id':Product.id}) }}\">
  306. <div class=\"pic\">
  307. <img src=\"{{ asset(Product.getMainListImage, 'save_image') }}\" alt=\"{{Product.name}}\">
  308. </div>
  309. <p>{{Product.name}}:
  310.                     {% if Product.hasProductClass %}
  311.                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  312.                             {{ Product.getPrice02IncTaxMin|price }}
  313.                         {% else %}
  314.                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  315.                         {% endif %}
  316.                     {% else %}
  317.                         {{ Product.getPrice02IncTaxMin|price }}
  318.                     {% endif %}
  319.                     </p>
  320. </a>
  321. </li>
  322. {% endfor %}
  323. </ul>
  324. {% else %}
  325. <p>まだ閲覧履歴はありません。</p>
  326. {% endif %}
  327. </div>""Block/header.twig""/home/ny-paradisa/public_html/app/template/default/Block/header.twig");
  328.     }
  329. }