-
Notifications
You must be signed in to change notification settings - Fork 1
/
is_custom_pages.php
199 lines (132 loc) · 4.37 KB
/
is_custom_pages.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php
function is_pre_page_hooks() {
global $thesis_design;
echo apply_filters('thesis_doctype', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">') . "\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<?php
thesis_head::build();
echo "<body" . thesis_body_classes() . ">\n"; #filter
thesis_hook_before_html();
// These are ok here for paged layout. For full-width layout,
// they need to be removed because each section (header, content
// footer runs it's own page class, I don't believe there is a
// page id associated with full width.
echo "<div id=\"container\">\n";
echo " <div id=\"page\">\n";
}
// TODO: Merge the following 3 functions.
function is_pre_content_hooks($sidebars) {
thesis_hook_before_content_box();
echo "\t<div id=\"content_box\"$sidebars>\n";
thesis_hook_content_box_top();
}
function is_content_area_hooks() {
#thesis_18/lib/html/content_box.php Line 57
thesis_content_column();
}
function is_post_content_hooks() {
thesis_hook_content_box_bottom();
echo "\t</div>\n";
thesis_hook_after_content_box();
}
function is_post_page_hooks() {
// Closes id=page, not for use with full width.
echo " </div>\n";
echo "</div>\n";
thesis_ie_clear();
thesis_javascript::output_scripts();
thesis_hook_after_html();
echo "</body>\n</html>";
}
//////////////// Custom page: header, no footer, no sidebars /////
function page_header_nofooter_nosidebar_18() {
is_pre_page_hooks();
//thesis_wrap_header(); # full width
thesis_header_area();
is_pre_content_hooks(" class=\"no_sidebars\"");
is_content_area_hooks();
is_post_content_hooks();
is_post_page_hooks();
}
//////////////// END: Custom page: header, no footer, no sidebars /////
/////// THESIS 1.8 ////////////////////
function page_noheader_nofooter_nosidebar_18() {
is_pre_page_hooks();
is_pre_content_hooks(" class=\"no_sidebars\"");
is_content_area_hooks();
is_post_content_hooks();
is_post_page_hooks();
}
//////////////// END: Custom page: no header, no footer, no sidebars /////
//////////////// Custom page: header, footer, no sidebars /////
function page_header_footer_nosidebar_18() {
is_pre_page_hooks();
//thesis_wrap_header(); # full width
thesis_header_area();
is_pre_content_hooks(" class=\"no_sidebars\"");
is_content_area_hooks();
is_post_content_hooks();
//thesis_wrap_footer(); # full width
thesis_footer_area();
is_post_page_hooks();
}
//////////////// END: Custom page: header, footer, no sidebars /////
//////////////// Custom page: header, footer, 1 sidebar /////
function page_header_footer_sidebar_18() {
is_pre_page_hooks();
thesis_header_area();
is_pre_content_hooks('');
is_sidebar_1_hooks();
is_post_content_hooks();
thesis_footer_area();
is_post_page_hooks();
}
////////////////////////////////////////////////////////////
//////////////// Custom page: header, footer, 2 sidebars /////
function page_header_footer_sidebar2_18() {
is_pre_page_hooks();
thesis_header_area();
is_pre_content_hooks('');
is_sidebar_12_hooks();
is_post_content_hooks();
thesis_footer_area();
is_post_page_hooks();
}
//////////////////////////////////////////////////////////////
function is_sidebar_1_hooks() {
# content_box.php Line 48
echo "\t\t<div id=\"column_wrap\">\n";
thesis_content_column();
# sidebars.php Line 4
echo "\t\t<div id=\"sidebars\">\n";
thesis_hook_before_sidebars(); #hook
sidebar_layout('thesis_sidebar_1', 1);
thesis_hook_after_sidebars(); #hook
echo "\t\t</div>\n";
# content_box.php Line 51
echo "\t\t</div>\n";
}
function is_sidebar_12_hooks() {
# content_box.php Line 48
echo "\t\t<div id=\"column_wrap\">\n";
thesis_content_column();
# sidebars.php Line 4
echo "\t\t<div id=\"sidebars\">\n";
thesis_hook_before_sidebars(); #hook
sidebar_layout('thesis_sidebar_1',1);
sidebar_layout('thesis_sidebar_2',2);
thesis_hook_after_sidebars(); #hook
echo "\t\t</div>\n";
# content_box.php Line 51
echo "\t\t</div>\n";
}
function sidebar_layout($callback, $id) {
#sidebars.php Line 28
echo "\t\t\t<div id=\"sidebar_$id\" class=\"sidebar\">\n";
echo "\t\t\t\t<ul class=\"sidebar_list\">\n";
call_user_func($callback);
echo "\t\t\t\t</ul>\n";
echo "\t\t\t</div>\n";
}
?>