Advertisement
JosueCR

page.php

Jun 21st, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4.  
  5. <div id="content" class="container clearfix">
  6.  
  7.  
  8.  
  9. <!-- page header -->
  10.  
  11. <div class="container clearfix ">
  12.  
  13.  
  14.  
  15. <?php if(of_get_option('sc_showpageheader') == '1' && get_post_meta($post->ID, 'snbpd_ph_disabled', true) != 'on' ) : ?>
  16.  
  17.  
  18.  
  19. <?php if(get_post_meta($post->ID, 'snbpd_phitemlink', true) != '' ) : ?>
  20.  
  21.  
  22.  
  23. <?php
  24.  
  25. $thumbId = get_image_id_by_link ( get_post_meta($post->ID, 'snbpd_phitemlink', true) );
  26.  
  27. $thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
  28.  
  29. ?>
  30.  
  31. <img class="intro-img" alt=" " src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>" />
  32.  
  33.  
  34.  
  35. <?php elseif (of_get_option('sc_pageheaderurl') !='' ): ?>
  36.  
  37.  
  38.  
  39. <?php
  40.  
  41. $thumbId = get_image_id_by_link ( of_get_option('sc_pageheaderurl') );
  42.  
  43. $thumb = wp_get_attachment_image_src($thumbId, 'page-header', false);
  44.  
  45. ?>
  46.  
  47. <img class="intro-img" alt=" " src="<?php echo $thumb[0] ?>" alt="<?php the_title(); ?>" />
  48.  
  49.  
  50.  
  51. <?php else: ?>
  52.  
  53.  
  54.  
  55. <img class="intro-img" alt=" " src="<?php echo get_template_directory_uri(); ?>/library/images/inner-page-bg.jpg" />
  56.  
  57.  
  58.  
  59. <?php endif ?>
  60.  
  61. <?php endif ?>
  62.  
  63.  
  64.  
  65. </div>
  66.  
  67. <!-- end page header -->
  68.  
  69.  
  70.  
  71.  
  72.  
  73. <!-- content -->
  74.  
  75. <div class="three-fourth">
  76.  
  77.  
  78.  
  79. <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>
  80.  
  81.  
  82.  
  83. <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
  84.  
  85.  
  86.  
  87. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  88.  
  89.  
  90.  
  91. <div class="page-body clearfix">
  92.  
  93. <?php the_content(); ?>
  94.  
  95. </div> <!-- end article section -->
  96.  
  97.  
  98.  
  99. <?php endwhile; ?>
  100.  
  101. </article>
  102.  
  103.  
  104.  
  105. <?php else : ?>
  106.  
  107.  
  108.  
  109. <article id="post-not-found">
  110.  
  111. <header>
  112.  
  113. <h1><?php _e("Not Found", "site5framework"); ?></h1>
  114.  
  115. </header>
  116.  
  117. <section class="post_content">
  118.  
  119. <p><?php _e("Sorry, but the requested resource was not found on this site.", "site5framework"); ?></p>
  120.  
  121. </section>
  122.  
  123. <footer>
  124.  
  125. </footer>
  126.  
  127. </article>
  128.  
  129.  
  130.  
  131. <?php endif; ?>
  132.  
  133.  
  134.  
  135.  
  136.  
  137. </div>
  138.  
  139.  
  140.  
  141. <div class="one-fourth last">
  142.  
  143. <?php get_template_part( 'page', 'sidebar' ); ?>
  144.  
  145. </div>
  146.  
  147.  
  148.  
  149. </div> <!-- end content -->
  150.  
  151.  
  152.  
  153. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement