Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="content" class="container clearfix">
- <!-- page header -->
- <div class="container clearfix ">
- <?php if(of_get_option('sc_showpageheader') == '1' && get_post_meta($post->ID, 'snbpd_ph_disabled', true) != 'on' ) : ?>
- <?php if(get_post_meta($post->ID, 'snbpd_phitemlink', true) != '' ) : ?>
- <?php
- $thumbId = get_image_id_by_link ( get_post_meta($post->ID, 'snbpd_phitemlink', true) );
- $thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
- ?>
- <img class="intro-img" alt=" " src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>" />
- <?php elseif (of_get_option('sc_pageheaderurl') !='' ): ?>
- <?php
- $thumbId = get_image_id_by_link ( of_get_option('sc_pageheaderurl') );
- $thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
- ?>
- <img class="intro-img" alt=" " src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>" />
- <?php else: ?>
- <img class="intro-img" alt=" " src="<?php echo get_template_directory_uri(); ?>/library/images/inner-page-bg.jpg" />
- <?php endif ?>
- <?php endif ?>
- </div>
- <!-- end page header -->
- <!-- content -->
- <div class="three-fourth">
- <h1><?php the_title(); ?> <?php if ( !get_post_meta($post->ID, 'snbpd_pagedesc', true)== '') { ?>/<?php }?> <span><?php echo get_post_meta($post->ID, 'snbpd_pagedesc', true); ?></span></h1>
- <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="page-body clearfix">
- <?php the_content(); ?>
- </div> <!-- end article section -->
- <?php endwhile; ?>
- </article>
- <?php else : ?>
- <article id="post-not-found">
- <header>
- <h1><?php _e("Not Found", "site5framework"); ?></h1>
- </header>
- <section class="post_content">
- <p><?php _e("Sorry, but the requested resource was not found on this site.", "site5framework"); ?></p>
- </section>
- <footer>
- </footer>
- </article>
- <?php endif; ?>
- </div>
- <div class="one-fourth last">
- <?php get_template_part( 'page', 'sidebar' ); ?>
- </div>
- </div> <!-- end content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement