Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 121 lines (117 sloc) 4.31 kb
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
1 <?php
2 /**
3 * Master/Default template file
4 *
5 * This file is the master/default template file, used when no other file matches in
6 * the {@link http://codex.wordpress.org/Template_Hierarchy Template Hierarchy}.
7 *
97420ae Chip Bennett Re: Issue #40 lots of phpDoc updates
authored
8 * @uses oenology_get_context() Defined in /functions/custom.php
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
9 *
10 * @link http://codex.wordpress.org/Function_Reference/get_header get_header()
11 * @link http://codex.wordpress.org/Function_Reference/get_footer get_footer()
12 * @link http://codex.wordpress.org/Function_Reference/get_sidebar get_sidebar()
13 * @link http://codex.wordpress.org/Function_Reference/get_template_part get_template_part()
14 * @link http://codex.wordpress.org/Function_Reference/has_post_format has_post_format()
15 * @link http://codex.wordpress.org/Function_Reference/is_active_sidebar is_active_sidebar()
16 * @link http://codex.wordpress.org/Function_Reference/is_archive is_archive()
17 * @link http://codex.wordpress.org/Function_Reference/is_attachment is_attachment()
18 * @link http://codex.wordpress.org/Function_Reference/is_home is_home()
19 * @link http://codex.wordpress.org/Function_Reference/is_single is_single()
20 *
21 * @package Oenology
22 * @copyright Copyright (c) 2010, Chip Bennett
23 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
24 *
25 * @since Oenology 1.0
26 */
cdd5b7f Chip Bennett Tagged 0.9.2
authored
27 ?>
28
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
29 <?php
30 /**
31 * Include the header template part file
32 *
33 * MUST come first.
34 * Calls the header PHP file.
35 * Used in all primary template pages
36 *
37 * @see {@link: http://codex.wordpress.org/Function_Reference/get_header get_header}
38 *
39 * Child Themes can replace this template part file globally, via "header.php",
40 * or in a specific context only, via "header-{context}.php"
41 */
42 get_header( oenology_get_context() );
43 ?>
cdd5b7f Chip Bennett Tagged 0.9.2
authored
44
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
45 <!-- Begin Main (div#main) -->
46 <?php
47 /**
48 * div#main contains the center column content of the three-column
49 * layout, and the left-column content of the two-column layout.
50 * Generally, this column contains the main content of the page
51 * (blog post/posts, page content, search results, etc.), and
52 * contains the WordPress "Loop". For other non-WordPress pages
53 * (or any page not containing the "Loop") the site structure
54 * can be kept consistent by replacing "loop.php" with whatever
55 * file (or static content) is desired.
56 */
57 ?>
58 <div id="main">
cdd5b7f Chip Bennett Tagged 0.9.2
authored
59 <?php
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
60 /**
61 * Include the loop template part file
62 *
63 * Codex reference: {@link http://codex.wordpress.org/Function_Reference/get_template_part get_template_part}
64 *
65 * get_template_part( $slug ) will attempt to include $slug.php.
66 * The function will attempt to include files in the following
67 * order, until it finds one that exists: the Theme's $slug.php,
68 * the parent Theme's $slug.php
69 *
70 * get_template_part( $slug , $name ) will attempt to include
71 * $slug-$name.php. The function will attempt to include files
72 * in the following order, until it finds one that exists: the
73 * Theme's $slug-$name.php, the Theme's $slug.php, the parent
74 * Theme's $slug-$name.php, the parent Theme's $slug.php
75 *
76 * Child Themes can replace this template part file globally,
77 * via "loop.php", or in a specific context only, via
78 * "loop-{context}.php"
79 */
80 get_template_part( 'loop', oenology_get_context() );
cdd5b7f Chip Bennett Tagged 0.9.2
authored
81 ?>
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
82 </div>
83 <!-- End Main (div#main) -->
cdd5b7f Chip Bennett Tagged 0.9.2
authored
84
ce77b61 Chip Bennett Re: Issue #22 Adds Posts Index Layouts
authored
85 <?php
86 if ( 'one-column' != $oenology_options['post_index_layout'] ) {
87 ?>
88 <?php
89 /**
90 * Include the sidebar template part file
91 *
92 * Calls a sidebar template part file.
93 * Used in all primary template pages, except static Pages.
94 *
95 * Codex reference: http://codex.wordpress.org/Function_Reference/get_sidebar
96 *
97 * Child Themes can replace this template part file globally,
98 * via "sidebar.php", or in a specific context only, via
99 * "sidebar-{context}.php"
100 */
101 get_sidebar( oenology_get_context() );
102 ?>
103 <?php
104 }
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
105 ?>
a18462b Chip Bennett Fixes Issues #2,3,4,5
authored
106
c21c324 Chip Bennett Settings API rewritten and major documentation overhaul
authored
107 <?php
108 /**
109 * Include the footer template part file
110 *
111 * MUST come last.
112 * Calls the footer PHP file.
113 * Used in all primary template pages
114 *
115 * Codex reference: {@link http://codex.wordpress.org/Function_Reference/get_footer get_footer}
116 *
117 * Child Themes can replace this template part file globally, via "footer.php",
118 * or in a specific context only, via "footer-{context}.php"
119 */
120 get_footer( oenology_get_context() );
121 ?>
Something went wrong with that request. Please try again.