Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- sidebar -->
- <aside class="sidebar menu_box" role="">
- <div class='menu_box'><div class='h_box'><?php
- global $wp_query;
- if ( empty($wp_query->post->post_parent) )
- {
- the_title();
- ?></div><div class="p_box"><?php
- wp_list_pages("title_li=&child_of=".$post->ID);
- ?></div></div><?php
- } else {
- ?><div class="menu_box"><div class="h_box"><?php
- if($post->post_parent) {
- $id = $post->post_parent;
- $zm_parent_permalink = get_permalink($id);
- ?>
- <a href="<?php echo get_permalink($id) ?>"><?php echo get_the_title($id); ?></a>
- <?php } ?>
- </div>
- <div class="p_box">
- <?php wp_list_pages("title_li=&child_of=".$post->post_parent);
- ?>
- </div></div>
- <?php } ?>
- <div class="sidebar-widget sidebox">
- <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('widget-area-1')) ?>
- </div>
- <div class="sidebar-widget sidebox">
- <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('widget-area-2')) ?>
- </div>
- </aside>
- <!-- /sidebar -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement