var/cache/dev/twig/b0/b02f533096e5942073aae1ef45d3253c4e8b0e7e0aaa964842eda26499983f34.php line 91

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_c2494b6f9fb420326888ba1f9e7f50f100dd5d27ec2396c6a10f3909f4fb1b64 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.         $context["NewsList"] = twig_get_attribute($this->env$this->source$this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\News"), "getList", [], "method"falsefalsefalse11);
  35.         // line 12
  36.         echo "<div class=\"ec-headerNewsRole\">
  37.     <div class=\"ec-headerNewsRole__newsTitle\">
  38.     ";
  39.         // line 14
  40.         if ((twig_length_filter($this->env, (isset($context["NewsList"]) || array_key_exists("NewsList"$context) ? $context["NewsList"] : (function () { throw new RuntimeError('Variable "NewsList" does not exist.'14$this->source); })())) > 0)) {
  41.             // line 15
  42.             echo "        ";
  43.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["NewsList"]) || array_key_exists("NewsList"$context) ? $context["NewsList"] : (function () { throw new RuntimeError('Variable "NewsList" does not exist.'15$this->source); })()), "0", [], "array"falsefalsefalse15), "title", [], "any"falsefalsefalse15);
  44.             echo "
  45.     ";
  46.         }
  47.         // line 17
  48.         echo "    </div>
  49. </div>
  50. <div class=\"ec-headerNaviRole\">
  51.     <div class=\"ec-headerNaviRole__left\">
  52.         ";
  53.         // line 21
  54.         echo twig_include($this->env$context"Block/logo.twig");
  55.         echo "
  56.         <div class=\"ec-headerRole__navSP\">
  57.             ";
  58.         // line 23
  59.         echo twig_include($this->env$context"Block/nav_sp.twig");
  60.         echo "
  61.         </div>
  62.     </div>
  63.     <div class=\"ec-headerNaviRole__right\">
  64.         <div class=\"ec-headerNaviRole__right__upper\">
  65.             <div class=\"ec-headerNaviRole__nav\">
  66.                 ";
  67.         // line 29
  68.         echo twig_include($this->env$context"Block/login.twig");
  69.         echo "
  70.             </div>
  71.             <div class=\"ec-headerRole__cart\">
  72.                 ";
  73.         // line 32
  74.         echo twig_include($this->env$context"Block/cart.twig");
  75.         echo "
  76.             </div>
  77.         </div>
  78.         <div class=\"ec-headerNaviRole__right__lower\">
  79.             <div class=\"ec-headerNaviRole__search\">
  80.                 ";
  81.         // line 37
  82.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  83.         echo "
  84.             </div>
  85.         </div>
  86.     </div>
  87. </div>
  88. <div class=\"ec-search is-sp\">
  89.     ";
  90.         // line 43
  91.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  92.         echo "
  93. </div>";
  94.         
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  96.         
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  98.     }
  99.     public function getTemplateName()
  100.     {
  101.         return "Block/header.twig";
  102.     }
  103.     public function isTraitable()
  104.     {
  105.         return false;
  106.     }
  107.     public function getDebugInfo()
  108.     {
  109.         return array (  100 => 43,  91 => 37,  83 => 32,  77 => 29,  68 => 23,  63 => 21,  57 => 17,  51 => 15,  49 => 14,  45 => 12,  43 => 11,);
  110.     }
  111.     public function getSourceContext()
  112.     {
  113.         return new Source("{#
  114. This file is part of EC-CUBE
  115. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  116. http://www.ec-cube.co.jp/
  117. For the full copyright and license information, please view the LICENSE
  118. file that was distributed with this source code.
  119. #}
  120. {% set NewsList = repository('Eccube\\\\Entity\\\\News').getList() %}
  121. <div class=\"ec-headerNewsRole\">
  122.     <div class=\"ec-headerNewsRole__newsTitle\">
  123.     {% if NewsList|length > 0 %}
  124.         {{ NewsList['0'].title|raw }}
  125.     {% endif %}
  126.     </div>
  127. </div>
  128. <div class=\"ec-headerNaviRole\">
  129.     <div class=\"ec-headerNaviRole__left\">
  130.         {{ include('Block/logo.twig') }}
  131.         <div class=\"ec-headerRole__navSP\">
  132.             {{ include('Block/nav_sp.twig') }}
  133.         </div>
  134.     </div>
  135.     <div class=\"ec-headerNaviRole__right\">
  136.         <div class=\"ec-headerNaviRole__right__upper\">
  137.             <div class=\"ec-headerNaviRole__nav\">
  138.                 {{ include('Block/login.twig') }}
  139.             </div>
  140.             <div class=\"ec-headerRole__cart\">
  141.                 {{ include('Block/cart.twig') }}
  142.             </div>
  143.         </div>
  144.         <div class=\"ec-headerNaviRole__right__lower\">
  145.             <div class=\"ec-headerNaviRole__search\">
  146.                 {{ render(path('block_search_product')) }}
  147.             </div>
  148.         </div>
  149.     </div>
  150. </div>
  151. <div class=\"ec-search is-sp\">
  152.     {{ render(path('block_search_product')) }}
  153. </div>""Block/header.twig""/home/noie373zam/public_html/noiezam-ec/app/template/bynoiezam/Block/header.twig");
  154.     }
  155. }