Line 45... |
Line 45... |
45 |
|
45 |
|
46 |
<?php foreach ($arProductgroups as $k => $oProductgroup) { ?>
|
46 |
<?php foreach ($arProductgroups as $k => $oProductgroup) { ?>
|
47 |
|
47 |
|
48 |
<a href="<?php echo $page_url; ?>show=<?php echo $oProductgroup->getId(); ?>" class="productgroup">
|
48 |
<a href="<?php echo $page_url; ?>show=<?php echo $oProductgroup->getId(); ?>" class="productgroup">
|
49 |
|
49 |
|
50 |
<div class="title"><?php echo $oProductgroup->getName(); ?></div>
|
50 |
<div class="title"><?php echo $oProductgroup->getLabel(); ?></div>
|
51 |
|
51 |
|
52 |
<?php echo \wp_get_attachment_image($oProductgroup->getImage(), 'full', false, [
|
52 |
<?php echo \wp_get_attachment_image($oProductgroup->getImage(), [462, 462], false, [
|
53 |
'class' => 'bg'
|
53 |
'class' => 'bg'
|
54 |
]); ?>
|
54 |
]); ?>
|
55 |
|
55 |
|
56 |
</a>
|
56 |
</a>
|
57 |
|
57 |
|
Line 61... |
Line 61... |
61 |
|
61 |
|
62 |
<style>
|
62 |
<style>
|
63 |
|
63 |
|
64 |
.wpsg_mod_productgroup_layout2.productgroups { all:revert; display:grid; grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(10, 1fr); grid-column-gap:1rem; grid-row-gap:1rem; }
|
64 |
.wpsg_mod_productgroup_layout2.productgroups { all:revert; display:grid; grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(10, 1fr); grid-column-gap:1rem; grid-row-gap:1rem; }
|
65 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup { grid-column:span 2; padding-top:100%; text-decoration:none; position:relative; overflow:hidden; transition:all 0.3s ease; overflow:hidden width:100%; }
|
65 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup { grid-column:span 2; padding-top:100%; text-decoration:none; position:relative; overflow:hidden; transition:all 0.3s ease; overflow:hidden width:100%; }
|
66 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup .bg { position:absolute; left:0; top:0; object-position:50% 50%; background-color:#DEDEDE; width:100%; height:100%; object-fit:cover; z-index:-1; }
|
66 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup .bg { position:absolute; left:0; top:0; object-position:50% 50%; background-color:#DEDEDE; width:100%; height:100%; object-fit:cover; z-index:1; }
|
67 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup .title { border-radius:2px; transition:all 0.3s ease; position:absolute; left:1rem; top:1rem; background-color:#000000; color:#FFFFFF; padding:0 0.5rem; }
|
67 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup .title { z-index:2; border-radius:2px; transition:all 0.3s ease; position:absolute; left:1rem; top:1rem; background-color:#000000; color:#FFFFFF; padding:0 0.5rem; }
|
68 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup:hover .title { background-color:#FFFFFF; color:#000000; }
|
68 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup:hover .title { background-color:#FFFFFF; color:#000000; }
|
69 |
|
69 |
|
70 |
@media screen and (min-width:768px) {
|
70 |
@media screen and (min-width:768px) {
|
71 |
|
71 |
|
72 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup { padding-top:initial; grid-column:initial; }
|
72 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup { padding-top:initial; grid-column:initial; }
|
73 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 1),
|
73 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 1),
|
74 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 5) { grid-row:span 2; padding-top:200px; }
|
74 |
.wpsg_mod_productgroup_layout2.productgroups > .productgroup:nth-child(6n + 5) { grid-row:span 2; padding-top:100%; }
|
75 |
|
75 |
|
76 |
}
|
76 |
}
|
77 |
|
77 |
|
78 |
</style>
|
78 |
</style>
|
79 |
|
79 |
|