Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <div class="tiba3-content-layout">
  3. <div class="tiba3-content-layout-row">
  4. <div class="tiba3-layout-cell tiba3-content">
  5. <?php get_sidebar('top'); ?>
  6. <?php
  7. if(have_posts()) {
  8.  
  9. /* Start the Loop */
  10. while (have_posts()) {
  11. the_post();
  12. get_template_part('content', 'page');
  13. comments_template();
  14. }
  15.  
  16. } else {
  17.  
  18. theme_404_content();
  19.  
  20. }
  21. ?>
  22. <?php get_sidebar('bottom'); ?>
  23.  
  24. <div class="cleared"></div>
  25. </div>
  26. <div class="tiba3-layout-cell tiba3-sidebar1">
  27.  
  28. <?php
  29. echo $post->ID;
  30.  
  31. //get_sidebar('default');
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38. switch($post->ID){
  39.  
  40. case 88:
  41. $args = array(
  42. 'depth' => 1,
  43. 'show_date' => '',
  44. 'date_format' => get_option('date_format'),
  45. 'child_of' => $post->ID,
  46. 'exclude' => '',
  47. 'include' => '',
  48. 'title_li' => get_the_title($post->ID),
  49. 'echo' => 1,
  50. 'authors' => '',
  51. 'sort_column' => 'menu_order',
  52. 'link_before' => '',
  53. 'link_after' => '',
  54. 'walker' => '' );
  55. $children = wp_list_pages( $args );
  56. if ($children) {
  57. echo $children;
  58. }
  59. break;
  60.  
  61. case 91:
  62. $args = array(
  63. 'depth' => 1,
  64. 'show_date' => '',
  65. 'date_format' => get_option('date_format'),
  66. 'child_of' => $post->ID,
  67. 'exclude' => '',
  68. 'include' => '',
  69. 'title_li' => get_the_title($post->ID),
  70. 'echo' => 1,
  71. 'authors' => '',
  72. 'sort_column' => 'menu_order',
  73. 'link_before' => '',
  74. 'link_after' => '',
  75. 'walker' => '' );
  76. $children = wp_list_pages( $args );
  77. if ($children) {
  78. echo $children;
  79. }
  80. break;
  81.  
  82. case 313:
  83. $args = array(
  84. 'depth' => 1,
  85. 'show_date' => '',
  86. 'date_format' => get_option('date_format'),
  87. 'child_of' => $post->ID,
  88. 'exclude' => '',
  89. 'include' => '',
  90. 'title_li' => get_the_title($post->ID),
  91. 'echo' => 1,
  92. 'authors' => '',
  93. 'sort_column' => 'menu_order',
  94. 'link_before' => '',
  95. 'link_after' => '',
  96. 'walker' => '' );
  97. $children = wp_list_pages( $args );
  98. if ($children) {
  99. echo $children;
  100. } else {
  101. echo get_the_title($post->ID);
  102. }
  103. break;
  104.  
  105. case 96:
  106. $args = array(
  107. 'depth' => 1,
  108. 'show_date' => '',
  109. 'date_format' => get_option('date_format'),
  110. 'child_of' => $post->ID,
  111. 'exclude' => '',
  112. 'include' => '',
  113. 'title_li' => get_the_title($post->ID),
  114. 'echo' => 1,
  115. 'authors' => '',
  116. 'sort_column' => 'menu_order',
  117. 'link_before' => '',
  118. 'link_after' => '',
  119. 'walker' => '' );
  120. $children = wp_list_pages( $args );
  121. if ($children) {
  122. echo $children;
  123. }
  124. break;
  125. default:
  126.  
  127. if($post->post_parent == 88){
  128. $args = array(
  129. 'depth' => 1,
  130. 'show_date' => '',
  131. 'date_format' => get_option('date_format'),
  132. 'child_of' => $post->ID,
  133. 'exclude' => '',
  134. 'include' => '',
  135. 'title_li' => get_the_title($post->ID),
  136. 'echo' => 1,
  137. 'authors' => '',
  138. 'sort_column' => 'menu_order, post_title',
  139. 'link_before' => '',
  140. 'link_after' => '',
  141. 'walker' => '' );
  142. wp_list_pages( $args );
  143. } else {
  144. $args = array(
  145. 'depth' => 1,
  146. 'show_date' => '',
  147. 'date_format' => get_option('date_format'),
  148. 'child_of' => $post->post_parent,
  149. 'exclude' => '',
  150. 'include' => '',
  151. 'title_li' => get_the_title($post->post_parent),
  152. 'echo' => 1,
  153. 'authors' => '',
  154. 'sort_column' => 'menu_order, post_title',
  155. 'link_before' => '',
  156. 'link_after' => '',
  157. 'walker' => '' );
  158. }
  159. wp_list_pages( $args );
  160. break;
  161. }
  162.  
  163.  
  164.  
  165. ?>
  166.  
  167.  
  168.  
  169. <div class="cleared"></div>
  170. </div>
  171. </div>
  172. </div>
  173. <div class="cleared"></div>
  174. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement