Created
July 16, 2013 00:13
-
-
Save jrthib/6004698 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Page Template | |
| * | |
| * … | |
| * | |
| * @package Thematic | |
| * @subpackage Templates | |
| */ | |
| // calling the header.php | |
| get_header(); | |
| // action hook for placing content above #container | |
| thematic_abovecontainer(); | |
| ?> | |
| <div class="content"> | |
| <?php jb_render_page(); ?> | |
| </div> | |
| <?php | |
| // Get child pages | |
| query_posts(array( | |
| 'post_parent' => get_the_ID(), | |
| 'post_type' => 'page', | |
| 'orderby' => 'menu_order', | |
| 'order' => 'ASC' | |
| )); | |
| ob_start(); | |
| while(have_posts()): the_post(); | |
| echo "<div id=\"".$post->post_name."\">"; | |
| jb_render_page(); | |
| echo "</div>"; | |
| endwhile; | |
| $pages = ob_get_contents(); | |
| ob_end_clean(); | |
| echo $pages; | |
| ?> | |
| <?php | |
| // action hook for placing content below #container | |
| thematic_belowcontainer(); | |
| // calling footer.php | |
| get_footer(); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment