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: single-ski-deals.php
<!-- article parent category News & Offers, category ski deals --> <!-- Single post with sidebar --> <?php if (in_category('ski-deals')) { ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <section id="news-offers-banner" class="extended-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="news-container"> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb(' <p id="breadcrumbs">','</p> '); } ?> <div class="feature-title"> <h1><?php the_title(); ?> </h1> <h2> <?php $value = get_field( "feature-sub-title" ); if( $value ) { echo $value; } else { echo ''; } ?></h2> </div> <?php the_date(); ?> <?php the_content(); // Dynamic Content ?> </div> </section> <?php if ( is_single( '9759' ) ) : ?> <section> <div class="author-bio"> <div class="author-info"> <h4><?php _e( 'Feature by ', 'peakie-2015' ); the_author(); ?> © <?php echo date("Y") ?></h4> <p class="author-description"><?php the_author_meta('description'); ?></p> <p>Website: <a href="<?php the_author_meta('user_url');?>"><?php the_author_meta('user_url');?></a></p> <ul id="icons"> <?php $rss_url = get_the_author_meta( 'rss_url' ); if ( $rss_url && $rss_url != '' ) { echo '<li class="rss"><a href="' . esc_url($rss_url) . '"></a></li>'; } $google_profile = get_the_author_meta( 'google_profile' ); if ( $google_profile && $google_profile != '' ) { echo '<li class="google"><a href="' . esc_url($google_profile) . '" rel="author"></a></li>'; } $twitter_profile = get_the_author_meta( 'twitter_profile' ); if ( $twitter_profile && $twitter_profile != '' ) { echo '<li class="twitter"><a href="' . esc_url($twitter_profile) . '"><img src="http://www.mountainpassions.com/winter/wp-content/uploads/2015/12/1451332801_twitter.svg" style="width:50px; height:50px;" alt="Follow us on Twitter" target="blank"></a></li>'; } $facebook_profile = get_the_author_meta( 'facebook_profile' ); if ( $facebook_profile && $facebook_profile != '' ) { echo '<li class="facebook"><a href="' . esc_url($facebook_profile) . '"><img src="http://www.mountainpassions.com/winter/wp-content/uploads/2015/12/1451330871_facebook_circle.svg" style="width:50px; height:50px;" alt="follow us on Facebook"></a></li>'; } $pinterest_profile = get_the_author_meta( 'pinterest_profile' ); if ( $pinterest_profile && $pinterest_profile != '' ) { echo '<li class="pinterest"><a href="' . esc_url($pinterest_profile) . '"><img src="http://www.mountainpassions.com/winter/wp-content/uploads/2015/12/1451330896_pinterest_circle.svg" style="width:50px; height:50px;" alt="follow us on Facebook"></a></li>'; } $instagram_profile = get_the_author_meta( 'instagram_profile' ); if ( $instagram_profile && $instagram_profile != '' ) { echo '<li class="instagram"><a href="' . esc_url($instagram_profile) . '"><img src="http://www.mountainpassions.com/winter/wp-content/uploads/2017/01/Instagram-logo-50px.jpg" style="width:50px; height:50px;" alt="follow us on Instagram"></a></li>'; } $linkedin_profile = get_the_author_meta( 'linkedin_profile' ); if ( $linkedin_profile && $linkedin_profile != '' ) { echo '<li class="linkedin"><a href="' . esc_url($linkedin_profile) . '"></a></li>'; } ?> </ul> </div> <!--END .author-bio--> </div> </section> <?php endif; ?> </article> <?php get_sidebar ('primary'); ?> <?php }// end if in news & offers ?> <!-- Ends news & offers articles -->
Save
Cancel