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/themes/bahamas/      ( Reset | Go to )
File Name: page-appartamento.php
Edit
<?php 
/*
Template name:appartamenti
*/

if ( ! defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly.
}
?>


<?php get_header(); ?>

<?php if(has_post_thumbnail()){
            if(
wp_is_mobile()){
                
$slide get_the_post_thumbnail_urlnull'medium' );
            } else{
                
$slide get_the_post_thumbnail_urlnull'full' );
            }
            
        } else{
            
$slide get_header_image();
        }

        if(
has_post_thumbnail() || has_header_image()){
            if(!
show_title()){
                
$titolo '<h1 class="main-title">'get_the_title() .'</h1>';
            }
            if(!
show_image()){
               echo 
'<div class="page-hero" style="background-image: url('$slide .'); "></div>';
            }
            
        }

 
?>        


<div class="pagina corp pt-60 pb-60">  
   <?= $titolo?>
     <?php
                        $osp
=get_field('ospiti');
                        
$mq=get_field('mq'); 
                        
$idG=get_field('gallery_id');
                        
?>
                        <?php
                
if($idG!="NULL" &&is_numeric($idG))
                {
                    echo 
do_shortcode('[emme_gallery id="'.$idG.'" columns="3" template="masonry" ]');
                }
                    
?>    
   <div class="row">
       
    <div class="col-8 col-md-8 col-sm-12">  
     <div class="mert">
         <h2><?= get_the_title();?></h2>
     
      <div class="icone">
                        <div class="itm"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" 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="16" height="16" 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 class="itm"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 512 512"><path d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"/></svg> Villa Dalegno</div>
                        </div>
       </div>
        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <?php the_content(); ?>
        <?php endwhile; endif; ?> 
    </div> 
    <div class="col-4 col-md-4 col-sm-12">  
       <div class="richiesta">
            <div class="tit">Richiedi Disponibilità</div>
         <div class="mb-20"></div>
           
        <?php echo do_shortcode('[contact-form-7 id="141" title="Prenota Camera"]'); ?>
       </div>
          
        
    </div> 
   </div>     
</div>


<?php get_footer(); ?>

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

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL