Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Custom Right Sidebar
- */
- get_header();
- $this_is_page=true;
- ?>
- <!-- sub page header-->
- <div id="sub_page_header">
- <div class="left">
- <!-- Page navigation-->
- <div id="sub_nav">
- <!-- [rt-breadcrumb] -->
- <?php rt_breadcrumb(); ?>
- <!--/ [rt-breadcrumb] -->
- </div>
- <!-- /Page navigation-->
- </div>
- <div class="right"></div>
- </div>
- <!-- /sub page header-->
- <div class="sub_page">
- <!-- page left -->
- <div class="page_left content">
- <h1><?php the_title(); ?></h1>
- <?php if (have_posts()) : while (have_posts()) : the_post();
- $current_post=$post->ID;
- ?>
- <?php the_content(); ?>
- <?php endwhile; else: ?>
- <p>Sorry, no posts matched your criteria.</p>
- <?php endif; ?>
- <div class="emptyspace"></div>
- </div>
- <!--/ Page Left-->
- <!-- page right-->
- <div class="page_right">
- <?php
- /*
- * displaying sup pages
- */
- $children = wp_list_pages("title_li=&child_of=".$current_post."&echo=0&depth=1");
- if ($children) {
- ?>
- <!-- sub link-->
- <div class="box middle">
- <ul id="sub_menu">
- <?php echo $children; ?>
- </ul>
- </div>
- <!-- /sub link-->
- <?php
- }
- ?>
- <?php
- if (function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar For Pages'));
- if (function_exists('dynamic_sidebar') && dynamic_sidebar('Common Sidebar'));
- include(TEMPLATEPATH."/sidebar.php");
- ?>
- </div>
- <!-- page right-->
- <div class="clear_space_h"></div>
- </div>
- </div>
- </div>
- <div class="clear_space"></div>
- </div>
- <!-- / containers -->
- <?php get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment