Skip to content

Commit 19fcf96

Browse files
authored
Update label-css.phtml
1 parent b5b1a74 commit 19fcf96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

view/frontend/templates/label-css.phtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@
66
?>
77
<?php
88
/** @var $block \Magefan\ProductLabel\Block\LabelCss */
9+
/** @var \Magefan\Community\Api\HyvaThemeDetectionInterface $mfHyvaThemeDetection */
910
?>
1011

1112
<style>
1213
/*.mf-label-container {display: block;top:0;right: 0;left: 0;bottom: 0; width: 100%; height: 100%}*/
1314
.mf-label-container .mf-label {position: absolute; z-index: 9; width: fit-content;}
1415
.mf-label-container .mf-label.mf-label-position-top-left {top: 0;left: 0;}
1516

16-
/* HYVA START */
17+
<?php if ($mfHyvaThemeDetection->execute()) { ?>
1718
.product-item-photo {position: relative;}
18-
/* HYVA END */
19+
<?php } ?>
20+
1921
</style>
2022

2123

0 commit comments

Comments
 (0)