var/cache/dev/twig/82/82ec3668f4d4b29f5d8469e3bbc1e3630e2c029522cd376a72e5dd24e10dd9ec.php line 79

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_3bae77f3a74dc67e636d1a27004a7191fc12470e53ffda5297535258ffcbcab4 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.             'stylesheet' => [$this'block_stylesheet'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/header.twig"));
  34.         // line 11
  35.         $this->displayBlock('stylesheet'$context$blocks);
  36.         // line 29
  37.         echo "
  38. <div class=\"ec-headerNaviRole\">
  39.     <div class=\"ec-headerNaviRole__left\">
  40.         <div class=\"ec-headerRole__navSP\">
  41.             ";
  42.         // line 34
  43.         echo twig_include($this->env$context"Block/nav_sp.twig");
  44.         echo "
  45.         </div>
  46.     </div>
  47.     <div class=\"ec-headerNaviRole__right\">
  48.         <div class=\"ec-headerNaviRole__nav\">
  49.             ";
  50.         // line 39
  51.         echo twig_include($this->env$context"Block/login.twig");
  52.         echo "
  53.         </div>
  54.         <div class=\"ec-headerRole__cart\">
  55.             ";
  56.         // line 42
  57.         echo twig_include($this->env$context"Block/cart.twig");
  58.         echo "
  59.         </div>
  60.     </div>
  61. </div>
  62. <div class=\"user-information-block\">
  63.     ";
  64.         // line 48
  65.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
  66.             // line 49
  67.             echo "        ";
  68.             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"falsefalsefalse49) == 1)) {
  69.                 // line 51
  70.                 echo "                ";
  71.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("block_search_product"));
  72.                 echo "
  73. ";
  74.                 // line 53
  75.                 echo "        ";
  76.             } else {
  77.                 // line 54
  78.                 echo "            <div class=\"display_zan_warning\">
  79.                 残高不足のため、検索、お買い物ができません<br>
  80.                 ご入金をお願いいたします
  81.             </div>
  82.             ";
  83.             }
  84.             // line 59
  85.             echo "        <div class = \"display-zandaka\">
  86.             <br><br>";
  87.             // line 60
  88.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse60), "html"nulltrue);
  89.             echo " ";
  90.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse60), "html"nulltrue);
  91.             echo " 様の残高は \\";
  92.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse60), "html"nulltrue);
  93.             echo "円です
  94.         </div>
  95.     ";
  96.         }
  97.         // line 63
  98.         echo "</div>
  99. ";
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.     }
  105.     // line 11
  106.     public function block_stylesheet($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheet"));
  113.         // line 12
  114.         echo "    <style>
  115.         .display-zandaka{
  116.             width:90%;
  117.             font-size: 200% ;
  118.             color:#0000bf ;
  119.             font-weight:bold ;
  120.             text-align:center ;
  121.             margin-left: auto ;
  122.             margin-right: auto ;
  123.         }
  124.         .user-information-block{
  125.             width:100% ;
  126.             margin-bottom: 5% ;
  127.         }
  128.     </style>
  129. ";
  130.         
  131.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  132.         
  133.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  134.     }
  135.     public function getTemplateName()
  136.     {
  137.         return "Block/header.twig";
  138.     }
  139.     public function isTraitable()
  140.     {
  141.         return false;
  142.     }
  143.     public function getDebugInfo()
  144.     {
  145.         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,);
  146.     }
  147.     public function getSourceContext()
  148.     {
  149.         return new Source("{#
  150. This file is part of EC-CUBE
  151. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  152. http://www.ec-cube.co.jp/
  153. For the full copyright and license information, please view the LICENSE
  154. file that was distributed with this source code.
  155. #}
  156. {% block stylesheet %}
  157.     <style>
  158.         .display-zandaka{
  159.             width:90%;
  160.             font-size: 200% ;
  161.             color:#0000bf ;
  162.             font-weight:bold ;
  163.             text-align:center ;
  164.             margin-left: auto ;
  165.             margin-right: auto ;
  166.         }
  167.         .user-information-block{
  168.             width:100% ;
  169.             margin-bottom: 5% ;
  170.         }
  171.     </style>
  172. {% endblock %}
  173. <div class=\"ec-headerNaviRole\">
  174.     <div class=\"ec-headerNaviRole__left\">
  175.         <div class=\"ec-headerRole__navSP\">
  176.             {{ include('Block/nav_sp.twig') }}
  177.         </div>
  178.     </div>
  179.     <div class=\"ec-headerNaviRole__right\">
  180.         <div class=\"ec-headerNaviRole__nav\">
  181.             {{ include('Block/login.twig') }}
  182.         </div>
  183.         <div class=\"ec-headerRole__cart\">
  184.             {{ include('Block/cart.twig') }}
  185.         </div>
  186.     </div>
  187. </div>
  188. <div class=\"user-information-block\">
  189.     {% if is_granted('ROLE_USER') %}
  190.         {% if (cust_info['state'] == 1) %}
  191. {#            <div class=\"ec-headerNaviRole__search\">   #}
  192.                 {{ render(path('block_search_product')) }}
  193. {#            </div>    #}
  194.         {% else %}
  195.             <div class=\"display_zan_warning\">
  196.                 残高不足のため、検索、お買い物ができません<br>
  197.                 ご入金をお願いいたします
  198.             </div>
  199.             {% endif %}
  200.         <div class = \"display-zandaka\">
  201.             <br><br>{{cust_info['name01'] }} {{cust_info['name02']}} 様の残高は \\{{cust_info['zandaka']}}円です
  202.         </div>
  203.     {% endif %}
  204. </div>
  205. ""Block/header.twig""/home/dalian/buy.hits.jp/public_html/tao-eva/app/template/default/Block/header.twig");
  206.     }
  207. }