Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

template-full-width.php

By: Protonova on Oct 13th, 2011  |  syntax: PHP  |  size: 0.95 KB  |  views: 64  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Template Name: Full Width
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. </div><!-- header-area -->
  8. </div><!-- end rays -->
  9. </div><!-- end header-holder -->
  10. </div><!-- end header -->
  11.  
  12. <?php truethemes_before_main_hook();// action hook, see truethemes_framework/global/hooks.php ?>
  13.  
  14. <div id="main">
  15. <?php get_template_part('theme-template-part-tools','childtheme'); ?>
  16.  
  17. <div class="main-holder">
  18. <?php  
  19. //retrieve value for sub-nav checkbox
  20. global $post;
  21. $post_id = $post->ID;
  22. $meta_value = get_post_meta($post_id,'truethemes_page_checkbox',true);
  23.  
  24. if(empty($meta_value)){
  25. get_template_part('theme-template-part-subnav-horizontal','childtheme');}else{
  26. // do nothing
  27. }
  28. ?>
  29.  
  30. <div id="content" class="content_full_width">
  31. <?php if(have_posts()) : while(have_posts()) : the_post(); the_content(); truethemes_link_pages(); endwhile; endif; ?>
  32. </div><!-- end content -->
  33. </div><!-- end main-holder -->
  34. </div><!-- main-area -->
  35.  
  36. <?php get_footer(); ?>
  37.  
clone this paste RAW Paste Data