<?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;
/* Artists/index.twig */
class __TwigTemplate_713aa4380583188fd26911ca501cfd2c extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
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", "Artists/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Artists/index.twig"));
$this->parent = $this->loadTemplate("default_frame.twig", "Artists/index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 13
public function block_javascript($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", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 14
echo "<script>
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 18
public function block_stylesheet($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", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 19
echo " <style>
.artists-title {
margin-left: 5%;
\t\t\tfont-weight: bold;
}
.artist-flex {
background-color: #f4f1ee;
padding: 20px;
padding-left: 5%;
margin-top: 50px;
margin: 3%;
display: flex;
flex-wrap: wrap;
border-radius: 10px;
}
.artist-img-wrapper {
padding: 10px;
margin: 10px;
border-radius: 5px;
font-size: 20px;
width: 45%;
position: relative;
flex-wrap: wrap;
}
.artist-img-wrapper img {
min-width: 600px;
max-width: 600px;
width: 600px;
height: 300px;
}
.artist-img-wrapper2 {
position: absolute;
bottom: 20px;
left: 77%;
width: 50%;
}
/* 770以下の時 */
@media screen and (max-width: 790px) {
.under790 {
width: 46%;
}
.under790-2 {
display: none;
}
}
/* 620以下の時 */
@media screen and (max-width: 620px) {
.under620 {
width: 100%;
}
}
.artist-img-wrapper a {
color: black;
}
.artist-img-wrapper a:hover {
color: #d5a770;
}
.artist-img-wrapper p {
font-size: 20px;
margin-top: 5px;
}
.artist-img-wrapper img {
min-width: 100%;
width: 100%;
height: 400px;
border-radius: 5%;
}
.header-photo {
position: relative;
}
.header-photo h2 {/*h2タグを画像の真ん中に*/
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
margin:0;/*余計な隙間を除く*/
padding:0;/*余計な隙間を除く*/
color: white;/*文字色*/
font-size: 40px;/*文字サイズ*/
text-align:center;/*pタグ内で更に中央寄せ*/
font-family: 'Quicksand',sans-serif;
font-weight: \"bold\";
}
.header-photo img {
width: 99.5%;
}
.artist-art img {
width: 300px;
height: 300px;
}
.img-wrapper-artist {
}
.img-wrapper-artist img {
padding-bottom: 5px;
}
.top-left {
position: absolute;
top: 25px;
left: 25px;
color: white;
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 141
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 142
echo " <div class=\"header-photo\">
<img src=\"https://sh-cdn.singulart.com/eyJidWNrZXQiOiJzaW5ndWxhcnQtd2Vic2l0ZS1wcm9kIiwia2V5IjoiYXJ0aXN0c1wvdjJcL3BpY3R1cmVzXC9jcm9wcGVkXC9zdHVkaW9cL2Jhc2VcLzEzMzZfc3R1ZGlvXzAwNzY1OGQ0NDRlMWE1MjhiOWRlODIxYmQ0MTRiNzEzLmpwZWciLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjEyMDAsImhlaWdodCI6NDYwLCJmaXQiOiJjb3ZlciJ9LCJ0b0Zvcm1hdCI6IndlYnAiLCJ3ZWJwIjp7InF1YWxpdHkiOjgwfX19?signature=8dd9a04e219b34454723ae1876cda86063e22f77b898d6d073c648889889b95e\">
<h2 class=\"artists-title\">芸術家</h2>
</div>
<div class=\"artist-flex\">
";
// line 148
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["artists"]) || array_key_exists("artists", $context) ? $context["artists"] : (function () { throw new RuntimeError('Variable "artists" does not exist.', 148, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["artist"]) {
// line 149
echo " <div class=\"artist-img-wrapper under790 under620\">
<a href=\"/artists/detail/";
// line 150
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["artist"], "id", [], "any", false, false, false, 150), "html", null, true);
echo "\">
";
// line 152
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, $context["artist"], "image", [], "any", false, false, false, 152)), "user_data"), "html", null, true);
echo "\" alt=artist.name>
";
// line 154
echo " <div class=\"artist-img-wrapper2\">
";
// line 155
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(0, ((isset($context["num"]) || array_key_exists("num", $context) ? $context["num"] : (function () { throw new RuntimeError('Variable "num" does not exist.', 155, $this->source); })()) - 1)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 156
echo " ";
if (array_key_exists("selectedProducts", $context)) {
// line 157
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["selectedProducts"]) || array_key_exists("selectedProducts", $context) ? $context["selectedProducts"] : (function () { throw new RuntimeError('Variable "selectedProducts" does not exist.', 157, $this->source); })()), $context["i"], [], "array", false, false, false, 157));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["selectedProduct"]) {
// line 158
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "artist_id", [], "any", false, false, false, 158) == twig_get_attribute($this->env, $this->source, $context["artist"], "id", [], "any", false, false, false, 158))) {
// line 159
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 159) < 4)) {
// line 160
echo " <div class=\"img-wrapper-artist\">
<a href=\"";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("product_detail", ["id" => twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "id", [], "any", false, false, false, 161)]), "html", null, true);
echo "\">
<img class=\"img\" src=\"";
// line 162
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($this->extensions['Eccube\Twig\Extension\EccubeExtension']->getNoImageProduct(twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "main_list_image", [], "any", false, false, false, 162)), "save_image"), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["selectedProduct"], "name", [], "any", false, false, false, 162), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 162) > 5)) {
echo " loading=\"lazy\"";
}
echo ">
</a>
</div>
";
}
// line 166
echo " ";
}
// line 167
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['selectedProduct'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 168
echo " ";
}
// line 169
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 170
echo " </div>
<p class=\"fontweight-bold top-left\">";
// line 171
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["artist"], "name", [], "any", false, false, false, 171), "html", null, true);
echo "</p>
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['artist'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 176
echo " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Artists/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 349 => 176, 338 => 171, 335 => 170, 329 => 169, 326 => 168, 312 => 167, 309 => 166, 296 => 162, 292 => 161, 289 => 160, 286 => 159, 283 => 158, 265 => 157, 262 => 156, 258 => 155, 255 => 154, 250 => 152, 246 => 150, 243 => 149, 239 => 148, 231 => 142, 221 => 141, 92 => 19, 82 => 18, 70 => 14, 60 => 13, 37 => 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.
#}
{% extends 'default_frame.twig' %}
{% block javascript %}
<script>
</script>
{% endblock %}
{% block stylesheet %}
<style>
.artists-title {
margin-left: 5%;
\t\t\tfont-weight: bold;
}
.artist-flex {
background-color: #f4f1ee;
padding: 20px;
padding-left: 5%;
margin-top: 50px;
margin: 3%;
display: flex;
flex-wrap: wrap;
border-radius: 10px;
}
.artist-img-wrapper {
padding: 10px;
margin: 10px;
border-radius: 5px;
font-size: 20px;
width: 45%;
position: relative;
flex-wrap: wrap;
}
.artist-img-wrapper img {
min-width: 600px;
max-width: 600px;
width: 600px;
height: 300px;
}
.artist-img-wrapper2 {
position: absolute;
bottom: 20px;
left: 77%;
width: 50%;
}
/* 770以下の時 */
@media screen and (max-width: 790px) {
.under790 {
width: 46%;
}
.under790-2 {
display: none;
}
}
/* 620以下の時 */
@media screen and (max-width: 620px) {
.under620 {
width: 100%;
}
}
.artist-img-wrapper a {
color: black;
}
.artist-img-wrapper a:hover {
color: #d5a770;
}
.artist-img-wrapper p {
font-size: 20px;
margin-top: 5px;
}
.artist-img-wrapper img {
min-width: 100%;
width: 100%;
height: 400px;
border-radius: 5%;
}
.header-photo {
position: relative;
}
.header-photo h2 {/*h2タグを画像の真ん中に*/
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
margin:0;/*余計な隙間を除く*/
padding:0;/*余計な隙間を除く*/
color: white;/*文字色*/
font-size: 40px;/*文字サイズ*/
text-align:center;/*pタグ内で更に中央寄せ*/
font-family: 'Quicksand',sans-serif;
font-weight: \"bold\";
}
.header-photo img {
width: 99.5%;
}
.artist-art img {
width: 300px;
height: 300px;
}
.img-wrapper-artist {
}
.img-wrapper-artist img {
padding-bottom: 5px;
}
.top-left {
position: absolute;
top: 25px;
left: 25px;
color: white;
}
</style>
{% endblock %}
{% block main %}
<div class=\"header-photo\">
<img src=\"https://sh-cdn.singulart.com/eyJidWNrZXQiOiJzaW5ndWxhcnQtd2Vic2l0ZS1wcm9kIiwia2V5IjoiYXJ0aXN0c1wvdjJcL3BpY3R1cmVzXC9jcm9wcGVkXC9zdHVkaW9cL2Jhc2VcLzEzMzZfc3R1ZGlvXzAwNzY1OGQ0NDRlMWE1MjhiOWRlODIxYmQ0MTRiNzEzLmpwZWciLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjEyMDAsImhlaWdodCI6NDYwLCJmaXQiOiJjb3ZlciJ9LCJ0b0Zvcm1hdCI6IndlYnAiLCJ3ZWJwIjp7InF1YWxpdHkiOjgwfX19?signature=8dd9a04e219b34454723ae1876cda86063e22f77b898d6d073c648889889b95e\">
<h2 class=\"artists-title\">芸術家</h2>
</div>
<div class=\"artist-flex\">
{% for artist in artists %}
<div class=\"artist-img-wrapper under790 under620\">
<a href=\"/artists/detail/{{ artist.id }}\">
{# artist写真 #}
<img src=\"{{ asset(artist.image |no_image_product, 'user_data') }}\" alt=artist.name>
{# artistが出品した写真(3枚まで) #}
<div class=\"artist-img-wrapper2\">
{% for i in 0 .. num - 1 %}
{% if selectedProducts is defined %}
{% for selectedProduct in selectedProducts[i] %}
{% if selectedProduct.artist_id == artist.id %}
{% if loop.index < 4 %}
<div class=\"img-wrapper-artist\">
<a href=\"{{ url('product_detail', {'id': selectedProduct.id}) }}\">
<img class=\"img\" src=\"{{ asset(selectedProduct.main_list_image|no_image_product, 'save_image') }}\" alt=\"{{ selectedProduct.name }}\" {% if loop.index > 5 %} loading=\"lazy\"{% endif %}>
</a>
</div>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</div>
<p class=\"fontweight-bold top-left\">{{ artist.name }}</p>
</a>
</div>
{% endfor %}
</div>
{% endblock %}", "Artists/index.twig", "/home/xs230941/tas-lab.net/public_html/app/template/default/Artists/index.twig");
}
}