-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathfooter.php
179 lines (166 loc) · 4.7 KB
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
/**
* Footer Template Part File
*
* Template part file that contains the site footer and
* closing HTML body elements
*
* This file is called by all primary template pages
*
* Child Themes can override this template part file globally,
* via "footer.php", or in a given specific context, via
* "footer-{context}.php". For example, to replace this
* template part file on static Pages, a Child Theme would
* include the file "footer-page.php".
*
* @uses oenology_hook_extent_after() Defined in /functions/hooks.php
* @uses oenology_hook_site_footer() Defined in /functions/hooks.php
* @uses oenology_hook_site_footer_after() Defined in /functions/hooks.php
* @uses oenology_hook_site_footer_before() Defined in /functions/hooks.php
*
* @link http://codex.wordpress.org/Function_Reference/has_nav_menu has_nav_menu()
* @link http://codex.wordpress.org/Function_Reference/wp_footer wp_footer()
* @link http://codex.wordpress.org/Function_Reference/wp_nav_menu wp_nav_menu()
*
* @package Oenology
* @copyright Copyright (c) 2010, Chip Bennett
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
*
* @since Oenology 1.0
*/
?>
</div>
<!-- End Content (div#content)-->
<?php
/**
* Fire the 'oenology_hook_content_after' custom action hook
*
* @param null
* @return mixed any output hooked into 'oenology_hook_content_after'
*/
oenology_hook_content_after();
?>
<?php
/**
* Fire the 'oenology_hook_site_footer_before' custom action hook
*
* @param null
* @return mixed any output hooked into 'oenology_hook_site_footer_before'
*/
oenology_hook_site_footer_before();
?>
<!-- Begin Footer (div#footer) -->
<?php
// The div#footer contains the site copyright notice and credit links.
?>
<div id="footer">
<?php
/**
* Output the footer navigation menu
*
* If the user has defined a custom navigation menu
* and has applied that menu to the 'nav-footer'
* theme location, then output that menu. Otherwise,
* output nothing.
*
* The menu will output only one level of Page
* hierarchy.
*/
if (
/**
* WordPress conditional tag that returns true if
* the user has applied a custom navigation menu
* to the specified theme location
*/
has_nav_menu( 'nav-footer' )
) {
/**
* Output a custom navigation menu
*
* Output a custom navigation menu
* according to the parameters
* specified by the options array
*
* @param array options defining menu output
*/
wp_nav_menu( array(
// Apply 'id="footernav"' to the <ul> tag that contains the menu.
'menu_id' => 'footernav',
// Apply 'class="nav-footer"' to the <ul> tag that contains the menu.
'menu_class' => 'nav-footer',
// Use the default fallback if the user has not applied a menu to the specified theme location.
'fallback_cb' => '',
// Apply one level of hierarchical depth.
'depth' => 1,
// Output the menu the user has applied to the 'nav-footer' Theme Location.
'theme_location' => 'nav-footer'
) );
}
?>
<?php
/**
* Fire the 'oenology_hook_site_footer_text_before' custom action hook
*
* @param null
* @return mixed any output hooked into 'oenology_hook_site_footer_text_before'
*/
oenology_hook_site_footer_text_before();
?>
<?php
/**
* Fire the 'oenology_hook_site_footer' custom filter hook
*
* @param null
* @return mixed filtered output of 'oenology_hook_site_footer'
*/
oenology_hook_site_footer();
?>
<?php
/**
* Fire the 'oenology_hook_site_footer_text_after' custom action hook
*
* @param null
* @return mixed any output hooked into 'oenology_hook_site_footer_text_after'
*/
oenology_hook_site_footer_text_after();
?>
</div>
<!-- End Footer (div#footer) -->
<?php
/**
* Fire the 'oenology_hook_site_footer_after' custom action hook
*
* @param null
* @return mixed any output hooked into 'oenology_hook_site_footer_after'
*/
oenology_hook_site_footer_after();
?>
<?php
/**
* Fire the 'oenology_hook_extent_after' custom action hook
*
* @param null
* @return mixed any output hooked into 'oenology_hook_extent_after'
*/
oenology_hook_extent_after();
?>
</div>
<!-- End Extent (div#extent) -->
<?php
/**
* Fire the 'wp_footer' action hook
*
* Codex reference: {@link http://codex.wordpress.org/Hook_Reference/wp_footer wp_footer}
*
* This hook is used by WordPress core, Themes, and Plugins to
* add scripts, CSS styles, meta tags, etc. to the document footer.
*
* MUST come immediately before the closing </body> tag
*
* @param null
* @return mixed any output hooked into 'wp_footer'
*/
wp_footer();
?>
</body>
</html>