Dashboard
PHP:
8.0.30
OS:
Linux
User:
hoozgot
/
/
home
/
hoozgot
/
www
/
mountainpassions
/
winter
/
wp-content
/
themes
/
peakie-2015
📤 Upload
📝 New File
📁 New Folder
Close
Editing: sidebar-ski-features.php
<!-- sidebar --> <div id="sidebar-right"> <div class="sidebar-top-div"> <h3 class="sidebar-title">Practical Information</h3> </div> <div class="sidebar-content"> <?php dynamic_sidebar( 'ski-features' ); ?> <!-- Ski Features Info begins (includes getting there)--> <?php if( get_field('skifeatures_info') ): ?> <h2>Useful Information</h2> <span class="content"> <?php echo get_post_meta( $post->ID, 'skifeatures_info', true ) ; ?></span> <?php endif; ?> <!-- Ski Features Info ends--> <!--Holiday Autos --> <?php if ( is_single(array ( 595,597, ) ) ): ?> <!-- specifies which post ad appears on --> <p>Advertisement</p> <?php echo adrotate_ad(28); ?> <!-- specifies which ad appears --> <hr> <?php endif; ?> <!-- ends which post it appears on --> <!--Club Med ski--> <?php if ( is_single(array ( '631',) ) ): ?> <!-- specifies which post ad appears on --> <p>Advertisement</p> <?php echo adrotate_ad(57); ?> <!-- specifies which ad appears --> <?php endif; ?> <!-- ends which post it appears on --> <!--Ski Lifts --> <?php if ( is_single(array ( 9721,) ) ): ?> <!-- specifies which post ad appears on --> <p>Advertisement</p> <?php echo adrotate_ad(32); ?> <!-- specifies which ad appears --> <hr> <?php endif; ?> <!-- ends which post it appears on --> <!-- Ski Features Where to stay begins--> <?php if( get_field('skifeatures_wheretostay') ): ?> <h2>Where To Stay</h2> <span class="content"> <?php echo get_post_meta( $post->ID, 'skifeatures_wheretostay', true ) ; ?></span> <?php endif; ?> <!-- Ski Features Where to stay ends--> <!-- Equipment required begins --> <?php if( get_field('equipment') ): ?> <h2>Equipment Required</h2> <span class="content"> <?php echo get_post_meta( $post->ID, 'equipment', true ) ; ?></span> <?php endif; ?> <!-- ends equipment req'd --> <!--Holiday Autos --> <?php if ( is_single(array ('',) ) ): ?> <!-- specifies which post ad appears on --> <p>Advertisement</p> <?php echo adrotate_ad(28); ?> <!-- specifies which ad appears --> <hr> <?php endif; ?> <!-- ends which post it appears on --> <!-- Ski Features Useful Addresses begins--> <?php if( get_field('usefuladdresses') ): ?> <h2>Useful Addresses</h2> <span class="content"> <?php echo get_post_meta( $post->ID, 'usefuladdresses', true ) ; ?></span> <?php endif; ?> <!-- Ski Features Useful Addresses ends--> <hr> <!--Read the review link panel --> <?php if ( is_single('10193','11043','12763') ) : ?> <a href="http://www.mountainpassions.com/winter/category/ski-resort-reviews/"> <img src="http://www.mountainpassions.com/winter/wp-content/uploads/2017/02/review-link-300-250.jpg" /></a> <?php endif; ?> <!--example--> <?php $image = get_field('ski_review_link_300'); if ( is_single()) { ?> <a href="http://www.mountainpassions.com/winter/?p=8283&preview=true" target="blank" title="Valmorel Ski Resort Review"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /></a> <?php } elseif ( is_single() ) { ?> <a href="http://www.mountainpassions.com/winter/?p=545&preview=true" target="blank" title="Sainte-Foy Ski Resort Review"><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /></a> <?php } elseif ( is_single() ) { ?> <img src="" /> <?php } elseif ( is_page() ) { ?> <img src="" /> <?php } else { ?> <img src="" /> <?php } ?> </div> <div class="sidebar-bottom-div"></div> </div> <!-- /sidebar -->
Save
Cancel