. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 94.23.64.18 / Your IP :
216.73.216.185 [
Web Server : Apache System : 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 : villadal ( 6036) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/villadal/www/wp-content/themes/bahamas/template-parts/ |
Upload File : |
<?php
$argsQ = get_query_var( 'customQuery' );
$query = new WP_Query( $argsQ);
?>
<div id="<?= $args['id'] ?>" class="servizi owl-carousel row <?= " " .$args['class'] ?>">
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="item">
<?php if($args['image'] == 'Si'):?>
<div class="image">
<a title="<?= get_the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_post_thumbnail( $args['thumb'], array( 'alt' => get_the_title() ) );?></a>
</div>
<?php endif; ?>
<div class="text">
<?php if($args['title'] == 'Si'):?> <div class="tit"><a title="<?= get_the_title(); ?>" href="<?php the_permalink(); ?>"><?php $sp=get_the_title(); $cmd=explode(" ",$sp); $cmd[0]='<span>'.$cmd[0].'</span>'; echo implode(" ",$cmd); ?></a></div> <?php endif; ?>
<?php
$osp=get_field('ospiti');
$mq=get_field('mq');
?><div class="icone">
<div class="itm"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 448 512"><path d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"/></svg> <?= $osp; ?></div>
<div class="itm"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 512 512"><path d="M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"/></svg> <?= $mq."<sup>2</sup>"; ?></div>
</div>
<?php if($args['introtext'] == 'Si'):?> <div class="intro"><?php the_excerpt(); ?></div> <?php endif; ?>
<?php if($args['readmore'] == 'Si'):?> <a title="<?= get_the_title(); ?>" href="<?= get_the_permalink() ?>" class="read-more" >Scopri di più</a> <?php endif; ?>
</div>
</div>
<?php endwhile; ?>
</div> <!-- End servizi -->
<script type="text/javascript">
jQuery(document).ready(function(e){
jQuery('<?= $args['id']!=""?'#'.$args['id']:'.servizi.owl-carousel'?>').owlCarousel({
margin:20,
loop: <?= $args['loop'] ?>,
autoplay: <?= $args['autoplay'] ?>,
autoplayTimeout:4000,
nav: <?= $args['nav'] ?>,
dots: <?= $args['dots'] ?>,
responsiveClass:false,
responsive:{
0:{
items:1,
},
768:{
items:2,
},
1024:{
items: <?= $args['columns'] ?>,
}
}
});
});
</script>