SHARE
TWEET

Untitled

a guest Jun 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <!-- code to display post title images per article -->
  4. <?php
  5. global $post;
  6.  
  7. if ( $post->ID == '2' ) {    
  8.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_about.png"></div>';
  9.  
  10. } elseif ( $post->ID == '102' ) {  
  11.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_mission.png"></div>';
  12. } elseif ( $post->ID == '104' ) {  
  13.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_services.png"></div>';
  14. } elseif ( $post->ID == '22' ) {   
  15.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_contact.png"></div>';
  16. } elseif ( $post->ID == '112' ) {  
  17.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_mold.png"></div>';
  18. } elseif ( $post->ID == '114' ) {  
  19.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_water.png"></div>';
  20. } elseif ( $post->ID == '116' ) {  
  21.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_fire.png"></div>';
  22. } elseif ( $post->ID == '124' ) {  
  23.     echo '<div id="content_header"><img src="wp-content/themes/clean-copy-right-sidebar-1/images/h2_about.png"></div>';
  24. }
  25. else {
  26. }  
  27. ?>
  28. <!-- end post code -->
  29. <?php if ($post->ID == '22' || $post->ID == '112' || $post->ID == '114' || $post->ID == '116'): ?> 
  30.     <div id="internal_text">
  31.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  32.         <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
  33.         <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
  34.         <?php endwhile; endif; ?>
  35.     </div><!-- internal text -->
  36. <?php else: ?>
  37.     <div id="content_text">
  38.         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  39.         <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
  40.         <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
  41.         <?php endwhile; endif; ?>
  42.         </div><!-- content text -->
  43. <?php endif; ?>
  44. </div>
  45. <div id="content_bottom"></div>
  46.  
  47. <?php get_footer(); ?>
RAW Paste Data
Want to get better at PHP?
Learn to code PHP in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top