<?php get_header(); ?>


<main id="main-content">





    <!-- function to run before the content -->
    <?php if (have_posts()): while (have_posts()) : the_post(); ?>




    <!-- article Alps Ski Resort Review -->
    <?php if ( in_category( 'alps')) { ?>




    <?php } //end if in category Ski Resort Reviews/Alps ?>

    <!-- article Pyrenees Ski Resort Review -->
    <?php if (in_category( 'pyrenees') ) { ?>


    <h1><?php the_title(); ?> </h1>
    <?php } //end if in category Ski Resort Reviews/Pyrenees ?>

    <!-- article Massif Central Ski Resort Review -->
    <?php if (in_category( 'massif-central') ) { ?>

    <h1><?php the_title(); ?> </h1>
    <?php } //end if in category Ski Resort Reviews/Massif Central ?>


    <!-- Ski Resort Review inprofile panels -->


    <?php if ( in_category( 'ski-resort-reviews')) { ?>


    <!-- start The Location description-->

    <section id="location-image">

        <figure>
            <div class="imageBlock">
                <?php $image=get_field( 'the_location_image'); if( !empty($image) ): ?>
                <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                <?php endif; ?>
                <span><img src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/the-location-header.svg"></span>
            </div>
        </figure>


    </section>
    <section id="location" class="wrapper">
        <div class="content-container">
            <div class="inprofile2col">
                <div class="content">

                    <?php $location=get_post_meta( $post->ID, 'location', true ) ; ?>
                    <?php if (! empty($location)) { ?>
                    <?php echo get_post_meta( $post->ID, 'location', true ) ; ?>
                    <? } ?>
                </div>

            </div>


            <!-- end The Location description -->

            <!-- start adgroup -->


            <div class="inprofile2col">


                <div class="adgroup">
                    <span style="advert">Advertisement</span>
                    <br>
                    <?php echo adrotate_group(1); ?>

                </div>

            </div>
        </div>
    </section>
    <!-- end adgroup -->

    <!-- start The Ski Area description-->
    <section id="area" class="wrapper">
        <div class="content-container">
            <figure>
                <div class="imageBlock">
                    <?php $image=get_field( 'ski_area_image'); if( !empty($image) ): ?>
                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                    <?php endif; ?>
                    <span><img src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/the-ski-area-header.svg"></span>
                </div>
            </figure>
        </div>

        <div class="content-container">
            <div class="inprofile2col">
                <div class="content">

                    <?php $skiarea=get_post_meta( $post->ID, 'skiarea', true ) ; ?>
                    <?php if ( ! empty($skiarea)) { ?>
                    <?php echo get_post_meta( $post->ID, 'skiarea', true ) ; ?>
                    <? } ?>
                </div>
            </div>


            <!-- end The ski Area description-->

            <!-- start ski area stats -->

            <div class="inprofile2col">
                <h2 class="xl-hdr_bordertopw">Resort Information</h2>
                <div class="content">
                    <div class="inprofile_logo_box">
                        <div class="resort_logo">
                            <?php $image=get_field( 'resort_logo'); if( !empty($image) ): ?>
                            <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['resort_logo']; ?>" />
                            <?php endif; ?>
                        </div>



                        <div class="resort_logo">
                            <?php $image=get_field( 'domain_logo'); if( !empty($image) ): ?>
                            <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['domain_logo']; ?>" />
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="ip_resort_sub_para">
                        <span class="ip_altitude_title">Altitude : </span>
                        <span class="ip_altitude_min"><?php echo get_post_meta( $post->ID, 'ip_altitude_min', true ) ; ?>m</span> -
                        <span class="ip_altitude_max"><?php echo get_post_meta( $post->ID, 'ip_altitude_max', true ) ; ?>m</span>
                        <br>
                    </div>
                    <div class="resort_info">
                        <div class="ip_resort_sub_para">

                            <!-- Ski Resort pistes km -->
                            <?php if( get_field( 'ip_terrain_km') ): ?>
                            <span class="ip_terrain_title"><?php echo get_post_meta( $post->ID, 'ip_name', true ) ; ?><br>
							 Pistes Total: </span><span class="ip_terrain_km"><?php echo get_post_meta( $post->ID, 'ip_terrain_km', true ) ; ?> km</span>

                            <?php endif; ?>


                            <!-- ski resort piste percentage bar -->
                            <div class="piste_bar">
                                <?php $image=get_field( 'piste_percentage_bar'); if( !empty($image) ): ?>
                                <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                                <?php endif; ?>
                            </div>

                            <!-- end piste percentage bar-->


                            <!-- Resort Pistes -->

                            <?php if( get_post_meta( $post->ID, 'ip_green_runs', true ) >= 1 ) { ?>
                            <span class="ip_green_runs"><?php echo get_post_meta( $post->ID, 'ip_green_runs', true ) ; ?> Green</span>
                            <br>
                            <?php } ?>
                            <?php if( get_post_meta( $post->ID, 'ip_blue_runs', true ) >= 1 ) { ?>
                            <span class="ip_blue_runs"><?php echo get_post_meta( $post->ID, 'ip_blue_runs', true ) ; ?> Blue</span>
                            <br>
                            <?php } ?>
                            <?php if( get_post_meta( $post->ID, 'ip_red_runs', true ) >= 1 ) { ?>
                            <span class="ip_red_runs"><?php echo get_post_meta( $post->ID, 'ip_red_runs', true ) ; ?> Red</span>
                            <br>
                            <?php } ?>
                            <?php if( get_post_meta( $post->ID, 'ip_black_runs', true ) >= 1 ) { ?>
                            <span class="ip_black_runs"><?php echo get_post_meta( $post->ID, 'ip_black_runs', true ) ; ?> Black</span>
                            <br>
                            <?php } ?>

                        </div>
                        <!-- end Resort Pistes -->


                        <!-- Resort Lifts -->
                        <div class="ip_resort_sub_para">
                            <?php if( get_field( 'ip_lifts_total') ): ?>
                            <span class="ip_lifts_title">Ski Resort Lifts : </span>
                            <span class="ip_lifts_total"><?php echo get_post_meta( $post->ID, 'ip_lifts_total', true ) ; ?> </span>
                            <br>
                            <?php endif; ?>

                            <?php if( get_post_meta( $post->ID, 'ip_magiccarpet', true ) >= 1 ) { ?>
                            <span class="ip_magiccarpet"><?php echo get_post_meta( $post->ID, 'ip_magiccarpet', true ) ; ?> Magic Carpets</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_draglifts', true ) >=1 ) { ?>
                            <span class="ip_draglifts"><?php echo get_post_meta( $post->ID, 'ip_draglifts', true ) ; ?> Draglifts</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_chairlifts', true ) >=1 ) { ?>
                            <span class="ip_chairlifts"><?php echo get_post_meta( $post->ID, 'ip_chairlifts', true ) ; ?> Chairlifts</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_telemix', true ) >=1 ) { ?>
                            <span class="ip_telemix"><?php echo get_post_meta( $post->ID, 'ip_telemix', true ) ; ?> Télémix Gondola/Chairlift</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_cabriolet', true ) >=1 ) { ?>
                            <span class="ip_cabriolet"><?php echo get_post_meta( $post->ID, 'ip_cabriolet', true ) ; ?> Cabriolet</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_funitel', true ) >=1 ) { ?>
                            <span class="ip_funitel"><?php echo get_post_meta( $post->ID, 'ip_funitel', true ) ; ?> Funitel</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_gondolas', true ) >=1 ) { ?>
                            <span class="ip_gondolas"><?php echo get_post_meta( $post->ID, 'ip_gondolas', true ) ; ?> Gondolas</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_cablecars', true ) >=1 ) { ?>
                            <span class="ip_cablecars"><?php echo get_post_meta( $post->ID, 'ip_cablecars', true ) ; ?> Cable Cars</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_funicular', true ) >=1 ) { ?>
                            <span class="ip_funicular"><?php echo get_post_meta( $post->ID, 'ip_funicular', true ) ; ?> Funicular</span>
                            <br>
                            <?php } ?>
                        </div>
                    </div>
                    <!-- end resort stats -->

                    <!-- start domain area stats -->
                    <div class="domain_info">
                        <div class="ip_resort_sub_para">

                            <?php if( get_field( 'ip_dom_terrain_km') ): ?>
                            <span class="ip_dom_terrain_title"><?php echo get_post_meta( $post->ID, 'ip_domain_name', true ) ; ?><br>
								 Pistes Total: </span><span class="ip_dom_terrain_km"><?php echo get_post_meta( $post->ID, 'ip_dom_terrain_km', true ) ; ?> km</span>
                            <br>
                            <?php endif; ?>

                            <!-- domain piste percentage bar -->

                            <div class="piste_bar">
                                <?php $image=get_field( 'domain_piste_percentage_bar'); if( !empty($image) ): ?>
                                <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                                <?php endif; ?>

                            </div>
                            <!-- end domain piste percentage bar-->

                            <!-- Domain pistes -->
                            <?php if( get_post_meta( $post->ID, 'ip_dom_green_runs', true ) >= 1 ) { ?>
                            <span class="ip_dom_green_runs"><?php echo get_post_meta( $post->ID, 'ip_dom_green_runs', true ) ; ?> Green</span>
                            <br>
                            <?php } ?>
                            <?php if( get_post_meta( $post->ID, 'ip_dom_blue_runs', true ) >= 1 ) { ?>
                            <span class="ip_dom_blue_runs"><?php echo get_post_meta( $post->ID, 'ip_dom_blue_runs', true ) ; ?> Blue</span>
                            <br>
                            <?php } ?>
                            <?php if( get_post_meta( $post->ID, 'ip_dom_red_runs', true ) >= 1 ) { ?>
                            <span class="ip_dom_red_runs"><?php echo get_post_meta( $post->ID, 'ip_dom_red_runs', true ) ; ?> Red</span>
                            <br>
                            <?php } ?>
                            <?php if( get_post_meta( $post->ID, 'ip_dom_black_runs', true ) >= 1 ) { ?>
                            <span class="ip_dom_black_runs"><?php echo get_post_meta( $post->ID, 'ip_dom_black_runs', true ) ; ?> Black</span>
                            <br>
                            <?php } ?>
                            <!-- end Domain pistes -->
                        </div>
                        <div class="ip_resort_sub_para">
                            <!-- Domain lifts -->
                            <?php if( get_field( 'ip_dom_lifts_total') ): ?>
                            <span class="ip_dom_lifts_title">Ski Domain Lifts: </span>
                            <span class="ip_dom_lifts_total"><?php echo get_post_meta( $post->ID, 'ip_dom_lifts_total', true ) ; ?></span>
                            <br>
                            <?php endif; ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_magiccarpet', true ) >=1 ) { ?>
                            <span class="ip_dom_magiccarpet"><?php echo get_post_meta( $post->ID, 'ip_dom_magiccarpet', true ) ; ?> Magic Carpets</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_draglifts', true ) >=1 ) { ?>
                            <span class="ip_dom_draglifts"><?php echo get_post_meta( $post->ID, 'ip_dom_draglifts', true ) ; ?> Draglifts</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_chairlifts', true ) >=1 ) { ?>
                            <span class="ip_dom_chairlifts"><?php echo get_post_meta( $post->ID, 'ip_dom_chairlifts', true ) ; ?> Chairlifts</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_telemix', true ) >=1 ) { ?>
                            <span class="ip_dom_telemix"><?php echo get_post_meta( $post->ID, 'ip_dom_telemix', true ) ; ?> Télémix Gondola/Chairlift</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_cabriolet', true ) >=1 ) { ?>
                            <span class="ip_dom_cabriolet"><?php echo get_post_meta( $post->ID, 'ip_dom_cabriolet', true ) ; ?> Cabriolet</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_funitel', true ) >=1 ) { ?>
                            <span class="ip_dom_funitel"><?php echo get_post_meta( $post->ID, 'ip_dom_funitel', true ) ; ?> Funitel</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_gondolas', true ) >=1 ) { ?>
                            <span class="ip_dom_gondolas"><?php echo get_post_meta( $post->ID, 'ip_dom_gondolas', true ) ; ?> Gondolas</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_cablecars', true ) >=1 ) { ?>
                            <span class="ip_dom_cablecars"><?php echo get_post_meta( $post->ID, 'ip_dom_cablecars', true ) ; ?> Cable Cars</span>
                            <br>
                            <?php } ?>

                            <?php if( get_post_meta( $post->ID, 'ip_dom_funicular', true ) >=1 ) { ?>
                            <span class="ip_dom_funicular"><?php echo get_post_meta( $post->ID, 'ip_dom_funicular', true ) ; ?> Funicular</span>
                            <br>
                            <?php } ?>
                            <!-- end Domain lifts -->
                        </div>

                    </div>
                </div>
                <!-- end domain area stats -->


            </div>

        </div>
    </section>
    <!-- ends ski area stats -->

    <!-- Start The Ski Village description-->
    <section id="village" class="wrapper">
        <div class="content-container">
            <figure>
                <div class="imageBlock">
                    <?php $image=get_field( 'ski_village_image'); if( !empty($image) ): ?>
                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                    <?php endif; ?>

                    <span><img src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/the-ski-village-header.svg"></span>
                </div>
            </figure>
        </div>


        <div class="content-container">
            <div class="inprofile2col">
                <div class="content">

                    <?php $skivillage=get_post_meta( $post->ID, 'skivillage', true ) ; ?>
                    <?php if ( ! empty($skivillage)) { ?>
                    <?php echo get_post_meta( $post->ID, 'skivillage', true ) ; ?>
                    <? } ?>
                </div>
            </div>

            <!-- ends The Ski Village -->

            <!-- start village inprofile -->

            <div class="inprofile2col">
                <h2 class="xl-hdr_bordertopw">Staying There</h2>
                <div class="content">

                    <!-- Staying There -->
                    <div class="hearts_box">

                        <span class="ip_stayingthere_value">
								<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_value', true ) ; ?>"> Value for Money</span>
                        </span>
                        <span class="ip_stayingthere_accommodation">
								<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_accommodation', true ) ; ?>"> Accommodation</span>
                        </span>
                        <span class="ip_stayingthere_diningout">
								<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_diningout', true ) ; ?>"> Dining Out</span>
                        </span>
                        <span class="ip_stayingthere_nightlife">
								<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_nightlife', true ) ; ?>"> Nightlife</span>
                        </span>
                        <span class="ip_stayingthere_charm">
								<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_charm', true ) ; ?>"> Village Charm</span>
                        </span>
                    </div>

                    <div class="famplus_logo">
                        <?php if( get_field( 'famille_plus') ): ?>
                        <?php $image=get_field( 'famille_plus_logo'); if( !empty($image) ): ?>
                        <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                        <?php endif; ?>
                        <p><strong><?php echo get_post_meta( $post->ID, 'ip_name', true ) ; ?> is a Famille Plus resort</strong>
                        </p>
                        <p><a href="http://www.familleplus.fr" target="blank">Famille Plus</a> is a national label awarded to tourist destinations offering a special welcome and services tailored to families and children.</p>
                        <?php endif; ?>
                        <p>See <a href="#practical-information">Practical Information</a> below for accommodation suggestions.</p>
                    </div>




                </div>

            </div>
        </div>

    </section>
    <!-- end village inprofile -->

    <!-- start Best For -->
    <section id="bestfor" class="wrapper">
        <div class="content-container">
            <figure>
                <div class="imageBlock">
                    <?php $image=get_field( 'best_for_image'); if( !empty($image) ): ?>
                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                    <?php endif; ?>
                    <span><img src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/best-for-header.svg"></span>
                </div>
            </figure>

        </div>



        <div class="content-container">
            <div class="inprofile2col">
                <div class="content">

                    <?php $bestfor=get_post_meta( $post->ID, 'bestfor', true ) ; ?>
                    <?php if ( ! empty($bestfor)) { ?>
                    <?php echo get_post_meta( $post->ID, 'bestfor', true ) ; ?>
                    <? } ?>
                </div>
            </div>

            <!-- end Best For -->

            <!-- start best for inprofile -->

            <div class="inprofile2col">
                <h2 class="xl-hdr_bordertopw">Skiing There</h2>
                <div class="content">
                    <div class="hearts_box">
                        <span class="ip_skiingthere_beginners">
							<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_skiingthere_beginners', true ) ; ?>"> Beginners / Families</span>
                        </span>
                        <span class="ip_skiingthere_intermediates">
							<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_skiingthere_intermediates', true ) ; ?>"> Intermediates</span>
                        </span>
                        <span class="ip_skiingthere_expert">
							<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_skiingthere_expert', true ) ; ?>"> Advanced / Expert</span>
                        </span>
                        <span class="ip_skiingthere_scenery">
							<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_skiingthere_scenery', true ) ; ?>"> Mountain Scenery</span>
                        </span>
                    </div>

                    <!-- Snowboarding -->
                    <?php if( get_field( 'ip_boarding_desc') ): ?>
                    <h3>Snowboarding</h3>
                    <span class="ip_boarding_desc"><?php echo get_post_meta( $post->ID, 'ip_boarding_desc', true ) ; ?></span>
                    <br>
                    <?php endif; ?>
                    <?php if( get_post_meta( $post->ID, 'ip_snowparks', true ) >= 1 ) { ?>
                    <span class="ip_snowparks"><?php echo get_post_meta( $post->ID, 'ip_snowparks', true ) ; ?> Snowparks</span>
                    <br>
                    <?php } ?>
                    <?php if( get_post_meta( $post->ID, 'ip_snowboarder_cross', true ) >=1 ) { ?>
                    <span class="ip_snowboarder_cross"><?php echo get_post_meta( $post->ID, 'ip_snowboarder_cross', true ) ; ?> Snowboarder Cross</span>
                    <br>
                    <?php } ?>
                    <?php if( get_post_meta( $post->ID, 'ip_half_pipe', true ) >=1 ) { ?>
                    <span class="ip_half_pipe"><?php echo get_post_meta( $post->ID, 'ip_half_pipe', true ) ; ?> Half-Pipe</span>
                    <br>
                    <?php } ?>
                    <br>
                    <br>
                    <!-- Cross-Country Skiing -->
                    <?php if( get_field( 'ip_xcountry_ski') ): ?>
                    <h3>Cross-Country Skiing</h3>
                    <span class="ip_xcountry_desc"><?php echo get_post_meta( $post->ID, 'ip_xcountry_desc', true ) ; ?></span>
                    <br>
                    <span class="ip_xcountry_ski"><?php echo get_post_meta( $post->ID, 'ip_xcountry_ski', true ) ; ?>km Cross-Country and Nordic Ski Trails</span>
                    <br>
                    <br>
                    <?php endif; ?>
                    <!-- handiski -->
                    <?php if( get_field( 'handiski') ): ?>
                    <h3>Handiski...</h3>
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'handiski', true ) ; ?>
					<?php if ( ! empty($handiski)) { ?>
					<?php echo get_post_meta( $post->ID, 'handiski', true ) ; ?>
					<? } ?> </span>
                    <?php endif; ?>
                    <!-- end handiski -->

                </div>
            </div>



        </div>
    </section>
    <!-- end best for inprofile -->

    <!-- start Resort Review extra info -->
    <section id="extra-info" class="extended-wrapper-dark">


        <div class="content-container">
            <div class="inprofile3col">

                <h3><img class="icon-smile" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/MP-smiley.svg" alt="icon-smiley">Yes please...</h3>
                <div class="content">
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'goodpoints', true ) ; ?></span>
                </div>
            </div>
            <div class="inprofile3col">
                <h3><img class="icon-frown" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/MP-frowney.svg" alt="icon-frowney">Yes but...</h3>
                <div class="content">
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'badpoints', true ) ; ?></span>
                </div>
            </div>
            <div class="inprofile3col">
                <h3><img class="icon-wink" src="<?php bloginfo('wpurl'); ?>/wp-content/uploads/2015/10/MP-wisey.svg" alt="icon-winking">Our Tips</h3>
                <div class="content">
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'ourtips', true ) ; ?></span>
                </div>

            </div>
        </div>
        </div>




    </section>
    <!-- end Resort Review extra info -->
    <!-- end Ski Resort Review intro panels section -->




    <?php } //end if in Ski Resort Reviews ?>




    <!-- article ski features -->
    <?php if (in_category( 'ski-features')) { ?>

    <h1><?php the_title(); ?> </h1>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <section id="ski-features-banner" class="wrapper">
            <div class="feature-img-wrapper">
                <div class="feature-img">
                    <?php $image=get_field( 'banner_image'); if( !empty($image) ): ?>

                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />

                    <?php endif; ?>
                </div>
            </div>
        </section>



        <div class="feature-wrapper">

            <?php the_content(); // Dynamic Content ?>

        </div>
    </article>
    <?php } //end if in Ski Features ?>
    <!-- Ski features article ends-->


    <!-- article Winter Activities -->
    <?php if (in_category( 'winter-activities') ) { ?>



    <h1><?php the_title(); ?> </h1>


    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <section id="winter-activities-banner" class="wrapper">
            <div class="feature-img-wrapper">
                <div class="feature-img">
                    <?php $image=get_field( 'banner_image'); if( !empty($image) ): ?>

                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />

                    <?php endif; ?>
                </div>
            </div>
        </section>

        <div class="feature-wrapper">

            <?php the_content(); // Dynamic Content ?>

        </div>
    </article>

    <?php } //end if in Winter Activities ?>
    <!-- article Winter Activities ends -->


    <!-- article Mountain Living -->

    <?php if (in_category( 'mountain-living')) { ?>


    <h1><?php the_title(); ?> </h1>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <section id="mountain-living-banner" class="wrapper">
            <div class="feature-img-wrapper">
                <div class="feature-img">
                    <?php $image=get_field( 'banner_image'); if( !empty($image) ): ?>

                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />

                    <?php endif; ?>
                </div>
            </div>
        </section>

        <div class="feature-wrapper">
            <?php the_content(); // Dynamic Content ?>

        </div>

    </article>

    <?php } //end if in mountain-living ?>
    <!-- article Mountain Living ends -->





    <!-- SUMMER FEATURES -->


    <!-- Summer Resort Reviews -->
    <?php if (in_category ( 'summer-resorts')) { ?>

    <!-- start The Location -->
    <section id="s-location-image">

        <figure>
            <?php $image=get_field( 'summer_location_image'); if( !empty($image) ): ?>
            <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
            <?php endif; ?>
            <h2><span>The location</span></h2>
        </figure>
    </section>
    <section id="s-location">
        <div class="content-container">

            <div class="inprofile2col">
                <div class="content">
                    <?php $location=get_post_meta( $post->ID, 'summerlocation', true ) ; ?>
                    <?php if (! empty($location)) { ?>
                    <?php echo get_post_meta( $post->ID, 'summerlocation', true ) ; ?>
                    <? } ?>
                </div>
            </div>


            <!-- end The Location -->

            <!-- start location Stats -->


            <div class="inprofile2col">
                <h2 class="xl-hdr_bordertops">Getting There</h2>
                <div class="content">
                    <span class="statsbox_text"><?php echo get_post_meta( $post->ID, 'gettingthere', true) ; ?></span>
                    <div class="heading_borderbots"></div>
                </div>
            </div>

    </section>
    <!-- end location stats -->


    <!-- Start The Summer Village -->
    <section id="s-village">
        <div class="content-container">
            <figure>
                <?php $image=get_field( 'summer_village_image'); if( !empty($image) ): ?>
                <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                <?php endif; ?>
            </figure>
            <h2>The village</h2>
        </div>


        <div class="content-container">
            <div class="inprofile2col">
                <div class="content">
                    <?php $summervillage=get_post_meta( $post->ID, 'summervillage', true ) ; ?>
                    <?php if ( ! empty($summervillage)) { ?>
                    <?php echo get_post_meta( $post->ID, 'summervillage', true ) ; ?>
                    <? } ?>
                </div>
            </div>


            <!-- start village inprofile -->
            <div class="inprofile2col">
                <h2 class="xl-hdr_bordertops">Staying There</h2>

                <!-- Staying There -->
                <div class="hearts_box">

                    <span class="ip_stayingthere_summer_value">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_summer_value', true ) ; ?>"> Value for Money</span>
                    </span>
                    <span class="ip_stayingthere_summer_accom">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_summer_accom', true ) ; ?>"> Accommodation</span>
                    </span>
                    <span class="ip_stayingthere_summer_diningout">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_summer_diningout', true ) ; ?>"> Dining Out</span>
                    </span>
                    <span class="ip_stayingthere_summer_nightlife">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_summer_nightlife', true ) ; ?>"> Nightlife</span>
                    </span>
                    <span class="ip_stayingthere_summer_charm">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_stayingthere_summer_charm', true ) ; ?>"> Village Charm</span>
                    </span>
                </div>
                <div class="content">
                    <p>See our Recommendations below for suggestions.</p>
                </div>
                <div class="famplus_logo">
                    <?php if( get_field( 'famille_plus') ): ?>
                    <?php $image=get_field( 'famille_plus_logo'); if( !empty($image) ): ?>
                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                    <?php endif; ?>
                    <p><strong><?php echo get_post_meta( $post->ID, 'ip_name', true ) ; ?> is a Famille Plus resort</strong>
                    </p>
                    <p><a href="http://www.familleplus.fr" target="blank">Famille Plus</a> is a national label awarded to tourist destinations offering a special welcome and services tailored to families and children.</p>
                    <?php endif; ?>
                </div>

            </div>

    </section>
    <!-- end village inprofile -->

    <!-- Start Summer Resort Activities -->
    <section id="s-activities">
        <div class="content-container">
            <figure>
                <?php $image=get_field( 'summer_activities_image'); if( !empty($image) ): ?>
                <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
                <?php endif; ?>
            </figure>
            <h2>Summer Activities</h2>
        </div>


        <div class="content-container">
            <div class="inprofile2col">
                <div class="content">
                    <?php $resortactivities=get_post_meta( $post->ID, 'resortactivities', true ) ; ?>
                    <?php if ( ! empty($resortactivities)) { ?>
                    <?php echo get_post_meta( $post->ID, 'resortactivities', true ) ; ?>
                    <? } ?>
                </div>
            </div>

            <!-- ends Resort Activities content-->

            <!-- start  Resort Activities inprofile -->
            <div class="inprofile2col">

                <h2 class="xl-hdr_bordertops">Activities There</h2>
                <div class="hearts_box">
                    <div class="content">
                        <span class="ip_attractions">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_attractions', true ) ; ?>"> Attractions</span>
                        </span>
                        <span class="ip_walking">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_walking', true ) ; ?>"> Walking</span>
                        </span>
                        <span class="ip_cycling">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_cycling', true ) ; ?>"> Cycling</span>
                        </span>
                        <span class="ip_activities">
						<span class="hearts-<?php echo get_post_meta( $post->ID, 'ip_activities', true ) ; ?>"> Activities</span>
                        </span>

                    </div>



                </div>


                <!-- end activities inprofile -->
            </div>

    </section>
    <!-- Ends Summer Resort Reviews inprofile -->



    <!-- start Summer Resort extra info -->
    <section id="s-extrainfo" class="extended-wrapper">

        <div class="content-container">
            <div class="inprofile3col">
                <h3>Yes please...</h3>
                <div class="content">
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'summer_goodpoints', true ) ; ?></span>
                </div>
            </div>
            <div class="inprofile3col">
                <h3>Yes but...</h3>
                <div class="content">
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'summer_badpoints', true ) ; ?></span>
                </div>
            </div>
            <div class="inprofile3col">
                <h3>Our Tips</h3>
                <div class="content">
                    <span class="ip_bulletpts"><?php echo get_post_meta( $post->ID, 'summer_ourtips', true ) ; ?></span>
                </div>
            </div>

        </div>


    </section>
    <!-- end Summer Resort extra info -->

    <!-- end Summer Resort Review intro panels section -->
    <hr class="divider">

    <!-- Summer Resort Review main article -->
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="feature-wrapper">

            <?php the_content(); // Dynamic Content ?>

        </div>
    </article>


    <?php } //end if in Summer Resort Reviews ?>



    <!-- article Summer Activities -->
    <?php if (in_category ( 'summer-activities')) { ?>
    <p><a href="<?php bloginfo('wpurl'); ?>/category/summer/summer-activities/">Back to Summer Activities index</a> </p>

    <h1><?php the_title(); ?> </h1>
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="feature-wrapper">

            <?php the_content(); // Dynamic Content ?>

        </div>
    </article>

    <?php } //end if in Summer Activities ?>





    <!-- article Scenic Touring -->
    <?php if (in_category( 'scenic-touring')) { ?>
    <p><a href="<?php bloginfo('wpurl'); ?>/category/summer/scenic-touring/">Back to Scenic Touring index</a> </p>

    <h1><?php the_title(); ?> </h1>
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="feature-wrapper">

            <?php the_content(); // Dynamic Content ?>

        </div>
    </article>


    <!-- Origins of the route begins -->
    <div class="content-container">
        <?php if( get_field( 'routehistory')): ?>
        <div class="inprofile2col">
            <h2>Origins of the Route</h2>
            <span class="content">
						<?php echo get_post_meta( $post->ID, 'routehistory', true ); ?></span>
        </div>
        <?php endif; ?>
        <!-- Ends Origins of the route-->

        <!-- Starts Useful addresses  -->
        <?php if( get_field( 'usefuladdresses') ): ?>
        <div class="inprofile2col">
            <h2>Useful Addresses</h2>
            <span class="content">
						<?php echo get_post_meta( $post->ID, 'usefuladdresses', true ) ; ?></span>
        </div>
        <?php endif; ?>
        <!-- ends Useful addresses -->

    </div>


    <?php } //end if in Scenic Touring ?>




    <!-- article parent category News & Offers, categories ski deals, ski news, property news -->
    <!-- Single post with sidebar -->

    <?php if (in_category( 'news-offers')) { ?>


    <section class="wrapper">
        <div class="feature-img-wrapper">
            <div class="feature-img">
                <?php $image=get_field( 'banner_image'); if( !empty($image) ): ?>

                <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />

                <?php endif; ?>
            </div>
        </div>
    </section>



    <section id="news-offers">
        <div class="newswrapper container">
            <div class="newswrap-inside">
                <div class="news-container">
                    <h2><?php the_title(); ?> </h2>

                    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

                        <?php the_content(); // Dynamic Content ?>
                    </article>
                </div>

                <div id="sidebar-primary">
                    <div id="sidebar-top-div"></div>
                    <div id="sidebar-content">

                        <!-- excludes smart currency single post (iframe) -->
                        <?php if(is_single( 'currency-zone')) { // nothing } else { get_sidebar( 'primary'); } ?>

                        <div id="sidebar-bottom-div"></div>
                    </div>
                </div>

            </div>
        </div>

    </section>
    <?php }// end if in news & offers ?>
    <!-- Ends news & offers articles -->




    <!--Practical info sections-->
    <?php $this_cat=get_the_category($post->ID); $this_cat_slug = $this_cat[0]->slug; ?>
    <?php if ($this_cat_slug !='news-offers' ) : /* || $this_other_slug !='other-category' */ ?>
    <section id="practical-information" class="wrapper">
        <h2 class="xl-hdr_bordertopw">Practical Information</h2>
        <div class="content-container">

            <!-- Essential Info Starts-->
            <!-- Getting there begins -->
            <?php if( get_field( 'gettingthere') ): ?>
            <div class="inprofile3col">
                <h2>Getting there</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'gettingthere', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends Getting there -->

            <!-- Where to stay begins -->
            <?php if( get_field( 'wheretostay') ): ?>
            <div class="inprofile3col">
                <h2>Where to stay</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'wheretostay', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends Where to stay -->


            <!-- Where to eat begins -->
            <?php if( get_field( 'wheretoeat') ): ?>
            <div class="inprofile3col">
                <h2>Where to Eat</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'wheretoeat', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends Where to eat -->


            <!-- Things to do begins -->
            <?php if( get_field( 'thingstodo') ): ?>
            <div class="inprofile3col">
                <h2>Things To Do</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'thingstodo', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends Things to do -->

            <!-- Ski Features -->
            <!-- Ski Features Where to stay  begins-->
            <?php if( get_field( 'skifeatures_wheretostay') ): ?>
            <div class="inprofile3col">
                <h2>Where To Stay</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'skifeatures_wheretostay', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ski Features Where to stay  ends-->


            <!-- Ski Features Info begins-->
            <?php if( get_field( 'skifeatures_info') ): ?>
            <div class="inprofile3col">
                <h2>Useful Information</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'skifeatures_info', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ski Features Info ends-->

            <!-- Ski Features Useful Addresses begins-->
            <?php if( get_field( 'skifeatures_usefuladdresses') ): ?>
            <div class="inprofile3col">
                <h2>Useful Addresses</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'skifeatures_usefuladdresses', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ski Features Useful Addresses ends-->



            <!-- Equipment required begins -->
            <?php if( get_field( 'equipment') ): ?>
            <div class="inprofile3col">
                <h2>Equipment Required</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'equipment', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends equipment req'd -->

            <!-- Winter Activities -->

            <!--Where to Stay -->
            <?php if( get_field( 'wfeatures_wheretostay') ): ?>
            <div class="inprofile3col">
                <h2>Where to stay</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'wfeatures_wheretostay', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends Where to stay -->

            <!--Winter Useful info -->
            <?php if( get_field( 'wfeatures_info') ): ?>
            <div class="inprofile3col">
                <h2>Useful Info</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'wfeatures_info', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends Winter Useful info -->

            <!-- Food and Drink begins -->
            <?php if( get_field( 'foodanddrink')): ?>
            <div class="inprofile3col">
                <h2>Food and Drink</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'foodanddrink', true ); ?></span>
            </div>
            <?php endif; ?>
            <!-- Ends Food and Drink-->


            <!-- Summer Where to Stay -->
            <?php if( get_field( 'sfeatures_wheretostay') ): ?>
            <div class="inprofile3col">
                <h2>Where to Stay</h2>
                <span class="content">
					<?php echo get_post_meta( $post->ID, 'sfeatures_wheretostay', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ends Summer Where to stay -->

            <!-- Summer Features -->
            <?php if( get_field( 'sfeatures_info') ): ?>
            <div class="inprofile3col">
                <h2>Useful Information</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'sfeatures_info', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ends Summer Useful info -->

            <!-- Summer resort Activities to do -->
            <?php if( get_field( 'activities') ): ?>
            <div class="inprofile3col">
                <h2>Resort Activities</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'activities', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ends Summer Resort Activities to do -->



            <!-- Mountain Living Features -->
            <?php if( get_field( 'livfeatures_info') ): ?>
            <div class="inprofile3col">
                <h2>Information</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'livfeatures_info', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- Ends Mountain Living Useful Info -->


            <!-- When to Go -->
            <?php if( get_field( 'whentogo') ): ?>
            <div class="inprofile3col">
                <h2>When to go</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'whentogo', true ) ; ?></span>
            </div>
            <?php endif; ?>
            <!-- ends When to go -->


            <!-- Places to visit begins -->
            <?php if( get_field( 'placestovisit')): ?>
            <div class="inprofile3col">
                <h2>Places to Visit</h2>
                <span class="content">
			<?php echo get_post_meta( $post->ID, 'placestovisit', true ); ?></span>
            </div>
            <?php endif; ?>
            <!-- Ends Places to visit -->

        </div>
        <!-- ends content-container -->


    </section>
    <!-- ends practical info sections-->
    <?php endif; // end if slug=n ews-offers ?>

    <?php if ( in_category( 'ski-resort-reviews')) : ?>
    <!-- main ski article -->
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

        <section id="insight" class="wrapper">
            <div class="feature-img-wrapper">
                <div class="feature-img">
                    <?php $image=get_field( 'insight_header_image'); if( !empty($image) ): ?>

                    <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />

                    <?php endif; ?>
                </div>
            </div>
        </section>
        <div class="feature-wrapper">
            <?php the_content(); // Dynamic Content ?>
        </div>
    </article>
    <!-- /end article Ski Reviews -->
    <?php endif; // end if in ski-resort-reviews ?>
    <!-- Copyright -->
    <!-- <section id="copyright" class="wrapper">
	<p class="copyright">
		<?php _e( 'Feature by ', 'html5blank' ); the_author(); ?>, &copy; <?php echo date("Y") ?>
	</p>
</section> -->
    <!-- ends copyright -->


    <!-- Contextual Related Posts -->
    <?php if ( function_exists( 'echo_ald_crp' ) ) echo_ald_crp(); ?>
    <!-- Contextual Related Posts end-->


    <?php endwhile; ?>

    <?php else: ?>



    <!-- article -->
    <article>

        <h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1>

    </article>
    <!-- /article  -->

    <?php endif; ?>



    <!-- ends page content-->

    <p><a id="bottom" href="#main-content">Return to top of page.</a>
    </p>

</main>
<!-- ends main content -->

<script src="https://www.dwin2.com/pub.160812.min.js"></script>
<!-- script to render real url on ads -->

<?php get_footer(); ?>