Advertisement
lberelson

custom3 - single-2col

Jan 24th, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.23 KB | None | 0 0
  1. <?php
  2. /**
  3.  * theme name: custom3
  4.  */
  5.  
  6. get_header(); ?>
  7.  
  8. <div id="navcontainer">
  9.  
  10. <?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template.  ?>
  11.  
  12. </div><!-- navcontainer -->
  13. </div><!-- navbar -->
  14.  
  15.  
  16. <div class="wrapper" >
  17.  
  18. <div class="container container_11" >
  19.  
  20. <!-- sidebar -->
  21. <div class="grid_4 left_nav" style="margin-top:20px;"  >
  22.  
  23. <?php if (have_posts()) :
  24.  
  25.         while (have_posts()) : the_post() ;
  26.            if (in_category(array('4', '5', '6', '7', '8', '9', '10')) )    {
  27.                 get_sidebar('classes');
  28.            }
  29.        endwhile;
  30.  
  31. endif; ?>
  32.  
  33. </div><!-- grid 4 -->
  34.  
  35.  
  36.  
  37. <div class="grid_7 pull_65 main" style="margin-top:12px; margin-bottom:30px;" >
  38.  
  39. <?php if (have_posts()) : while (have_posts()) : the_post() ; ?>
  40.  <h2 class="section">
  41.  <?php $category = get_the_category();
  42. echo convert_chars($category[0]->cat_name);
  43. ?>
  44. </h2>
  45.     <h1 style="font-weight:bold; margin-top:6px;"><?php the_title(); ?></h1>
  46.     <p ><?php the_content(); ?></p>
  47.     <?php echo get_the_post_thumbnail($page->ID, 'medium' ); ?>
  48. <?php endwhile; endif; ?>
  49.  
  50.  
  51. </div><!-- grid 7 -->
  52.  
  53. <div class='clear'>&nbsp;</div>
  54.  
  55. </div><!-- container -->
  56. </div><!-- wrapper -->
  57.  
  58.  
  59. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement