<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Block/header.twig */
class __TwigTemplate_c2494b6f9fb420326888ba1f9e7f50f100dd5d27ec2396c6a10f3909f4fb1b64 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/header.twig"));
// line 11
$context["NewsList"] = twig_get_attribute($this->env, $this->source, $this->env->getFunction('repository')->getCallable()("Eccube\\Entity\\News"), "getList", [], "method", false, false, false, 11);
// line 12
echo "<div class=\"ec-headerNewsRole\">
<div class=\"ec-headerNewsRole__newsTitle\">
";
// line 14
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)) {
// line 15
echo " ";
echo twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 15), "title", [], "any", false, false, false, 15);
echo "
";
}
// line 17
echo " </div>
</div>
<div class=\"ec-headerNaviRole\">
<div class=\"ec-headerNaviRole__left\">
";
// line 21
echo twig_include($this->env, $context, "Block/logo.twig");
echo "
<div class=\"ec-headerRole__navSP\">
";
// line 23
echo twig_include($this->env, $context, "Block/nav_sp.twig");
echo "
</div>
</div>
<div class=\"ec-headerNaviRole__right\">
<div class=\"ec-headerNaviRole__right__upper\">
<div class=\"ec-headerNaviRole__nav\">
";
// line 29
echo twig_include($this->env, $context, "Block/login.twig");
echo "
</div>
<div class=\"ec-headerRole__cart\">
";
// line 32
echo twig_include($this->env, $context, "Block/cart.twig");
echo "
</div>
</div>
<div class=\"ec-headerNaviRole__right__lower\">
<div class=\"ec-headerNaviRole__search\">
";
// line 37
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>
</div>
</div>
</div>
<div class=\"ec-search is-sp\">
";
// line 43
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Block/header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 100 => 43, 91 => 37, 83 => 32, 77 => 29, 68 => 23, 63 => 21, 57 => 17, 51 => 15, 49 => 14, 45 => 12, 43 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% set NewsList = repository('Eccube\\\\Entity\\\\News').getList() %}
<div class=\"ec-headerNewsRole\">
<div class=\"ec-headerNewsRole__newsTitle\">
{% if NewsList|length > 0 %}
{{ NewsList['0'].title|raw }}
{% endif %}
</div>
</div>
<div class=\"ec-headerNaviRole\">
<div class=\"ec-headerNaviRole__left\">
{{ include('Block/logo.twig') }}
<div class=\"ec-headerRole__navSP\">
{{ include('Block/nav_sp.twig') }}
</div>
</div>
<div class=\"ec-headerNaviRole__right\">
<div class=\"ec-headerNaviRole__right__upper\">
<div class=\"ec-headerNaviRole__nav\">
{{ include('Block/login.twig') }}
</div>
<div class=\"ec-headerRole__cart\">
{{ include('Block/cart.twig') }}
</div>
</div>
<div class=\"ec-headerNaviRole__right__lower\">
<div class=\"ec-headerNaviRole__search\">
{{ render(path('block_search_product')) }}
</div>
</div>
</div>
</div>
<div class=\"ec-search is-sp\">
{{ render(path('block_search_product')) }}
</div>", "Block/header.twig", "/home/noie373zam/public_html/noiezam-ec/app/template/bynoiezam/Block/header.twig");
}
}