mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 20:42:59 +00:00
ff
This commit is contained in:
+2
-5
@@ -145,9 +145,6 @@
|
|||||||
" alt="Banner obrázek" class="banner-image" onerror="console.error('Failed to load banner image:', this.src)">
|
" alt="Banner obrázek" class="banner-image" onerror="console.error('Failed to load banner image:', this.src)">
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
// Add image to content
|
|
||||||
content += imgContainer;
|
|
||||||
|
|
||||||
// Wrap image with link if URL is provided
|
// Wrap image with link if URL is provided
|
||||||
if (bannerLink) {
|
if (bannerLink) {
|
||||||
imgContainer = `
|
imgContainer = `
|
||||||
@@ -187,8 +184,8 @@
|
|||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add image if position is right or bottom
|
// Add image if position is right or bottom (only if not already added)
|
||||||
if (['right', 'bottom'].includes(imagePosition)) {
|
if (['right', 'bottom'].includes(imagePosition) && !['left', 'top'].includes(imagePosition)) {
|
||||||
content += imgContainer;
|
content += imgContainer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user