<?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_3bae77f3a74dc67e636d1a27004a7191fc12470e53ffda5297535258ffcbcab4 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 = [
'stylesheet' => [$this, 'block_stylesheet'],
];
}
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
$this->displayBlock('stylesheet', $context, $blocks);
// line 29
echo "
<div class=\"ec-headerNaviRole\">
<div class=\"ec-headerNaviRole__left\">
<div class=\"ec-headerRole__navSP\">
";
// line 34
echo twig_include($this->env, $context, "Block/nav_sp.twig");
echo "
</div>
</div>
<div class=\"ec-headerNaviRole__right\">
<div class=\"ec-headerNaviRole__nav\">
";
// line 39
echo twig_include($this->env, $context, "Block/login.twig");
echo "
</div>
<div class=\"ec-headerRole__cart\">
";
// line 42
echo twig_include($this->env, $context, "Block/cart.twig");
echo "
</div>
</div>
</div>
<div class=\"user-information-block\">
";
// line 48
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 49
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["cust_info"]) || array_key_exists("cust_info", $context) ? $context["cust_info"] : (function () { throw new RuntimeError('Variable "cust_info" does not exist.', 49, $this->source); })()), "state", [], "array", false, false, false, 49) == 1)) {
// line 51
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
echo "
";
// line 53
echo " ";
} else {
// line 54
echo " <div class=\"display_zan_warning\">
残高不足のため、検索、お買い物ができません<br>
ご入金をお願いいたします
</div>
";
}
// line 59
echo " <div class = \"display-zandaka\">
<br><br>";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cust_info"]) || array_key_exists("cust_info", $context) ? $context["cust_info"] : (function () { throw new RuntimeError('Variable "cust_info" does not exist.', 60, $this->source); })()), "name01", [], "array", false, false, false, 60), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cust_info"]) || array_key_exists("cust_info", $context) ? $context["cust_info"] : (function () { throw new RuntimeError('Variable "cust_info" does not exist.', 60, $this->source); })()), "name02", [], "array", false, false, false, 60), "html", null, true);
echo " 様の残高は \\";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cust_info"]) || array_key_exists("cust_info", $context) ? $context["cust_info"] : (function () { throw new RuntimeError('Variable "cust_info" does not exist.', 60, $this->source); })()), "zandaka", [], "array", false, false, false, 60), "html", null, true);
echo "円です
</div>
";
}
// line 63
echo "</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 11
public function block_stylesheet($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(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 12
echo " <style>
.display-zandaka{
width:90%;
font-size: 200% ;
color:#0000bf ;
font-weight:bold ;
text-align:center ;
margin-left: auto ;
margin-right: auto ;
}
.user-information-block{
width:100% ;
margin-bottom: 5% ;
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Block/header.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 130 => 12, 120 => 11, 109 => 63, 99 => 60, 96 => 59, 89 => 54, 86 => 53, 81 => 51, 78 => 49, 76 => 48, 67 => 42, 61 => 39, 53 => 34, 46 => 29, 44 => 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.
#}
{% block stylesheet %}
<style>
.display-zandaka{
width:90%;
font-size: 200% ;
color:#0000bf ;
font-weight:bold ;
text-align:center ;
margin-left: auto ;
margin-right: auto ;
}
.user-information-block{
width:100% ;
margin-bottom: 5% ;
}
</style>
{% endblock %}
<div class=\"ec-headerNaviRole\">
<div class=\"ec-headerNaviRole__left\">
<div class=\"ec-headerRole__navSP\">
{{ include('Block/nav_sp.twig') }}
</div>
</div>
<div class=\"ec-headerNaviRole__right\">
<div class=\"ec-headerNaviRole__nav\">
{{ include('Block/login.twig') }}
</div>
<div class=\"ec-headerRole__cart\">
{{ include('Block/cart.twig') }}
</div>
</div>
</div>
<div class=\"user-information-block\">
{% if is_granted('ROLE_USER') %}
{% if (cust_info['state'] == 1) %}
{# <div class=\"ec-headerNaviRole__search\"> #}
{{ render(path('block_search_product')) }}
{# </div> #}
{% else %}
<div class=\"display_zan_warning\">
残高不足のため、検索、お買い物ができません<br>
ご入金をお願いいたします
</div>
{% endif %}
<div class = \"display-zandaka\">
<br><br>{{cust_info['name01'] }} {{cust_info['name02']}} 様の残高は \\{{cust_info['zandaka']}}円です
</div>
{% endif %}
</div>
", "Block/header.twig", "/home/dalian/buy.hits.jp/public_html/tao-eva/app/template/default/Block/header.twig");
}
}