PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
hotelcoronado
/
wp-content
/
themes
/
hotelcoronado
<?php /* Template Name: Home Page */ get_header(); $args = array( 'post_type' => 'packages', 'tipologie' => 'in-evidenza', 'posts_per_page' => 4 ); $packs = new WP_Query($args); $packs_found = $packs->found_posts; ?> <section id="top-booking" class="top-booking"> <div class="container"> <div class="row"> <div class="col-sm-12"> <?php if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar('booking-sb') ) : ?> <?php endif; ?> </div> </div> </div> </section> <section class="wrapper"> <div class="main-content container" style="display: none;"> <div class="row packages"> <!-- Start the Loop. --> <?php $i = 0; if ( $packs->have_posts() ) : while ( $packs->have_posts() ) : $packs->the_post(); $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); ?> <div class="col-sm-3 <?php echo ( $packs_found <= 3 ) ? 'col-sm-offset-1' : '' ?>"> <div class="stretch-me" data-stretch="<?php echo $thumb_url[0]; ?>"> <a href="<?php the_permalink(); ?>" class="inner"> <h2><?php the_title(); ?><span class="title-block"></span></h2> <p><?php the_excerpt(); ?></p> <h3><?php _e('A partire da CHF','coronado'); ?>: <?php the_field('prezzo'); ?>.-</h3> </a> </div> </div> <?php endwhile; endif; wp_reset_query(); ?> </div> <div class="row"> <div class="col-sm-12"> <hr /> </div> </div> <!-- /row --> </div> <!-- main-content --> <hr /> <div <?php post_class('main-content container') ?>> <h2 class="text-center not-top sm-push-bot"><?php _e('Pacchetti, Promozioni e menu della settimana','coronado'); ?></h2> <div class="row packages-alt"> <!-- Start the Loop. --> <?php $i = 0; if ( $packs->have_posts() ) : while ( $packs->have_posts() ) : $packs->the_post(); $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail', true); ?> <div class="col-sm-5 pack <?php echo ($i % 2 == 0 ? 'col-sm-offset-1' : ''); echo ($i <= 2 ? ' sm-push-bot' : ''); ?>"> <div class="row"> <div class="col-sm-5"> <figure class="stretch-me" data-stretch="<?php echo $thumb_url[0]; ?>"></figure> </div> <div class="col-sm-7 greybox"> <a href="<?php the_permalink(); ?>" class="inner"> <h2 class="no-style"><?php the_title(); ?></h2> <p><?php the_excerpt(); ?></p> <h3><?php _e('A partire da CHF','coronado'); ?>: <?php the_field('prezzo'); ?>.-</h3> </a> </div> </div> </div> <?php $i++; endwhile; endif; wp_reset_query(); ?> </div> </div> <!-- /main-content --> </section> <?php get_footer(); ?>
[-] tmpl-homepage.php
[open]
[+]
images
[-] taxonomy-tipologie.php
[open]
[+]
css
[-] tmpl-ubicazione.php
[open]
[-] functions.php
[open]
[+]
..
[-] packages.php
[open]
[-] single.php
[open]
[+]
js
[+]
partials
[+]
admin
[-] page.php
[open]
[-] footer.php
[open]
[-] archive.php
[open]
[-] header.php
[open]
[+]
fonts
[-] screenshot.png
[open]
[-] loop-archive.php
[open]
[-] index.php
[open]
[-] tmpl-booking.php
[open]
[-] style.css
[open]