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

Untitled

By: a guest on Apr 24th, 2013  |  syntax: None  |  size: 1.19 KB  |  views: 39  |  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.  * The template for displaying all pages.
  4.  *
  5.  * This is the template that displays all pages by default.
  6.  * Please note that this is the WordPress construct of pages
  7.  * and that other 'pages' on your WordPress site will use a
  8.  * different template.
  9.  *
  10.  * @package Striking
  11.  */
  12.  
  13. if(is_blog()){
  14.         return load_template(THEME_DIR . "/template_blog.php");
  15. }elseif(is_front_page()){
  16.         return load_template(THEME_DIR . "/front-page.php");
  17. }
  18.  
  19. $post_id = get_queried_object_id();
  20. $layout = theme_get_inherit_option($post_id, '_layout', 'general','layout');
  21.  
  22. get_header();
  23. echo theme_generator('introduce',$post_id);?>
  24. <div id="page">
  25.         <div class="inner <?php if($layout=='right'):?>right_sidebar<?php endif;?><?php if($layout=='left'):?>left_sidebar<?php endif;?>">
  26.                 <div id="main">
  27.                         <?php echo theme_generator('breadcrumbs',$post_id);?>
  28. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  29.                         <?php get_template_part('content','page'); ?>
  30. <?php endwhile; // end of the loop.?>
  31.                         <div class="clearboth"></div>
  32.                 </div>
  33.                 <?php if($layout != 'full') get_sidebar(); ?>
  34.                 <div class="clearboth"></div>
  35.         </div>
  36.         <div id="page_bottom"></div>
  37. </div>
  38. <?php get_footer(); ?>