<?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/eventbannerCol2mbl.twig */
class __TwigTemplate_cd4608b9680292a1603f668d864cf537 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 = [
'main' => [$this, 'block_main'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/eventbannerCol2mbl.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Block/eventbannerCol2mbl.twig"));
// line 1
$this->displayBlock('main', $context, $blocks);
// line 19
echo "
<style>
.col2002 {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
gap: 10px; /* イメージ間の間隔 */
}
.sidepic {
text-align: center; /* 画像を中央揃えにするため */
}
.sidepic img {
max-width: 100%; /* 画像を親要素に合わせてサイズ調整 */
height: auto; /* アスペクト比を維持 */
}
</style>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 1
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 2
echo " ";
if (((isset($context["CustomerKbn"]) || array_key_exists("CustomerKbn", $context) ? $context["CustomerKbn"] : (function () { throw new RuntimeError('Variable "CustomerKbn" does not exist.', 2, $this->source); })()) == "seller")) {
// line 3
echo "
";
} else {
// line 5
echo " ";
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", false, false, false, 5)) {
// line 6
echo " ";
// line 7
echo " ";
} else {
// line 8
echo " ";
// line 9
echo " <div class=\"ec-shelfRole12\">
<div class=\"col2002\">
<!-- <div class=\"sidepic\"><a href=\"";
// line 11
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "schemeAndHttpHost", [], "any", false, false, false, 11), "html", null, true);
echo "/products/list?category_id=15\"><img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/event/event01.jpg"), "html", null, true);
echo "\" /></a></div>-->
<div class=\"sidepic\"><a href=\"https://s-drea.com/customentry?et=buyer\"><img src=\"";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/banner/01_banner-top/event01_450-300.jpg"), "html", null, true);
echo "\" /></a></div>
<div class=\"sidepic\"><a href=\"https://s-drea.com/customentry?et=buyer\"><img src=\"";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/img/banner/01_banner-top/event02_450-300.jpg"), "html", null, true);
echo "\" /></a></div>
</div>
</div>
";
}
// line 17
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Block/eventbannerCol2mbl.twig";
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% block main %}
{% if CustomerKbn == \"seller\" %}
{% else %}
{% if app.user %}
{# ログインしている場合の処理 #}
{% else %}
{# ログインしていない場合の処理 #}
<div class=\"ec-shelfRole12\">
<div class=\"col2002\">
<!-- <div class=\"sidepic\"><a href=\"{{ app.request.schemeAndHttpHost }}/products/list?category_id=15\"><img src=\"{{ asset('/img/event/event01.jpg') }}\" /></a></div>-->
<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>
<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>
</div>
</div>
{% endif %}
{% endif %}
{% endblock %}
<style>
.col2002 {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2列のグリッド */
gap: 10px; /* イメージ間の間隔 */
}
.sidepic {
text-align: center; /* 画像を中央揃えにするため */
}
.sidepic img {
max-width: 100%; /* 画像を親要素に合わせてサイズ調整 */
height: auto; /* アスペクト比を維持 */
}
</style>", "Block/eventbannerCol2mbl.twig", "/home/xs262729/sandrea.net/public_html/display.sandrea.net/app/template/default/Block/eventbannerCol2mbl.twig");
}
}