summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2023-01-17 09:38:03 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2023-01-17 09:38:03 +0000
commitae8c2901c9ee417761fcdfe4a41f9362ffb6685e (patch)
tree8ccce47a774dfa8566034ba2030a574e91d2d9da /views/mods
parente91fbd59950b1766789da82f7e280e46088dc675 (diff)
- Bilder in Produktgruppenverwaltung
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8200 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_productgroups/show_2.phtml9
1 files changed, 7 insertions, 2 deletions
diff --git a/views/mods/mod_productgroups/show_2.phtml b/views/mods/mod_productgroups/show_2.phtml
index 96ff569..2f8eaef 100644
--- a/views/mods/mod_productgroups/show_2.phtml
+++ b/views/mods/mod_productgroups/show_2.phtml
@@ -45,7 +45,12 @@
<?php foreach ($arProductgroups as $k => $oProductgroup) { ?>
- <a href="<?php echo $page_url; ?>show=<?php echo $oProductgroup->getId(); ?>" class="productgroup">
+ <a href="<?php
+
+ if (intval($oProductgroup->__get('infopage')) > 0) echo \get_permalink(intval($oProductgroup->__get('infopage')));
+ else echo $page_url.'show='.$oProductgroup->getId();
+
+ ?>" class="productgroup">
<div class="title"><?php echo $oProductgroup->getLabel(); ?></div>
@@ -61,7 +66,7 @@
<style>
- .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; }
+ .wpsg_mod_productgroup_layout2.productgroups { all:revert; width:100%; display:grid; grid-template-columns:repeat(2, 1fr); grid-template-rows:repeat(10, 1fr); grid-column-gap:1rem; grid-row-gap:1rem; }
.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%; }
.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; }
.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; }