var/cache/dev/twig/3a/3a6f074d0b4fa767b6613e768f4daa5e.php line 85

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/eventbannerCol2mbl.twig */
  14. class __TwigTemplate_cd4608b9680292a1603f668d864cf537 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.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/eventbannerCol2mbl.twig"));
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Block/eventbannerCol2mbl.twig"));
  34.         // line 1
  35.         $this->displayBlock('main'$context$blocks);
  36.         // line 19
  37.         echo "
  38. <style>
  39.     .col2002 {
  40.       display: grid;
  41.       grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
  42.       gap: 10px; /* イメージ間の間隔 */
  43.     }
  44.     
  45.     .sidepic {
  46.       text-align: center; /* 画像を中央揃えにするため */
  47.     }
  48.     
  49.     .sidepic img {
  50.       max-width: 100%; /* 画像を親要素に合わせてサイズ調整 */
  51.       height: auto; /* アスペクト比を維持 */
  52.     }
  53. </style>";
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     // line 1
  60.     public function block_main($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  67.         // line 2
  68.         echo "  ";
  69.         if (((isset($context["CustomerKbn"]) || array_key_exists("CustomerKbn"$context) ? $context["CustomerKbn"] : (function () { throw new RuntimeError('Variable "CustomerKbn" does not exist.'2$this->source); })()) == "seller")) {
  70.             // line 3
  71.             echo "  
  72.   ";
  73.         } else {
  74.             // line 5
  75.             echo "    ";
  76.             if (twig_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.'5$this->source); })()), "user", [], "any"falsefalsefalse5)) {
  77.                 // line 6
  78.                 echo "        ";
  79.                 // line 7
  80.                 echo "    ";
  81.             } else {
  82.                 // line 8
  83.                 echo "        ";
  84.                 // line 9
  85.                 echo "      <div class=\"ec-shelfRole12\">
  86.           <div class=\"col2002\">
  87.               <!-- <div class=\"sidepic\"><a href=\"";
  88.                 // line 11
  89.                 echo twig_escape_filter($this->envtwig_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.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "schemeAndHttpHost", [], "any"falsefalsefalse11), "html"nulltrue);
  90.                 echo "/products/list?category_id=15\"><img src=\"";
  91.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/event/event01.jpg"), "html"nulltrue);
  92.                 echo "\" /></a></div>-->
  93.               <div class=\"sidepic\"><a href=\"https://s-drea.com/customentry?et=buyer\"><img src=\"";
  94.                 // line 12
  95.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/banner/01_banner-top/event01_450-300.jpg"), "html"nulltrue);
  96.                 echo "\" /></a></div>
  97.               <div class=\"sidepic\"><a href=\"https://s-drea.com/customentry?et=buyer\"><img src=\"";
  98.                 // line 13
  99.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/banner/01_banner-top/event02_450-300.jpg"), "html"nulltrue);
  100.                 echo "\" /></a></div>
  101.           </div>
  102.       </div>
  103.     ";
  104.             }
  105.             // line 17
  106.             echo "  ";
  107.         }
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     public function getTemplateName()
  114.     {
  115.         return "Block/eventbannerCol2mbl.twig";
  116.     }
  117.     public function getDebugInfo()
  118.     {
  119.         return array (  122 => 17,  115 => 13,  111 => 12,  105 => 11,  101 => 9,  99 => 8,  96 => 7,  94 => 6,  91 => 5,  87 => 3,  84 => 2,  74 => 1,  46 => 19,  44 => 1,);
  120.     }
  121.     public function getSourceContext()
  122.     {
  123.         return new Source("{% block main %}
  124.   {% if CustomerKbn == \"seller\" %}
  125.   
  126.   {% else %}
  127.     {% if app.user %}
  128.         {# ログインしている場合の処理 #}
  129.     {% else %}
  130.         {# ログインしていない場合の処理 #}
  131.       <div class=\"ec-shelfRole12\">
  132.           <div class=\"col2002\">
  133.               <!-- <div class=\"sidepic\"><a href=\"{{ app.request.schemeAndHttpHost }}/products/list?category_id=15\"><img src=\"{{ asset('/img/event/event01.jpg') }}\" /></a></div>-->
  134.               <div class=\"sidepic\"><a href=\"https://s-drea.com/customentry?et=buyer\"><img src=\"{{ asset('/img/banner/01_banner-top/event01_450-300.jpg') }}\" /></a></div>
  135.               <div class=\"sidepic\"><a href=\"https://s-drea.com/customentry?et=buyer\"><img src=\"{{ asset('/img/banner/01_banner-top/event02_450-300.jpg') }}\" /></a></div>
  136.           </div>
  137.       </div>
  138.     {% endif %}
  139.   {% endif %}
  140. {% endblock %}
  141. <style>
  142.     .col2002 {
  143.       display: grid;
  144.       grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
  145.       gap: 10px; /* イメージ間の間隔 */
  146.     }
  147.     
  148.     .sidepic {
  149.       text-align: center; /* 画像を中央揃えにするため */
  150.     }
  151.     
  152.     .sidepic img {
  153.       max-width: 100%; /* 画像を親要素に合わせてサイズ調整 */
  154.       height: auto; /* アスペクト比を維持 */
  155.     }
  156. </style>""Block/eventbannerCol2mbl.twig""/home/xs262729/sandrea.net/public_html/display.sandrea.net/app/template/default/Block/eventbannerCol2mbl.twig");
  157.     }
  158. }