From 368f9b5a636ff769ed8f116fd90c88cb55c5d1e0 Mon Sep 17 00:00:00 2001
From: Henning Leutz <leutz@pcsg.de>
Date: Tue, 11 Feb 2020 15:34:40 +0100
Subject: [PATCH] refactor: mobild and desktop detection -> server side

---
 src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.html b/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.html
index f6ad42f..0082cb4 100644
--- a/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.html
+++ b/src/QUI/Bricks/Controls/Slider/PromosliderWallpaper.html
@@ -1,7 +1,7 @@
 <div class="quiqqer-bricks-promoslider-wallpaper-container">
-    {if $isDesktop}
+    {if $isMobile}
     {strip}
-    <ul class="hide-on-mobile">
+    <ul class="hide-on-mobile quiqqer-bricks-promoslider-mobileSlides">
         {foreach $desktopSlides as $key => $slide}
         <li data-image="{image image=$slide.image onlysrc=1}" data-href="{$slide.url}" data-newTab="{$slide.newTab}">
             {if $slide.url}<a href="{$slide.url}" {if $slide.newTab} target="_blank" {/if}>{/if}
@@ -42,9 +42,9 @@
     {/strip}
     {/if}
 
-    {if $isMobile}
+    {if $isDesktop}
     {strip}
-    <ul class="hide-on-desktop">
+    <ul class="hide-on-desktop quiqqer-bricks-promoslider-desktopSlides">
         {foreach $mobileSlides as $key => $slide}
         <li data-image="{image image=$slide.image onlysrc=1}" data-href="{$slide.url}" data-newTab="{$slide.newTab}">
             {if $slide.url}<a href="{$slide.url}" {if $slide.newTab} target="_blank" {/if}>{/if}
-- 
GitLab