Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="tiba3-content-layout">
- <div class="tiba3-content-layout-row">
- <div class="tiba3-layout-cell tiba3-content">
- <?php get_sidebar('top'); ?>
- <?php
- if(have_posts()) {
- /* Start the Loop */
- while (have_posts()) {
- the_post();
- get_template_part('content', 'page');
- comments_template();
- }
- } else {
- theme_404_content();
- }
- ?>
- <?php get_sidebar('bottom'); ?>
- <div class="cleared"></div>
- </div>
- <div class="tiba3-layout-cell tiba3-sidebar1">
- <?php
- echo $post->ID;
- //get_sidebar('default');
- switch($post->ID){
- case 88:
- $args = array(
- 'depth' => 1,
- 'show_date' => '',
- 'date_format' => get_option('date_format'),
- 'child_of' => $post->ID,
- 'exclude' => '',
- 'include' => '',
- 'title_li' => get_the_title($post->ID),
- 'echo' => 1,
- 'authors' => '',
- 'sort_column' => 'menu_order',
- 'link_before' => '',
- 'link_after' => '',
- 'walker' => '' );
- $children = wp_list_pages( $args );
- if ($children) {
- echo $children;
- }
- break;
- case 91:
- $args = array(
- 'depth' => 1,
- 'show_date' => '',
- 'date_format' => get_option('date_format'),
- 'child_of' => $post->ID,
- 'exclude' => '',
- 'include' => '',
- 'title_li' => get_the_title($post->ID),
- 'echo' => 1,
- 'authors' => '',
- 'sort_column' => 'menu_order',
- 'link_before' => '',
- 'link_after' => '',
- 'walker' => '' );
- $children = wp_list_pages( $args );
- if ($children) {
- echo $children;
- }
- break;
- case 313:
- $args = array(
- 'depth' => 1,
- 'show_date' => '',
- 'date_format' => get_option('date_format'),
- 'child_of' => $post->ID,
- 'exclude' => '',
- 'include' => '',
- 'title_li' => get_the_title($post->ID),
- 'echo' => 1,
- 'authors' => '',
- 'sort_column' => 'menu_order',
- 'link_before' => '',
- 'link_after' => '',
- 'walker' => '' );
- $children = wp_list_pages( $args );
- if ($children) {
- echo $children;
- } else {
- echo get_the_title($post->ID);
- }
- break;
- case 96:
- $args = array(
- 'depth' => 1,
- 'show_date' => '',
- 'date_format' => get_option('date_format'),
- 'child_of' => $post->ID,
- 'exclude' => '',
- 'include' => '',
- 'title_li' => get_the_title($post->ID),
- 'echo' => 1,
- 'authors' => '',
- 'sort_column' => 'menu_order',
- 'link_before' => '',
- 'link_after' => '',
- 'walker' => '' );
- $children = wp_list_pages( $args );
- if ($children) {
- echo $children;
- }
- break;
- default:
- if($post->post_parent == 88){
- $args = array(
- 'depth' => 1,
- 'show_date' => '',
- 'date_format' => get_option('date_format'),
- 'child_of' => $post->ID,
- 'exclude' => '',
- 'include' => '',
- 'title_li' => get_the_title($post->ID),
- 'echo' => 1,
- 'authors' => '',
- 'sort_column' => 'menu_order, post_title',
- 'link_before' => '',
- 'link_after' => '',
- 'walker' => '' );
- wp_list_pages( $args );
- } else {
- $args = array(
- 'depth' => 1,
- 'show_date' => '',
- 'date_format' => get_option('date_format'),
- 'child_of' => $post->post_parent,
- 'exclude' => '',
- 'include' => '',
- 'title_li' => get_the_title($post->post_parent),
- 'echo' => 1,
- 'authors' => '',
- 'sort_column' => 'menu_order, post_title',
- 'link_before' => '',
- 'link_after' => '',
- 'walker' => '' );
- }
- wp_list_pages( $args );
- break;
- }
- ?>
- <div class="cleared"></div>
- </div>
- </div>
- </div>
- <div class="cleared"></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement