<?php } elseif (isset($virtue_premium['slider_widget_layout']) && $virtue_premium['slidernwidget_cols'] == 'col-md-7') { ?> <div class="slider-left col-md-7"> <?php } elseif (isset($virtue_premium['slider_widget_layout']) && $virtue_premium['slidernwidget_cols'] == 'col-md-6') { ?> <div class="slider-left col-md-6"> <?php } ?> <?php $detect = new Mobile_Detect_Virtue(); if ($detect->isMobile() && !$detect->isTablet() && $virtue_premium['mobile_switch'] == '1') { $slider = $virtue_premium['choose_mobile_slider']; if ($slider == "rev") { get_template_part('templates/mobile_home/mobilerev', 'slider'); } else { if ($slider == "flex") { get_template_part('templates/mobile_home/mobileflex', 'slider'); } else { if ($slider == "video") { get_template_part('templates/mobile_home/mobilevideo', 'block'); } else { if ($slider == "cyclone") { get_template_part('templates/mobile_home/cyclone', 'slider'); } } }
<?php global $virtue_premium; $mobile_detect = false; if (isset($virtue_premium['mobile_switch']) && $virtue_premium['mobile_switch'] == '1') { $mobile_slider = true; $detect = new Mobile_Detect_Virtue(); if (isset($virtue_premium['mobile_tablet_show']) && $virtue_premium['mobile_tablet_show'] == '1') { if ($detect->isMobile()) { $mobile_detect = true; } else { $mobile_detect = false; } } else { if ($detect->isMobile() && !$detect->isTablet()) { $mobile_detect = true; } else { $mobile_detect = false; } } } else { $mobile_slider = false; } if ($mobile_slider == true && $mobile_detect == true) { $slider = $virtue_premium['choose_mobile_slider']; if ($slider == "rev") { get_template_part('templates/mobile_home/mobilerev', 'slider'); } else { if ($slider == "flex") { get_template_part('templates/mobile_home/mobileflex', 'slider'); } else {