Merge lp:~quam-plures-core/quam-plures/qp-edb1 into lp:quam-plures
- qp-edb1
- Merge into trunk
Proposed by
EdB
Status: | Merged |
---|---|
Merge reported by: | Yabs |
Merged at revision: | not available |
Proposed branch: | lp:~quam-plures-core/quam-plures/qp-edb1 |
Merge into: | lp:quam-plures |
Diff against target: |
4977 lines (+1335/-2118) 47 files modified
blogs/a_notemplate.php (+55/-70) blogs/contact.php (+17/-21) blogs/default.php (+28/-37) blogs/inc/items/model/_item.class.php (+4/-6) blogs/inc/templates/_template.funcs.php (+2/-0) blogs/multiblogs.php (+54/-67) blogs/summary.php (+19/-20) blogs/templates/_html_header.inc.php (+4/-9) blogs/templates/_item_comment_form.inc.php (+7/-9) blogs/templates/_item_feedback.inc.php (+14/-33) blogs/templates/_wp_compatibility.inc.php (+16/-22) blogs/templates/asevo/_item_block.inc.php (+21/-30) blogs/templates/asevo/index.main.php (+45/-70) blogs/templates/basic/index.main.php (+32/-45) blogs/templates/custom/_item_block.inc.php (+20/-32) blogs/templates/custom/index.main.php (+48/-72) blogs/templates/evocamp/_item_block.inc.php (+7/-11) blogs/templates/evocamp/index.main.php (+30/-63) blogs/templates/evocamp/page.main.php (+49/-83) blogs/templates/evocamp/posts.main.php (+47/-79) blogs/templates/evocamp/single.main.php (+45/-81) blogs/templates/evopress/_item_block.inc.php (+6/-12) blogs/templates/evopress/index.main.php (+23/-55) blogs/templates/evopress/page.main.php (+30/-62) blogs/templates/evopress/posts.main.php (+34/-65) blogs/templates/evopress/single.main.php (+36/-68) blogs/templates/glossyblue/_item_block.inc.php (+12/-12) blogs/templates/glossyblue/index.main.php (+22/-53) blogs/templates/glossyblue/page.main.php (+23/-55) blogs/templates/glossyblue/posts.main.php (+33/-65) blogs/templates/glossyblue/single.main.php (+34/-71) blogs/templates/miami_blue/_item_block.inc.php (+20/-30) blogs/templates/miami_blue/index.main.php (+52/-76) blogs/templates/natural_pink/_item_block.inc.php (+22/-32) blogs/templates/natural_pink/index.main.php (+38/-63) blogs/templates/nifty_corners/_item_block.inc.php (+26/-32) blogs/templates/nifty_corners/index.main.php (+40/-63) blogs/templates/photoblog/_html_header.inc.php (+4/-9) blogs/templates/photoblog/_item_block.inc.php (+23/-33) blogs/templates/photoblog/feedback_popup.main.php (+10/-20) blogs/templates/photoblog/index.main.php (+42/-64) blogs/templates/pixelgreen/_item_block.inc.php (+27/-31) blogs/templates/pixelgreen/index.main.php (+56/-75) blogs/templates/terrafirma/_item_block.inc.php (+26/-35) blogs/templates/terrafirma/index.main.php (+52/-76) blogs/templates/vastitude/_item_block.inc.php (+27/-27) blogs/templates/vastitude/index.main.php (+53/-74) |
To merge this branch: | bzr merge lp:~quam-plures-core/quam-plures/qp-edb1 |
Related bugs: | |
Related blueprints: |
Tidy Templates 1 of 6
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Yabs (community) | Approve | ||
Review via email: mp+16734@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Yabs (yabs) wrote : | # |
From a cursory glance you don't appear to have broken anything worth noting. We can take a closer look when you hit stage 6 ;)
¥
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'blogs/a_notemplate.php' | |||
2 | --- blogs/a_notemplate.php 2010-01-02 08:34:34 +0000 | |||
3 | +++ blogs/a_notemplate.php 2010-01-03 09:20:30 +0000 | |||
4 | @@ -13,7 +13,9 @@ | |||
5 | 13 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} | 13 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} |
6 | 14 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} | 14 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} |
7 | 15 | * | 15 | * |
9 | 16 | * @package pond | 16 | * @todo EdB: figure out if this useful, shed if not else embrace |
10 | 17 | * | ||
11 | 18 | * @package templates | ||
12 | 17 | */ | 19 | */ |
13 | 18 | 20 | ||
14 | 19 | # First, select which blog you want to display here! | 21 | # First, select which blog you want to display here! |
15 | @@ -99,28 +101,26 @@ | |||
16 | 99 | <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" /> | 101 | <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" /> |
17 | 100 | <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" /> | 102 | <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" /> |
18 | 101 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> | 103 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> |
19 | 102 | <!-- InstanceEndEditable --> | ||
20 | 103 | </head> | 104 | </head> |
21 | 105 | |||
22 | 104 | <body> | 106 | <body> |
23 | 105 | <!-- InstanceBeginEditable name="ToolBar" --> | ||
24 | 106 | <?php | 107 | <?php |
38 | 107 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 108 | // --- --- --- --- --- --- --- --- --- --- --- |
39 | 108 | require $templates_path.'_toolbar.inc.php'; | 109 | // --- TOOLBAR INCLUDED HERE --- |
40 | 109 | // ------------------------------- END OF TOOLBAR -------------------------------- | 110 | template_include( '_toolbar.inc.php' ); |
41 | 110 | echo "\n"; | 111 | echo "\n"; |
42 | 111 | if( is_logged_in() ) | 112 | if( is_logged_in() ) |
43 | 112 | { | 113 | { |
44 | 113 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; | 114 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; |
45 | 114 | } | 115 | } |
46 | 115 | else | 116 | else |
47 | 116 | { | 117 | { |
48 | 117 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 118 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
49 | 118 | } | 119 | } |
50 | 119 | echo "\n"; | 120 | echo "\n"; |
51 | 120 | ?> | 121 | ?> |
53 | 121 | <!-- InstanceEndEditable --> | 122 | |
54 | 122 | <div class="pageHeader"> | 123 | <div class="pageHeader"> |
55 | 123 | <!-- InstanceBeginEditable name="NavBar2" --> | ||
56 | 124 | <?php | 124 | <?php |
57 | 125 | // --------------------------------- START OF BLOG LIST -------------------------------- | 125 | // --------------------------------- START OF BLOG LIST -------------------------------- |
58 | 126 | template_widget( array( | 126 | template_widget( array( |
59 | @@ -238,22 +238,19 @@ | |||
60 | 238 | 'include_external'=> true, | 238 | 'include_external'=> true, |
61 | 239 | 'link_categories' => true, | 239 | 'link_categories' => true, |
62 | 240 | ) ); | 240 | ) ); |
79 | 241 | ?> | 241 | ?> |
80 | 242 | </div> | 242 | </div> |
81 | 243 | <h3 class="bTitle"><?php $Item->title(); ?></h3> | 243 | |
82 | 244 | 244 | <h3 class="bTitle"><?php $Item->title(); ?></h3> | |
83 | 245 | <?php | 245 | |
84 | 246 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 246 | <?php |
85 | 247 | template_include( '_item_content.inc.php', array( | 247 | // --- --- --- --- --- --- --- --- --- --- --- |
86 | 248 | 'image_size' => 'fit-400x320', | 248 | // --- POST CONTENT INCLUDED HERE --- |
87 | 249 | ) ); | 249 | template_include( '_item_content.inc.php', array( |
88 | 250 | // Note: You can customize the default item feedback by copying the generic | 250 | 'image_size' => 'fit-400x320', |
89 | 251 | // /templates/_item_feedback.inc.php file into the current template folder. | 251 | ) ); |
90 | 252 | // -------------------------- END OF POST CONTENT ------------------------- | 252 | |
91 | 253 | ?> | 253 | // List all tags attached to this post: |
76 | 254 | |||
77 | 255 | <?php | ||
78 | 256 | // List all tags attached to this post: | ||
92 | 257 | $Item->tags( array( | 254 | $Item->tags( array( |
93 | 258 | 'before' => '<div class="bSmallPrint">'.T_('Tags').': ', | 255 | 'before' => '<div class="bSmallPrint">'.T_('Tags').': ', |
94 | 259 | 'after' => '</div>', | 256 | 'after' => '</div>', |
95 | @@ -290,18 +287,18 @@ | |||
96 | 290 | ?> | 287 | ?> |
97 | 291 | 288 | ||
98 | 292 | <?php $Item->permanent_link(); ?> | 289 | <?php $Item->permanent_link(); ?> |
111 | 293 | </div> | 290 | </div> |
112 | 294 | <?php | 291 | |
113 | 295 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 292 | <?php |
114 | 296 | template_include( '_item_feedback.inc.php', array( | 293 | // --- --- --- --- --- --- --- --- --- --- --- |
115 | 297 | 'before_section_title' => '<h4>', | 294 | // --- ITEM FEEDBACK INCLUDED HERE --- |
116 | 298 | 'after_section_title' => '</h4>', | 295 | template_include( '_item_feedback.inc.php', array( |
117 | 299 | ) ); | 296 | 'before_section_title' => '<h4>', |
118 | 300 | // Note: You can customize the default item feedback by copying the generic | 297 | 'after_section_title' => '</h4>', |
119 | 301 | // /templates/_item_feedback.inc.php file into the current template folder. | 298 | ) ); |
120 | 302 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | 299 | ?> |
121 | 303 | ?> | 300 | </div> |
122 | 304 | </div> | 301 | |
123 | 305 | <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> | 302 | <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> |
124 | 306 | 303 | ||
125 | 307 | <?php | 304 | <?php |
126 | @@ -313,34 +310,22 @@ | |||
127 | 313 | 'next_text' => '>>', | 310 | 'next_text' => '>>', |
128 | 314 | ) ); | 311 | ) ); |
129 | 315 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 312 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
145 | 316 | ?> | 313 | |
146 | 317 | 314 | // --- --- --- --- --- --- --- --- --- --- --- | |
147 | 318 | 315 | // MAIN CONTENT INCLUDED HERE | |
148 | 319 | <?php | 316 | template_include( '$disp$', array( |
149 | 320 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 317 | // we already handled these cases above |
150 | 321 | template_include( '$disp$', array( | 318 | 'disp_posts' => '', |
151 | 322 | 'disp_posts' => '', // We already handled this case above | 319 | 'disp_single' => '', |
152 | 323 | 'disp_single' => '', // We already handled this case above | 320 | 'disp_page' => '', |
153 | 324 | 'disp_page' => '', // We already handled this case above | 321 | ) ); |
154 | 325 | ) ); | 322 | ?> |
140 | 326 | // Note: you can customize any of the sub templates included here by | ||
141 | 327 | // copying the matching php file into your template directory. | ||
142 | 328 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
143 | 329 | ?> | ||
144 | 330 | |||
155 | 331 | </div> | 323 | </div> |
156 | 332 | 324 | ||
157 | 333 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
158 | 334 | |||
159 | 335 | <div class="bSideBar"> | 325 | <div class="bSideBar"> |
160 | 336 | 326 | ||
168 | 337 | <div class="bSideItem"> | 327 | <div class="bSideItem"> |
169 | 338 | 328 | <h3><?php $Blog->disp( 'name', 'htmlbody' ); ?></h3> | |
163 | 339 | <h3><?php | ||
164 | 340 | // BLOG TITLE: | ||
165 | 341 | $Blog->disp( 'name', 'htmlbody' ); | ||
166 | 342 | // Note: we could have called the coll_title widget instead, but that would be overkill. | ||
167 | 343 | ?></h3> | ||
170 | 344 | 329 | ||
171 | 345 | <p><?php | 330 | <p><?php |
172 | 346 | // BLOG LONG DESCRIPTION: | 331 | // BLOG LONG DESCRIPTION: |
173 | 347 | 332 | ||
174 | === modified file 'blogs/contact.php' | |||
175 | --- blogs/contact.php 2010-01-02 08:34:34 +0000 | |||
176 | +++ blogs/contact.php 2010-01-03 09:20:30 +0000 | |||
177 | @@ -10,7 +10,7 @@ | |||
178 | 10 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} | 10 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} |
179 | 11 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} | 11 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} |
180 | 12 | * | 12 | * |
182 | 13 | * @package pond | 13 | * @package templates |
183 | 14 | */ | 14 | */ |
184 | 15 | 15 | ||
185 | 16 | // The User ID of the administrator: | 16 | // The User ID of the administrator: |
186 | @@ -47,32 +47,28 @@ | |||
187 | 47 | <head> | 47 | <head> |
188 | 48 | <!-- InstanceBeginEditable name="doctitle" --> | 48 | <!-- InstanceBeginEditable name="doctitle" --> |
189 | 49 | <title><?php echo T_('Contact Form Demo'); ?></title> | 49 | <title><?php echo T_('Contact Form Demo'); ?></title> |
190 | 50 | <!-- InstanceEndEditable --> | ||
191 | 51 | <link rel="stylesheet" href="rsc/css/fp02.css" type="text/css" /> | 50 | <link rel="stylesheet" href="rsc/css/fp02.css" type="text/css" /> |
195 | 52 | <!-- InstanceBeginEditable name="head" --> | 51 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> |
193 | 53 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> | ||
194 | 54 | <!-- InstanceEndEditable --> | ||
196 | 55 | </head> | 52 | </head> |
197 | 53 | |||
198 | 56 | <body> | 54 | <body> |
199 | 57 | <!-- InstanceBeginEditable name="ToolBar" --> | ||
200 | 58 | <?php | 55 | <?php |
214 | 59 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 56 | // --- --- --- --- --- --- --- --- --- --- --- |
215 | 60 | require $templates_path.'_toolbar.inc.php'; | 57 | // --- TOOLBAR INCLUDED HERE --- |
216 | 61 | // ------------------------------- END OF TOOLBAR -------------------------------- | 58 | template_include( '_toolbar.inc.php' ); |
217 | 62 | echo "\n"; | 59 | echo "\n"; |
218 | 63 | if( is_logged_in() ) | 60 | if( is_logged_in() ) |
219 | 64 | { | 61 | { |
220 | 65 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; | 62 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; |
221 | 66 | } | 63 | } |
222 | 67 | else | 64 | else |
223 | 68 | { | 65 | { |
224 | 69 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 66 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
225 | 70 | } | 67 | } |
226 | 71 | echo "\n"; | 68 | echo "\n"; |
227 | 72 | ?> | 69 | ?> |
229 | 73 | <!-- InstanceEndEditable --> | 70 | |
230 | 74 | <div class="pageHeader"> | 71 | <div class="pageHeader"> |
231 | 75 | <!-- InstanceBeginEditable name="NavBar2" --> | ||
232 | 76 | <?php | 72 | <?php |
233 | 77 | // --------------------------------- START OF BLOG LIST -------------------------------- | 73 | // --------------------------------- START OF BLOG LIST -------------------------------- |
234 | 78 | template_widget( array( | 74 | template_widget( array( |
235 | 79 | 75 | ||
236 | === modified file 'blogs/default.php' | |||
237 | --- blogs/default.php 2010-01-02 08:34:34 +0000 | |||
238 | +++ blogs/default.php 2010-01-03 09:20:30 +0000 | |||
239 | @@ -11,7 +11,7 @@ | |||
240 | 11 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} | 11 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} |
241 | 12 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} | 12 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} |
242 | 13 | * | 13 | * |
244 | 14 | * @package pond | 14 | * @package templates |
245 | 15 | */ | 15 | */ |
246 | 16 | 16 | ||
247 | 17 | /** | 17 | /** |
248 | @@ -48,46 +48,37 @@ | |||
249 | 48 | <!-- InstanceEndEditable --> | 48 | <!-- InstanceEndEditable --> |
250 | 49 | <meta name="viewport" content="width = 750" /> | 49 | <meta name="viewport" content="width = 750" /> |
251 | 50 | <link href="rsc/css/evo_distrib_2.css" rel="stylesheet" type="text/css" /> | 50 | <link href="rsc/css/evo_distrib_2.css" rel="stylesheet" type="text/css" /> |
252 | 51 | <!-- InstanceBeginEditable name="head" --> | ||
253 | 52 | <base href="<?php echo $baseurl ?>" /> | 51 | <base href="<?php echo $baseurl ?>" /> |
254 | 53 | <!-- InstanceEndEditable --> | ||
255 | 54 | <!-- InstanceParam name="lang" type="text" value="<?php locale_lang() ?>" --> | ||
256 | 55 | </head> | 52 | </head> |
257 | 56 | 53 | ||
258 | 57 | <body> | 54 | <body> |
292 | 58 | <!-- InstanceBeginEditable name="BodyHead" --> | 55 | <?php |
293 | 59 | <?php | 56 | // --- --- --- --- --- --- --- --- --- --- --- |
294 | 60 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 57 | // --- TOOLBAR INCLUDED HERE --- |
295 | 61 | require $templates_path.'_toolbar.inc.php'; | 58 | template_include( '_toolbar.inc.php' ); |
296 | 62 | // ------------------------------- END OF TOOLBAR -------------------------------- | 59 | echo "\n"; |
297 | 63 | 60 | if( is_logged_in() ) | |
298 | 64 | echo "\n"; | 61 | { |
299 | 65 | if( is_logged_in() ) | 62 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; |
300 | 66 | { | 63 | } |
301 | 67 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; | 64 | else |
302 | 68 | } | 65 | { |
303 | 69 | else | 66 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
304 | 70 | { | 67 | } |
305 | 71 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 68 | echo "\n"; |
306 | 72 | } | 69 | ?> |
307 | 73 | echo "\n"; | 70 | |
308 | 74 | ?> | 71 | <div class="wrapper1"> |
309 | 75 | <!-- Start of template_wrapper --> | 72 | |
310 | 76 | <!-- InstanceEndEditable --> | 73 | <div class="wrapper2"> |
311 | 77 | 74 | <span class="version_top"><?php echo T_('Default page') ?></span> | |
312 | 78 | <div class="wrapper1"> | 75 | <a href="<?php echo $app_homepage; ?>" target="_blank"><img src="rsc/img/distrib/b2evolution-logo.gif" alt="<?php echo $app_name; ?>" width="237" height="92" /></a> |
313 | 79 | <div class="wrapper2"> | 76 | |
314 | 80 | <span class="version_top"><!-- InstanceBeginEditable name="Version" --><?php echo T_('Default page') ?><!-- InstanceEndEditable --></span> | 77 | <div class="menu_top"> |
315 | 81 | 78 | <span class="floatright"><a href="<?php echo $baseurl ?>">Home</a> • <a href="<?php echo $admin_url ?>">Admin</a> </span> | |
316 | 82 | <a href="<?php echo $app_homepage; ?>" target="_blank"><img src="rsc/img/distrib/b2evolution-logo.gif" alt="<?php echo $app_name; ?>" width="237" height="92" /></a> | 79 | </div> |
317 | 83 | 80 | ||
318 | 84 | <div class="menu_top"><!-- InstanceBeginEditable name="MenuTop" --> | 81 | <?php |
286 | 85 | <span class="floatright"><a href="<?php echo $baseurl ?>">Home</a> • <a href="<?php echo $admin_url ?>">Admin</a> </span> | ||
287 | 86 | | ||
288 | 87 | <!-- InstanceEndEditable --></div> | ||
289 | 88 | |||
290 | 89 | <!-- InstanceBeginEditable name="Main" --> | ||
291 | 90 | <?php | ||
319 | 91 | /** | 82 | /** |
320 | 92 | * @var BlogCache | 83 | * @var BlogCache |
321 | 93 | */ | 84 | */ |
322 | 94 | 85 | ||
323 | === modified file 'blogs/inc/items/model/_item.class.php' | |||
324 | --- blogs/inc/items/model/_item.class.php 2010-01-02 08:34:34 +0000 | |||
325 | +++ blogs/inc/items/model/_item.class.php 2010-01-03 09:20:31 +0000 | |||
326 | @@ -1144,13 +1144,11 @@ | |||
327 | 1144 | */ | 1144 | */ |
328 | 1145 | function content() | 1145 | function content() |
329 | 1146 | { | 1146 | { |
331 | 1147 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 1147 | // --- --- --- --- --- --- --- --- --- --- --- |
332 | 1148 | // --- POST CONTENT INCLUDED HERE --- | ||
333 | 1148 | template_include( '_item_content.inc.php', array( | 1149 | template_include( '_item_content.inc.php', array( |
339 | 1149 | 'image_size' => 'fit-400x320', | 1150 | 'image_size' => 'fit-400x320', |
340 | 1150 | ) ); | 1151 | ) ); |
336 | 1151 | // Note: You can customize the default item feedback by copying the generic | ||
337 | 1152 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
338 | 1153 | // -------------------------- END OF POST CONTENT ------------------------- | ||
341 | 1154 | } | 1152 | } |
342 | 1155 | 1153 | ||
343 | 1156 | 1154 | ||
344 | 1157 | 1155 | ||
345 | === modified file 'blogs/inc/templates/_template.funcs.php' | |||
346 | --- blogs/inc/templates/_template.funcs.php 2010-01-02 08:34:34 +0000 | |||
347 | +++ blogs/inc/templates/_template.funcs.php 2010-01-03 09:20:31 +0000 | |||
348 | @@ -388,6 +388,8 @@ | |||
349 | 388 | /** | 388 | /** |
350 | 389 | * Template tag. Include a sub-template at the current position | 389 | * Template tag. Include a sub-template at the current position |
351 | 390 | * | 390 | * |
352 | 391 | * A docblock test. This text will show up in the autodocs? | ||
353 | 392 | * If so, $disp_handler is very nice :) | ||
354 | 391 | */ | 393 | */ |
355 | 392 | function template_include( $template_name, $params = array() ) | 394 | function template_include( $template_name, $params = array() ) |
356 | 393 | { | 395 | { |
357 | 394 | 396 | ||
358 | === modified file 'blogs/multiblogs.php' | |||
359 | --- blogs/multiblogs.php 2010-01-02 08:34:34 +0000 | |||
360 | +++ blogs/multiblogs.php 2010-01-03 09:20:30 +0000 | |||
361 | @@ -5,7 +5,7 @@ | |||
362 | 5 | * If you're new to quam plures template system, you should not start with this file | 5 | * If you're new to quam plures template system, you should not start with this file |
363 | 6 | * It will be easier to start examining blog_a.php or notemplate_a.php for instance... | 6 | * It will be easier to start examining blog_a.php or notemplate_a.php for instance... |
364 | 7 | * | 7 | * |
366 | 8 | * @package pond | 8 | * @package templates |
367 | 9 | */ | 9 | */ |
368 | 10 | 10 | ||
369 | 11 | # First blog will be displayed the regular way (why bother?) | 11 | # First blog will be displayed the regular way (why bother?) |
370 | @@ -92,28 +92,26 @@ | |||
371 | 92 | <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" /> | 92 | <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" /> |
372 | 93 | <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" /> | 93 | <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" /> |
373 | 94 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> | 94 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> |
374 | 95 | <!-- InstanceEndEditable --> | ||
375 | 96 | </head> | 95 | </head> |
376 | 96 | |||
377 | 97 | <body> | 97 | <body> |
378 | 98 | <!-- InstanceBeginEditable name="ToolBar" --> | ||
379 | 99 | <?php | 98 | <?php |
393 | 100 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 99 | // --- --- --- --- --- --- --- --- --- --- --- |
394 | 101 | require $templates_path.'_toolbar.inc.php'; | 100 | // --- TOOLBAR INCLUDED HERE --- |
395 | 102 | // ------------------------------- END OF TOOLBAR -------------------------------- | 101 | template_include( '_toolbar.inc.php' ); |
396 | 103 | echo "\n"; | 102 | echo "\n"; |
397 | 104 | if( is_logged_in() ) | 103 | if( is_logged_in() ) |
398 | 105 | { | 104 | { |
399 | 106 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; | 105 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; |
400 | 107 | } | 106 | } |
401 | 108 | else | 107 | else |
402 | 109 | { | 108 | { |
403 | 110 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 109 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
404 | 111 | } | 110 | } |
405 | 112 | echo "\n"; | 111 | echo "\n"; |
406 | 113 | ?> | 112 | ?> |
408 | 114 | <!-- InstanceEndEditable --> | 113 | |
409 | 115 | <div class="pageHeader"> | 114 | <div class="pageHeader"> |
410 | 116 | <!-- InstanceBeginEditable name="NavBar2" --> | ||
411 | 117 | <?php | 115 | <?php |
412 | 118 | // --------------------------------- START OF BLOG LIST -------------------------------- | 116 | // --------------------------------- START OF BLOG LIST -------------------------------- |
413 | 119 | template_widget( array( | 117 | template_widget( array( |
414 | @@ -201,22 +199,20 @@ | |||
415 | 201 | 'include_external'=> true, | 199 | 'include_external'=> true, |
416 | 202 | 'link_categories' => true, | 200 | 'link_categories' => true, |
417 | 203 | ) ); | 201 | ) ); |
434 | 204 | ?> | 202 | ?> |
435 | 205 | </div> | 203 | </div> |
436 | 206 | <h3 class="bTitle"><?php $Item->title(); ?></h3> | 204 | |
437 | 207 | 205 | <h3 class="bTitle"><?php $Item->title(); ?></h3> | |
438 | 208 | <?php | 206 | <?php |
439 | 209 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 207 | // --- --- --- --- --- --- --- --- --- --- --- |
440 | 210 | template_include( '_item_content.inc.php', array( | 208 | // --- POST CONTENT INCLUDED HERE --- |
441 | 211 | 'image_size' => 'fit-400x320', | 209 | template_include( '_item_content.inc.php', array( |
442 | 212 | ) ); | 210 | 'image_size' => 'fit-400x320', |
443 | 213 | // Note: You can customize the default item feedback by copying the generic | 211 | ) ); |
444 | 214 | // /templates/_item_feedback.inc.php file into the current template folder. | 212 | ?> |
445 | 215 | // -------------------------- END OF POST CONTENT ------------------------- | 213 | |
446 | 216 | ?> | 214 | <div class="bSmallPrint"> |
447 | 217 | 215 | <?php | |
432 | 218 | <div class="bSmallPrint"> | ||
433 | 219 | <?php | ||
448 | 220 | // Link to comments, trackbacks, etc.: | 216 | // Link to comments, trackbacks, etc.: |
449 | 221 | $Item->feedback_link( array( | 217 | $Item->feedback_link( array( |
450 | 222 | 'type' => 'comments', | 218 | 'type' => 'comments', |
451 | @@ -244,19 +240,18 @@ | |||
452 | 244 | ?> | 240 | ?> |
453 | 245 | 241 | ||
454 | 246 | <?php $Item->permanent_link(); ?> | 242 | <?php $Item->permanent_link(); ?> |
468 | 247 | </div> | 243 | </div> |
469 | 248 | 244 | ||
470 | 249 | <?php | 245 | <?php |
471 | 250 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 246 | // --- --- --- --- --- --- --- --- --- --- --- |
472 | 251 | template_include( '_item_feedback.inc.php', array( | 247 | // --- ITEM FEEDBACK INCLUDED HERE --- |
473 | 252 | 'before_section_title' => '<h4>', | 248 | template_include( '_item_feedback.inc.php', array( |
474 | 253 | 'after_section_title' => '</h4>', | 249 | 'before_section_title' => '<h4>', |
475 | 254 | ) ); | 250 | 'after_section_title' => '</h4>', |
476 | 255 | // Note: You can customize the default item feedback by copying the generic | 251 | ) ); |
477 | 256 | // /templates/_item_feedback.inc.php file into the current template folder. | 252 | ?> |
478 | 257 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | 253 | </div> |
479 | 258 | ?> | 254 | |
467 | 259 | </div> | ||
480 | 260 | <?php | 255 | <?php |
481 | 261 | } // ---------------------------------- END OF POSTS ------------------------------------ | 256 | } // ---------------------------------- END OF POSTS ------------------------------------ |
482 | 262 | ?> | 257 | ?> |
483 | @@ -271,30 +266,22 @@ | |||
484 | 271 | 'next_text' => T_('Next').' >>', | 266 | 'next_text' => T_('Next').' >>', |
485 | 272 | ) ); | 267 | ) ); |
486 | 273 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 268 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
501 | 274 | ?> | 269 | |
502 | 275 | 270 | // --- --- --- --- --- --- --- --- --- --- --- | |
503 | 276 | <?php | 271 | // MAIN CONTENT INCLUDED HERE |
504 | 277 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 272 | template_include( '$disp$', array( |
505 | 278 | template_include( '$disp$', array( | 273 | // we already handled these cases above |
506 | 279 | 'disp_posts' => '', // We already handled this case above | 274 | 'disp_posts' => '', |
507 | 280 | 'disp_single' => '', // We already handled this case above | 275 | 'disp_single' => '', |
508 | 281 | 'disp_page' => '', // We already handled this case above | 276 | 'disp_page' => '', |
509 | 282 | ) ); | 277 | ) ); |
510 | 283 | // Note: you can customize any of the sub templates included here by | 278 | ?> |
497 | 284 | // copying the matching php file into your template directory. | ||
498 | 285 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
499 | 286 | ?> | ||
500 | 287 | |||
511 | 288 | </div> | 279 | </div> |
512 | 289 | 280 | ||
513 | 290 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
514 | 291 | |||
515 | 292 | <div class="bSideBar"> | 281 | <div class="bSideBar"> |
516 | 293 | 282 | ||
521 | 294 | <!-- =================================== START OF BLOG B =================================== --> | 283 | <div class="bSideItem"> |
522 | 295 | 284 | <?php | |
519 | 296 | <div class="bSideItem"> | ||
520 | 297 | <?php | ||
523 | 298 | $BlogCache = & get_Cache( 'BlogCache' ); | 285 | $BlogCache = & get_Cache( 'BlogCache' ); |
524 | 299 | $Blog_B = & $BlogCache->get_by_ID( 2, false ); | 286 | $Blog_B = & $BlogCache->get_by_ID( 2, false ); |
525 | 300 | if( empty($Blog_B) ) | 287 | if( empty($Blog_B) ) |
526 | 301 | 288 | ||
527 | === modified file 'blogs/summary.php' | |||
528 | --- blogs/summary.php 2010-01-02 08:34:34 +0000 | |||
529 | +++ blogs/summary.php 2010-01-03 09:20:31 +0000 | |||
530 | @@ -10,7 +10,7 @@ | |||
531 | 10 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} | 10 | * @copyright (c) 2009 by the Quam Plures developers - {@link http://quamplures.net/} |
532 | 11 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} | 11 | * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/} |
533 | 12 | * | 12 | * |
535 | 13 | * @package pond | 13 | * @package templates |
536 | 14 | */ | 14 | */ |
537 | 15 | 15 | ||
538 | 16 | /** | 16 | /** |
539 | @@ -19,6 +19,9 @@ | |||
540 | 19 | */ | 19 | */ |
541 | 20 | require_once dirname(__FILE__).'/conf/_config.php'; | 20 | require_once dirname(__FILE__).'/conf/_config.php'; |
542 | 21 | 21 | ||
543 | 22 | /** | ||
544 | 23 | * dummy docblock needs lovin' | ||
545 | 24 | */ | ||
546 | 22 | require_once $inc_path.'_main.inc.php'; | 25 | require_once $inc_path.'_main.inc.php'; |
547 | 23 | 26 | ||
548 | 24 | load_funcs( 'templates/_template.funcs.php' ); | 27 | load_funcs( 'templates/_template.funcs.php' ); |
549 | @@ -44,32 +47,28 @@ | |||
550 | 44 | <head> | 47 | <head> |
551 | 45 | <!-- InstanceBeginEditable name="doctitle" --> | 48 | <!-- InstanceBeginEditable name="doctitle" --> |
552 | 46 | <title><?php echo T_('Summary Demo'); ?></title> | 49 | <title><?php echo T_('Summary Demo'); ?></title> |
553 | 47 | <!-- InstanceEndEditable --> | ||
554 | 48 | <link rel="stylesheet" href="rsc/css/fp02.css" type="text/css" /> | 50 | <link rel="stylesheet" href="rsc/css/fp02.css" type="text/css" /> |
555 | 49 | <!-- InstanceBeginEditable name="head" --> | ||
556 | 50 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> | 51 | <?php include_headlines() /* Add javascript and css files included by plugins and template */ ?> |
557 | 51 | <!-- InstanceEndEditable --> | ||
558 | 52 | </head> | 52 | </head> |
559 | 53 | |||
560 | 53 | <body> | 54 | <body> |
561 | 54 | <!-- InstanceBeginEditable name="ToolBar" --> | ||
562 | 55 | <?php | 55 | <?php |
576 | 56 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 56 | // --- --- --- --- --- --- --- --- --- --- --- |
577 | 57 | require $templates_path.'_toolbar.inc.php'; | 57 | // --- TOOLBAR INCLUDED HERE --- |
578 | 58 | // ------------------------------- END OF TOOLBAR -------------------------------- | 58 | template_include( '_toolbar.inc.php' ); |
579 | 59 | echo "\n"; | 59 | echo "\n"; |
580 | 60 | if( is_logged_in() ) | 60 | if( is_logged_in() ) |
581 | 61 | { | 61 | { |
582 | 62 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; | 62 | echo '<div id="template_wrapper" class="template_wrapper_loggedin">'; |
583 | 63 | } | 63 | } |
584 | 64 | else | 64 | else |
585 | 65 | { | 65 | { |
586 | 66 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 66 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
587 | 67 | } | 67 | } |
588 | 68 | echo "\n"; | 68 | echo "\n"; |
589 | 69 | ?> | 69 | ?> |
591 | 70 | <!-- InstanceEndEditable --> | 70 | |
592 | 71 | <div class="pageHeader"> | 71 | <div class="pageHeader"> |
593 | 72 | <!-- InstanceBeginEditable name="NavBar2" --> | ||
594 | 73 | <?php | 72 | <?php |
595 | 74 | // --------------------------------- START OF BLOG LIST -------------------------------- | 73 | // --------------------------------- START OF BLOG LIST -------------------------------- |
596 | 75 | template_widget( array( | 74 | template_widget( array( |
597 | 76 | 75 | ||
598 | === modified file 'blogs/templates/_html_header.inc.php' | |||
599 | --- blogs/templates/_html_header.inc.php 2010-01-02 08:34:34 +0000 | |||
600 | +++ blogs/templates/_html_header.inc.php 2010-01-03 09:20:31 +0000 | |||
601 | @@ -5,8 +5,6 @@ | |||
602 | 5 | * This is meant to be included in a page template. | 5 | * This is meant to be included in a page template. |
603 | 6 | * Note: This is also included in the popup: do not include site navigation! | 6 | * Note: This is also included in the popup: do not include site navigation! |
604 | 7 | * | 7 | * |
605 | 8 | * -at- tutorial page placeholder _html_header.inc.php | ||
606 | 9 | * | ||
607 | 10 | * @package templates | 8 | * @package templates |
608 | 11 | */ | 9 | */ |
609 | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 10 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
610 | @@ -54,12 +52,10 @@ | |||
611 | 54 | </head> | 52 | </head> |
612 | 55 | 53 | ||
613 | 56 | <body> | 54 | <body> |
614 | 57 | |||
615 | 58 | <?php | 55 | <?php |
620 | 59 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 56 | // --- --- --- --- --- --- --- --- --- --- --- |
621 | 60 | require $templates_path.'_toolbar.inc.php'; | 57 | // --- TOOLBAR INCLUDED HERE --- |
622 | 61 | // ------------------------------- END OF TOOLBAR -------------------------------- | 58 | template_include( '_toolbar.inc.php' ); |
619 | 62 | |||
623 | 63 | echo "\n"; | 59 | echo "\n"; |
624 | 64 | if( is_logged_in() ) | 60 | if( is_logged_in() ) |
625 | 65 | { | 61 | { |
626 | @@ -70,5 +66,4 @@ | |||
627 | 70 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 66 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
628 | 71 | } | 67 | } |
629 | 72 | echo "\n"; | 68 | echo "\n"; |
632 | 73 | ?> | 69 | ?> |
631 | 74 | <!-- Start of template_wrapper --> | ||
633 | 75 | \ No newline at end of file | 70 | \ No newline at end of file |
634 | 76 | 71 | ||
635 | === modified file 'blogs/templates/_item_comment_form.inc.php' | |||
636 | --- blogs/templates/_item_comment_form.inc.php 2010-01-02 08:34:34 +0000 | |||
637 | +++ blogs/templates/_item_comment_form.inc.php 2010-01-03 09:20:31 +0000 | |||
638 | @@ -27,7 +27,7 @@ | |||
639 | 27 | 'textarea_lines' => 10, | 27 | 'textarea_lines' => 10, |
640 | 28 | 'default_text' => '', | 28 | 'default_text' => '', |
641 | 29 | 'preview_start' => '<div class="bComment" id="comment_preview">', | 29 | 'preview_start' => '<div class="bComment" id="comment_preview">', |
643 | 30 | 'comment_template' => '_item_comment.inc.php', // The template used for displaying individual comments (including preview) | 30 | 'comment_template' => '_item_comment.inc.php', |
644 | 31 | 'preview_end' => '</div>', | 31 | 'preview_end' => '</div>', |
645 | 32 | ), $params ); | 32 | ), $params ); |
646 | 33 | 33 | ||
647 | @@ -46,15 +46,13 @@ | |||
648 | 46 | // We do not want the current rendered page to be cached!! | 46 | // We do not want the current rendered page to be cached!! |
649 | 47 | $PageCache->abort_collect(); | 47 | $PageCache->abort_collect(); |
650 | 48 | 48 | ||
652 | 49 | // ------------------ PREVIEW COMMENT INCLUDED HERE ------------------ | 49 | // --- --- --- --- --- --- --- --- --- --- --- |
653 | 50 | // --- A SINGLE COMMENT INCLUDED HERE --- | ||
654 | 50 | template_include( $params['comment_template'], array( | 51 | template_include( $params['comment_template'], array( |
662 | 51 | 'Comment' => & $Comment, | 52 | 'Comment' => & $Comment, |
663 | 52 | 'comment_start' => $params['preview_start'], | 53 | 'comment_start' => $params['comment_start'], |
664 | 53 | 'comment_end' => $params['preview_end'], | 54 | 'comment_end' => $params['comment_end'], |
665 | 54 | ) ); | 55 | ) ); |
659 | 55 | // Note: You can customize the default item feedback by copying the generic | ||
660 | 56 | // /templates/_item_comment.inc.php file into the current template folder. | ||
661 | 57 | // ---------------------- END OF PREVIEW COMMENT --------------------- | ||
666 | 58 | 56 | ||
667 | 59 | // Form fields: | 57 | // Form fields: |
668 | 60 | $comment_content = $Comment->original_content; | 58 | $comment_content = $Comment->original_content; |
669 | 61 | 59 | ||
670 | === modified file 'blogs/templates/_item_feedback.inc.php' | |||
671 | --- blogs/templates/_item_feedback.inc.php 2010-01-02 08:34:34 +0000 | |||
672 | +++ blogs/templates/_item_feedback.inc.php 2010-01-03 09:20:31 +0000 | |||
673 | @@ -21,10 +21,6 @@ | |||
674 | 21 | */ | 21 | */ |
675 | 22 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 22 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
676 | 23 | 23 | ||
677 | 24 | ?> | ||
678 | 25 | <!-- ===================== START OF FEEDBACK ===================== --> | ||
679 | 26 | <?php | ||
680 | 27 | |||
681 | 28 | // Default params: | 24 | // Default params: |
682 | 29 | $params = array_merge( array( | 25 | $params = array_merge( array( |
683 | 30 | 'disp_comments' => true, | 26 | 'disp_comments' => true, |
684 | @@ -40,7 +36,7 @@ | |||
685 | 40 | 'comment_end' => '</div>', | 36 | 'comment_end' => '</div>', |
686 | 41 | 'preview_start' => '<div class="bComment" id="comment_preview">', | 37 | 'preview_start' => '<div class="bComment" id="comment_preview">', |
687 | 42 | 'preview_end' => '</div>', | 38 | 'preview_end' => '</div>', |
689 | 43 | 'comment_template' => '_item_comment.inc.php', // The template used for displaying individual comments (including preview) | 39 | 'comment_template' => '_item_comment.inc.php', |
690 | 44 | 'form_title_start' => '<h3>', | 40 | 'form_title_start' => '<h3>', |
691 | 45 | 'form_title_end' => '</h3>', | 41 | 'form_title_end' => '</h3>', |
692 | 46 | ), $params ); | 42 | ), $params ); |
693 | @@ -158,34 +154,27 @@ | |||
694 | 158 | 154 | ||
695 | 159 | echo $params['comment_list_start']; | 155 | echo $params['comment_list_start']; |
696 | 160 | /** | 156 | /** |
697 | 157 | * loop through comments... | ||
698 | 161 | * @var Comment | 158 | * @var Comment |
699 | 162 | */ | 159 | */ |
700 | 163 | while( $Comment = & $CommentList->get_next() ) | 160 | while( $Comment = & $CommentList->get_next() ) |
704 | 164 | { // Loop through comments: | 161 | { |
705 | 165 | 162 | // --- --- --- --- --- --- --- --- --- --- --- | |
706 | 166 | // ------------------ COMMENT INCLUDED HERE ------------------ | 163 | // --- A SINGLE COMMENT INCLUDED HERE --- |
707 | 167 | template_include( $params['comment_template'], array( | 164 | template_include( $params['comment_template'], array( |
717 | 168 | 'Comment' => & $Comment, | 165 | 'Comment' => & $Comment, |
718 | 169 | 'comment_start' => $params['comment_start'], | 166 | 'comment_start' => $params['comment_start'], |
719 | 170 | 'comment_end' => $params['comment_end'], | 167 | 'comment_end' => $params['comment_end'], |
720 | 171 | ) ); | 168 | ) ); |
721 | 172 | // Note: You can customize the default item feedback by copying the generic | 169 | } |
713 | 173 | // /templates/_item_comment.inc.php file into the current template folder. | ||
714 | 174 | // ---------------------- END OF COMMENT --------------------- | ||
715 | 175 | |||
716 | 176 | } // End of comment list loop. | ||
722 | 177 | echo $params['comment_list_end']; | 170 | echo $params['comment_list_end']; |
723 | 178 | 171 | ||
724 | 179 | |||
725 | 180 | // _______________________________________________________________ | ||
726 | 181 | |||
727 | 182 | // Display count of comments to be moderated: | 172 | // Display count of comments to be moderated: |
728 | 183 | $Item->feedback_moderation( 'feedbacks', '<div class="moderation_msg"><p>', '</p></div>', '', | 173 | $Item->feedback_moderation( 'feedbacks', '<div class="moderation_msg"><p>', '</p></div>', '', |
729 | 184 | T_('This post has 1 feedback awaiting moderation... %s'), | 174 | T_('This post has 1 feedback awaiting moderation... %s'), |
730 | 185 | T_('This post has %d feedbacks awaiting moderation... %s') ); | 175 | T_('This post has %d feedbacks awaiting moderation... %s') ); |
731 | 186 | 176 | ||
734 | 187 | // _______________________________________________________________ | 177 | // foo? |
733 | 188 | |||
735 | 189 | if( $Blog->get_setting( 'feed_content' ) != 'none' ) | 178 | if( $Blog->get_setting( 'feed_content' ) != 'none' ) |
736 | 190 | { // fp: TODO; move this tesqt into feedback_feed_link() | 179 | { // fp: TODO; move this tesqt into feedback_feed_link() |
737 | 191 | // Display link for comments feed: | 180 | // Display link for comments feed: |
738 | @@ -193,17 +182,9 @@ | |||
739 | 193 | 182 | ||
740 | 194 | } | 183 | } |
741 | 195 | 184 | ||
742 | 196 | // _______________________________________________________________ | ||
743 | 197 | |||
744 | 198 | } | 185 | } |
745 | 199 | 186 | ||
749 | 200 | 187 | // --- --- --- --- --- --- --- --- --- --- --- | |
750 | 201 | 188 | // --- COMMENT FORM INCLUDED HERE --- | |
748 | 202 | // ------------------ COMMENT FORM INCLUDED HERE ------------------ | ||
751 | 203 | template_include( '_item_comment_form.inc.php', $params ); | 189 | template_include( '_item_comment_form.inc.php', $params ); |
758 | 204 | // Note: You can customize the default item feedback by copying the generic | 190 | ?> |
753 | 205 | // /templates/_item_comment_form.inc.php file into the current template folder. | ||
754 | 206 | // ---------------------- END OF COMMENT FORM --------------------- | ||
755 | 207 | |||
756 | 208 | |||
757 | 209 | ?> | ||
759 | 210 | \ No newline at end of file | 191 | \ No newline at end of file |
760 | 211 | 192 | ||
761 | === modified file 'blogs/templates/_wp_compatibility.inc.php' | |||
762 | --- blogs/templates/_wp_compatibility.inc.php 2010-01-02 08:34:34 +0000 | |||
763 | +++ blogs/templates/_wp_compatibility.inc.php 2010-01-03 09:20:31 +0000 | |||
764 | @@ -7,8 +7,6 @@ | |||
765 | 7 | * This should not be used in redistributed templates as this | 7 | * This should not be used in redistributed templates as this |
766 | 8 | * will NOT provide FULL QP functionality. | 8 | * will NOT provide FULL QP functionality. |
767 | 9 | * | 9 | * |
768 | 10 | * -at- tutorial page placeholder _wp_compatibility.inc.php | ||
769 | 11 | * | ||
770 | 12 | * @package templates | 10 | * @package templates |
771 | 13 | */ | 11 | */ |
772 | 14 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
773 | @@ -109,13 +107,11 @@ | |||
774 | 109 | */ | 107 | */ |
775 | 110 | function the_content() | 108 | function the_content() |
776 | 111 | { | 109 | { |
778 | 112 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 110 | // --- --- --- --- --- --- --- --- --- --- --- |
779 | 111 | // --- POST CONTENT INCLUDED HERE --- | ||
780 | 113 | template_include( '_item_content.inc.php', array( | 112 | template_include( '_item_content.inc.php', array( |
786 | 114 | 'image_size' => 'fit-400x320', | 113 | 'image_size' => 'fit-400x320', |
787 | 115 | ) ); | 114 | ) ); |
783 | 116 | // Note: You can customize the default item feedback by copying the generic | ||
784 | 117 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
785 | 118 | // -------------------------- END OF POST CONTENT ------------------------- | ||
788 | 119 | } | 115 | } |
789 | 120 | 116 | ||
790 | 121 | 117 | ||
791 | @@ -259,21 +255,19 @@ | |||
792 | 259 | */ | 255 | */ |
793 | 260 | function comments_template() | 256 | function comments_template() |
794 | 261 | { | 257 | { |
796 | 262 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 258 | // --- --- --- --- --- --- --- --- --- --- --- |
797 | 259 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
798 | 263 | template_include( '_item_feedback.inc.php', array( | 260 | template_include( '_item_feedback.inc.php', array( |
812 | 264 | 'before_section_title' => '<h3>', | 261 | 'before_section_title' => '<h3>', |
813 | 265 | 'after_section_title' => '</h3>', | 262 | 'after_section_title' => '</h3>', |
814 | 266 | 'comment_list_start' => "\n<ol>\n", | 263 | 'comment_list_start' => "\n<ol>\n", |
815 | 267 | 'comment_list_end' => "\n</ol>\n", | 264 | 'comment_list_end' => "\n</ol>\n", |
816 | 268 | 'comment_start' => '<li>', | 265 | 'comment_start' => '<li>', |
817 | 269 | 'comment_end' => '</li>', | 266 | 'comment_end' => '</li>', |
818 | 270 | 'preview_start' => '<ul><li id="comment_preview">', | 267 | 'preview_start' => '<ul><li id="comment_preview">', |
819 | 271 | 'preview_end' => '</li></ul>', | 268 | 'preview_end' => '</li></ul>', |
820 | 272 | 'comment_template' => '_item_comment_wp.inc.php', // The template used for displaying individual comments (including preview) | 269 | 'comment_template' => '_item_comment_wp.inc.php', |
821 | 273 | ) ); | 270 | ) ); |
809 | 274 | // Note: You can customize the default item feedback by copying the generic | ||
810 | 275 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
811 | 276 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
822 | 277 | } | 271 | } |
823 | 278 | 272 | ||
824 | 279 | 273 | ||
825 | 280 | 274 | ||
826 | === modified file 'blogs/templates/asevo/_item_block.inc.php' | |||
827 | --- blogs/templates/asevo/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
828 | +++ blogs/templates/asevo/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
829 | @@ -79,19 +79,17 @@ | |||
830 | 79 | 'after' => ' ', | 79 | 'after' => ' ', |
831 | 80 | 'separator' => ', ', | 80 | 'separator' => ', ', |
832 | 81 | ) ); | 81 | ) ); |
846 | 82 | ?> | 82 | ?> |
847 | 83 | </div> | 83 | </div> |
848 | 84 | 84 | ||
849 | 85 | <?php | 85 | <?php |
850 | 86 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 86 | // --- --- --- --- --- --- --- --- --- --- --- |
851 | 87 | template_include( '_item_content.inc.php', $params ); | 87 | // --- POST CONTENT INCLUDED HERE --- |
852 | 88 | // Note: You can customize the default item feedback by copying the generic | 88 | template_include( '_item_content.inc.php', $params ); |
853 | 89 | // /templates/_item_content.inc.php file into the current template folder. | 89 | ?> |
854 | 90 | // -------------------------- END OF POST CONTENT ------------------------- | 90 | |
855 | 91 | ?> | 91 | <div class="evo_post_foot"> |
856 | 92 | 92 | <?php | |
844 | 93 | <div class="evo_post_foot"> | ||
845 | 94 | <?php | ||
857 | 95 | // Link to comments, trackbacks, etc.: | 93 | // Link to comments, trackbacks, etc.: |
858 | 96 | $Item->feedback_link( array( | 94 | $Item->feedback_link( array( |
859 | 97 | 'type' => 'comments', | 95 | 'type' => 'comments', |
860 | @@ -116,25 +114,18 @@ | |||
861 | 116 | 'link_title' => '#', | 114 | 'link_title' => '#', |
862 | 117 | 'use_popup' => false, | 115 | 'use_popup' => false, |
863 | 118 | ) ); | 116 | ) ); |
881 | 119 | ?> | 117 | ?> |
865 | 120 | </div> | ||
866 | 121 | |||
867 | 122 | <?php | ||
868 | 123 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
869 | 124 | template_include( '_item_feedback.inc.php', array( | ||
870 | 125 | 'before_section_title' => '<h4>', | ||
871 | 126 | 'after_section_title' => '</h4>', | ||
872 | 127 | ) ); | ||
873 | 128 | // Note: You can customize the default item feedback by copying the generic | ||
874 | 129 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
875 | 130 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
876 | 131 | ?> | ||
877 | 132 | |||
878 | 133 | <?php | ||
879 | 134 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
880 | 135 | ?> | ||
882 | 136 | </div> | 118 | </div> |
883 | 137 | 119 | ||
884 | 138 | <?php | 120 | <?php |
885 | 121 | // --- --- --- --- --- --- --- --- --- --- --- | ||
886 | 122 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
887 | 123 | template_include( '_item_feedback.inc.php', array( | ||
888 | 124 | 'before_section_title' => '<h4>', | ||
889 | 125 | 'after_section_title' => '</h4>', | ||
890 | 126 | ) ); | ||
891 | 139 | 127 | ||
892 | 128 | // restore previous (Blog) locale | ||
893 | 129 | locale_restore_previous(); | ||
894 | 140 | ?> | 130 | ?> |
895 | 131 | </div> | ||
896 | 141 | 132 | ||
897 | === modified file 'blogs/templates/asevo/index.main.php' | |||
898 | --- blogs/templates/asevo/index.main.php 2010-01-02 08:34:34 +0000 | |||
899 | +++ blogs/templates/asevo/index.main.php 2010-01-03 09:20:31 +0000 | |||
900 | @@ -9,21 +9,13 @@ | |||
901 | 9 | */ | 9 | */ |
902 | 10 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 10 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
903 | 11 | 11 | ||
904 | 12 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
905 | 13 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
906 | 14 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
907 | 15 | } | ||
908 | 16 | |||
909 | 17 | // This is the main template; it may be used to display very different things. | 12 | // This is the main template; it may be used to display very different things. |
910 | 18 | // Do inits depending on current $disp: | 13 | // Do inits depending on current $disp: |
911 | 19 | template_init( $disp ); | 14 | template_init( $disp ); |
912 | 20 | 15 | ||
915 | 21 | 16 | // --- --- --- --- --- --- --- --- --- --- --- | |
916 | 22 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 17 | // --- HTML HEADER INCLUDED HERE --- |
917 | 23 | template_include( '_html_header.inc.php' ); | 18 | template_include( '_html_header.inc.php' ); |
918 | 24 | // Note: You can customize the default HTML header by copying the | ||
919 | 25 | // _html_header.inc.php file into the current template folder. | ||
920 | 26 | // -------------------------------- END OF HEADER -------------------------------- | ||
921 | 27 | ?> | 19 | ?> |
922 | 28 | 20 | ||
923 | 29 | <div class="head_zone"> | 21 | <div class="head_zone"> |
924 | @@ -126,41 +118,36 @@ | |||
925 | 126 | 'format' => 'htmlbody', | 118 | 'format' => 'htmlbody', |
926 | 127 | ) ); | 119 | ) ); |
927 | 128 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 120 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
948 | 129 | ?> | 121 | |
949 | 130 | 122 | // do we have a featured/intro item to display? | |
950 | 131 | <!-- =================================== START OF MAIN AREA =================================== --> | 123 | if( $Item = & get_featured_Item() ) |
951 | 132 | 124 | { | |
952 | 133 | <?php // ------------------------------------ START OF POSTS ---------------------------------------- | 125 | // --- --- --- --- --- --- --- --- --- --- --- |
953 | 134 | // Go Grab the featured post: | 126 | // --- ITEM BLOCK INCLUDED HERE --- |
954 | 135 | if( $Item = & get_featured_Item() ) | 127 | template_include( '_item_block.inc.php', array( |
955 | 136 | { // We have a featured/intro post to display: | 128 | 'feature_block' => true, |
956 | 137 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 129 | 'content_mode' => 'auto', |
957 | 138 | template_include( '_item_block.inc.php', array( | 130 | 'intro_mode' => 'normal', |
958 | 139 | 'feature_block' => true, | 131 | 'item_class' => 'featured_post', |
959 | 140 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 132 | 'image_size' => 'fit-400x320', |
960 | 141 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 133 | ) ); |
961 | 142 | 'item_class' => 'featured_post', | 134 | } |
962 | 143 | 'image_size' => 'fit-400x320', | 135 | |
963 | 144 | ) ); | 136 | // Display message if no post: |
944 | 145 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
945 | 146 | } | ||
946 | 147 | |||
947 | 148 | // Display message if no post: | ||
964 | 149 | display_if_empty(); | 137 | display_if_empty(); |
965 | 150 | 138 | ||
976 | 151 | while( $Item = & mainlist_get_item() ) | 139 | // do this loop for each item we need to display (aka 'the posts loop') |
977 | 152 | { // For each blog post: | 140 | while( $Item = & mainlist_get_item() ) |
978 | 153 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 141 | { |
979 | 154 | template_include( '_item_block.inc.php', array( | 142 | // --- --- --- --- --- --- --- --- --- --- --- |
980 | 155 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 143 | // --- ITEM BLOCK INCLUDED HERE --- |
981 | 156 | 'image_size' => 'fit-400x320', | 144 | template_include( '_item_block.inc.php', array( |
982 | 157 | ) ); | 145 | 'content_mode' => 'auto', |
983 | 158 | // ----------------------------END ITEM BLOCK ---------------------------- | 146 | 'image_size' => 'fit-400x320', |
984 | 159 | } | 147 | ) ); |
985 | 160 | ?> | 148 | } |
986 | 161 | 149 | ||
989 | 162 | <?php | 150 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
988 | 163 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
990 | 164 | mainlist_page_links( array( | 151 | mainlist_page_links( array( |
991 | 165 | 'block_start' => '<p class="center"><strong>', | 152 | 'block_start' => '<p class="center"><strong>', |
992 | 166 | 'block_end' => '</strong></p>', | 153 | 'block_end' => '</strong></p>', |
993 | @@ -169,26 +156,20 @@ | |||
994 | 169 | 'next_text' => T_('Next').' >>', | 156 | 'next_text' => T_('Next').' >>', |
995 | 170 | ) ); | 157 | ) ); |
996 | 171 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 158 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
1011 | 172 | ?> | 159 | |
1012 | 173 | 160 | // --- --- --- --- --- --- --- --- --- --- --- | |
1013 | 174 | <?php | 161 | // MAIN CONTENT INCLUDED HERE |
1014 | 175 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 162 | template_include( '$disp$', array( |
1015 | 176 | template_include( '$disp$', array( | 163 | // we already handled these cases above |
1016 | 177 | 'disp_posts' => '', // We already handled this case above | 164 | 'disp_posts' => '', |
1017 | 178 | 'disp_single' => '', // We already handled this case above | 165 | 'disp_single' => '', |
1018 | 179 | 'disp_page' => '', // We already handled this case above | 166 | 'disp_page' => '', |
1019 | 180 | ) ); | 167 | ) ); |
1020 | 181 | // Note: you can customize any of the sub templates included here by | 168 | ?> |
1007 | 182 | // copying the matching php file into your template directory. | ||
1008 | 183 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
1009 | 184 | ?> | ||
1010 | 185 | |||
1021 | 186 | </div> | 169 | </div> |
1022 | 187 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
1023 | 188 | 170 | ||
1024 | 189 | <div class="evo_sidebar"> | 171 | <div class="evo_sidebar"> |
1027 | 190 | 172 | <?php | |
1026 | 191 | <?php | ||
1028 | 192 | // Display container contents: | 173 | // Display container contents: |
1029 | 193 | template_container( NT_('Sidebar'), array( | 174 | template_container( NT_('Sidebar'), array( |
1030 | 194 | // The following (optional) params will be used as defaults for widgets included in this container: | 175 | // The following (optional) params will be used as defaults for widgets included in this container: |
1031 | @@ -209,26 +190,20 @@ | |||
1032 | 209 | 'group_end' => '</ul>', | 190 | 'group_end' => '</ul>', |
1033 | 210 | ) ); | 191 | ) ); |
1034 | 211 | ?> | 192 | ?> |
1035 | 212 | |||
1036 | 213 | </div> | 193 | </div> |
1037 | 214 | 194 | ||
1038 | 215 | <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> | 195 | <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> |
1039 | 216 | 196 | ||
1040 | 217 | </div> | 197 | </div> |
1041 | 198 | |||
1042 | 218 | </div> | 199 | </div> |
1043 | 219 | 200 | ||
1044 | 220 | <?php | 201 | <?php |
1046 | 221 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 202 | // --- --- --- --- --- --- --- --- --- --- --- |
1047 | 203 | // --- BODY FOOTER INCLUDED HERE --- | ||
1048 | 222 | template_include( '_body_footer.inc.php' ); | 204 | template_include( '_body_footer.inc.php' ); |
1049 | 223 | // Note: You can customize the default BODY footer by copying the | ||
1050 | 224 | // _body_footer.inc.php file into the current template folder. | ||
1051 | 225 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1052 | 226 | ?> | ||
1053 | 227 | 205 | ||
1056 | 228 | <?php | 206 | // --- --- --- --- --- --- --- --- --- --- --- |
1057 | 229 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 207 | // --- HTML FOOTER INCLUDED HERE --- |
1058 | 230 | template_include( '_html_footer.inc.php' ); | 208 | template_include( '_html_footer.inc.php' ); |
1059 | 231 | // Note: You can customize the default HTML footer by copying the | ||
1060 | 232 | // _html_footer.inc.php file into the current template folder. | ||
1061 | 233 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1062 | 234 | ?> | 209 | ?> |
1063 | 235 | \ No newline at end of file | 210 | \ No newline at end of file |
1064 | 236 | 211 | ||
1065 | === modified file 'blogs/templates/basic/index.main.php' | |||
1066 | --- blogs/templates/basic/index.main.php 2010-01-02 08:34:34 +0000 | |||
1067 | +++ blogs/templates/basic/index.main.php 2010-01-03 09:20:31 +0000 | |||
1068 | @@ -152,20 +152,15 @@ | |||
1069 | 152 | 'include_external'=> true, | 152 | 'include_external'=> true, |
1070 | 153 | 'link_categories' => true, | 153 | 'link_categories' => true, |
1071 | 154 | ) ); | 154 | ) ); |
1086 | 155 | ?> | 155 | |
1087 | 156 | 156 | // --- --- --- --- --- --- --- --- --- --- --- | |
1088 | 157 | <?php | 157 | // --- POST CONTENT INCLUDED HERE --- |
1089 | 158 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 158 | template_include( '_item_content.inc.php', array( |
1090 | 159 | template_include( '_item_content.inc.php', array( | 159 | 'image_size' => 'fit-400x320', |
1091 | 160 | 'image_size' => 'fit-400x320', | 160 | ) ); |
1092 | 161 | ) ); | 161 | ?> |
1093 | 162 | // Note: You can customize the default item feedback by copying the generic | 162 | <small> |
1094 | 163 | // /templates/_item_feedback.inc.php file into the current template folder. | 163 | <?php |
1081 | 164 | // -------------------------- END OF POST CONTENT ------------------------- | ||
1082 | 165 | ?> | ||
1083 | 166 | |||
1084 | 167 | <small> | ||
1085 | 168 | <?php | ||
1095 | 169 | // Link to comments, trackbacks, etc.: | 164 | // Link to comments, trackbacks, etc.: |
1096 | 170 | $Item->feedback_link( array( | 165 | $Item->feedback_link( array( |
1097 | 171 | 'type' => 'feedbacks', | 166 | 'type' => 'feedbacks', |
1098 | @@ -187,41 +182,33 @@ | |||
1099 | 187 | ?> | 182 | ?> |
1100 | 188 | 183 | ||
1101 | 189 | <?php $Item->permanent_link(); ?> | 184 | <?php $Item->permanent_link(); ?> |
1119 | 190 | </small> | 185 | </small> |
1120 | 191 | 186 | </blockquote> | |
1121 | 192 | </blockquote> | 187 | |
1122 | 193 | 188 | <?php | |
1123 | 194 | <?php | 189 | // --- --- --- --- --- --- --- --- --- --- --- |
1124 | 195 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 190 | // --- ITEM FEEDBACK INCLUDED HERE --- |
1125 | 196 | template_include( '_item_feedback.inc.php', array( | 191 | template_include( '_item_feedback.inc.php', array( |
1126 | 197 | 'before_section_title' => '<h4>', | 192 | 'before_section_title' => '<h4>', |
1127 | 198 | 'after_section_title' => '</h4>', | 193 | 'after_section_title' => '</h4>', |
1128 | 199 | ) ); | 194 | ) ); |
1129 | 200 | // Note: You can customize the default item feedback by copying the generic | 195 | |
1130 | 201 | // /templates/_item_feedback.inc.php file into the current template folder. | 196 | locale_restore_previous(); // Restore previous locale (Blog locale) |
1114 | 202 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
1115 | 203 | ?> | ||
1116 | 204 | |||
1117 | 205 | <?php | ||
1118 | 206 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
1131 | 207 | ?> | 197 | ?> |
1132 | 208 | 198 | ||
1133 | 209 | </div> | 199 | </div> |
1134 | 210 | 200 | ||
1149 | 211 | <?php } // --------------------------------- END OF POSTS ----------------------------------- ?> | 201 | <?php } // --------------------------------- END OF POSTS ----------------------------------- |
1150 | 212 | 202 | ||
1151 | 213 | 203 | // --- --- --- --- --- --- --- --- --- --- --- | |
1152 | 214 | <?php | 204 | // MAIN CONTENT INCLUDED HERE |
1153 | 215 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 205 | template_include( '$disp$', array( |
1154 | 216 | template_include( '$disp$', array( | 206 | // we already handled these cases above |
1155 | 217 | 'disp_posts' => '', // We already handled this case above | 207 | 'disp_posts' => '', |
1156 | 218 | 'disp_single' => '', // We already handled this case above | 208 | 'disp_single' => '', |
1157 | 219 | 'disp_page' => '', // We already handled this case above | 209 | 'disp_page' => '', |
1158 | 220 | ) ); | 210 | ) ); |
1159 | 221 | // Note: you can customize any of the sub templates included here by | 211 | ?> |
1146 | 222 | // copying the matching php file into your template directory. | ||
1147 | 223 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
1148 | 224 | ?> | ||
1160 | 225 | 212 | ||
1161 | 226 | 213 | ||
1162 | 227 | <hr> | 214 | <hr> |
1163 | 228 | 215 | ||
1164 | === modified file 'blogs/templates/custom/_item_block.inc.php' | |||
1165 | --- blogs/templates/custom/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
1166 | +++ blogs/templates/custom/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
1167 | @@ -75,21 +75,16 @@ | |||
1168 | 75 | 'include_external'=> true, | 75 | 'include_external'=> true, |
1169 | 76 | 'link_categories' => true, | 76 | 'link_categories' => true, |
1170 | 77 | ) ); | 77 | ) ); |
1186 | 78 | ?> | 78 | ?> |
1187 | 79 | </div> | 79 | </div> |
1188 | 80 | 80 | ||
1189 | 81 | <h3 class="bTitle"><?php $Item->title(); ?></h3> | 81 | <h3 class="bTitle"><?php $Item->title(); ?></h3> |
1190 | 82 | 82 | <?php | |
1191 | 83 | <?php | 83 | // --- --- --- --- --- --- --- --- --- --- --- |
1192 | 84 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 84 | // --- POST CONTENT INCLUDED HERE --- |
1193 | 85 | template_include( '_item_content.inc.php', $params ); | 85 | template_include( '_item_content.inc.php', $params ); |
1194 | 86 | // Note: You can customize the default item feedback by copying the generic | 86 | |
1195 | 87 | // /templates/_item_content.inc.php file into the current template folder. | 87 | // List all tags attached to this post: |
1181 | 88 | // -------------------------- END OF POST CONTENT ------------------------- | ||
1182 | 89 | ?> | ||
1183 | 90 | |||
1184 | 91 | <?php | ||
1185 | 92 | // List all tags attached to this post: | ||
1196 | 93 | $Item->tags( array( | 88 | $Item->tags( array( |
1197 | 94 | 'before' => '<div class="bSmallPrint">'.T_('Tags').': ', | 89 | 'before' => '<div class="bSmallPrint">'.T_('Tags').': ', |
1198 | 95 | 'after' => '</div>', | 90 | 'after' => '</div>', |
1199 | @@ -132,25 +127,18 @@ | |||
1200 | 132 | 'before' => ' • ', | 127 | 'before' => ' • ', |
1201 | 133 | 'after' => '', | 128 | 'after' => '', |
1202 | 134 | ) ); | 129 | ) ); |
1220 | 135 | ?> | 130 | ?> |
1204 | 136 | </div> | ||
1205 | 137 | |||
1206 | 138 | <?php | ||
1207 | 139 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
1208 | 140 | template_include( '_item_feedback.inc.php', array( | ||
1209 | 141 | 'before_section_title' => '<h4>', | ||
1210 | 142 | 'after_section_title' => '</h4>', | ||
1211 | 143 | ) ); | ||
1212 | 144 | // Note: You can customize the default item feedback by copying the generic | ||
1213 | 145 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
1214 | 146 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
1215 | 147 | ?> | ||
1216 | 148 | |||
1217 | 149 | <?php | ||
1218 | 150 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
1219 | 151 | ?> | ||
1221 | 152 | </div> | 131 | </div> |
1222 | 153 | 132 | ||
1223 | 154 | <?php | 133 | <?php |
1224 | 134 | // --- --- --- --- --- --- --- --- --- --- --- | ||
1225 | 135 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
1226 | 136 | template_include( '_item_feedback.inc.php', array( | ||
1227 | 137 | 'before_section_title' => '<h4>', | ||
1228 | 138 | 'after_section_title' => '</h4>', | ||
1229 | 139 | ) ); | ||
1230 | 155 | 140 | ||
1231 | 141 | // restore previous (Blog) locale | ||
1232 | 142 | locale_restore_previous(); | ||
1233 | 156 | ?> | 143 | ?> |
1234 | 144 | </div> | ||
1235 | 157 | 145 | ||
1236 | === modified file 'blogs/templates/custom/index.main.php' | |||
1237 | --- blogs/templates/custom/index.main.php 2010-01-02 08:34:34 +0000 | |||
1238 | +++ blogs/templates/custom/index.main.php 2010-01-03 09:20:31 +0000 | |||
1239 | @@ -13,21 +13,13 @@ | |||
1240 | 13 | */ | 13 | */ |
1241 | 14 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 14 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
1242 | 15 | 15 | ||
1243 | 16 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
1244 | 17 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
1245 | 18 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
1246 | 19 | } | ||
1247 | 20 | |||
1248 | 21 | // This is the main template; it may be used to display very different things. | 16 | // This is the main template; it may be used to display very different things. |
1249 | 22 | // Do inits depending on current $disp: | 17 | // Do inits depending on current $disp: |
1250 | 23 | template_init( $disp ); | 18 | template_init( $disp ); |
1251 | 24 | 19 | ||
1254 | 25 | 20 | // --- --- --- --- --- --- --- --- --- --- --- | |
1255 | 26 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 21 | // --- HTML HEADER INCLUDED HERE --- |
1256 | 27 | template_include( '_html_header.inc.php' ); | 22 | template_include( '_html_header.inc.php' ); |
1257 | 28 | // Note: You can customize the default HTML header by copying the generic | ||
1258 | 29 | // /templates/_html_header.inc.php file into the current template folder. | ||
1259 | 30 | // -------------------------------- END OF HEADER -------------------------------- | ||
1260 | 31 | ?> | 23 | ?> |
1261 | 32 | 24 | ||
1262 | 33 | 25 | ||
1263 | @@ -125,26 +117,22 @@ | |||
1264 | 125 | 'format' => 'htmlbody', | 117 | 'format' => 'htmlbody', |
1265 | 126 | ) ); | 118 | ) ); |
1266 | 127 | // ----------------------------- END OF REQUEST TITLE ---------------------------- | 119 | // ----------------------------- END OF REQUEST TITLE ---------------------------- |
1287 | 128 | ?> | 120 | |
1288 | 129 | 121 | // do we have a featured/intro item to display? | |
1289 | 130 | <?php | 122 | if( $Item = & get_featured_Item() ) |
1290 | 131 | // Go Grab the featured post: | 123 | { |
1291 | 132 | if( $Item = & get_featured_Item() ) | 124 | // --- --- --- --- --- --- --- --- --- --- --- |
1292 | 133 | { // We have a featured/intro post to display: | 125 | // --- ITEM BLOCK INCLUDED HERE --- |
1293 | 134 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 126 | template_include( '_item_block.inc.php', array( |
1294 | 135 | template_include( '_item_block.inc.php', array( | 127 | 'feature_block' => true, |
1295 | 136 | 'feature_block' => true, | 128 | 'content_mode' => 'auto', |
1296 | 137 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 129 | 'intro_mode' => 'normal', |
1297 | 138 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 130 | 'item_class' => 'featured_post', |
1298 | 139 | 'item_class' => 'featured_post', | 131 | 'image_size' => 'fit-400x320', |
1299 | 140 | 'image_size' => 'fit-400x320', | 132 | ) ); |
1300 | 141 | ) ); | 133 | } |
1301 | 142 | // ----------------------------END ITEM BLOCK ---------------------------- | 134 | |
1302 | 143 | } | 135 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
1283 | 144 | ?> | ||
1284 | 145 | |||
1285 | 146 | <?php | ||
1286 | 147 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
1303 | 148 | mainlist_page_links( array( | 136 | mainlist_page_links( array( |
1304 | 149 | 'block_start' => '<p class="center">'.T_('Pages:').' <strong>', | 137 | 'block_start' => '<p class="center">'.T_('Pages:').' <strong>', |
1305 | 150 | 'block_end' => '</strong></p>', | 138 | 'block_end' => '</strong></p>', |
1306 | @@ -168,18 +156,18 @@ | |||
1307 | 168 | 'date_format' => '#', | 156 | 'date_format' => '#', |
1308 | 169 | ) ); | 157 | ) ); |
1309 | 170 | 158 | ||
1322 | 171 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 159 | // do this loop for each item we need to display (aka 'the posts loop') |
1323 | 172 | template_include( '_item_block.inc.php', array( | 160 | while( $Item = & mainlist_get_item() ) |
1324 | 173 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 161 | { |
1325 | 174 | 'image_size' => 'fit-400x320', | 162 | // --- --- --- --- --- --- --- --- --- --- --- |
1326 | 175 | ) ); | 163 | // --- ITEM BLOCK INCLUDED HERE --- |
1327 | 176 | // ----------------------------END ITEM BLOCK ---------------------------- | 164 | template_include( '_item_block.inc.php', array( |
1328 | 177 | 165 | 'content_mode' => 'auto', | |
1329 | 178 | } // ---------------------------------- END OF POSTS ------------------------------------ | 166 | 'image_size' => 'fit-400x320', |
1330 | 179 | ?> | 167 | ) ); |
1331 | 180 | 168 | } | |
1332 | 181 | <?php | 169 | |
1333 | 182 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | 170 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
1334 | 183 | mainlist_page_links( array( | 171 | mainlist_page_links( array( |
1335 | 184 | 'block_start' => '<p class="center"><strong>', | 172 | 'block_start' => '<p class="center"><strong>', |
1336 | 185 | 'block_end' => '</strong></p>', | 173 | 'block_end' => '</strong></p>', |
1337 | @@ -187,28 +175,20 @@ | |||
1338 | 187 | 'next_text' => '>>', | 175 | 'next_text' => '>>', |
1339 | 188 | ) ); | 176 | ) ); |
1340 | 189 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 177 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
1356 | 190 | ?> | 178 | |
1357 | 191 | 179 | // --- --- --- --- --- --- --- --- --- --- --- | |
1358 | 192 | 180 | // MAIN CONTENT INCLUDED HERE | |
1359 | 193 | <?php | 181 | template_include( '$disp$', array( |
1360 | 194 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 182 | // we already handled these cases above |
1361 | 195 | template_include( '$disp$', array( | 183 | 'disp_posts' => '', |
1362 | 196 | 'disp_posts' => '', // We already handled this case above | 184 | 'disp_single' => '', |
1363 | 197 | 'disp_single' => '', // We already handled this case above | 185 | 'disp_page' => '', |
1364 | 198 | 'disp_page' => '', // We already handled this case above | 186 | ) ); |
1365 | 199 | ) ); | 187 | ?> |
1351 | 200 | // Note: you can customize any of the sub templates included here by | ||
1352 | 201 | // copying the matching php file into your template directory. | ||
1353 | 202 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
1354 | 203 | ?> | ||
1355 | 204 | |||
1366 | 205 | </div> | 188 | </div> |
1367 | 206 | 189 | ||
1368 | 207 | |||
1369 | 208 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
1370 | 209 | <div class="bSideBar"> | 190 | <div class="bSideBar"> |
1373 | 210 | 191 | <?php | |
1372 | 211 | <?php | ||
1374 | 212 | // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- | 192 | // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- |
1375 | 213 | // Display container contents: | 193 | // Display container contents: |
1376 | 214 | template_container( NT_('Sidebar'), array( | 194 | template_container( NT_('Sidebar'), array( |
1377 | @@ -265,18 +245,14 @@ | |||
1378 | 265 | 'title' => T_('Send a message to the owner of this blog...'), | 245 | 'title' => T_('Send a message to the owner of this blog...'), |
1379 | 266 | ) ); | 246 | ) ); |
1380 | 267 | ?> | 247 | ?> |
1388 | 268 | 248 | Template by <a href="http://b2evolution.net/" title="http://b2evolution.net/">b2evolution</a> | |
1389 | 269 | Template by <a href="http://b2evolution.net/" title="http://b2evolution.net/">b2evolution</a> | 249 | </p> |
1390 | 270 | 250 | </div> | |
1391 | 271 | </p> | 251 | |
1392 | 272 | </div> | 252 | </div> |
1386 | 273 | </div> | ||
1387 | 274 | |||
1393 | 275 | 253 | ||
1394 | 276 | <?php | 254 | <?php |
1396 | 277 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 255 | // --- --- --- --- --- --- --- --- --- --- --- |
1397 | 256 | // --- HTML FOOTER INCLUDED HERE --- | ||
1398 | 278 | template_include( '_html_footer.inc.php' ); | 257 | template_include( '_html_footer.inc.php' ); |
1399 | 279 | // Note: You can customize the default HTML footer by copying the | ||
1400 | 280 | // _html_footer.inc.php file into the current template folder. | ||
1401 | 281 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1402 | 282 | ?> | 258 | ?> |
1403 | 283 | \ No newline at end of file | 259 | \ No newline at end of file |
1404 | 284 | 260 | ||
1405 | === modified file 'blogs/templates/evocamp/_item_block.inc.php' | |||
1406 | --- blogs/templates/evocamp/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
1407 | +++ blogs/templates/evocamp/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
1408 | @@ -83,18 +83,14 @@ | |||
1409 | 83 | ) ); | 83 | ) ); |
1410 | 84 | 84 | ||
1411 | 85 | } | 85 | } |
1421 | 86 | ?> | 86 | ?> |
1422 | 87 | </p> | 87 | </p> |
1423 | 88 | <?php | 88 | <?php |
1424 | 89 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 89 | // --- --- --- --- --- --- --- --- --- --- --- |
1425 | 90 | template_include( '_item_content.inc.php', $params ); | 90 | // --- POST CONTENT INCLUDED HERE --- |
1426 | 91 | // Note: You can customize the default item feedback by copying the generic | 91 | template_include( '_item_content.inc.php', $params ); |
1418 | 92 | // /templates/_item_content.inc.php file into the current template folder. | ||
1419 | 93 | // -------------------------- END OF POST CONTENT ------------------------- | ||
1420 | 94 | ?> | ||
1427 | 95 | 92 | ||
1430 | 96 | <?php | 93 | // List all tags attached to this post: |
1429 | 97 | // List all tags attached to this post: | ||
1431 | 98 | $Item->tags( array( | 94 | $Item->tags( array( |
1432 | 99 | 'before' => '<div class="posttags">'.T_('Tags').': ', | 95 | 'before' => '<div class="posttags">'.T_('Tags').': ', |
1433 | 100 | 'after' => '</div>', | 96 | 'after' => '</div>', |
1434 | 101 | 97 | ||
1435 | === modified file 'blogs/templates/evocamp/index.main.php' | |||
1436 | --- blogs/templates/evocamp/index.main.php 2010-01-02 08:34:34 +0000 | |||
1437 | +++ blogs/templates/evocamp/index.main.php 2010-01-03 09:20:31 +0000 | |||
1438 | @@ -12,47 +12,30 @@ | |||
1439 | 12 | */ | 12 | */ |
1440 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
1441 | 14 | 14 | ||
1442 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
1443 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
1444 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
1445 | 18 | } | ||
1446 | 19 | |||
1447 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
1448 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
1449 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
1450 | 23 | 18 | ||
1453 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
1454 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
1455 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
1464 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
1465 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
1466 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
1459 | 30 | ?> | ||
1460 | 31 | |||
1461 | 32 | |||
1462 | 33 | <?php | ||
1463 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
1467 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
1468 | 36 | // Note: You can customize the default BODY header by copying the generic | ||
1469 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
1470 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1471 | 39 | ?> | 26 | ?> |
1472 | 40 | 27 | ||
1473 | 41 | <div id="page"> | 28 | <div id="page"> |
1474 | 42 | 29 | ||
1488 | 43 | <div id="contentleft"> | 30 | <div id="contentleft"> |
1489 | 44 | 31 | <?php | |
1490 | 45 | <?php | 32 | // --- --- --- --- --- --- --- --- --- --- --- |
1491 | 46 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 33 | // --- LEFT SIDEBAR INCLUDED HERE --- |
1492 | 47 | template_include( '_sidebar_left.inc.php' ); | 34 | template_include( '_sidebar_left.inc.php' ); |
1493 | 48 | // Note: You can customize the default BODY footer by copying the | 35 | ?> |
1494 | 49 | // _body_footer.inc.php file into the current template folder. | 36 | |
1495 | 50 | // ----------------------------- END OF SIDEBAR ----------------------------- | 37 | <div id="content"> |
1496 | 51 | ?> | 38 | <?php |
1484 | 52 | |||
1485 | 53 | <div id="content"> | ||
1486 | 54 | |||
1487 | 55 | <?php | ||
1497 | 56 | // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- | 39 | // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- |
1498 | 57 | request_title( array( | 40 | request_title( array( |
1499 | 58 | 'title_before'=> '<h2 class="sectionhead">', | 41 | 'title_before'=> '<h2 class="sectionhead">', |
1500 | @@ -73,46 +56,30 @@ | |||
1501 | 73 | 'block_end' => '</div>', | 56 | 'block_end' => '</div>', |
1502 | 74 | ) ); | 57 | ) ); |
1503 | 75 | // --------------------------------- END OF MESSAGES --------------------------------- | 58 | // --------------------------------- END OF MESSAGES --------------------------------- |
1518 | 76 | ?> | 59 | |
1519 | 77 | 60 | // --- --- --- --- --- --- --- --- --- --- --- | |
1520 | 78 | 61 | // MAIN CONTENT based on $disp INCLUDED HERE | |
1521 | 79 | <?php | 62 | template_include( '$disp$', array( |
1522 | 80 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 63 | // @todo EdB: see if this makes it to the todo page AND document custom disp pages for this comment |
1523 | 81 | template_include( '$disp$', array( | 64 | ) ); |
1524 | 82 | ) ); | 65 | ?> |
1525 | 83 | // Note: you can customize any of the sub templates included here by | 66 | </div> |
1512 | 84 | // copying the matching php file into your template directory. | ||
1513 | 85 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
1514 | 86 | ?> | ||
1515 | 87 | |||
1516 | 88 | |||
1517 | 89 | </div> | ||
1526 | 90 | 67 | ||
1527 | 91 | </div> | 68 | </div> |
1528 | 92 | 69 | ||
1529 | 93 | <?php | 70 | <?php |
1531 | 94 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 71 | // --- --- --- --- --- --- --- --- --- --- --- |
1532 | 72 | // --- RIGHT SIDEBAR INCLUDED HERE --- | ||
1533 | 95 | template_include( '_sidebar_right.inc.php' ); | 73 | template_include( '_sidebar_right.inc.php' ); |
1534 | 96 | // Note: You can customize the default BODY footer by copying the | ||
1535 | 97 | // _body_footer.inc.php file into the current template folder. | ||
1536 | 98 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
1537 | 99 | ?> | 74 | ?> |
1538 | 100 | |||
1539 | 101 | </div> | 75 | </div> |
1540 | 102 | 76 | ||
1541 | 103 | <?php | 77 | <?php |
1543 | 104 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 78 | // --- --- --- --- --- --- --- --- --- --- --- |
1544 | 79 | // --- BODY FOOTER INCLUDED HERE --- | ||
1545 | 105 | template_include( '_body_footer.inc.php' ); | 80 | template_include( '_body_footer.inc.php' ); |
1554 | 106 | // Note: You can customize the default BODY footer by copying the | 81 | |
1555 | 107 | // _body_footer.inc.php file into the current template folder. | 82 | // --- --- --- --- --- --- --- --- --- --- --- |
1556 | 108 | // ------------------------------- END OF FOOTER -------------------------------- | 83 | // --- HTML FOOTER INCLUDED HERE --- |
1549 | 109 | ?> | ||
1550 | 110 | |||
1551 | 111 | |||
1552 | 112 | <?php | ||
1553 | 113 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
1557 | 114 | template_include( '_html_footer.inc.php' ); | 84 | template_include( '_html_footer.inc.php' ); |
1562 | 115 | // Note: You can customize the default HTML footer by copying the | 85 | ?> |
1559 | 116 | // _html_footer.inc.php file into the current template folder. | ||
1560 | 117 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1561 | 118 | ?> | ||
1563 | 119 | \ No newline at end of file | 86 | \ No newline at end of file |
1564 | 120 | 87 | ||
1565 | === modified file 'blogs/templates/evocamp/page.main.php' | |||
1566 | --- blogs/templates/evocamp/page.main.php 2010-01-02 08:34:34 +0000 | |||
1567 | +++ blogs/templates/evocamp/page.main.php 2010-01-03 09:20:31 +0000 | |||
1568 | @@ -12,47 +12,30 @@ | |||
1569 | 12 | */ | 12 | */ |
1570 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
1571 | 14 | 14 | ||
1572 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
1573 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
1574 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
1575 | 18 | } | ||
1576 | 19 | |||
1577 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
1578 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
1579 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
1580 | 23 | 18 | ||
1583 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
1584 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
1585 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
1594 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
1595 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
1596 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
1589 | 30 | ?> | ||
1590 | 31 | |||
1591 | 32 | |||
1592 | 33 | <?php | ||
1593 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
1597 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
1598 | 36 | // Note: You can customize the default BODY header by copying the generic | ||
1599 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
1600 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1601 | 39 | ?> | 26 | ?> |
1602 | 40 | 27 | ||
1603 | 41 | <div id="page"> | 28 | <div id="page"> |
1604 | 42 | 29 | ||
1618 | 43 | <div id="contentleft"> | 30 | <div id="contentleft"> |
1619 | 44 | 31 | <?php | |
1620 | 45 | <?php | 32 | // --- --- --- --- --- --- --- --- --- --- --- |
1621 | 46 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 33 | // --- LEFT SIDEBAR INCLUDED HERE --- |
1622 | 47 | template_include( '_sidebar_left.inc.php' ); | 34 | template_include( '_sidebar_left.inc.php' ); |
1623 | 48 | // Note: You can customize the default BODY footer by copying the | 35 | ?> |
1624 | 49 | // _body_footer.inc.php file into the current template folder. | 36 | |
1625 | 50 | // ----------------------------- END OF SIDEBAR ----------------------------- | 37 | <div id="content"> |
1626 | 51 | ?> | 38 | <?php |
1614 | 52 | |||
1615 | 53 | <div id="content"> | ||
1616 | 54 | |||
1617 | 55 | <?php | ||
1627 | 56 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- | 39 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- |
1628 | 57 | messages( array( | 40 | messages( array( |
1629 | 58 | 'block_start' => '<div class="action_messages">', | 41 | 'block_start' => '<div class="action_messages">', |
1630 | @@ -83,40 +66,33 @@ | |||
1631 | 83 | 'after' => '', | 66 | 'after' => '', |
1632 | 84 | 'class' => 'floatright', | 67 | 'class' => 'floatright', |
1633 | 85 | ) ); | 68 | ) ); |
1668 | 86 | ?> | 69 | ?> |
1669 | 87 | <?php $Item->title(); ?> | 70 | <?php $Item->title(); ?> |
1670 | 88 | </h2> | 71 | </h2> |
1671 | 89 | 72 | ||
1672 | 90 | <div class="post post<?php $Item->status_raw() ?>"> | 73 | <div class="post post<?php $Item->status_raw() ?>"> |
1673 | 91 | 74 | <?php | |
1674 | 92 | <?php | 75 | // --- --- --- --- --- --- --- --- --- --- --- |
1675 | 93 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 76 | // --- POST CONTENT INCLUDED HERE --- |
1676 | 94 | template_include( '_item_content.inc.php', array( | 77 | template_include( '_item_content.inc.php', array( |
1677 | 95 | 'image_size' => 'fit-400x320', | 78 | 'image_size' => 'fit-400x320', |
1678 | 96 | ) ); | 79 | ) ); |
1679 | 97 | // Note: You can customize the default item feedback by copying the generic | 80 | ?> |
1680 | 98 | // /templates/_item_feedback.inc.php file into the current template folder. | 81 | </div> |
1681 | 99 | // -------------------------- END OF POST CONTENT ------------------------- | 82 | |
1682 | 100 | ?> | 83 | <?php |
1683 | 101 | 84 | // --- --- --- --- --- --- --- --- --- --- --- | |
1684 | 102 | </div> | 85 | // --- ITEM FEEDBACK INCLUDED HERE --- |
1685 | 103 | 86 | template_include( '_item_feedback.inc.php', array( | |
1686 | 104 | <?php | 87 | 'before_section_title' => '<h3 class="feedback_section">', |
1687 | 105 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 88 | 'after_section_title' => '</h3>', |
1688 | 106 | template_include( '_item_feedback.inc.php', array( | 89 | 'form_title_start' => '<h3 class="comment_form_title">', |
1689 | 107 | 'before_section_title' => '<h3 class="feedback_section">', | 90 | 'form_title_end' => '</h3>', |
1690 | 108 | 'after_section_title' => '</h3>', | 91 | ) ); |
1691 | 109 | 'form_title_start' => '<h3 class="comment_form_title">', | 92 | ?> |
1692 | 110 | 'form_title_end' => '</h3>', | 93 | </div> |
1693 | 111 | ) ); | 94 | |
1694 | 112 | // Note: You can customize the default item feedback by copying the generic | 95 | <?php |
1661 | 113 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
1662 | 114 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
1663 | 115 | ?> | ||
1664 | 116 | |||
1665 | 117 | </div> | ||
1666 | 118 | |||
1667 | 119 | <?php | ||
1695 | 120 | locale_restore_previous(); // Restore previous locale (Blog locale) | 96 | locale_restore_previous(); // Restore previous locale (Blog locale) |
1696 | 121 | } | 97 | } |
1697 | 122 | ?> | 98 | ?> |
1698 | @@ -126,28 +102,18 @@ | |||
1699 | 126 | </div> | 102 | </div> |
1700 | 127 | 103 | ||
1701 | 128 | <?php | 104 | <?php |
1703 | 129 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 105 | // --- --- --- --- --- --- --- --- --- --- --- |
1704 | 106 | // --- RIGHT SIDEBAR INCLUDED HERE --- | ||
1705 | 130 | template_include( '_sidebar_right.inc.php' ); | 107 | template_include( '_sidebar_right.inc.php' ); |
1706 | 131 | // Note: You can customize the default BODY footer by copying the | ||
1707 | 132 | // _body_footer.inc.php file into the current template folder. | ||
1708 | 133 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
1709 | 134 | ?> | 108 | ?> |
1710 | 135 | |||
1711 | 136 | </div> | 109 | </div> |
1712 | 137 | 110 | ||
1713 | 138 | <?php | 111 | <?php |
1715 | 139 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 112 | // --- --- --- --- --- --- --- --- --- --- --- |
1716 | 113 | // --- BODY FOOTER INCLUDED HERE --- | ||
1717 | 140 | template_include( '_body_footer.inc.php' ); | 114 | template_include( '_body_footer.inc.php' ); |
1726 | 141 | // Note: You can customize the default BODY footer by copying the | 115 | |
1727 | 142 | // _body_footer.inc.php file into the current template folder. | 116 | // --- --- --- --- --- --- --- --- --- --- --- |
1728 | 143 | // ------------------------------- END OF FOOTER -------------------------------- | 117 | // --- HTML FOOTER INCLUDED HERE --- |
1721 | 144 | ?> | ||
1722 | 145 | |||
1723 | 146 | |||
1724 | 147 | <?php | ||
1725 | 148 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
1729 | 149 | template_include( '_html_footer.inc.php' ); | 118 | template_include( '_html_footer.inc.php' ); |
1734 | 150 | // Note: You can customize the default HTML footer by copying the | 119 | ?> |
1731 | 151 | // _html_footer.inc.php file into the current template folder. | ||
1732 | 152 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1733 | 153 | ?> | ||
1735 | 154 | \ No newline at end of file | 120 | \ No newline at end of file |
1736 | 155 | 121 | ||
1737 | === modified file 'blogs/templates/evocamp/posts.main.php' | |||
1738 | --- blogs/templates/evocamp/posts.main.php 2010-01-02 08:34:34 +0000 | |||
1739 | +++ blogs/templates/evocamp/posts.main.php 2010-01-03 09:20:31 +0000 | |||
1740 | @@ -12,63 +12,44 @@ | |||
1741 | 12 | */ | 12 | */ |
1742 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
1743 | 14 | 14 | ||
1744 | 15 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
1745 | 16 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
1746 | 17 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
1747 | 18 | } | ||
1748 | 19 | |||
1749 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
1750 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
1751 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
1752 | 23 | 18 | ||
1755 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
1756 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
1757 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
1766 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
1767 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
1768 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
1761 | 30 | ?> | ||
1762 | 31 | |||
1763 | 32 | |||
1764 | 33 | <?php | ||
1765 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
1769 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
1770 | 36 | // Note: You can customize the default BODY header by copying the generic | ||
1771 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
1772 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1773 | 39 | ?> | 26 | ?> |
1774 | 40 | 27 | ||
1775 | 41 | <div id="page"> | 28 | <div id="page"> |
1776 | 42 | 29 | ||
1806 | 43 | <div id="contentleft"> | 30 | <div id="contentleft"> |
1807 | 44 | 31 | <?php | |
1808 | 45 | <?php | 32 | // do we have a featured/intro item to display? |
1809 | 46 | // Go Grab the featured post: | 33 | if( $Item = & get_featured_Item() ) |
1810 | 47 | if( $Item = & get_featured_Item() ) | 34 | { |
1811 | 48 | { // We have a featured/intro post to display: | 35 | // --- --- --- --- --- --- --- --- --- --- --- |
1812 | 49 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 36 | // --- ITEM BLOCK INCLUDED HERE --- |
1813 | 50 | template_include( '_item_block.inc.php', array( | 37 | template_include( '_item_block.inc.php', array( |
1814 | 51 | 'feature_block' => true, | 38 | 'feature_block' => true, |
1815 | 52 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 39 | 'content_mode' => 'auto', |
1816 | 53 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 40 | 'intro_mode' => 'normal', |
1817 | 54 | 'item_class' => 'featurepost', | 41 | 'item_class' => 'featurepost', |
1818 | 55 | 'image_size' => 'fit-400x320', | 42 | 'image_size' => 'fit-400x320', |
1819 | 56 | ) ); | 43 | ) ); |
1820 | 57 | // ----------------------------END ITEM BLOCK ---------------------------- | 44 | } |
1821 | 58 | } | 45 | |
1822 | 59 | ?> | 46 | // --- --- --- --- --- --- --- --- --- --- --- |
1823 | 60 | 47 | // --- LEFT SIDEBAR INCLUDED HERE --- | |
1824 | 61 | <?php | 48 | template_include( '_sidebar_left.inc.php' ); |
1825 | 62 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 49 | ?> |
1826 | 63 | template_include( '_sidebar_left.inc.php' ); | 50 | |
1827 | 64 | // Note: You can customize the default BODY footer by copying the | 51 | <div id="content"> |
1828 | 65 | // _body_footer.inc.php file into the current template folder. | 52 | <?php |
1800 | 66 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
1801 | 67 | ?> | ||
1802 | 68 | |||
1803 | 69 | <div id="content"> | ||
1804 | 70 | |||
1805 | 71 | <?php | ||
1829 | 72 | // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- | 53 | // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- |
1830 | 73 | request_title( array( | 54 | request_title( array( |
1831 | 74 | 'title_before'=> '<h2 class="sectionhead">', | 55 | 'title_before'=> '<h2 class="sectionhead">', |
1832 | @@ -96,21 +77,18 @@ | |||
1833 | 96 | // Display message if no post: | 77 | // Display message if no post: |
1834 | 97 | display_if_empty(); | 78 | display_if_empty(); |
1835 | 98 | 79 | ||
1848 | 99 | while( $Item = & mainlist_get_item() ) | 80 | // do this loop for each item we need to display (aka 'the posts loop') |
1849 | 100 | { // For each blog post: | 81 | while( $Item = & mainlist_get_item() ) |
1850 | 101 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 82 | { |
1851 | 102 | template_include( '_item_block.inc.php', array( | 83 | // --- --- --- --- --- --- --- --- --- --- --- |
1852 | 103 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 84 | // --- ITEM BLOCK INCLUDED HERE --- |
1853 | 104 | 'image_size' => 'fit-400x320', | 85 | template_include( '_item_block.inc.php', array( |
1854 | 105 | ) ); | 86 | 'content_mode' => 'auto', |
1855 | 106 | // Note: You can customize the default item feedback by copying the generic | 87 | 'image_size' => 'fit-400x320', |
1856 | 107 | // /templates/_item_feedback.inc.php file into the current template folder. | 88 | ) ); |
1857 | 108 | // ----------------------------END ITEM BLOCK ---------------------------- | 89 | } |
1846 | 109 | } | ||
1847 | 110 | ?> | ||
1858 | 111 | 90 | ||
1861 | 112 | <?php | 91 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
1860 | 113 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
1862 | 114 | mainlist_page_links( array( | 92 | mainlist_page_links( array( |
1863 | 115 | 'block_start' => '<div class="navigation">', | 93 | 'block_start' => '<div class="navigation">', |
1864 | 116 | 'block_end' => '</div>', | 94 | 'block_end' => '</div>', |
1865 | @@ -125,28 +103,18 @@ | |||
1866 | 125 | </div> | 103 | </div> |
1867 | 126 | 104 | ||
1868 | 127 | <?php | 105 | <?php |
1870 | 128 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 106 | // --- --- --- --- --- --- --- --- --- --- --- |
1871 | 107 | // --- RIGHT SIDEBAR INCLUDED HERE --- | ||
1872 | 129 | template_include( '_sidebar_right.inc.php' ); | 108 | template_include( '_sidebar_right.inc.php' ); |
1873 | 130 | // Note: You can customize the default BODY footer by copying the | ||
1874 | 131 | // _body_footer.inc.php file into the current template folder. | ||
1875 | 132 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
1876 | 133 | ?> | 109 | ?> |
1877 | 134 | |||
1878 | 135 | </div> | 110 | </div> |
1879 | 136 | 111 | ||
1880 | 137 | <?php | 112 | <?php |
1882 | 138 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 113 | // --- --- --- --- --- --- --- --- --- --- --- |
1883 | 114 | // --- BODY FOOTER INCLUDED HERE --- | ||
1884 | 139 | template_include( '_body_footer.inc.php' ); | 115 | template_include( '_body_footer.inc.php' ); |
1893 | 140 | // Note: You can customize the default BODY footer by copying the | 116 | |
1894 | 141 | // _body_footer.inc.php file into the current template folder. | 117 | // --- --- --- --- --- --- --- --- --- --- --- |
1895 | 142 | // ------------------------------- END OF FOOTER -------------------------------- | 118 | // --- HTML FOOTER INCLUDED HERE --- |
1888 | 143 | ?> | ||
1889 | 144 | |||
1890 | 145 | |||
1891 | 146 | <?php | ||
1892 | 147 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
1896 | 148 | template_include( '_html_footer.inc.php' ); | 119 | template_include( '_html_footer.inc.php' ); |
1901 | 149 | // Note: You can customize the default HTML footer by copying the | 120 | ?> |
1898 | 150 | // _html_footer.inc.php file into the current template folder. | ||
1899 | 151 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1900 | 152 | ?> | ||
1902 | 153 | \ No newline at end of file | 121 | \ No newline at end of file |
1903 | 154 | 122 | ||
1904 | === modified file 'blogs/templates/evocamp/single.main.php' | |||
1905 | --- blogs/templates/evocamp/single.main.php 2010-01-02 08:34:34 +0000 | |||
1906 | +++ blogs/templates/evocamp/single.main.php 2010-01-03 09:20:31 +0000 | |||
1907 | @@ -12,47 +12,30 @@ | |||
1908 | 12 | */ | 12 | */ |
1909 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
1910 | 14 | 14 | ||
1911 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
1912 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
1913 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
1914 | 18 | } | ||
1915 | 19 | |||
1916 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
1917 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
1918 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
1919 | 23 | 18 | ||
1922 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
1923 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
1924 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
1933 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
1934 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
1935 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
1928 | 30 | ?> | ||
1929 | 31 | |||
1930 | 32 | |||
1931 | 33 | <?php | ||
1932 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
1936 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
1937 | 36 | // Note: You can customize the default BODY header by copying the generic | ||
1938 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
1939 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
1940 | 39 | ?> | 26 | ?> |
1941 | 40 | 27 | ||
1942 | 41 | <div id="page"> | 28 | <div id="page"> |
1943 | 42 | 29 | ||
1957 | 43 | <div id="contentleft"> | 30 | <div id="contentleft"> |
1958 | 44 | 31 | <?php | |
1959 | 45 | <?php | 32 | // --- --- --- --- --- --- --- --- --- --- --- |
1960 | 46 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 33 | // --- LEFT SIDEBAR INCLUDED HERE --- |
1961 | 47 | template_include( '_sidebar_left.inc.php' ); | 34 | template_include( '_sidebar_left.inc.php' ); |
1962 | 48 | // Note: You can customize the default BODY footer by copying the | 35 | ?> |
1963 | 49 | // _body_footer.inc.php file into the current template folder. | 36 | |
1964 | 50 | // ----------------------------- END OF SIDEBAR ----------------------------- | 37 | <div id="content"> |
1965 | 51 | ?> | 38 | <?php |
1953 | 52 | |||
1954 | 53 | <div id="content"> | ||
1955 | 54 | |||
1956 | 55 | <?php | ||
1966 | 56 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- | 39 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- |
1967 | 57 | messages( array( | 40 | messages( array( |
1968 | 58 | 'block_start' => '<div class="action_messages">', | 41 | 'block_start' => '<div class="action_messages">', |
1969 | @@ -119,44 +102,35 @@ | |||
1970 | 119 | 'before' => ' | ', | 102 | 'before' => ' | ', |
1971 | 120 | 'after' => '', | 103 | 'after' => '', |
1972 | 121 | ) ); | 104 | ) ); |
1984 | 122 | ?> | 105 | ?> |
1985 | 123 | </p> | 106 | </p> |
1986 | 124 | <?php | 107 | <?php |
1987 | 125 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 108 | // --- --- --- --- --- --- --- --- --- --- --- |
1988 | 126 | template_include( '_item_content.inc.php', array( | 109 | // --- POST CONTENT INCLUDED HERE --- |
1989 | 127 | 'image_size' => 'fit-400x320', | 110 | template_include( '_item_content.inc.php', array( |
1990 | 128 | ) ); | 111 | 'image_size' => 'fit-400x320', |
1991 | 129 | // Note: You can customize the default item feedback by copying the generic | 112 | ) ); |
1981 | 130 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
1982 | 131 | // -------------------------- END OF POST CONTENT ------------------------- | ||
1983 | 132 | ?> | ||
1992 | 133 | 113 | ||
1995 | 134 | <?php | 114 | // List all tags attached to this post: |
1994 | 135 | // List all tags attached to this post: | ||
1996 | 136 | $Item->tags( array( | 115 | $Item->tags( array( |
1997 | 137 | 'before' => '<div class="posttags">'.T_('Tags').': ', | 116 | 'before' => '<div class="posttags">'.T_('Tags').': ', |
1998 | 138 | 'after' => '</div>', | 117 | 'after' => '</div>', |
1999 | 139 | 'separator' => ', ', | 118 | 'separator' => ', ', |
2000 | 140 | ) ); | 119 | ) ); |
2020 | 141 | ?> | 120 | ?> |
2021 | 142 | 121 | </div> | |
2022 | 143 | </div> | 122 | |
2023 | 144 | 123 | <?php | |
2024 | 145 | <?php | 124 | // --- --- --- --- --- --- --- --- --- --- --- |
2025 | 146 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 125 | // --- ITEM FEEDBACK INCLUDED HERE --- |
2026 | 147 | template_include( '_item_feedback.inc.php', array( | 126 | template_include( '_item_feedback.inc.php', array( |
2027 | 148 | 'before_section_title' => '<h3 class="feedback_section">', | 127 | 'before_section_title' => '<h3 class="feedback_section">', |
2028 | 149 | 'after_section_title' => '</h3>', | 128 | 'after_section_title' => '</h3>', |
2029 | 150 | 'form_title_start' => '<h3 class="comment_form_title">', | 129 | 'form_title_start' => '<h3 class="comment_form_title">', |
2030 | 151 | 'form_title_end' => '</h3>', | 130 | 'form_title_end' => '</h3>', |
2031 | 152 | ) ); | 131 | ) ); |
2032 | 153 | // Note: You can customize the default item feedback by copying the generic | 132 | |
2033 | 154 | // /templates/_item_feedback.inc.php file into the current template folder. | 133 | locale_restore_previous(); // Restore previous locale (Blog locale) |
2015 | 155 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
2016 | 156 | ?> | ||
2017 | 157 | |||
2018 | 158 | <?php | ||
2019 | 159 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
2034 | 160 | } | 134 | } |
2035 | 161 | ?> | 135 | ?> |
2036 | 162 | 136 | ||
2037 | @@ -178,28 +152,18 @@ | |||
2038 | 178 | </div> | 152 | </div> |
2039 | 179 | 153 | ||
2040 | 180 | <?php | 154 | <?php |
2042 | 181 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 155 | // --- --- --- --- --- --- --- --- --- --- --- |
2043 | 156 | // --- RIGHT SIDEBAR INCLUDED HERE --- | ||
2044 | 182 | template_include( '_sidebar_right.inc.php' ); | 157 | template_include( '_sidebar_right.inc.php' ); |
2045 | 183 | // Note: You can customize the default BODY footer by copying the | ||
2046 | 184 | // _body_footer.inc.php file into the current template folder. | ||
2047 | 185 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
2048 | 186 | ?> | 158 | ?> |
2049 | 187 | |||
2050 | 188 | </div> | 159 | </div> |
2051 | 189 | 160 | ||
2052 | 190 | <?php | 161 | <?php |
2054 | 191 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 162 | // --- --- --- --- --- --- --- --- --- --- --- |
2055 | 163 | // --- BODY FOOTER INCLUDED HERE --- | ||
2056 | 192 | template_include( '_body_footer.inc.php' ); | 164 | template_include( '_body_footer.inc.php' ); |
2065 | 193 | // Note: You can customize the default BODY footer by copying the | 165 | |
2066 | 194 | // _body_footer.inc.php file into the current template folder. | 166 | // --- --- --- --- --- --- --- --- --- --- --- |
2067 | 195 | // ------------------------------- END OF FOOTER -------------------------------- | 167 | // --- HTML FOOTER INCLUDED HERE --- |
2060 | 196 | ?> | ||
2061 | 197 | |||
2062 | 198 | |||
2063 | 199 | <?php | ||
2064 | 200 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2068 | 201 | template_include( '_html_footer.inc.php' ); | 168 | template_include( '_html_footer.inc.php' ); |
2073 | 202 | // Note: You can customize the default HTML footer by copying the | 169 | ?> |
2070 | 203 | // _html_footer.inc.php file into the current template folder. | ||
2071 | 204 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2072 | 205 | ?> | ||
2074 | 206 | \ No newline at end of file | 170 | \ No newline at end of file |
2075 | 207 | 171 | ||
2076 | === modified file 'blogs/templates/evopress/_item_block.inc.php' | |||
2077 | --- blogs/templates/evopress/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
2078 | +++ blogs/templates/evopress/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
2079 | @@ -53,18 +53,12 @@ | |||
2080 | 53 | 'time_format' => 'F jS, Y', | 53 | 'time_format' => 'F jS, Y', |
2081 | 54 | ) ); | 54 | ) ); |
2082 | 55 | } | 55 | } |
2095 | 56 | ?> | 56 | |
2096 | 57 | 57 | // --- --- --- --- --- --- --- --- --- --- --- | |
2097 | 58 | <?php | 58 | // --- POST CONTENT INCLUDED HERE --- |
2098 | 59 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 59 | template_include( '_item_content.inc.php', $params ); |
2099 | 60 | template_include( '_item_content.inc.php', $params ); | 60 | |
2100 | 61 | // Note: You can customize the default item feedback by copying the generic | 61 | // List all tags attached to this post: |
2089 | 62 | // /templates/_item_content.inc.php file into the current template folder. | ||
2090 | 63 | // -------------------------- END OF POST CONTENT ------------------------- | ||
2091 | 64 | ?> | ||
2092 | 65 | |||
2093 | 66 | <?php | ||
2094 | 67 | // List all tags attached to this post: | ||
2101 | 68 | $Item->tags( array( | 62 | $Item->tags( array( |
2102 | 69 | 'before' => '<div class="posttags">'.T_('Tags').': ', | 63 | 'before' => '<div class="posttags">'.T_('Tags').': ', |
2103 | 70 | 'after' => '</div>', | 64 | 'after' => '</div>', |
2104 | 71 | 65 | ||
2105 | === modified file 'blogs/templates/evopress/index.main.php' | |||
2106 | --- blogs/templates/evopress/index.main.php 2010-01-02 08:34:34 +0000 | |||
2107 | +++ blogs/templates/evopress/index.main.php 2010-01-03 09:20:31 +0000 | |||
2108 | @@ -12,36 +12,21 @@ | |||
2109 | 12 | */ | 12 | */ |
2110 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2111 | 14 | 14 | ||
2112 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
2113 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
2114 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2115 | 18 | } | ||
2116 | 19 | |||
2117 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2118 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2119 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2120 | 23 | 18 | ||
2123 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
2124 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
2125 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
2134 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
2135 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
2136 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
2129 | 30 | ?> | ||
2130 | 31 | |||
2131 | 32 | |||
2132 | 33 | <?php | ||
2133 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2137 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
2138 | 36 | // Note: You can customize the default BODY header by copying the generic | ||
2139 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2140 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2141 | 39 | ?> | 26 | ?> |
2142 | 40 | 27 | ||
2143 | 41 | |||
2144 | 42 | |||
2145 | 43 | <div class="top_menu top_menu_narrow"> | 28 | <div class="top_menu top_menu_narrow"> |
2147 | 44 | <ul> | 29 | <ul> |
2148 | 45 | <?php | 30 | <?php |
2149 | 46 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- | 31 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- |
2150 | 47 | // Display container and contents: | 32 | // Display container and contents: |
2151 | @@ -57,7 +42,7 @@ | |||
2152 | 57 | ) ); | 42 | ) ); |
2153 | 58 | // ----------------------------- END OF "Menu" CONTAINER ----------------------------- | 43 | // ----------------------------- END OF "Menu" CONTAINER ----------------------------- |
2154 | 59 | ?> | 44 | ?> |
2156 | 60 | </ul> | 45 | </ul> |
2157 | 61 | </div> | 46 | </div> |
2158 | 62 | 47 | ||
2159 | 63 | <div id="content" class="narrowcolumn"> | 48 | <div id="content" class="narrowcolumn"> |
2160 | @@ -82,42 +67,25 @@ | |||
2161 | 82 | 'format' => 'htmlbody', | 67 | 'format' => 'htmlbody', |
2162 | 83 | ) ); | 68 | ) ); |
2163 | 84 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 69 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
2175 | 85 | ?> | 70 | |
2176 | 86 | 71 | // --- --- --- --- --- --- --- --- --- --- --- | |
2177 | 87 | <?php | 72 | // MAIN CONTENT based on $disp INCLUDED HERE |
2178 | 88 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 73 | template_include( '$disp$', array( |
2179 | 89 | template_include( '$disp$', array( | 74 | // @todo EdB: see if this makes it to the todo page AND document custom disp pages for this comment |
2180 | 90 | ) ); | 75 | ) ); |
2181 | 91 | // Note: you can customize any of the sub templates included here by | 76 | ?> |
2171 | 92 | // copying the matching php file into your template directory. | ||
2172 | 93 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
2173 | 94 | ?> | ||
2174 | 95 | |||
2182 | 96 | </div> | 77 | </div> |
2183 | 97 | 78 | ||
2184 | 98 | |||
2185 | 99 | <?php | 79 | <?php |
2187 | 100 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 80 | // --- --- --- --- --- --- --- --- --- --- --- |
2188 | 81 | // --- SIDEBAR INCLUDED HERE --- | ||
2189 | 101 | template_include( '_sidebar.inc.php' ); | 82 | template_include( '_sidebar.inc.php' ); |
2198 | 102 | // Note: You can customize the default BODY footer by copying the | 83 | |
2199 | 103 | // _body_footer.inc.php file into the current template folder. | 84 | // --- --- --- --- --- --- --- --- --- --- --- |
2200 | 104 | // ----------------------------- END OF SIDEBAR ----------------------------- | 85 | // --- BODY FOOTER INCLUDED HERE --- |
2193 | 105 | ?> | ||
2194 | 106 | |||
2195 | 107 | |||
2196 | 108 | <?php | ||
2197 | 109 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | ||
2201 | 110 | template_include( '_body_footer.inc.php' ); | 86 | template_include( '_body_footer.inc.php' ); |
2210 | 111 | // Note: You can customize the default BODY footer by copying the | 87 | |
2211 | 112 | // _body_footer.inc.php file into the current template folder. | 88 | // --- --- --- --- --- --- --- --- --- --- --- |
2212 | 113 | // ------------------------------- END OF FOOTER -------------------------------- | 89 | // --- HTML FOOTER INCLUDED HERE --- |
2205 | 114 | ?> | ||
2206 | 115 | |||
2207 | 116 | |||
2208 | 117 | <?php | ||
2209 | 118 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2213 | 119 | template_include( '_html_footer.inc.php' ); | 90 | template_include( '_html_footer.inc.php' ); |
2218 | 120 | // Note: You can customize the default HTML footer by copying the | 91 | ?> |
2215 | 121 | // _html_footer.inc.php file into the current template folder. | ||
2216 | 122 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2217 | 123 | ?> | ||
2219 | 124 | \ No newline at end of file | 92 | \ No newline at end of file |
2220 | 125 | 93 | ||
2221 | === modified file 'blogs/templates/evopress/page.main.php' | |||
2222 | --- blogs/templates/evopress/page.main.php 2010-01-02 08:34:34 +0000 | |||
2223 | +++ blogs/templates/evopress/page.main.php 2010-01-03 09:20:31 +0000 | |||
2224 | @@ -12,16 +12,10 @@ | |||
2225 | 12 | */ | 12 | */ |
2226 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2227 | 14 | 14 | ||
2228 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
2229 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
2230 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2231 | 18 | } | ||
2232 | 19 | |||
2233 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2234 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2235 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2236 | 23 | 18 | ||
2237 | 24 | |||
2238 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 19 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- |
2239 | 26 | add_headline( <<<HEREDOC | 20 | add_headline( <<<HEREDOC |
2240 | 27 | <style type="text/css" media="screen"> | 21 | <style type="text/css" media="screen"> |
2241 | @@ -29,25 +23,19 @@ | |||
2242 | 29 | </style> | 23 | </style> |
2243 | 30 | HEREDOC | 24 | HEREDOC |
2244 | 31 | ); | 25 | ); |
2245 | 26 | |||
2246 | 27 | // --- --- --- --- --- --- --- --- --- --- --- | ||
2247 | 28 | // --- HTML HEADER INCLUDED HERE --- | ||
2248 | 32 | template_include( '_html_header.inc.php' ); | 29 | template_include( '_html_header.inc.php' ); |
2257 | 33 | // Note: You can customize the default HTML header by copying the generic | 30 | |
2258 | 34 | // /templates/_html_header.inc.php file into the current template folder. | 31 | // --- --- --- --- --- --- --- --- --- --- --- |
2259 | 35 | // -------------------------------- END OF HEADER -------------------------------- | 32 | // --- BODY HEADER INCLUDED HERE --- |
2252 | 36 | ?> | ||
2253 | 37 | |||
2254 | 38 | |||
2255 | 39 | <?php | ||
2256 | 40 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2260 | 41 | template_include( '_body_header.inc.php' ); | 33 | template_include( '_body_header.inc.php' ); |
2261 | 42 | // Note: You can customize the default BODY header by copying the generic | ||
2262 | 43 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2263 | 44 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2264 | 45 | ?> | 34 | ?> |
2265 | 46 | 35 | ||
2266 | 47 | |||
2267 | 48 | <div class="top_menu"> | 36 | <div class="top_menu"> |
2270 | 49 | <ul> | 37 | <ul> |
2271 | 50 | <?php | 38 | <?php |
2272 | 51 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- | 39 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- |
2273 | 52 | // Display container and contents: | 40 | // Display container and contents: |
2274 | 53 | template_container( NT_('Menu'), array( | 41 | template_container( NT_('Menu'), array( |
2275 | @@ -92,60 +80,40 @@ | |||
2276 | 92 | ?> | 80 | ?> |
2277 | 93 | 81 | ||
2278 | 94 | <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> | 82 | <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> |
2294 | 95 | 83 | <h2><?php $Item->title(); ?></h2> | |
2295 | 96 | <h2><?php $Item->title(); ?></h2> | 84 | <?php |
2296 | 97 | 85 | // --- --- --- --- --- --- --- --- --- --- --- | |
2297 | 98 | <?php | 86 | // --- POST CONTENT INCLUDED HERE --- |
2298 | 99 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 87 | template_include( '_item_content.inc.php', array( |
2299 | 100 | template_include( '_item_content.inc.php', array( | 88 | 'image_size' => 'fit-400x320', |
2300 | 101 | 'image_size' => 'fit-400x320', | 89 | ) ); |
2301 | 102 | ) ); | 90 | |
2302 | 103 | // Note: You can customize the default item feedback by copying the generic | 91 | $Item->edit_link( array( // Link to backoffice for editing |
2288 | 104 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
2289 | 105 | // -------------------------- END OF POST CONTENT ------------------------- | ||
2290 | 106 | ?> | ||
2291 | 107 | |||
2292 | 108 | <?php | ||
2293 | 109 | $Item->edit_link( array( // Link to backoffice for editing | ||
2303 | 110 | 'before' => '<p>', | 92 | 'before' => '<p>', |
2304 | 111 | 'after' => '</p>', | 93 | 'after' => '</p>', |
2305 | 112 | ) ); | 94 | ) ); |
2308 | 113 | ?> | 95 | ?> |
2307 | 114 | |||
2309 | 115 | </div> | 96 | </div> |
2310 | 116 | 97 | ||
2311 | 117 | <?php | 98 | <?php |
2321 | 118 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 99 | // --- --- --- --- --- --- --- --- --- --- --- |
2322 | 119 | template_include( '_item_feedback.inc.php', array( | 100 | // --- ITEM FEEDBACK INCLUDED HERE --- |
2323 | 120 | 'before_section_title' => '<h3>', | 101 | template_include( '_item_feedback.inc.php', array( |
2324 | 121 | 'after_section_title' => '</h3>', | 102 | 'before_section_title' => '<h3>', |
2325 | 122 | ) ); | 103 | 'after_section_title' => '</h3>', |
2326 | 123 | // Note: You can customize the default item feedback by copying the generic | 104 | ) ); |
2318 | 124 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
2319 | 125 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
2320 | 126 | ?> | ||
2327 | 127 | 105 | ||
2328 | 128 | <?php | ||
2329 | 129 | locale_restore_previous(); // Restore previous locale (Blog locale) | 106 | locale_restore_previous(); // Restore previous locale (Blog locale) |
2330 | 130 | } | 107 | } |
2331 | 131 | ?> | 108 | ?> |
2332 | 132 | |||
2333 | 133 | </div> | 109 | </div> |
2334 | 134 | 110 | ||
2335 | 135 | |||
2336 | 136 | <?php | 111 | <?php |
2338 | 137 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 112 | // --- --- --- --- --- --- --- --- --- --- --- |
2339 | 113 | // --- BODY FOOTER INCLUDED HERE --- | ||
2340 | 138 | template_include( '_body_footer.inc.php' ); | 114 | template_include( '_body_footer.inc.php' ); |
2349 | 139 | // Note: You can customize the default BODY footer by copying the | 115 | |
2350 | 140 | // _body_footer.inc.php file into the current template folder. | 116 | // --- --- --- --- --- --- --- --- --- --- --- |
2351 | 141 | // ------------------------------- END OF FOOTER -------------------------------- | 117 | // --- HTML FOOTER INCLUDED HERE --- |
2344 | 142 | ?> | ||
2345 | 143 | |||
2346 | 144 | |||
2347 | 145 | <?php | ||
2348 | 146 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2352 | 147 | template_include( '_html_footer.inc.php' ); | 118 | template_include( '_html_footer.inc.php' ); |
2357 | 148 | // Note: You can customize the default HTML footer by copying the | 119 | ?> |
2354 | 149 | // _html_footer.inc.php file into the current template folder. | ||
2355 | 150 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2356 | 151 | ?> | ||
2358 | 152 | \ No newline at end of file | 120 | \ No newline at end of file |
2359 | 153 | 121 | ||
2360 | === modified file 'blogs/templates/evopress/posts.main.php' | |||
2361 | --- blogs/templates/evopress/posts.main.php 2010-01-02 08:34:34 +0000 | |||
2362 | +++ blogs/templates/evopress/posts.main.php 2010-01-03 09:20:31 +0000 | |||
2363 | @@ -12,36 +12,22 @@ | |||
2364 | 12 | */ | 12 | */ |
2365 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2366 | 14 | 14 | ||
2367 | 15 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
2368 | 16 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
2369 | 17 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2370 | 18 | } | ||
2371 | 19 | |||
2372 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2373 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2374 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2375 | 23 | 18 | ||
2378 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
2379 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
2380 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
2389 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
2390 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
2391 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
2384 | 30 | ?> | ||
2385 | 31 | |||
2386 | 32 | |||
2387 | 33 | <?php | ||
2388 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2392 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
2393 | 36 | // Note: You can customize the default BODY header by copying the generic | ||
2394 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2395 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2396 | 39 | ?> | 26 | ?> |
2397 | 40 | 27 | ||
2398 | 41 | |||
2399 | 42 | <div class="top_menu top_menu_narrow"> | 28 | <div class="top_menu top_menu_narrow"> |
2402 | 43 | <ul> | 29 | <ul> |
2403 | 44 | <?php | 30 | <?php |
2404 | 45 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- | 31 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- |
2405 | 46 | // Display container and contents: | 32 | // Display container and contents: |
2406 | 47 | template_container( NT_('Menu'), array( | 33 | template_container( NT_('Menu'), array( |
2407 | @@ -82,41 +68,36 @@ | |||
2408 | 82 | 'format' => 'htmlbody', | 68 | 'format' => 'htmlbody', |
2409 | 83 | ) ); | 69 | ) ); |
2410 | 84 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 70 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
2411 | 85 | ?> | ||
2412 | 86 | 71 | ||
2415 | 87 | <?php | 72 | // do we have a featured/intro item to display? |
2414 | 88 | // Go Grab the featured post: | ||
2416 | 89 | if( $Item = & get_featured_Item() ) | 73 | if( $Item = & get_featured_Item() ) |
2419 | 90 | { // We have a featured/intro post to display: | 74 | { |
2420 | 91 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 75 | // --- --- --- --- --- --- --- --- --- --- --- |
2421 | 76 | // --- ITEM BLOCK INCLUDED HERE --- | ||
2422 | 92 | template_include( '_item_block.inc.php', array( | 77 | template_include( '_item_block.inc.php', array( |
2430 | 93 | 'feature_block' => true, | 78 | 'feature_block' => true, |
2431 | 94 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 79 | 'content_mode' => 'auto', |
2432 | 95 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 80 | 'intro_mode' => 'normal', |
2433 | 96 | 'item_class' => 'featured_post', | 81 | 'item_class' => 'featured_post', |
2434 | 97 | 'image_size' => 'fit-400x320', | 82 | 'image_size' => 'fit-400x320', |
2435 | 98 | ) ); | 83 | ) ); |
2429 | 99 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
2436 | 100 | } | 84 | } |
2437 | 101 | ?> | ||
2438 | 102 | 85 | ||
2439 | 103 | <?php | ||
2440 | 104 | // Display message if no post: | 86 | // Display message if no post: |
2441 | 105 | display_if_empty(); | 87 | display_if_empty(); |
2442 | 106 | 88 | ||
2443 | 89 | // do this loop for each item we need to display (aka 'the posts loop') | ||
2444 | 107 | while( $Item = & mainlist_get_item() ) | 90 | while( $Item = & mainlist_get_item() ) |
2447 | 108 | { // For each blog post: | 91 | { |
2448 | 109 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 92 | // --- --- --- --- --- --- --- --- --- --- --- |
2449 | 93 | // --- ITEM BLOCK INCLUDED HERE --- | ||
2450 | 110 | template_include( '_item_block.inc.php', array( | 94 | template_include( '_item_block.inc.php', array( |
2455 | 111 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 95 | 'content_mode' => 'auto', |
2456 | 112 | 'image_size' => 'fit-400x320', | 96 | 'image_size' => 'fit-400x320', |
2457 | 113 | ) ); | 97 | ) ); |
2454 | 114 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
2458 | 115 | } | 98 | } |
2459 | 116 | ?> | ||
2460 | 117 | 99 | ||
2463 | 118 | <?php | 100 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
2462 | 119 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
2464 | 120 | mainlist_page_links( array( | 101 | mainlist_page_links( array( |
2465 | 121 | 'block_start' => '<div class="navigation">', | 102 | 'block_start' => '<div class="navigation">', |
2466 | 122 | 'block_end' => '</div>', | 103 | 'block_end' => '</div>', |
2467 | @@ -131,27 +112,15 @@ | |||
2468 | 131 | 112 | ||
2469 | 132 | 113 | ||
2470 | 133 | <?php | 114 | <?php |
2472 | 134 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 115 | // --- --- --- --- --- --- --- --- --- --- --- |
2473 | 116 | // --- SIDEBAR INCLUDED HERE --- | ||
2474 | 135 | template_include( '_sidebar.inc.php' ); | 117 | template_include( '_sidebar.inc.php' ); |
2483 | 136 | // Note: You can customize the default BODY footer by copying the | 118 | |
2484 | 137 | // _body_footer.inc.php file into the current template folder. | 119 | // --- --- --- --- --- --- --- --- --- --- --- |
2485 | 138 | // ----------------------------- END OF SIDEBAR ----------------------------- | 120 | // --- BODY FOOTER INCLUDED HERE --- |
2478 | 139 | ?> | ||
2479 | 140 | |||
2480 | 141 | |||
2481 | 142 | <?php | ||
2482 | 143 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | ||
2486 | 144 | template_include( '_body_footer.inc.php' ); | 121 | template_include( '_body_footer.inc.php' ); |
2495 | 145 | // Note: You can customize the default BODY footer by copying the | 122 | |
2496 | 146 | // _body_footer.inc.php file into the current template folder. | 123 | // --- --- --- --- --- --- --- --- --- --- --- |
2497 | 147 | // ------------------------------- END OF FOOTER -------------------------------- | 124 | // --- HTML FOOTER INCLUDED HERE --- |
2490 | 148 | ?> | ||
2491 | 149 | |||
2492 | 150 | |||
2493 | 151 | <?php | ||
2494 | 152 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2498 | 153 | template_include( '_html_footer.inc.php' ); | 125 | template_include( '_html_footer.inc.php' ); |
2503 | 154 | // Note: You can customize the default HTML footer by copying the | 126 | ?> |
2500 | 155 | // _html_footer.inc.php file into the current template folder. | ||
2501 | 156 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2502 | 157 | ?> | ||
2504 | 158 | \ No newline at end of file | 127 | \ No newline at end of file |
2505 | 159 | 128 | ||
2506 | === modified file 'blogs/templates/evopress/single.main.php' | |||
2507 | --- blogs/templates/evopress/single.main.php 2010-01-02 08:34:34 +0000 | |||
2508 | +++ blogs/templates/evopress/single.main.php 2010-01-03 09:20:31 +0000 | |||
2509 | @@ -12,16 +12,10 @@ | |||
2510 | 12 | */ | 12 | */ |
2511 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2512 | 14 | 14 | ||
2513 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
2514 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
2515 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2516 | 18 | } | ||
2517 | 19 | |||
2518 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2519 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2520 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2521 | 23 | 18 | ||
2522 | 24 | |||
2523 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 19 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- |
2524 | 26 | add_headline( <<<HEREDOC | 20 | add_headline( <<<HEREDOC |
2525 | 27 | <style type="text/css" media="screen"> | 21 | <style type="text/css" media="screen"> |
2526 | @@ -29,25 +23,19 @@ | |||
2527 | 29 | </style> | 23 | </style> |
2528 | 30 | HEREDOC | 24 | HEREDOC |
2529 | 31 | ); | 25 | ); |
2530 | 26 | |||
2531 | 27 | // --- --- --- --- --- --- --- --- --- --- --- | ||
2532 | 28 | // --- HTML HEADER INCLUDED HERE --- | ||
2533 | 32 | template_include( '_html_header.inc.php' ); | 29 | template_include( '_html_header.inc.php' ); |
2542 | 33 | // Note: You can customize the default HTML header by copying the generic | 30 | |
2543 | 34 | // /templates/_html_header.inc.php file into the current template folder. | 31 | // --- --- --- --- --- --- --- --- --- --- --- |
2544 | 35 | // -------------------------------- END OF HEADER -------------------------------- | 32 | // --- BODY HEADER INCLUDED HERE --- |
2537 | 36 | ?> | ||
2538 | 37 | |||
2539 | 38 | |||
2540 | 39 | <?php | ||
2541 | 40 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2545 | 41 | template_include( '_body_header.inc.php' ); | 33 | template_include( '_body_header.inc.php' ); |
2546 | 42 | // Note: You can customize the default BODY header by copying the generic | ||
2547 | 43 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2548 | 44 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2549 | 45 | ?> | 34 | ?> |
2550 | 46 | 35 | ||
2551 | 47 | |||
2552 | 48 | <div class="top_menu"> | 36 | <div class="top_menu"> |
2555 | 49 | <ul> | 37 | <ul> |
2556 | 50 | <?php | 38 | <?php |
2557 | 51 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- | 39 | // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- |
2558 | 52 | // Display container and contents: | 40 | // Display container and contents: |
2559 | 53 | template_container( NT_('Menu'), array( | 41 | template_container( NT_('Menu'), array( |
2560 | @@ -106,22 +94,17 @@ | |||
2561 | 106 | ?> | 94 | ?> |
2562 | 107 | 95 | ||
2563 | 108 | <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> | 96 | <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> |
2580 | 109 | 97 | <h2><?php $Item->title(); ?></h2> | |
2581 | 110 | <h2><?php $Item->title(); ?></h2> | 98 | <?php |
2582 | 111 | 99 | // --- --- --- --- --- --- --- --- --- --- --- | |
2583 | 112 | <?php | 100 | // --- POST CONTENT INCLUDED HERE --- |
2584 | 113 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 101 | template_include( '_item_content.inc.php', array( |
2585 | 114 | template_include( '_item_content.inc.php', array( | 102 | 'image_size' => 'fit-400x320', |
2586 | 115 | 'image_size' => 'fit-400x320', | 103 | ) ); |
2587 | 116 | ) ); | 104 | ?> |
2588 | 117 | // Note: You can customize the default item feedback by copying the generic | 105 | <p class="postmetadata alt"> |
2589 | 118 | // /templates/_item_feedback.inc.php file into the current template folder. | 106 | <small> |
2590 | 119 | // -------------------------- END OF POST CONTENT ------------------------- | 107 | <?php |
2575 | 120 | ?> | ||
2576 | 121 | |||
2577 | 122 | <p class="postmetadata alt"> | ||
2578 | 123 | <small> | ||
2579 | 124 | <?php | ||
2591 | 125 | $Item->author( array( | 108 | $Item->author( array( |
2592 | 126 | 'link_text' => 'avatar', | 109 | 'link_text' => 'avatar', |
2593 | 127 | 'link_rel' => 'nofollow', | 110 | 'link_rel' => 'nofollow', |
2594 | @@ -171,45 +154,30 @@ | |||
2595 | 171 | 'before' => '', | 154 | 'before' => '', |
2596 | 172 | 'after' => '', | 155 | 'after' => '', |
2597 | 173 | ) ); | 156 | ) ); |
2602 | 174 | ?> | 157 | ?> |
2603 | 175 | </small> | 158 | </small> |
2604 | 176 | </p> | 159 | </p> |
2601 | 177 | |||
2605 | 178 | </div> | 160 | </div> |
2606 | 179 | 161 | ||
2620 | 180 | 162 | <?php | |
2621 | 181 | <?php | 163 | // --- --- --- --- --- --- --- --- --- --- --- |
2622 | 182 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 164 | // --- ITEM FEEDBACK INCLUDED HERE --- |
2623 | 183 | template_include( '_item_feedback.inc.php', array( | 165 | template_include( '_item_feedback.inc.php', array( |
2624 | 184 | 'before_section_title' => '<h3>', | 166 | 'before_section_title' => '<h3>', |
2625 | 185 | 'after_section_title' => '</h3>', | 167 | 'after_section_title' => '</h3>', |
2626 | 186 | ) ); | 168 | ) ); |
2627 | 187 | // Note: You can customize the default item feedback by copying the generic | 169 | |
2615 | 188 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
2616 | 189 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
2617 | 190 | ?> | ||
2618 | 191 | |||
2619 | 192 | <?php | ||
2628 | 193 | locale_restore_previous(); // Restore previous locale (Blog locale) | 170 | locale_restore_previous(); // Restore previous locale (Blog locale) |
2629 | 194 | } | 171 | } |
2630 | 195 | ?> | 172 | ?> |
2631 | 196 | |||
2632 | 197 | </div> | 173 | </div> |
2633 | 198 | 174 | ||
2634 | 199 | |||
2635 | 200 | <?php | 175 | <?php |
2637 | 201 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 176 | // --- --- --- --- --- --- --- --- --- --- --- |
2638 | 177 | // --- BODY FOOTER INCLUDED HERE --- | ||
2639 | 202 | template_include( '_body_footer.inc.php' ); | 178 | template_include( '_body_footer.inc.php' ); |
2648 | 203 | // Note: You can customize the default BODY footer by copying the | 179 | |
2649 | 204 | // _body_footer.inc.php file into the current template folder. | 180 | // --- --- --- --- --- --- --- --- --- --- --- |
2650 | 205 | // ------------------------------- END OF FOOTER -------------------------------- | 181 | // --- HTML FOOTER INCLUDED HERE --- |
2643 | 206 | ?> | ||
2644 | 207 | |||
2645 | 208 | |||
2646 | 209 | <?php | ||
2647 | 210 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2651 | 211 | template_include( '_html_footer.inc.php' ); | 182 | template_include( '_html_footer.inc.php' ); |
2656 | 212 | // Note: You can customize the default HTML footer by copying the | 183 | ?> |
2653 | 213 | // _html_footer.inc.php file into the current template folder. | ||
2654 | 214 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2655 | 215 | ?> | ||
2657 | 216 | \ No newline at end of file | 184 | \ No newline at end of file |
2658 | 217 | 185 | ||
2659 | === modified file 'blogs/templates/glossyblue/_item_block.inc.php' | |||
2660 | --- blogs/templates/glossyblue/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
2661 | +++ blogs/templates/glossyblue/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
2662 | @@ -75,18 +75,18 @@ | |||
2663 | 75 | 'link_text_more' => '#', | 75 | 'link_text_more' => '#', |
2664 | 76 | 'link_title' => '#', | 76 | 'link_title' => '#', |
2665 | 77 | 'use_popup' => false, | 77 | 'use_popup' => false, |
2678 | 78 | ) ); ?></span> | 78 | ) ); |
2679 | 79 | </div> | 79 | ?></span> |
2680 | 80 | <?php | 80 | </div> |
2681 | 81 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 81 | |
2682 | 82 | template_include( '_item_content.inc.php', $params ); | 82 | <?php |
2683 | 83 | // Note: You can customize the default item feedback by copying the generic | 83 | // --- --- --- --- --- --- --- --- --- --- --- |
2684 | 84 | // /templates/_item_content.inc.php file into the current template folder. | 84 | // --- POST CONTENT INCLUDED HERE --- |
2685 | 85 | // -------------------------- END OF POST CONTENT ------------------------- | 85 | template_include( '_item_content.inc.php', $params ); |
2686 | 86 | ?> | 86 | ?> |
2687 | 87 | 87 | ||
2688 | 88 | <p class="postmetadata alt small"> | 88 | <p class="postmetadata alt small"> |
2689 | 89 | <?php | 89 | <?php |
2690 | 90 | // List all tags attached to this post: | 90 | // List all tags attached to this post: |
2691 | 91 | $Item->tags( array( | 91 | $Item->tags( array( |
2692 | 92 | 'before' => T_('Tags').': ', | 92 | 'before' => T_('Tags').': ', |
2693 | 93 | 93 | ||
2694 | === modified file 'blogs/templates/glossyblue/index.main.php' | |||
2695 | --- blogs/templates/glossyblue/index.main.php 2010-01-02 08:34:34 +0000 | |||
2696 | +++ blogs/templates/glossyblue/index.main.php 2010-01-03 09:20:31 +0000 | |||
2697 | @@ -12,34 +12,20 @@ | |||
2698 | 12 | */ | 12 | */ |
2699 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2700 | 14 | 14 | ||
2701 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
2702 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
2703 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2704 | 18 | } | ||
2705 | 19 | |||
2706 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2707 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2708 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2709 | 23 | 18 | ||
2712 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
2713 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
2714 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
2723 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
2724 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
2725 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
2718 | 30 | ?> | ||
2719 | 31 | |||
2720 | 32 | |||
2721 | 33 | <?php | ||
2722 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2726 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
2727 | 36 | // Note: You can customize the default BODY heder by copying the generic | ||
2728 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2729 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2730 | 39 | ?> | 26 | ?> |
2731 | 40 | 27 | ||
2734 | 41 | 28 | <div id="content"> | |
2733 | 42 | <div id="content" > | ||
2735 | 43 | 29 | ||
2736 | 44 | <?php | 30 | <?php |
2737 | 45 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- | 31 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- |
2738 | @@ -61,42 +47,25 @@ | |||
2739 | 61 | 'format' => 'htmlbody', | 47 | 'format' => 'htmlbody', |
2740 | 62 | ) ); | 48 | ) ); |
2741 | 63 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 49 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
2753 | 64 | ?> | 50 | |
2754 | 65 | 51 | // --- --- --- --- --- --- --- --- --- --- --- | |
2755 | 66 | <?php | 52 | // MAIN CONTENT based on $disp INCLUDED HERE |
2756 | 67 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 53 | template_include( '$disp$', array( |
2757 | 68 | template_include( '$disp$', array( | 54 | // @todo EdB: see if this makes it to the todo page AND document custom disp pages for this comment |
2758 | 69 | ) ); | 55 | ) ); |
2759 | 70 | // Note: you can customize any of the sub templates included here by | 56 | ?> |
2749 | 71 | // copying the matching php file into your template directory. | ||
2750 | 72 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
2751 | 73 | ?> | ||
2752 | 74 | |||
2760 | 75 | </div> | 57 | </div> |
2761 | 76 | 58 | ||
2762 | 77 | |||
2763 | 78 | <?php | 59 | <?php |
2765 | 79 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 60 | // --- --- --- --- --- --- --- --- --- --- --- |
2766 | 61 | // --- SIDEBAR INCLUDED HERE --- | ||
2767 | 80 | template_include( '_sidebar.inc.php' ); | 62 | template_include( '_sidebar.inc.php' ); |
2776 | 81 | // Note: You can customize the default BODY footer by copying the | 63 | |
2777 | 82 | // _body_footer.inc.php file into the current template folder. | 64 | // --- --- --- --- --- --- --- --- --- --- --- |
2778 | 83 | // ----------------------------- END OF SIDEBAR ----------------------------- | 65 | // --- BODY FOOTER INCLUDED HERE --- |
2771 | 84 | ?> | ||
2772 | 85 | |||
2773 | 86 | |||
2774 | 87 | <?php | ||
2775 | 88 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | ||
2779 | 89 | template_include( '_body_footer.inc.php' ); | 66 | template_include( '_body_footer.inc.php' ); |
2788 | 90 | // Note: You can customize the default BODY footer by copying the | 67 | |
2789 | 91 | // _body_footer.inc.php file into the current template folder. | 68 | // --- --- --- --- --- --- --- --- --- --- --- |
2790 | 92 | // ------------------------------- END OF FOOTER -------------------------------- | 69 | // --- HTML FOOTER INCLUDED HERE --- |
2783 | 93 | ?> | ||
2784 | 94 | |||
2785 | 95 | |||
2786 | 96 | <?php | ||
2787 | 97 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2791 | 98 | template_include( '_html_footer.inc.php' ); | 70 | template_include( '_html_footer.inc.php' ); |
2796 | 99 | // Note: You can customize the default HTML footer by copying the | 71 | ?> |
2793 | 100 | // _html_footer.inc.php file into the current template folder. | ||
2794 | 101 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2795 | 102 | ?> | ||
2797 | 103 | \ No newline at end of file | 72 | \ No newline at end of file |
2798 | 104 | 73 | ||
2799 | === modified file 'blogs/templates/glossyblue/page.main.php' | |||
2800 | --- blogs/templates/glossyblue/page.main.php 2010-01-02 08:34:34 +0000 | |||
2801 | +++ blogs/templates/glossyblue/page.main.php 2010-01-03 09:20:31 +0000 | |||
2802 | @@ -12,35 +12,20 @@ | |||
2803 | 12 | */ | 12 | */ |
2804 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2805 | 14 | 14 | ||
2806 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
2807 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
2808 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2809 | 18 | } | ||
2810 | 19 | |||
2811 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2812 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2813 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2814 | 23 | 18 | ||
2816 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
2817 | 20 | // --- HTML HEADER INCLUDED HERE --- | ||
2818 | 25 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
2827 | 26 | // Note: You can customize the default HTML header by copying the generic | 22 | |
2828 | 27 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
2829 | 28 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
2822 | 29 | ?> | ||
2823 | 30 | |||
2824 | 31 | |||
2825 | 32 | <?php | ||
2826 | 33 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2830 | 34 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
2831 | 35 | // Note: You can customize the default BODY heder by copying the generic | ||
2832 | 36 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2833 | 37 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2834 | 38 | ?> | 26 | ?> |
2835 | 39 | 27 | ||
2840 | 40 | 28 | <div id="content"> | |
2837 | 41 | <div id="content" > | ||
2838 | 42 | |||
2839 | 43 | |||
2841 | 44 | <?php | 29 | <?php |
2842 | 45 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- | 30 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- |
2843 | 46 | messages( array( | 31 | messages( array( |
2844 | @@ -65,21 +50,15 @@ | |||
2845 | 65 | ?> | 50 | ?> |
2846 | 66 | 51 | ||
2847 | 67 | <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> | 52 | <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> |
2863 | 68 | 53 | <h2><?php $Item->title(); ?></h2> | |
2864 | 69 | <h2><?php $Item->title(); ?></h2> | 54 | <?php |
2865 | 70 | 55 | // --- --- --- --- --- --- --- --- --- --- --- | |
2866 | 71 | <?php | 56 | // --- POST CONTENT INCLUDED HERE --- |
2867 | 72 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 57 | template_include( '_item_content.inc.php', array( |
2868 | 73 | template_include( '_item_content.inc.php', array( | 58 | 'image_size' => 'fit-400x320', |
2869 | 74 | 'image_size' => 'fit-400x320', | 59 | ) ); |
2870 | 75 | ) ); | 60 | |
2871 | 76 | // Note: You can customize the default item feedback by copying the generic | 61 | $Item->edit_link( array( // Link to backoffice for editing |
2857 | 77 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
2858 | 78 | // -------------------------- END OF POST CONTENT ------------------------- | ||
2859 | 79 | ?> | ||
2860 | 80 | |||
2861 | 81 | <?php | ||
2862 | 82 | $Item->edit_link( array( // Link to backoffice for editing | ||
2872 | 83 | 'before' => '<p>', | 62 | 'before' => '<p>', |
2873 | 84 | 'after' => '</p>', | 63 | 'after' => '</p>', |
2874 | 85 | ) ); | 64 | ) ); |
2875 | @@ -96,26 +75,15 @@ | |||
2876 | 96 | 75 | ||
2877 | 97 | </div> | 76 | </div> |
2878 | 98 | <?php | 77 | <?php |
2880 | 99 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 78 | // --- --- --- --- --- --- --- --- --- --- --- |
2881 | 79 | // --- SIDEBAR INCLUDED HERE --- | ||
2882 | 100 | template_include( '_sidebar.inc.php' ); | 80 | template_include( '_sidebar.inc.php' ); |
2883 | 101 | // Note: You can customize the default BODY footer by copying the | ||
2884 | 102 | // _body_footer.inc.php file into the current template folder. | ||
2885 | 103 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
2886 | 104 | ?> | ||
2887 | 105 | 81 | ||
2890 | 106 | <?php | 82 | // --- --- --- --- --- --- --- --- --- --- --- |
2891 | 107 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 83 | // --- BODY FOOTER INCLUDED HERE --- |
2892 | 108 | template_include( '_body_footer.inc.php' ); | 84 | template_include( '_body_footer.inc.php' ); |
2901 | 109 | // Note: You can customize the default BODY footer by copying the | 85 | |
2902 | 110 | // _body_footer.inc.php file into the current template folder. | 86 | // --- --- --- --- --- --- --- --- --- --- --- |
2903 | 111 | // ------------------------------- END OF FOOTER -------------------------------- | 87 | // --- HTML FOOTER INCLUDED HERE --- |
2896 | 112 | ?> | ||
2897 | 113 | |||
2898 | 114 | |||
2899 | 115 | <?php | ||
2900 | 116 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
2904 | 117 | template_include( '_html_footer.inc.php' ); | 88 | template_include( '_html_footer.inc.php' ); |
2909 | 118 | // Note: You can customize the default HTML footer by copying the | 89 | ?> |
2906 | 119 | // _html_footer.inc.php file into the current template folder. | ||
2907 | 120 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2908 | 121 | ?> | ||
2910 | 122 | \ No newline at end of file | 90 | \ No newline at end of file |
2911 | 123 | 91 | ||
2912 | === modified file 'blogs/templates/glossyblue/posts.main.php' | |||
2913 | --- blogs/templates/glossyblue/posts.main.php 2010-01-02 08:34:34 +0000 | |||
2914 | +++ blogs/templates/glossyblue/posts.main.php 2010-01-03 09:20:31 +0000 | |||
2915 | @@ -12,35 +12,20 @@ | |||
2916 | 12 | */ | 12 | */ |
2917 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
2918 | 14 | 14 | ||
2919 | 15 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
2920 | 16 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
2921 | 17 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
2922 | 18 | } | ||
2923 | 19 | |||
2924 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
2925 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
2926 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
2927 | 23 | 18 | ||
2930 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
2931 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
2932 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
2941 | 27 | // Note: You can customize the default HTML header by copying the generic | 22 | |
2942 | 28 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
2943 | 29 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
2936 | 30 | ?> | ||
2937 | 31 | |||
2938 | 32 | |||
2939 | 33 | <?php | ||
2940 | 34 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
2944 | 35 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
2945 | 36 | // Note: You can customize the default BODY heder by copying the generic | ||
2946 | 37 | // /templates/_body_footer.inc.php file into the current template folder. | ||
2947 | 38 | // ------------------------------- END OF FOOTER -------------------------------- | ||
2948 | 39 | ?> | 26 | ?> |
2949 | 40 | 27 | ||
2953 | 41 | 28 | <div id="content"> | |
2951 | 42 | <div id="content" > | ||
2952 | 43 | |||
2954 | 44 | <?php | 29 | <?php |
2955 | 45 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- | 30 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- |
2956 | 46 | messages( array( | 31 | messages( array( |
2957 | @@ -61,41 +46,36 @@ | |||
2958 | 61 | 'format' => 'htmlbody', | 46 | 'format' => 'htmlbody', |
2959 | 62 | ) ); | 47 | ) ); |
2960 | 63 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 48 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
2961 | 64 | ?> | ||
2962 | 65 | 49 | ||
2965 | 66 | <?php | 50 | // do we have a featured/intro item to display? |
2964 | 67 | // Go Grab the featured post: | ||
2966 | 68 | if( $Item = & get_featured_Item() ) | 51 | if( $Item = & get_featured_Item() ) |
2969 | 69 | { // We have a featured/intro post to display: | 52 | { |
2970 | 70 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 53 | // --- --- --- --- --- --- --- --- --- --- --- |
2971 | 54 | // --- ITEM BLOCK INCLUDED HERE --- | ||
2972 | 71 | template_include( '_item_block.inc.php', array( | 55 | template_include( '_item_block.inc.php', array( |
2980 | 72 | 'feature_block' => true, | 56 | 'feature_block' => true, |
2981 | 73 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 57 | 'content_mode' => 'auto', |
2982 | 74 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 58 | 'intro_mode' => 'normal', |
2983 | 75 | 'item_class' => 'featured_post', | 59 | 'item_class' => 'featured_post', |
2984 | 76 | 'image_size' => 'fit-400x320', | 60 | 'image_size' => 'fit-400x320', |
2985 | 77 | ) ); | 61 | ) ); |
2979 | 78 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
2986 | 79 | } | 62 | } |
2987 | 80 | ?> | ||
2988 | 81 | 63 | ||
2989 | 82 | <?php | ||
2990 | 83 | // Display message if no post: | 64 | // Display message if no post: |
2991 | 84 | display_if_empty(); | 65 | display_if_empty(); |
2992 | 85 | 66 | ||
2993 | 67 | // do this loop for each item we need to display (aka 'the posts loop') | ||
2994 | 86 | while( $Item = & mainlist_get_item() ) | 68 | while( $Item = & mainlist_get_item() ) |
2997 | 87 | { // For each blog post: | 69 | { |
2998 | 88 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 70 | // --- --- --- --- --- --- --- --- --- --- --- |
2999 | 71 | // --- ITEM BLOCK INCLUDED HERE --- | ||
3000 | 89 | template_include( '_item_block.inc.php', array( | 72 | template_include( '_item_block.inc.php', array( |
3005 | 90 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 73 | 'content_mode' => 'auto', |
3006 | 91 | 'image_size' => 'fit-400x320', | 74 | 'image_size' => 'fit-400x320', |
3007 | 92 | ) ); | 75 | ) ); |
3004 | 93 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
3008 | 94 | } | 76 | } |
3009 | 95 | ?> | ||
3010 | 96 | 77 | ||
3013 | 97 | <?php | 78 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
3012 | 98 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
3014 | 99 | mainlist_page_links( array( | 79 | mainlist_page_links( array( |
3015 | 100 | 'block_start' => '<div class="navigation">', | 80 | 'block_start' => '<div class="navigation">', |
3016 | 101 | 'block_end' => '</div>', | 81 | 'block_end' => '</div>', |
3017 | @@ -110,27 +90,15 @@ | |||
3018 | 110 | 90 | ||
3019 | 111 | 91 | ||
3020 | 112 | <?php | 92 | <?php |
3022 | 113 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 93 | // --- --- --- --- --- --- --- --- --- --- --- |
3023 | 94 | // --- SIDEBAR INCLUDED HERE --- | ||
3024 | 114 | template_include( '_sidebar.inc.php' ); | 95 | template_include( '_sidebar.inc.php' ); |
3033 | 115 | // Note: You can customize the default BODY footer by copying the | 96 | |
3034 | 116 | // _body_footer.inc.php file into the current template folder. | 97 | // --- --- --- --- --- --- --- --- --- --- --- |
3035 | 117 | // ----------------------------- END OF SIDEBAR ----------------------------- | 98 | // --- BODY FOOTER INCLUDED HERE --- |
3028 | 118 | ?> | ||
3029 | 119 | |||
3030 | 120 | |||
3031 | 121 | <?php | ||
3032 | 122 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | ||
3036 | 123 | template_include( '_body_footer.inc.php' ); | 99 | template_include( '_body_footer.inc.php' ); |
3045 | 124 | // Note: You can customize the default BODY footer by copying the | 100 | |
3046 | 125 | // _body_footer.inc.php file into the current template folder. | 101 | // --- --- --- --- --- --- --- --- --- --- --- |
3047 | 126 | // ------------------------------- END OF FOOTER -------------------------------- | 102 | // --- HTML FOOTER INCLUDED HERE --- |
3040 | 127 | ?> | ||
3041 | 128 | |||
3042 | 129 | |||
3043 | 130 | <?php | ||
3044 | 131 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
3048 | 132 | template_include( '_html_footer.inc.php' ); | 103 | template_include( '_html_footer.inc.php' ); |
3053 | 133 | // Note: You can customize the default HTML footer by copying the | 104 | ?> |
3050 | 134 | // _html_footer.inc.php file into the current template folder. | ||
3051 | 135 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3052 | 136 | ?> | ||
3054 | 137 | \ No newline at end of file | 105 | \ No newline at end of file |
3055 | 138 | 106 | ||
3056 | === modified file 'blogs/templates/glossyblue/single.main.php' | |||
3057 | --- blogs/templates/glossyblue/single.main.php 2010-01-02 08:34:34 +0000 | |||
3058 | +++ blogs/templates/glossyblue/single.main.php 2010-01-03 09:20:31 +0000 | |||
3059 | @@ -12,35 +12,20 @@ | |||
3060 | 12 | */ | 12 | */ |
3061 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
3062 | 14 | 14 | ||
3063 | 15 | if( version_compare( $app_version, '2.4.1' ) < 0 ) | ||
3064 | 16 | { // Older 2.x templates work on newer 2.x b2evo versions, but newer 2.x templates may not work on older 2.x b2evo versions. | ||
3065 | 17 | die( 'This template is designed for b2evolution 2.4.1 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
3066 | 18 | } | ||
3067 | 19 | |||
3068 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
3069 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
3070 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
3071 | 23 | 18 | ||
3073 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
3074 | 20 | // --- HTML HEADER INCLUDED HERE --- | ||
3075 | 25 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
3084 | 26 | // Note: You can customize the default HTML header by copying the generic | 22 | |
3085 | 27 | // /templates/_html_header.inc.php file into the current template folder. | 23 | // --- --- --- --- --- --- --- --- --- --- --- |
3086 | 28 | // -------------------------------- END OF HEADER -------------------------------- | 24 | // --- BODY HEADER INCLUDED HERE --- |
3079 | 29 | ?> | ||
3080 | 30 | |||
3081 | 31 | |||
3082 | 32 | <?php | ||
3083 | 33 | // ------------------------- BODY HEADER INCLUDED HERE -------------------------- | ||
3087 | 34 | template_include( '_body_header.inc.php' ); | 25 | template_include( '_body_header.inc.php' ); |
3088 | 35 | // Note: You can customize the default BODY heder by copying the generic | ||
3089 | 36 | // /templates/_body_footer.inc.php file into the current template folder. | ||
3090 | 37 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3091 | 38 | ?> | 26 | ?> |
3092 | 39 | 27 | ||
3097 | 40 | 28 | <div id="content"> | |
3094 | 41 | <div id="content" > | ||
3095 | 42 | |||
3096 | 43 | |||
3098 | 44 | <?php | 29 | <?php |
3099 | 45 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- | 30 | // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- |
3100 | 46 | messages( array( | 31 | messages( array( |
3101 | @@ -114,76 +99,54 @@ | |||
3102 | 114 | ) ); ?></span> | 99 | ) ); ?></span> |
3103 | 115 | </div> | 100 | </div> |
3104 | 116 | 101 | ||
3117 | 117 | <?php | 102 | <?php |
3118 | 118 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 103 | // --- --- --- --- --- --- --- --- --- --- --- |
3119 | 119 | template_include( '_item_content.inc.php', array( | 104 | // --- POST CONTENT INCLUDED HERE --- |
3120 | 120 | 'image_size' => 'fit-400x320', | 105 | template_include( '_item_content.inc.php', array( |
3121 | 121 | ) ); | 106 | 'image_size' => 'fit-400x320', |
3122 | 122 | // Note: You can customize the default item feedback by copying the generic | 107 | ) ); |
3123 | 123 | // /templates/_item_feedback.inc.php file into the current template folder. | 108 | ?> |
3124 | 124 | // -------------------------- END OF POST CONTENT ------------------------- | 109 | <p class="postmetadata alt small"> |
3125 | 125 | ?> | 110 | <?php |
3114 | 126 | |||
3115 | 127 | <p class="postmetadata alt small"> | ||
3116 | 128 | <?php | ||
3126 | 129 | // List all tags attached to this post: | 111 | // List all tags attached to this post: |
3127 | 130 | $Item->tags( array( | 112 | $Item->tags( array( |
3128 | 131 | 'before' => ' '.T_('Tags').': ', | 113 | 'before' => ' '.T_('Tags').': ', |
3129 | 132 | 'after' => ' ', | 114 | 'after' => ' ', |
3130 | 133 | 'separator' => ', ', | 115 | 'separator' => ', ', |
3131 | 134 | ) ); | 116 | ) ); |
3135 | 135 | ?> | 117 | |
3133 | 136 | <!-- You can follow any responses to this entry through the RSS feed. --> | ||
3134 | 137 | <?php | ||
3136 | 138 | $Item->edit_link( array( // Link to backoffice for editing | 118 | $Item->edit_link( array( // Link to backoffice for editing |
3137 | 139 | 'before' => '', | 119 | 'before' => '', |
3138 | 140 | 'after' => '', | 120 | 'after' => '', |
3139 | 141 | 121 | ||
3140 | 142 | ) ); | 122 | ) ); |
3144 | 143 | ?> | 123 | ?> |
3145 | 144 | </p> | 124 | </p> |
3143 | 145 | |||
3146 | 146 | </div> | 125 | </div> |
3147 | 147 | 126 | ||
3161 | 148 | 127 | <?php | |
3162 | 149 | <?php | 128 | // --- --- --- --- --- --- --- --- --- --- --- |
3163 | 150 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 129 | // --- ITEM FEEDBACK INCLUDED HERE --- |
3164 | 151 | template_include( '_item_feedback.inc.php', array( | 130 | template_include( '_item_feedback.inc.php', array( |
3165 | 152 | 'before_section_title' => '<h3>', | 131 | 'before_section_title' => '<h3>', |
3166 | 153 | 'after_section_title' => '</h3>', | 132 | 'after_section_title' => '</h3>', |
3167 | 154 | ) ); | 133 | ) ); |
3168 | 155 | // Note: You can customize the default item feedback by copying the generic | 134 | |
3156 | 156 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
3157 | 157 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
3158 | 158 | ?> | ||
3159 | 159 | |||
3160 | 160 | <?php | ||
3169 | 161 | locale_restore_previous(); // Restore previous locale (Blog locale) | 135 | locale_restore_previous(); // Restore previous locale (Blog locale) |
3170 | 162 | } | 136 | } |
3171 | 163 | ?> | 137 | ?> |
3172 | 164 | 138 | ||
3173 | 165 | </div> | 139 | </div> |
3174 | 166 | <?php | 140 | <?php |
3176 | 167 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 141 | // --- --- --- --- --- --- --- --- --- --- --- |
3177 | 142 | // --- SIDEBAR INCLUDED HERE --- | ||
3178 | 168 | template_include( '_sidebar.inc.php' ); | 143 | template_include( '_sidebar.inc.php' ); |
3179 | 169 | // Note: You can customize the default BODY footer by copying the | ||
3180 | 170 | // _body_footer.inc.php file into the current template folder. | ||
3181 | 171 | // ----------------------------- END OF SIDEBAR ----------------------------- | ||
3182 | 172 | ?> | ||
3183 | 173 | 144 | ||
3186 | 174 | <?php | 145 | // --- --- --- --- --- --- --- --- --- --- --- |
3187 | 175 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 146 | // --- BODY FOOTER INCLUDED HERE --- |
3188 | 176 | template_include( '_body_footer.inc.php' ); | 147 | template_include( '_body_footer.inc.php' ); |
3197 | 177 | // Note: You can customize the default BODY footer by copying the | 148 | |
3198 | 178 | // _body_footer.inc.php file into the current template folder. | 149 | // --- --- --- --- --- --- --- --- --- --- --- |
3199 | 179 | // ------------------------------- END OF FOOTER -------------------------------- | 150 | // --- HTML FOOTER INCLUDED HERE --- |
3192 | 180 | ?> | ||
3193 | 181 | |||
3194 | 182 | |||
3195 | 183 | <?php | ||
3196 | 184 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
3200 | 185 | template_include( '_html_footer.inc.php' ); | 151 | template_include( '_html_footer.inc.php' ); |
3205 | 186 | // Note: You can customize the default HTML footer by copying the | 152 | ?> |
3202 | 187 | // _html_footer.inc.php file into the current template folder. | ||
3203 | 188 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3204 | 189 | ?> | ||
3206 | 190 | \ No newline at end of file | 153 | \ No newline at end of file |
3207 | 191 | 154 | ||
3208 | === modified file 'blogs/templates/miami_blue/_item_block.inc.php' | |||
3209 | --- blogs/templates/miami_blue/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
3210 | +++ blogs/templates/miami_blue/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
3211 | @@ -62,19 +62,15 @@ | |||
3212 | 62 | 'before_main' => '<strong>', | 62 | 'before_main' => '<strong>', |
3213 | 63 | 'after_main' => '</strong>', | 63 | 'after_main' => '</strong>', |
3214 | 64 | ) ); | 64 | ) ); |
3228 | 65 | ?> | 65 | ?> |
3229 | 66 | </div> | 66 | </div> |
3230 | 67 | 67 | ||
3231 | 68 | <?php | 68 | <?php |
3232 | 69 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 69 | // --- --- --- --- --- --- --- --- --- --- --- |
3233 | 70 | template_include( '_item_content.inc.php', $params ); | 70 | // --- POST CONTENT INCLUDED HERE --- |
3234 | 71 | // Note: You can customize the default item feedback by copying the generic | 71 | template_include( '_item_content.inc.php', $params ); |
3235 | 72 | // /templates/_item_content.inc.php file into the current template folder. | 72 | |
3236 | 73 | // -------------------------- END OF POST CONTENT ------------------------- | 73 | // List all tags attached to this post: |
3224 | 74 | ?> | ||
3225 | 75 | |||
3226 | 76 | <?php | ||
3227 | 77 | // List all tags attached to this post: | ||
3237 | 78 | $Item->tags( array( | 74 | $Item->tags( array( |
3238 | 79 | 'before' => '<div class="">'.T_('Tags').': ', | 75 | 'before' => '<div class="">'.T_('Tags').': ', |
3239 | 80 | 'after' => '</div>', | 76 | 'after' => '</div>', |
3240 | @@ -104,25 +100,19 @@ | |||
3241 | 104 | $Item->permanent_link( array( | 100 | $Item->permanent_link( array( |
3242 | 105 | 'text' => '<img src="img/page.gif" alt="Permalink" width="9" height="12" class="middle" />', | 101 | 'text' => '<img src="img/page.gif" alt="Permalink" width="9" height="12" class="middle" />', |
3243 | 106 | ) ); | 102 | ) ); |
3261 | 107 | ?> | 103 | ?> |
3245 | 108 | </div> | ||
3246 | 109 | <img src="../../rsc/img/blank.gif" width="1" height="1" alt="" /> | ||
3247 | 110 | <?php | ||
3248 | 111 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
3249 | 112 | template_include( '_item_feedback.inc.php', array( | ||
3250 | 113 | 'before_section_title' => '<h4>', | ||
3251 | 114 | 'after_section_title' => '</h4>', | ||
3252 | 115 | ) ); | ||
3253 | 116 | // Note: You can customize the default item feedback by copying the generic | ||
3254 | 117 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
3255 | 118 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
3256 | 119 | ?> | ||
3257 | 120 | |||
3258 | 121 | <?php | ||
3259 | 122 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
3260 | 123 | ?> | ||
3262 | 124 | </div> | 104 | </div> |
3263 | 125 | 105 | ||
3264 | 106 | <img src="../../rsc/img/blank.gif" width="1" height="1" alt="" /> | ||
3265 | 126 | <?php | 107 | <?php |
3266 | 108 | // --- --- --- --- --- --- --- --- --- --- --- | ||
3267 | 109 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
3268 | 110 | template_include( '_item_feedback.inc.php', array( | ||
3269 | 111 | 'before_section_title' => '<h4>', | ||
3270 | 112 | 'after_section_title' => '</h4>', | ||
3271 | 113 | ) ); | ||
3272 | 127 | 114 | ||
3273 | 115 | // restore previous (Blog) locale | ||
3274 | 116 | locale_restore_previous(); | ||
3275 | 128 | ?> | 117 | ?> |
3276 | 118 | </div> | ||
3277 | 129 | 119 | ||
3278 | === modified file 'blogs/templates/miami_blue/index.main.php' | |||
3279 | --- blogs/templates/miami_blue/index.main.php 2010-01-02 08:34:34 +0000 | |||
3280 | +++ blogs/templates/miami_blue/index.main.php 2010-01-03 09:20:31 +0000 | |||
3281 | @@ -11,21 +11,13 @@ | |||
3282 | 11 | */ | 11 | */ |
3283 | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
3284 | 13 | 13 | ||
3285 | 14 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
3286 | 15 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
3287 | 16 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
3288 | 17 | } | ||
3289 | 18 | |||
3290 | 19 | // This is the main template; it may be used to display very different things. | 14 | // This is the main template; it may be used to display very different things. |
3291 | 20 | // Do inits depending on current $disp: | 15 | // Do inits depending on current $disp: |
3292 | 21 | template_init( $disp ); | 16 | template_init( $disp ); |
3293 | 22 | 17 | ||
3296 | 23 | 18 | // --- --- --- --- --- --- --- --- --- --- --- | |
3297 | 24 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 19 | // --- HTML HEADER INCLUDED HERE --- |
3298 | 25 | template_include( '_html_header.inc.php' ); | 20 | template_include( '_html_header.inc.php' ); |
3299 | 26 | // Note: You can customize the default HTML header by copying the | ||
3300 | 27 | // _html_header.inc.php file into the current template folder. | ||
3301 | 28 | // -------------------------------- END OF HEADER -------------------------------- | ||
3302 | 29 | ?> | 21 | ?> |
3303 | 30 | 22 | ||
3304 | 31 | <div id="wrapper"> | 23 | <div id="wrapper"> |
3305 | @@ -124,71 +116,56 @@ | |||
3306 | 124 | 'format' => 'htmlbody', | 116 | 'format' => 'htmlbody', |
3307 | 125 | ) ); | 117 | ) ); |
3308 | 126 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 118 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
3329 | 127 | ?> | 119 | |
3330 | 128 | 120 | // do we have a featured/intro item to display? | |
3331 | 129 | <?php | 121 | if( $Item = & get_featured_Item() ) |
3332 | 130 | // Go Grab the featured post: | 122 | { |
3333 | 131 | if( $Item = & get_featured_Item() ) | 123 | // --- --- --- --- --- --- --- --- --- --- --- |
3334 | 132 | { // We have a featured/intro post to display: | 124 | // --- ITEM BLOCK INCLUDED HERE --- |
3335 | 133 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 125 | template_include( '_item_block.inc.php', array( |
3336 | 134 | template_include( '_item_block.inc.php', array( | 126 | 'feature_block' => true, |
3337 | 135 | 'feature_block' => true, | 127 | 'content_mode' => 'auto', |
3338 | 136 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 128 | 'intro_mode' => 'normal', |
3339 | 137 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 129 | 'item_class' => 'featured_post', |
3340 | 138 | 'item_class' => 'featured_post', | 130 | 'image_size' => 'fit-400x320', |
3341 | 139 | 'image_size' => 'fit-400x320', | 131 | ) ); |
3342 | 140 | ) ); | 132 | } |
3343 | 141 | // ----------------------------END ITEM BLOCK ---------------------------- | 133 | |
3344 | 142 | } | 134 | // ------------------------------------ START OF POSTS ---------------------------------------- |
3325 | 143 | ?> | ||
3326 | 144 | |||
3327 | 145 | <?php | ||
3328 | 146 | // ------------------------------------ START OF POSTS ---------------------------------------- | ||
3345 | 147 | // Display message if no post: | 135 | // Display message if no post: |
3346 | 148 | display_if_empty(); | 136 | display_if_empty(); |
3347 | 149 | 137 | ||
3362 | 150 | while( $Item = & mainlist_get_item() ) | 138 | // do this loop for each item we need to display (aka 'the posts loop') |
3363 | 151 | { // For each blog post: | 139 | while( $Item = & mainlist_get_item() ) |
3364 | 152 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 140 | { |
3365 | 153 | template_include( '_item_block.inc.php', array( | 141 | // --- --- --- --- --- --- --- --- --- --- --- |
3366 | 154 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 142 | // --- ITEM BLOCK INCLUDED HERE --- |
3367 | 155 | 'image_size' => 'fit-400x320', | 143 | template_include( '_item_block.inc.php', array( |
3368 | 156 | ) ); | 144 | 'content_mode' => 'auto', |
3369 | 157 | // ----------------------------END ITEM BLOCK ---------------------------- | 145 | 'image_size' => 'fit-400x320', |
3370 | 158 | } // ---------------------------------- END OF POSTS ------------------------------------ | 146 | ) ); |
3371 | 159 | 147 | } | |
3372 | 160 | ?> | 148 | |
3373 | 161 | 149 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | |
3360 | 162 | <?php | ||
3361 | 163 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
3374 | 164 | mainlist_page_links( array( | 150 | mainlist_page_links( array( |
3375 | 165 | 'block_start' => '<p class="center">'.T_('Pages:').' <strong>', | 151 | 'block_start' => '<p class="center">'.T_('Pages:').' <strong>', |
3376 | 166 | 'block_end' => '</strong></p>', | 152 | 'block_end' => '</strong></p>', |
3377 | 167 | ) ); | 153 | ) ); |
3378 | 168 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 154 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
3395 | 169 | ?> | 155 | |
3396 | 170 | 156 | // --- --- --- --- --- --- --- --- --- --- --- | |
3397 | 171 | 157 | // MAIN CONTENT INCLUDED HERE | |
3398 | 172 | <?php | 158 | template_include( '$disp$', array( |
3399 | 173 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 159 | // we already handled these cases above |
3400 | 174 | template_include( '$disp$', array( | 160 | 'disp_posts' => '', |
3401 | 175 | 'disp_posts' => '', // We already handled this case above | 161 | 'disp_single' => '', |
3402 | 176 | 'disp_single' => '', // We already handled this case above | 162 | 'disp_page' => '', |
3403 | 177 | 'disp_page' => '', // We already handled this case above | 163 | ) ); |
3404 | 178 | ) ); | 164 | ?> |
3389 | 179 | // Note: you can customize any of the sub templates included here by | ||
3390 | 180 | // copying the matching php file into your template directory. | ||
3391 | 181 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
3392 | 182 | ?> | ||
3393 | 183 | |||
3394 | 184 | |||
3405 | 185 | </div> | 165 | </div> |
3406 | 186 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
3407 | 187 | 166 | ||
3408 | 188 | <div class="bSideBar"> | 167 | <div class="bSideBar"> |
3412 | 189 | 168 | <?php | |
3410 | 190 | |||
3411 | 191 | <?php | ||
3413 | 192 | // Display container contents: | 169 | // Display container contents: |
3414 | 193 | template_container( NT_('Sidebar'), array( | 170 | template_container( NT_('Sidebar'), array( |
3415 | 194 | // The following (optional) params will be used as defaults for widgets included in this container: | 171 | // The following (optional) params will be used as defaults for widgets included in this container: |
3416 | @@ -235,18 +212,17 @@ | |||
3417 | 235 | 'text' => T_('Contact'), | 212 | 'text' => T_('Contact'), |
3418 | 236 | 'title' => T_('Send a message to the owner of this blog...'), | 213 | 'title' => T_('Send a message to the owner of this blog...'), |
3419 | 237 | ) ); | 214 | ) ); |
3428 | 238 | ?> | 215 | ?> |
3429 | 239 | 216 | <a href="http://www.sunnyislesmiamirealestate.com/b2evolution-skins/" target="_blank">template</a> | |
3430 | 240 | <a href="http://www.sunnyislesmiamirealestate.com/b2evolution-skins/" target="_blank">template</a> | 217 | </p> |
3431 | 241 | 218 | </div> | |
3432 | 242 | </p> | 219 | |
3433 | 243 | </div> | 220 | </div> |
3434 | 244 | </div> | 221 | |
3435 | 245 | </div> | 222 | </div> |
3436 | 223 | |||
3437 | 246 | <?php | 224 | <?php |
3439 | 247 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 225 | // --- --- --- --- --- --- --- --- --- --- --- |
3440 | 226 | // --- HTML FOOTER INCLUDED HERE --- | ||
3441 | 248 | template_include( '_html_footer.inc.php' ); | 227 | template_include( '_html_footer.inc.php' ); |
3442 | 249 | // Note: You can customize the default HTML footer by copying the | ||
3443 | 250 | // _html_footer.inc.php file into the current template folder. | ||
3444 | 251 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3445 | 252 | ?> | 228 | ?> |
3446 | 253 | \ No newline at end of file | 229 | \ No newline at end of file |
3447 | 254 | 230 | ||
3448 | === modified file 'blogs/templates/natural_pink/_item_block.inc.php' | |||
3449 | --- blogs/templates/natural_pink/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
3450 | +++ blogs/templates/natural_pink/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
3451 | @@ -65,21 +65,18 @@ | |||
3452 | 65 | 'after' => ' ', | 65 | 'after' => ' ', |
3453 | 66 | 'separator' => ', ', | 66 | 'separator' => ', ', |
3454 | 67 | ) ); | 67 | ) ); |
3470 | 68 | ?> | 68 | ?> |
3471 | 69 | </div> | 69 | </div> |
3472 | 70 | 70 | ||
3473 | 71 | <h3 class="bTitle"><?php $Item->title(); ?></h3> | 71 | <h3 class="bTitle"><?php $Item->title(); ?></h3> |
3474 | 72 | 72 | <?php | |
3475 | 73 | <?php | 73 | // --- --- --- --- --- --- --- --- --- --- --- |
3476 | 74 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 74 | // --- POST CONTENT INCLUDED HERE --- |
3477 | 75 | template_include( '_item_content.inc.php', $params ); | 75 | template_include( '_item_content.inc.php', $params ); |
3478 | 76 | // Note: You can customize the default item feedback by copying the generic | 76 | ?> |
3479 | 77 | // /templates/_item_content.inc.php file into the current template folder. | 77 | |
3480 | 78 | // -------------------------- END OF POST CONTENT ------------------------- | 78 | <div class="bSmallPrint"> |
3481 | 79 | ?> | 79 | <?php |
3467 | 80 | |||
3468 | 81 | <div class="bSmallPrint"> | ||
3469 | 82 | <?php | ||
3482 | 83 | $Item->permanent_link(); | 80 | $Item->permanent_link(); |
3483 | 84 | 81 | ||
3484 | 85 | // Link to comments, trackbacks, etc.: | 82 | // Link to comments, trackbacks, etc.: |
3485 | @@ -110,25 +107,18 @@ | |||
3486 | 110 | 'before' => ' • ', | 107 | 'before' => ' • ', |
3487 | 111 | 'after' => '', | 108 | 'after' => '', |
3488 | 112 | ) ); | 109 | ) ); |
3506 | 113 | ?> | 110 | ?> |
3490 | 114 | </div> | ||
3491 | 115 | |||
3492 | 116 | <?php | ||
3493 | 117 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
3494 | 118 | template_include( '_item_feedback.inc.php', array( | ||
3495 | 119 | 'before_section_title' => '<h4>', | ||
3496 | 120 | 'after_section_title' => '</h4>', | ||
3497 | 121 | ) ); | ||
3498 | 122 | // Note: You can customize the default item feedback by copying the generic | ||
3499 | 123 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
3500 | 124 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
3501 | 125 | ?> | ||
3502 | 126 | |||
3503 | 127 | <?php | ||
3504 | 128 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
3505 | 129 | ?> | ||
3507 | 130 | </div> | 111 | </div> |
3508 | 131 | 112 | ||
3509 | 132 | <?php | 113 | <?php |
3510 | 114 | // --- --- --- --- --- --- --- --- --- --- --- | ||
3511 | 115 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
3512 | 116 | template_include( '_item_feedback.inc.php', array( | ||
3513 | 117 | 'before_section_title' => '<h4>', | ||
3514 | 118 | 'after_section_title' => '</h4>', | ||
3515 | 119 | ) ); | ||
3516 | 133 | 120 | ||
3517 | 121 | // restore previous (Blog) locale | ||
3518 | 122 | locale_restore_previous(); | ||
3519 | 134 | ?> | 123 | ?> |
3520 | 124 | </div> | ||
3521 | 135 | 125 | ||
3522 | === modified file 'blogs/templates/natural_pink/index.main.php' | |||
3523 | --- blogs/templates/natural_pink/index.main.php 2010-01-02 08:34:34 +0000 | |||
3524 | +++ blogs/templates/natural_pink/index.main.php 2010-01-03 09:20:31 +0000 | |||
3525 | @@ -11,21 +11,13 @@ | |||
3526 | 11 | */ | 11 | */ |
3527 | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
3528 | 13 | 13 | ||
3529 | 14 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
3530 | 15 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
3531 | 16 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
3532 | 17 | } | ||
3533 | 18 | |||
3534 | 19 | // This is the main template; it may be used to display very different things. | 14 | // This is the main template; it may be used to display very different things. |
3535 | 20 | // Do inits depending on current $disp: | 15 | // Do inits depending on current $disp: |
3536 | 21 | template_init( $disp ); | 16 | template_init( $disp ); |
3537 | 22 | 17 | ||
3540 | 23 | 18 | // --- --- --- --- --- --- --- --- --- --- --- | |
3541 | 24 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 19 | // --- HTML HEADER INCLUDED HERE --- |
3542 | 25 | template_include( '_html_header.inc.php' ); | 20 | template_include( '_html_header.inc.php' ); |
3543 | 26 | // Note: You can customize the default HTML header by copying the | ||
3544 | 27 | // _html_header.inc.php file into the current template folder. | ||
3545 | 28 | // -------------------------------- END OF HEADER -------------------------------- | ||
3546 | 29 | ?> | 21 | ?> |
3547 | 30 | 22 | ||
3548 | 31 | <div class="wrapper"> | 23 | <div class="wrapper"> |
3549 | @@ -115,27 +107,22 @@ | |||
3550 | 115 | 'format' => 'htmlbody', | 107 | 'format' => 'htmlbody', |
3551 | 116 | ) ); | 108 | ) ); |
3552 | 117 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 109 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
3559 | 118 | ?> | 110 | |
3560 | 119 | 111 | // do we have a featured/intro item to display? | |
3555 | 120 | <!-- =================================== START OF MAIN AREA =================================== --> | ||
3556 | 121 | |||
3557 | 122 | <?php | ||
3558 | 123 | // Go Grab the featured post: | ||
3561 | 124 | if( $Item = & get_featured_Item() ) | 112 | if( $Item = & get_featured_Item() ) |
3564 | 125 | { // We have a featured/intro post to display: | 113 | { |
3565 | 126 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 114 | // --- --- --- --- --- --- --- --- --- --- --- |
3566 | 115 | // --- ITEM BLOCK INCLUDED HERE --- | ||
3567 | 127 | template_include( '_item_block.inc.php', array( | 116 | template_include( '_item_block.inc.php', array( |
3575 | 128 | 'feature_block' => true, | 117 | 'feature_block' => true, |
3576 | 129 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 118 | 'content_mode' => 'auto', |
3577 | 130 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 119 | 'intro_mode' => 'normal', |
3578 | 131 | 'item_class' => 'featured_post', | 120 | 'item_class' => 'featured_post', |
3579 | 132 | 'image_size' => 'fit-400x320', | 121 | 'image_size' => 'fit-400x320', |
3580 | 133 | ) ); | 122 | ) ); |
3574 | 134 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
3581 | 135 | } | 123 | } |
3582 | 136 | ?> | ||
3583 | 137 | 124 | ||
3585 | 138 | <?php // ------------------------------------ START OF POSTS ---------------------------------------- | 125 | // ------------------------------------ START OF POSTS ---------------------------------------- |
3586 | 139 | // Display message if no post: | 126 | // Display message if no post: |
3587 | 140 | display_if_empty(); | 127 | display_if_empty(); |
3588 | 141 | 128 | ||
3589 | @@ -149,15 +136,15 @@ | |||
3590 | 149 | 'date_format' => '#', | 136 | 'date_format' => '#', |
3591 | 150 | ) ); | 137 | ) ); |
3592 | 151 | 138 | ||
3600 | 152 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 139 | // --- --- --- --- --- --- --- --- --- --- --- |
3601 | 153 | template_include( '_item_block.inc.php', array( | 140 | // --- ITEM BLOCK INCLUDED HERE --- |
3602 | 154 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 141 | template_include( '_item_block.inc.php', array( |
3603 | 155 | 'image_size' => 'fit-400x320', | 142 | 'content_mode' => 'auto', |
3604 | 156 | ) ); | 143 | 'image_size' => 'fit-400x320', |
3605 | 157 | // ----------------------------END ITEM BLOCK ---------------------------- | 144 | ) ); |
3606 | 158 | ?> | 145 | ?> |
3607 | 159 | 146 | ||
3609 | 160 | <div class="separator" ><img src="rsc/img/separator.gif" width="265" height="14" alt="" /></div> | 147 | <div class="separator" ><img src="rsc/img/separator.gif" width="265" height="14" alt="" /></div> |
3610 | 161 | <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> | 148 | <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> |
3611 | 162 | 149 | ||
3612 | 163 | <?php | 150 | <?php |
3613 | @@ -170,27 +157,20 @@ | |||
3614 | 170 | 'next_text' => T_('Next').' >>', | 157 | 'next_text' => T_('Next').' >>', |
3615 | 171 | ) ); | 158 | ) ); |
3616 | 172 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 159 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
3632 | 173 | ?> | 160 | |
3633 | 174 | 161 | // --- --- --- --- --- --- --- --- --- --- --- | |
3634 | 175 | 162 | // MAIN CONTENT INCLUDED HERE | |
3635 | 176 | <?php | 163 | template_include( '$disp$', array( |
3636 | 177 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 164 | // we already handled these cases above |
3637 | 178 | template_include( '$disp$', array( | 165 | 'disp_posts' => '', |
3638 | 179 | 'disp_posts' => '', // We already handled this case above | 166 | 'disp_single' => '', |
3639 | 180 | 'disp_single' => '', // We already handled this case above | 167 | 'disp_page' => '', |
3640 | 181 | 'disp_page' => '', // We already handled this case above | 168 | ) ); |
3641 | 182 | ) ); | 169 | ?> |
3627 | 183 | // Note: you can customize any of the sub templates included here by | ||
3628 | 184 | // copying the matching php file into your template directory. | ||
3629 | 185 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
3630 | 186 | ?> | ||
3631 | 187 | |||
3642 | 188 | </div> | 170 | </div> |
3643 | 189 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
3644 | 190 | 171 | ||
3645 | 191 | <div class="bSideBar"> | 172 | <div class="bSideBar"> |
3648 | 192 | 173 | <?php | |
3647 | 193 | <?php | ||
3649 | 194 | // Display container contents: | 174 | // Display container contents: |
3650 | 195 | template_container( NT_('Sidebar'), array( | 175 | template_container( NT_('Sidebar'), array( |
3651 | 196 | // The following (optional) params will be used as defaults for widgets included in this container: | 176 | // The following (optional) params will be used as defaults for widgets included in this container: |
3652 | @@ -211,26 +191,21 @@ | |||
3653 | 211 | 'group_end' => '</ul>', | 191 | 'group_end' => '</ul>', |
3654 | 212 | ) ); | 192 | ) ); |
3655 | 213 | ?> | 193 | ?> |
3656 | 214 | |||
3657 | 215 | </div> | 194 | </div> |
3658 | 216 | 195 | ||
3659 | 217 | <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> | 196 | <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> |
3660 | 218 | 197 | ||
3661 | 219 | <?php | 198 | <?php |
3663 | 220 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 199 | // --- --- --- --- --- --- --- --- --- --- --- |
3664 | 200 | // --- BODY FOOTER INCLUDED HERE --- | ||
3665 | 221 | template_include( '_body_footer.inc.php' ); | 201 | template_include( '_body_footer.inc.php' ); |
3666 | 222 | // Note: You can customize the default BODY footer by copying the | ||
3667 | 223 | // _body_footer.inc.php file into the current template folder. | ||
3668 | 224 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3669 | 225 | ?> | 202 | ?> |
3670 | 203 | </div> | ||
3671 | 226 | 204 | ||
3672 | 227 | </div> | ||
3673 | 228 | </div> | 205 | </div> |
3674 | 229 | 206 | ||
3675 | 230 | <?php | 207 | <?php |
3677 | 231 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 208 | // --- --- --- --- --- --- --- --- --- --- --- |
3678 | 209 | // --- HTML FOOTER INCLUDED HERE --- | ||
3679 | 232 | template_include( '_html_footer.inc.php' ); | 210 | template_include( '_html_footer.inc.php' ); |
3680 | 233 | // Note: You can customize the default HTML footer by copying the | ||
3681 | 234 | // _html_footer.inc.php file into the current template folder. | ||
3682 | 235 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3683 | 236 | ?> | 211 | ?> |
3684 | 237 | \ No newline at end of file | 212 | \ No newline at end of file |
3685 | 238 | 213 | ||
3686 | === modified file 'blogs/templates/nifty_corners/_item_block.inc.php' | |||
3687 | --- blogs/templates/nifty_corners/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
3688 | +++ blogs/templates/nifty_corners/_item_block.inc.php 2010-01-03 09:20:31 +0000 | |||
3689 | @@ -69,19 +69,17 @@ | |||
3690 | 69 | 'after' => ' ', | 69 | 'after' => ' ', |
3691 | 70 | 'separator' => ', ', | 70 | 'separator' => ', ', |
3692 | 71 | ) ); | 71 | ) ); |
3706 | 72 | ?> | 72 | ?> |
3707 | 73 | </div> | 73 | </div> |
3708 | 74 | 74 | ||
3709 | 75 | <?php | 75 | <?php |
3710 | 76 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 76 | // --- --- --- --- --- --- --- --- --- --- --- |
3711 | 77 | template_include( '_item_content.inc.php', $params ); | 77 | // --- POST CONTENT INCLUDED HERE --- |
3712 | 78 | // Note: You can customize the default item feedback by copying the generic | 78 | template_include( '_item_content.inc.php', $params ); |
3713 | 79 | // /templates/_item_content.inc.php file into the current template folder. | 79 | ?> |
3714 | 80 | // -------------------------- END OF POST CONTENT ------------------------- | 80 | |
3715 | 81 | ?> | 81 | <div class="bSmallPrint"> |
3716 | 82 | 82 | <?php | |
3704 | 83 | <div class="bSmallPrint"> | ||
3705 | 84 | <?php | ||
3717 | 85 | $Item->permanent_link(); | 83 | $Item->permanent_link(); |
3718 | 86 | 84 | ||
3719 | 87 | // Link to comments, trackbacks, etc.: | 85 | // Link to comments, trackbacks, etc.: |
3720 | @@ -112,22 +110,18 @@ | |||
3721 | 112 | 'before' => ' • ', | 110 | 'before' => ' • ', |
3722 | 113 | 'after' => '', | 111 | 'after' => '', |
3723 | 114 | ) ); | 112 | ) ); |
3743 | 115 | ?> | 113 | ?> |
3744 | 116 | </div> | 114 | </div> |
3745 | 117 | 115 | ||
3746 | 118 | <?php | 116 | <?php |
3747 | 119 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 117 | // --- --- --- --- --- --- --- --- --- --- --- |
3748 | 120 | template_include( '_item_feedback.inc.php', array( | 118 | // --- ITEM FEEDBACK INCLUDED HERE --- |
3749 | 121 | 'before_section_title' => '<h4>', | 119 | template_include( '_item_feedback.inc.php', array( |
3750 | 122 | 'after_section_title' => '</h4>', | 120 | 'before_section_title' => '<h4>', |
3751 | 123 | ) ); | 121 | 'after_section_title' => '</h4>', |
3752 | 124 | // Note: You can customize the default item feedback by copying the generic | 122 | ) ); |
3753 | 125 | // /templates/_item_feedback.inc.php file into the current template folder. | 123 | |
3754 | 126 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | 124 | // restore previous (Blog) locale |
3755 | 127 | ?> | 125 | locale_restore_previous(); |
3756 | 128 | </div> | 126 | ?> |
3757 | 129 | </div> | 127 | </div> |
3739 | 130 | <?php | ||
3740 | 131 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
3741 | 132 | |||
3742 | 133 | ?> | ||
3758 | 134 | 128 | ||
3759 | === modified file 'blogs/templates/nifty_corners/index.main.php' | |||
3760 | --- blogs/templates/nifty_corners/index.main.php 2010-01-02 08:34:34 +0000 | |||
3761 | +++ blogs/templates/nifty_corners/index.main.php 2010-01-03 09:20:32 +0000 | |||
3762 | @@ -11,11 +11,6 @@ | |||
3763 | 11 | */ | 11 | */ |
3764 | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
3765 | 13 | 13 | ||
3766 | 14 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
3767 | 15 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
3768 | 16 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
3769 | 17 | } | ||
3770 | 18 | |||
3771 | 19 | // This is the main template; it may be used to display very different things. | 14 | // This is the main template; it may be used to display very different things. |
3772 | 20 | // Do inits depending on current $disp: | 15 | // Do inits depending on current $disp: |
3773 | 21 | template_init( $disp ); | 16 | template_init( $disp ); |
3774 | @@ -42,14 +37,11 @@ | |||
3775 | 42 | HEREDOC; | 37 | HEREDOC; |
3776 | 43 | add_headline( $custom_js ); | 38 | add_headline( $custom_js ); |
3777 | 44 | 39 | ||
3779 | 45 | // Include the HTML HEAD: | 40 | // --- --- --- --- --- --- --- --- --- --- --- |
3780 | 41 | // --- HTML HEADER INCLUDED HERE --- | ||
3781 | 46 | template_include( '_html_header.inc.php' ); | 42 | template_include( '_html_header.inc.php' ); |
3782 | 47 | // Note: You can customize the default HTML header by copying the | ||
3783 | 48 | // _html_header.inc.php file into the current template folder. | ||
3784 | 49 | // -------------------------------- END OF HEADER -------------------------------- | ||
3785 | 50 | ?> | 43 | ?> |
3786 | 51 | 44 | ||
3787 | 52 | |||
3788 | 53 | <div class="wrapper"> | 45 | <div class="wrapper"> |
3789 | 54 | <div class="wrapper2"> | 46 | <div class="wrapper2"> |
3790 | 55 | 47 | ||
3791 | @@ -150,26 +142,22 @@ | |||
3792 | 150 | 'format' => 'htmlbody', | 142 | 'format' => 'htmlbody', |
3793 | 151 | ) ); | 143 | ) ); |
3794 | 152 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 144 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
3795 | 153 | ?> | ||
3796 | 154 | 145 | ||
3799 | 155 | <?php | 146 | // do we have a featured/intro item to display? |
3798 | 156 | // Go Grab the featured post: | ||
3800 | 157 | if( $Item = & get_featured_Item() ) | 147 | if( $Item = & get_featured_Item() ) |
3803 | 158 | { // We have a featured/intro post to display: | 148 | { |
3804 | 159 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 149 | // --- --- --- --- --- --- --- --- --- --- --- |
3805 | 150 | // --- ITEM BLOCK INCLUDED HERE --- | ||
3806 | 160 | template_include( '_item_block.inc.php', array( | 151 | template_include( '_item_block.inc.php', array( |
3814 | 161 | 'feature_block' => true, | 152 | 'feature_block' => true, |
3815 | 162 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 153 | 'content_mode' => 'auto', |
3816 | 163 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 154 | 'intro_mode' => 'normal', |
3817 | 164 | 'item_class' => 'featured_post', | 155 | 'item_class' => 'featured_post', |
3818 | 165 | 'image_size' => 'fit-400x320', | 156 | 'image_size' => 'fit-400x320', |
3819 | 166 | ) ); | 157 | ) ); |
3813 | 167 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
3820 | 168 | } | 158 | } |
3821 | 169 | ?> | ||
3822 | 170 | 159 | ||
3825 | 171 | <?php | 160 | // ------------------------------------ START OF POSTS ---------------------------------------- |
3824 | 172 | // ------------------------------------ START OF POSTS ---------------------------------------- | ||
3826 | 173 | // Display message if no post: | 161 | // Display message if no post: |
3827 | 174 | display_if_empty(); | 162 | display_if_empty(); |
3828 | 175 | 163 | ||
3829 | @@ -185,12 +173,12 @@ | |||
3830 | 185 | 'date_format' => '#', | 173 | 'date_format' => '#', |
3831 | 186 | ) ); | 174 | ) ); |
3832 | 187 | 175 | ||
3834 | 188 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 176 | // --- --- --- --- --- --- --- --- --- --- --- |
3835 | 177 | // --- ITEM BLOCK INCLUDED HERE --- | ||
3836 | 189 | template_include( '_item_block.inc.php', array( | 178 | template_include( '_item_block.inc.php', array( |
3841 | 190 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 179 | 'content_mode' => 'auto', |
3842 | 191 | 'image_size' => 'fit-400x320', | 180 | 'image_size' => 'fit-400x320', |
3843 | 192 | ) ); | 181 | ) ); |
3840 | 193 | // ----------------------------END ITEM BLOCK ---------------------------- | ||
3844 | 194 | 182 | ||
3845 | 195 | } // ---------------------------------- END OF POSTS ------------------------------------ ?> | 183 | } // ---------------------------------- END OF POSTS ------------------------------------ ?> |
3846 | 196 | 184 | ||
3847 | @@ -204,31 +192,24 @@ | |||
3848 | 204 | 'next_text' => T_('Next').' >>', | 192 | 'next_text' => T_('Next').' >>', |
3849 | 205 | ) ); | 193 | ) ); |
3850 | 206 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 194 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
3872 | 207 | ?> | 195 | |
3873 | 208 | 196 | // --- --- --- --- --- --- --- --- --- --- --- | |
3874 | 209 | 197 | // MAIN CONTENT INCLUDED HERE | |
3875 | 210 | <?php | 198 | template_include( '$disp$', array( |
3876 | 211 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 199 | // we already handled these cases above |
3877 | 212 | template_include( '$disp$', array( | 200 | 'disp_posts' => '', |
3878 | 213 | 'disp_posts' => '', // We already handled this case above | 201 | 'disp_single' => '', |
3879 | 214 | 'disp_single' => '', // We already handled this case above | 202 | 'disp_page' => '', |
3880 | 215 | 'disp_page' => '', // We already handled this case above | 203 | ) ); |
3881 | 216 | ) ); | 204 | ?> |
3882 | 217 | // Note: you can customize any of the sub templates included here by | 205 | </div> |
3883 | 218 | // copying the matching php file into your template directory. | 206 | |
3884 | 219 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | 207 | </div> |
3885 | 220 | ?> | 208 | |
3865 | 221 | |||
3866 | 222 | |||
3867 | 223 | </div> | ||
3868 | 224 | </div> | ||
3869 | 225 | |||
3870 | 226 | |||
3871 | 227 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
3886 | 228 | <div class="bSideBar"> | 209 | <div class="bSideBar"> |
3887 | 210 | |||
3888 | 229 | <div class="innerwrap"> | 211 | <div class="innerwrap"> |
3891 | 230 | 212 | <?php | |
3890 | 231 | <?php | ||
3892 | 232 | // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- | 213 | // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- |
3893 | 233 | template_container( NT_('Sidebar'), array( | 214 | template_container( NT_('Sidebar'), array( |
3894 | 234 | // The following (optional) params will be used as defaults for widgets included in this container: | 215 | // The following (optional) params will be used as defaults for widgets included in this container: |
3895 | @@ -253,27 +234,23 @@ | |||
3896 | 253 | ) ); | 234 | ) ); |
3897 | 254 | // ----------------------------- END OF "Sidebar" CONTAINER ----------------------------- | 235 | // ----------------------------- END OF "Sidebar" CONTAINER ----------------------------- |
3898 | 255 | ?> | 236 | ?> |
3899 | 237 | </div> | ||
3900 | 256 | 238 | ||
3901 | 257 | </div> | ||
3902 | 258 | </div> | 239 | </div> |
3903 | 259 | 240 | ||
3904 | 260 | <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> | 241 | <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> |
3905 | 261 | 242 | ||
3906 | 262 | <?php | 243 | <?php |
3908 | 263 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 244 | // --- --- --- --- --- --- --- --- --- --- --- |
3909 | 245 | // --- BODY FOOTER INCLUDED HERE --- | ||
3910 | 264 | template_include( '_body_footer.inc.php' ); | 246 | template_include( '_body_footer.inc.php' ); |
3911 | 265 | // Note: You can customize the default BODY footer by copying the | ||
3912 | 266 | // _body_footer.inc.php file into the current template folder. | ||
3913 | 267 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3914 | 268 | ?> | 247 | ?> |
3915 | 248 | </div> | ||
3916 | 269 | 249 | ||
3917 | 270 | </div> | ||
3918 | 271 | </div> | 250 | </div> |
3919 | 272 | 251 | ||
3920 | 273 | <?php | 252 | <?php |
3922 | 274 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 253 | // --- --- --- --- --- --- --- --- --- --- --- |
3923 | 254 | // --- HTML FOOTER INCLUDED HERE --- | ||
3924 | 275 | template_include( '_html_footer.inc.php' ); | 255 | template_include( '_html_footer.inc.php' ); |
3925 | 276 | // Note: You can customize the default HTML footer by copying the | ||
3926 | 277 | // _html_footer.inc.php file into the current template folder. | ||
3927 | 278 | // ------------------------------- END OF FOOTER -------------------------------- | ||
3928 | 279 | ?> | 256 | ?> |
3929 | 280 | \ No newline at end of file | 257 | \ No newline at end of file |
3930 | 281 | 258 | ||
3931 | === modified file 'blogs/templates/photoblog/_html_header.inc.php' | |||
3932 | --- blogs/templates/photoblog/_html_header.inc.php 2010-01-02 08:34:34 +0000 | |||
3933 | +++ blogs/templates/photoblog/_html_header.inc.php 2010-01-03 09:20:32 +0000 | |||
3934 | @@ -5,8 +5,6 @@ | |||
3935 | 5 | * This is meant to be included in a page template. | 5 | * This is meant to be included in a page template. |
3936 | 6 | * Note: This is also included in the popup: do not include site navigation! | 6 | * Note: This is also included in the popup: do not include site navigation! |
3937 | 7 | * | 7 | * |
3938 | 8 | * -at- tutorial page placeholder _html_header.inc.php | ||
3939 | 9 | * | ||
3940 | 10 | * @package templates | 8 | * @package templates |
3941 | 11 | * @subpackage photoblog | 9 | * @subpackage photoblog |
3942 | 12 | */ | 10 | */ |
3943 | @@ -55,12 +53,10 @@ | |||
3944 | 55 | </head> | 53 | </head> |
3945 | 56 | 54 | ||
3946 | 57 | <body> | 55 | <body> |
3947 | 58 | |||
3948 | 59 | <?php | 56 | <?php |
3953 | 60 | // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- | 57 | // --- --- --- --- --- --- --- --- --- --- --- |
3954 | 61 | require $templates_path.'_toolbar.inc.php'; | 58 | // --- TOOLBAR INCLUDED HERE --- |
3955 | 62 | // ------------------------------- END OF TOOLBAR -------------------------------- | 59 | template_include( '_toolbar.inc.php' ); |
3952 | 63 | |||
3956 | 64 | echo "\n"; | 60 | echo "\n"; |
3957 | 65 | if( is_logged_in() ) | 61 | if( is_logged_in() ) |
3958 | 66 | { | 62 | { |
3959 | @@ -71,5 +67,4 @@ | |||
3960 | 71 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; | 67 | echo '<div id="template_wrapper" class="template_wrapper_anonymous">'; |
3961 | 72 | } | 68 | } |
3962 | 73 | echo "\n"; | 69 | echo "\n"; |
3965 | 74 | ?> | 70 | ?> |
3964 | 75 | <!-- Start of template_wrapper --> | ||
3966 | 76 | \ No newline at end of file | 71 | \ No newline at end of file |
3967 | 77 | 72 | ||
3968 | === modified file 'blogs/templates/photoblog/_item_block.inc.php' | |||
3969 | --- blogs/templates/photoblog/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
3970 | +++ blogs/templates/photoblog/_item_block.inc.php 2010-01-03 09:20:32 +0000 | |||
3971 | @@ -99,20 +99,17 @@ | |||
3972 | 99 | 'after' => '</span>', | 99 | 'after' => '</span>', |
3973 | 100 | 'date_format' => locale_datefmt().' H:i', | 100 | 'date_format' => locale_datefmt().' H:i', |
3974 | 101 | ) ); | 101 | ) ); |
3989 | 102 | ?> | 102 | ?> |
3990 | 103 | 103 | </div> | |
3991 | 104 | </div> | 104 | |
3992 | 105 | 105 | <?php | |
3993 | 106 | <?php | 106 | // --- --- --- --- --- --- --- --- --- --- --- |
3994 | 107 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 107 | // --- POST CONTENT INCLUDED HERE --- |
3995 | 108 | template_include( '_item_content.inc.php', $params ); | 108 | template_include( '_item_content.inc.php', $params ); |
3996 | 109 | // Note: You can customize the default item feedback by copying the generic | 109 | ?> |
3997 | 110 | // /templates/_item_feedback.inc.php file into the current template folder. | 110 | |
3998 | 111 | // -------------------------- END OF POST CONTENT ------------------------- | 111 | <div class="bSmallPrint"> |
3999 | 112 | ?> | 112 | <?php |
3986 | 113 | |||
3987 | 114 | <div class="bSmallPrint"> | ||
3988 | 115 | <?php | ||
4000 | 116 | $Item->author( array( | 113 | $Item->author( array( |
4001 | 117 | 'before' => T_('By').' ', | 114 | 'before' => T_('By').' ', |
4002 | 118 | 'after' => ' • ', | 115 | 'after' => ' • ', |
4003 | @@ -149,26 +146,19 @@ | |||
4004 | 149 | 'target' => '', | 146 | 'target' => '', |
4005 | 150 | 'podcast' => false, // DO NOT display mp3 player if post type is podcast | 147 | 'podcast' => false, // DO NOT display mp3 player if post type is podcast |
4006 | 151 | ) ); | 148 | ) ); |
4026 | 152 | ?> | 149 | ?> |
4027 | 153 | 150 | </div> | |
4009 | 154 | </div> | ||
4010 | 155 | </div> | ||
4011 | 156 | |||
4012 | 157 | <?php | ||
4013 | 158 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
4014 | 159 | template_include( '_item_feedback.inc.php', array( | ||
4015 | 160 | 'before_section_title' => '<h4>', | ||
4016 | 161 | 'after_section_title' => '</h4>', | ||
4017 | 162 | ) ); | ||
4018 | 163 | // Note: You can customize the default item feedback by copying the generic | ||
4019 | 164 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
4020 | 165 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
4021 | 166 | ?> | ||
4022 | 167 | |||
4023 | 168 | <?php | ||
4024 | 169 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
4025 | 170 | ?> | ||
4028 | 171 | 151 | ||
4029 | 172 | </div> | 152 | </div> |
4030 | 173 | <?php | 153 | <?php |
4031 | 154 | // --- --- --- --- --- --- --- --- --- --- --- | ||
4032 | 155 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
4033 | 156 | template_include( '_item_feedback.inc.php', array( | ||
4034 | 157 | 'before_section_title' => '<h4>', | ||
4035 | 158 | 'after_section_title' => '</h4>', | ||
4036 | 159 | ) ); | ||
4037 | 160 | |||
4038 | 161 | // restore previous (Blog) locale | ||
4039 | 162 | locale_restore_previous(); | ||
4040 | 174 | ?> | 163 | ?> |
4041 | 164 | </div> | ||
4042 | 175 | 165 | ||
4043 | === modified file 'blogs/templates/photoblog/feedback_popup.main.php' | |||
4044 | --- blogs/templates/photoblog/feedback_popup.main.php 2010-01-02 08:34:34 +0000 | |||
4045 | +++ blogs/templates/photoblog/feedback_popup.main.php 2010-01-03 09:20:32 +0000 | |||
4046 | @@ -11,17 +11,13 @@ | |||
4047 | 11 | */ | 11 | */ |
4048 | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
4049 | 13 | 13 | ||
4050 | 14 | |||
4051 | 15 | // Note: even if we request the same post as $Item above, the following will do more restrictions (dates, etc.) | 14 | // Note: even if we request the same post as $Item above, the following will do more restrictions (dates, etc.) |
4052 | 16 | // Do inits depending on current $disp: | 15 | // Do inits depending on current $disp: |
4053 | 17 | template_init( $disp ); // disp will normally be "feedback-popup" here | 16 | template_init( $disp ); // disp will normally be "feedback-popup" here |
4054 | 18 | 17 | ||
4057 | 19 | 18 | // --- --- --- --- --- --- --- --- --- --- --- | |
4058 | 20 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 19 | // --- HTML HEADER INCLUDED HERE --- |
4059 | 21 | template_include( '_html_header.inc.php' ); | 20 | template_include( '_html_header.inc.php' ); |
4060 | 22 | // Note: You can customize the default HTML header by copying the | ||
4061 | 23 | // _html_header.inc.php file into the current template folder. | ||
4062 | 24 | // -------------------------------- END OF HEADER -------------------------------- | ||
4063 | 25 | ?> | 21 | ?> |
4064 | 26 | 22 | ||
4065 | 27 | <div class="comments_popup"> | 23 | <div class="comments_popup"> |
4066 | @@ -47,27 +43,21 @@ | |||
4067 | 47 | ) ); | 43 | ) ); |
4068 | 48 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 44 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
4069 | 49 | 45 | ||
4070 | 50 | |||
4071 | 51 | // Normally, there should only be one item to display... | 46 | // Normally, there should only be one item to display... |
4072 | 52 | while( $Item = & mainlist_get_item() ) | 47 | while( $Item = & mainlist_get_item() ) |
4075 | 53 | { // For each blog post, do everything below up to the closing curly brace "}" | 48 | { |
4076 | 54 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 49 | // --- --- --- --- --- --- --- --- --- --- --- |
4077 | 50 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
4078 | 55 | template_include( '_item_feedback.inc.php', array( | 51 | template_include( '_item_feedback.inc.php', array( |
4085 | 56 | 'before_section_title' => '<h4>', | 52 | 'before_section_title' => '<h4>', |
4086 | 57 | 'after_section_title' => '</h4>', | 53 | 'after_section_title' => '</h4>', |
4087 | 58 | ) ); | 54 | ) ); |
4082 | 59 | // Note: You can customize the default item feedback by copying the generic | ||
4083 | 60 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
4084 | 61 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
4088 | 62 | } | 55 | } |
4089 | 63 | ?> | 56 | ?> |
4090 | 64 | |||
4091 | 65 | </div> | 57 | </div> |
4092 | 66 | 58 | ||
4093 | 67 | <?php | 59 | <?php |
4095 | 68 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 60 | // --- --- --- --- --- --- --- --- --- --- --- |
4096 | 61 | // --- HTML FOOTER INCLUDED HERE --- | ||
4097 | 69 | template_include( '_html_footer.inc.php' ); | 62 | template_include( '_html_footer.inc.php' ); |
4098 | 70 | // Note: You can customize the default HTML footer by copying the | ||
4099 | 71 | // _html_footer.inc.php file into the current template folder. | ||
4100 | 72 | // ------------------------------- END OF FOOTER -------------------------------- | ||
4101 | 73 | ?> | 63 | ?> |
4102 | 74 | \ No newline at end of file | 64 | \ No newline at end of file |
4103 | 75 | 65 | ||
4104 | === modified file 'blogs/templates/photoblog/index.main.php' | |||
4105 | --- blogs/templates/photoblog/index.main.php 2010-01-02 08:34:34 +0000 | |||
4106 | +++ blogs/templates/photoblog/index.main.php 2010-01-03 09:20:32 +0000 | |||
4107 | @@ -11,22 +11,15 @@ | |||
4108 | 11 | */ | 11 | */ |
4109 | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 12 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
4110 | 13 | 13 | ||
4111 | 14 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
4112 | 15 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
4113 | 16 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
4114 | 17 | } | ||
4115 | 18 | |||
4116 | 19 | // This is the main template; it may be used to display very different things. | 14 | // This is the main template; it may be used to display very different things. |
4117 | 20 | // Do inits depending on current $disp: | 15 | // Do inits depending on current $disp: |
4118 | 21 | template_init( $disp ); | 16 | template_init( $disp ); |
4119 | 22 | 17 | ||
4120 | 23 | require_js( 'functions.js' ); // for opening popup window (comments) | 18 | require_js( 'functions.js' ); // for opening popup window (comments) |
4121 | 24 | 19 | ||
4123 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- --- --- --- --- --- --- --- --- --- --- |
4124 | 21 | // --- HTML HEADER INCLUDED HERE --- | ||
4125 | 26 | template_include( '_html_header.inc.php' ); | 22 | template_include( '_html_header.inc.php' ); |
4126 | 27 | // Note: You can customize the default HTML header by copying the | ||
4127 | 28 | // _html_header.inc.php file into the current template folder. | ||
4128 | 29 | // -------------------------------- END OF HEADER -------------------------------- | ||
4129 | 30 | ?> | 23 | ?> |
4130 | 31 | 24 | ||
4131 | 32 | <div class="PageTop"> | 25 | <div class="PageTop"> |
4132 | @@ -129,67 +122,52 @@ | |||
4133 | 129 | 'categories_text' => T_('Albums').': ', | 122 | 'categories_text' => T_('Albums').': ', |
4134 | 130 | ) ); | 123 | ) ); |
4135 | 131 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 124 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
4155 | 132 | ?> | 125 | |
4156 | 133 | 126 | // do we have a featured/intro item to display? | |
4157 | 134 | <?php | 127 | if( $Item = & get_featured_Item() ) |
4158 | 135 | // Go Grab the featured post: | 128 | { |
4159 | 136 | if( $Item = & get_featured_Item() ) | 129 | // --- --- --- --- --- --- --- --- --- --- --- |
4160 | 137 | { // We have a featured/intro post to display: | 130 | // --- ITEM BLOCK INCLUDED HERE --- |
4161 | 138 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 131 | template_include( '_item_block.inc.php', array( |
4162 | 139 | template_include( '_item_block.inc.php', array( | 132 | 'feature_block' => true, |
4163 | 140 | 'feature_block' => true, | 133 | 'content_mode' => 'full', |
4164 | 141 | 'content_mode' => 'full', // We want regular "full" content, even in category browsing: i-e no excerpt or thumbnail | 134 | 'intro_mode' => 'normal', |
4165 | 142 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 135 | 'item_class' => 'featured_post', |
4166 | 143 | 'item_class' => 'featured_post', | 136 | 'image_size' => 'fit-400x320', |
4167 | 144 | ) ); | 137 | ) ); |
4168 | 145 | // ----------------------------END ITEM BLOCK ---------------------------- | 138 | } |
4169 | 146 | } | 139 | |
4170 | 147 | ?> | 140 | // ------------------------------------ START OF POSTS ---------------------------------------- |
4152 | 148 | |||
4153 | 149 | <?php | ||
4154 | 150 | // ------------------------------------ START OF POSTS ---------------------------------------- | ||
4171 | 151 | // Display message if no post: | 141 | // Display message if no post: |
4172 | 152 | display_if_empty(); | 142 | display_if_empty(); |
4173 | 153 | 143 | ||
4197 | 154 | while( $Item = & mainlist_get_item() ) | 144 | // do this loop for each item we need to display (aka 'the posts loop') |
4198 | 155 | { // For each blog post: | 145 | while( $Item = & mainlist_get_item() ) |
4199 | 156 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 146 | { |
4200 | 157 | template_include( '_item_block.inc.php', array( | 147 | // --- --- --- --- --- --- --- --- --- --- --- |
4201 | 158 | 'content_mode' => 'full', // We want regular "full" content, even in category browsing: i-e no excerpt or thumbnail | 148 | // --- ITEM BLOCK INCLUDED HERE --- |
4202 | 159 | ) ); | 149 | template_include( '_item_block.inc.php', array( |
4203 | 160 | // ----------------------------END ITEM BLOCK ---------------------------- | 150 | 'content_mode' => 'full', |
4204 | 161 | } // ---------------------------------- END OF POSTS ------------------------------------ | 151 | ) ); |
4205 | 162 | ?> | 152 | } |
4206 | 163 | 153 | ||
4207 | 164 | 154 | // --- --- --- --- --- --- --- --- --- --- --- | |
4208 | 165 | <?php | 155 | // MAIN CONTENT INCLUDED HERE |
4209 | 166 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 156 | template_include( '$disp$', array( |
4210 | 167 | template_include( '$disp$', array( | 157 | // we already handled these cases above |
4211 | 168 | 'disp_posts' => '', // We already handled this case above | 158 | 'disp_posts' => '', |
4212 | 169 | 'disp_single' => '', // We already handled this case above | 159 | 'disp_single' => '', |
4213 | 170 | 'disp_page' => '', // We already handled this case above | 160 | 'disp_page' => '', |
4214 | 171 | ) ); | 161 | ) ); |
4215 | 172 | // Note: you can customize any of the sub templates included here by | 162 | ?> |
4193 | 173 | // copying the matching php file into your template directory. | ||
4194 | 174 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | ||
4195 | 175 | ?> | ||
4196 | 176 | |||
4216 | 177 | </div> | 163 | </div> |
4217 | 178 | 164 | ||
4218 | 179 | |||
4219 | 180 | <?php | 165 | <?php |
4221 | 181 | // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- | 166 | // --- --- --- --- --- --- --- --- --- --- --- |
4222 | 167 | // --- BODY FOOTER INCLUDED HERE --- | ||
4223 | 182 | template_include( '_body_footer.inc.php' ); | 168 | template_include( '_body_footer.inc.php' ); |
4232 | 183 | // Note: You can customize the default BODY footer by copying the | 169 | |
4233 | 184 | // _body_footer.inc.php file into the current template folder. | 170 | // --- --- --- --- --- --- --- --- --- --- --- |
4234 | 185 | // ------------------------------- END OF FOOTER -------------------------------- | 171 | // --- HTML FOOTER INCLUDED HERE --- |
4227 | 186 | ?> | ||
4228 | 187 | |||
4229 | 188 | |||
4230 | 189 | <?php | ||
4231 | 190 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | ||
4235 | 191 | template_include( '_html_footer.inc.php' ); | 172 | template_include( '_html_footer.inc.php' ); |
4236 | 192 | // Note: You can customize the default HTML footer by copying the | ||
4237 | 193 | // _html_footer.inc.php file into the current template folder. | ||
4238 | 194 | // ------------------------------- END OF FOOTER -------------------------------- | ||
4239 | 195 | ?> | 173 | ?> |
4240 | 196 | \ No newline at end of file | 174 | \ No newline at end of file |
4241 | 197 | 175 | ||
4242 | === modified file 'blogs/templates/pixelgreen/_item_block.inc.php' | |||
4243 | --- blogs/templates/pixelgreen/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
4244 | +++ blogs/templates/pixelgreen/_item_block.inc.php 2010-01-03 09:20:32 +0000 | |||
4245 | @@ -41,18 +41,18 @@ | |||
4246 | 41 | 'after' => '</strong>', | 41 | 'after' => '</strong>', |
4247 | 42 | ) ); | 42 | ) ); |
4248 | 43 | $Item->msgform_link(); | 43 | $Item->msgform_link(); |
4261 | 44 | ?></p> | 44 | ?> |
4262 | 45 | <?php | 45 | </p> |
4263 | 46 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 46 | <?php |
4264 | 47 | template_include( '_item_content.inc.php', $params ); | 47 | // --- --- --- --- --- --- --- --- --- --- --- |
4265 | 48 | // Note: You can customize the default item feedback by copying the generic | 48 | // --- POST CONTENT INCLUDED HERE --- |
4266 | 49 | // /templates/_item_feedback.inc.php file into the current template folder. | 49 | template_include( '_item_content.inc.php', $params ); |
4267 | 50 | // -------------------------- END OF POST CONTENT ------------------------- | 50 | ?> |
4268 | 51 | ?> | 51 | |
4269 | 52 | 52 | <div class="post-footer"> | |
4270 | 53 | <div class="post-footer"> | 53 | |
4271 | 54 | <div class="bSmallHead"> | 54 | <div class="bSmallHead"> |
4272 | 55 | <?php | 55 | <?php |
4273 | 56 | $Item->categories( array( | 56 | $Item->categories( array( |
4274 | 57 | 'before' => T_('Categories').': ', | 57 | 'before' => T_('Categories').': ', |
4275 | 58 | 'after' => ' ', | 58 | 'after' => ' ', |
4276 | @@ -129,24 +129,20 @@ | |||
4277 | 129 | 'before' => ' • ', | 129 | 'before' => ' • ', |
4278 | 130 | 'after' => '', | 130 | 'after' => '', |
4279 | 131 | ) ); | 131 | ) ); |
4299 | 132 | ?> | 132 | ?> |
4300 | 133 | </div> | 133 | </div> |
4301 | 134 | </div> | 134 | |
4302 | 135 | <?php | 135 | </div> |
4303 | 136 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | 136 | |
4285 | 137 | template_include( '_item_feedback.inc.php', array( | ||
4286 | 138 | 'before_section_title' => '<h4>', | ||
4287 | 139 | 'after_section_title' => '</h4>', | ||
4288 | 140 | ) ); | ||
4289 | 141 | // Note: You can customize the default item feedback by copying the generic | ||
4290 | 142 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
4291 | 143 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
4292 | 144 | ?> | ||
4293 | 145 | |||
4294 | 146 | <?php | ||
4295 | 147 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
4296 | 148 | ?> | ||
4297 | 149 | |||
4298 | 150 | </div> | ||
4304 | 151 | <?php | 137 | <?php |
4305 | 138 | // --- --- --- --- --- --- --- --- --- --- --- | ||
4306 | 139 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
4307 | 140 | template_include( '_item_feedback.inc.php', array( | ||
4308 | 141 | 'before_section_title' => '<h4>', | ||
4309 | 142 | 'after_section_title' => '</h4>', | ||
4310 | 143 | ) ); | ||
4311 | 144 | |||
4312 | 145 | // restore previous (Blog) locale | ||
4313 | 146 | locale_restore_previous(); | ||
4314 | 152 | ?> | 147 | ?> |
4315 | 148 | </div> | ||
4316 | 153 | 149 | ||
4317 | === modified file 'blogs/templates/pixelgreen/index.main.php' | |||
4318 | --- blogs/templates/pixelgreen/index.main.php 2010-01-02 08:34:34 +0000 | |||
4319 | +++ blogs/templates/pixelgreen/index.main.php 2010-01-03 09:20:32 +0000 | |||
4320 | @@ -12,24 +12,15 @@ | |||
4321 | 12 | */ | 12 | */ |
4322 | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 13 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
4323 | 14 | 14 | ||
4324 | 15 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
4325 | 16 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
4326 | 17 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
4327 | 18 | } | ||
4328 | 19 | |||
4329 | 20 | // This is the main template; it may be used to display very different things. | 15 | // This is the main template; it may be used to display very different things. |
4330 | 21 | // Do inits depending on current $disp: | 16 | // Do inits depending on current $disp: |
4331 | 22 | template_init( $disp ); | 17 | template_init( $disp ); |
4332 | 23 | 18 | ||
4335 | 24 | 19 | // --- --- --- --- --- --- --- --- --- --- --- | |
4336 | 25 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 20 | // --- HTML HEADER INCLUDED HERE --- |
4337 | 26 | template_include( '_html_header.inc.php' ); | 21 | template_include( '_html_header.inc.php' ); |
4338 | 27 | // Note: You can customize the default HTML header by copying the generic | ||
4339 | 28 | // /templates/_html_header.inc.php file into the current template folder. | ||
4340 | 29 | // -------------------------------- END OF HEADER -------------------------------- | ||
4341 | 30 | ?> | 22 | ?> |
4342 | 31 | 23 | ||
4343 | 32 | <!-- wrap starts here --> | ||
4344 | 33 | <div id="wrap"> | 24 | <div id="wrap"> |
4345 | 34 | 25 | ||
4346 | 35 | <div id="header"> | 26 | <div id="header"> |
4347 | @@ -111,50 +102,44 @@ | |||
4348 | 111 | 'format' => 'htmlbody', | 102 | 'format' => 'htmlbody', |
4349 | 112 | ) ); | 103 | ) ); |
4350 | 113 | // ------------------------------ END OF REQUEST TITLE ----------------------------- | 104 | // ------------------------------ END OF REQUEST TITLE ----------------------------- |
4379 | 114 | ?> | 105 | |
4380 | 115 | <?php | 106 | // --- --- --- --- --- --- --- --- --- --- --- |
4381 | 116 | // ------------------------- SIDEBAR INCLUDED HERE -------------------------- | 107 | // --- SIDEBAR INCLUDED HERE --- |
4382 | 117 | template_include( '_sidebar.inc.php' ); | 108 | template_include( '_sidebar.inc.php' ); |
4383 | 118 | // Note: You can customize the default BODY footer by copying the | 109 | ?> |
4384 | 119 | // _body_footer.inc.php file into the current template folder. | 110 | |
4385 | 120 | // ----------------------------- END OF SIDEBAR ----------------------------- | 111 | <div id="main"> |
4386 | 121 | ?> | 112 | <?php |
4387 | 122 | 113 | // do we have a featured/intro item to display? | |
4388 | 123 | <div id="main"> | 114 | if( $Item = & get_featured_Item() ) |
4389 | 124 | <?php | 115 | { |
4390 | 125 | // Go Grab the featured post: | 116 | // --- --- --- --- --- --- --- --- --- --- --- |
4391 | 126 | if( $Item = & get_featured_Item() ) | 117 | // --- ITEM BLOCK INCLUDED HERE --- |
4392 | 127 | { // We have a featured/intro post to display: | 118 | template_include( '_item_block.inc.php', array( |
4393 | 128 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 119 | 'feature_block' => true, |
4394 | 129 | template_include( '_item_block.inc.php', array( | 120 | 'content_mode' => 'auto', |
4395 | 130 | 'feature_block' => true, | 121 | 'intro_mode' => 'normal', |
4396 | 131 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 122 | 'item_class' => 'post featured_post', |
4397 | 132 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 123 | 'image_size' => 'fit-400x320', |
4398 | 133 | 'item_class' => 'post featured_post', | 124 | ) ); |
4399 | 134 | 'image_size' => 'fit-400x320', | 125 | } |
4400 | 135 | ) ); | 126 | |
4401 | 136 | // ----------------------------END ITEM BLOCK ---------------------------- | 127 | // --------------------------------- START OF POSTS ------------------------------------- |
4374 | 137 | } | ||
4375 | 138 | ?> | ||
4376 | 139 | |||
4377 | 140 | <?php | ||
4378 | 141 | // --------------------------------- START OF POSTS ------------------------------------- | ||
4402 | 142 | // Display message if no post: | 128 | // Display message if no post: |
4403 | 143 | display_if_empty(); | 129 | display_if_empty(); |
4404 | 144 | 130 | ||
4415 | 145 | while( $Item = & mainlist_get_item() ) | 131 | // do this loop for each item we need to display (aka 'the posts loop') |
4416 | 146 | { // For each blog post: | 132 | while( $Item = & mainlist_get_item() ) |
4417 | 147 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 133 | { |
4418 | 148 | template_include( '_item_block.inc.php', array( | 134 | // --- --- --- --- --- --- --- --- --- --- --- |
4419 | 149 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 135 | // --- ITEM BLOCK INCLUDED HERE --- |
4420 | 150 | 'image_size' => 'fit-400x320', | 136 | template_include( '_item_block.inc.php', array( |
4421 | 151 | ) ); | 137 | 'content_mode' => 'auto', |
4422 | 152 | // ----------------------------END ITEM BLOCK ---------------------------- | 138 | 'image_size' => 'fit-400x320', |
4423 | 153 | } // ---------------------------------- END OF POSTS ------------------------------------ | 139 | ) ); |
4424 | 154 | ?> | 140 | } |
4425 | 155 | 141 | ||
4428 | 156 | <?php | 142 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
4427 | 157 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
4429 | 158 | mainlist_page_links( array( | 143 | mainlist_page_links( array( |
4430 | 159 | 'block_start' => '<p class="center"><strong>', | 144 | 'block_start' => '<p class="center"><strong>', |
4431 | 160 | 'block_end' => '</strong></p>', | 145 | 'block_end' => '</strong></p>', |
4432 | @@ -162,30 +147,26 @@ | |||
4433 | 162 | 'next_text' => '>>', | 147 | 'next_text' => '>>', |
4434 | 163 | ) ); | 148 | ) ); |
4435 | 164 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 149 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
4460 | 165 | ?> | 150 | |
4461 | 166 | 151 | // --- --- --- --- --- --- --- --- --- --- --- | |
4462 | 167 | <?php | 152 | // MAIN CONTENT INCLUDED HERE |
4463 | 168 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 153 | template_include( '$disp$', array( |
4464 | 169 | //template_include( '$disp$', array() ); | 154 | // we already handled these cases above |
4465 | 170 | template_include( '$disp$', array( | 155 | 'disp_posts' => '', |
4466 | 171 | 'disp_posts' => '', // We already handled this case above | 156 | 'disp_single' => '', |
4467 | 172 | 'disp_single' => '', // We already handled this case above | 157 | 'disp_page' => '', |
4468 | 173 | 'disp_page' => '', // We already handled this case above | 158 | ) ); |
4469 | 174 | ) ); | 159 | ?> |
4470 | 175 | // Note: you can customize any of the sub templates included here by | 160 | </div> |
4471 | 176 | // copying the matching php file into your template directory. | 161 | |
4472 | 177 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | 162 | </div> |
4473 | 178 | ?> | 163 | |
4474 | 179 | 164 | </div> | |
4475 | 180 | 165 | ||
4476 | 181 | </div> | 166 | <div id="footer"> |
4477 | 182 | 167 | ||
4478 | 183 | <!-- content-wrap ends here --> | 168 | <div id="footer-content"> |
4479 | 184 | </div></div> | 169 | <?php |
4456 | 185 | |||
4457 | 186 | <!-- footer starts here --> | ||
4458 | 187 | <div id="footer"><div id="footer-content"> | ||
4459 | 188 | <?php | ||
4480 | 189 | // ------------------------- "Footer" CONTAINER EMBEDDED HERE -------------------------- | 170 | // ------------------------- "Footer" CONTAINER EMBEDDED HERE -------------------------- |
4481 | 190 | // Display container and contents: | 171 | // Display container and contents: |
4482 | 191 | template_container( NT_('Footer'), array( | 172 | template_container( NT_('Footer'), array( |
4483 | 192 | 173 | ||
4484 | === modified file 'blogs/templates/terrafirma/_item_block.inc.php' | |||
4485 | --- blogs/templates/terrafirma/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
4486 | +++ blogs/templates/terrafirma/_item_block.inc.php 2010-01-03 09:20:32 +0000 | |||
4487 | @@ -45,21 +45,18 @@ | |||
4488 | 45 | 'before' => '<em class="bPostdate">', | 45 | 'before' => '<em class="bPostdate">', |
4489 | 46 | 'after' => '</em>', | 46 | 'after' => '</em>', |
4490 | 47 | )); | 47 | )); |
4506 | 48 | ?> | 48 | ?> |
4507 | 49 | </div> | 49 | </div> |
4508 | 50 | <h2 class="bTitle"><?php $Item->title(); ?></h2> | 50 | |
4509 | 51 | </div> | 51 | <h2 class="bTitle"><?php $Item->title(); ?></h2> |
4510 | 52 | 52 | </div> | |
4511 | 53 | <?php | 53 | |
4512 | 54 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 54 | <?php |
4513 | 55 | template_include( '_item_content.inc.php', $params ); | 55 | // --- --- --- --- --- --- --- --- --- --- --- |
4514 | 56 | // Note: You can customize the default item feedback by copying the generic | 56 | // --- POST CONTENT INCLUDED HERE --- |
4515 | 57 | // /templates/_item_feedback.inc.php file into the current template folder. | 57 | template_include( '_item_content.inc.php', $params ); |
4516 | 58 | // -------------------------- END OF POST CONTENT ------------------------- | 58 | |
4517 | 59 | ?> | 59 | // List all tags attached to this post: |
4503 | 60 | |||
4504 | 61 | <?php | ||
4505 | 62 | // List all tags attached to this post: | ||
4518 | 63 | $Item->tags( array( | 60 | $Item->tags( array( |
4519 | 64 | 'before' => '<div class="post-tags">'.T_('Tags').': ', | 61 | 'before' => '<div class="post-tags">'.T_('Tags').': ', |
4520 | 65 | 'after' => '</div>', | 62 | 'after' => '</div>', |
4521 | @@ -112,26 +109,20 @@ | |||
4522 | 112 | 'link_title' => '#', | 109 | 'link_title' => '#', |
4523 | 113 | 'use_popup' => false, | 110 | 'use_popup' => false, |
4524 | 114 | ) ); | 111 | ) ); |
4545 | 115 | ?> | 112 | ?> |
4546 | 116 | </li> | 113 | </li> |
4547 | 117 | </ul> | 114 | </ul> |
4528 | 118 | </div> | ||
4529 | 119 | |||
4530 | 120 | <?php | ||
4531 | 121 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
4532 | 122 | template_include( '_item_feedback.inc.php', array( | ||
4533 | 123 | 'before_section_title' => '<h3>', | ||
4534 | 124 | 'after_section_title' => '</h3>', | ||
4535 | 125 | ) ); | ||
4536 | 126 | // Note: You can customize the default item feedback by copying the generic | ||
4537 | 127 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
4538 | 128 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
4539 | 129 | ?> | ||
4540 | 130 | |||
4541 | 131 | <?php | ||
4542 | 132 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
4543 | 133 | ?> | ||
4544 | 134 | |||
4548 | 135 | </div> | 115 | </div> |
4549 | 116 | |||
4550 | 136 | <?php | 117 | <?php |
4551 | 118 | // --- --- --- --- --- --- --- --- --- --- --- | ||
4552 | 119 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
4553 | 120 | template_include( '_item_feedback.inc.php', array( | ||
4554 | 121 | 'before_section_title' => '<h3>', | ||
4555 | 122 | 'after_section_title' => '</h3>', | ||
4556 | 123 | ) ); | ||
4557 | 124 | |||
4558 | 125 | // restore previous (Blog) locale | ||
4559 | 126 | locale_restore_previous(); | ||
4560 | 137 | ?> | 127 | ?> |
4561 | 128 | </div> | ||
4562 | 138 | 129 | ||
4563 | === modified file 'blogs/templates/terrafirma/index.main.php' | |||
4564 | --- blogs/templates/terrafirma/index.main.php 2010-01-02 08:34:34 +0000 | |||
4565 | +++ blogs/templates/terrafirma/index.main.php 2010-01-03 09:20:32 +0000 | |||
4566 | @@ -15,21 +15,13 @@ | |||
4567 | 15 | */ | 15 | */ |
4568 | 16 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 16 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
4569 | 17 | 17 | ||
4570 | 18 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
4571 | 19 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
4572 | 20 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
4573 | 21 | } | ||
4574 | 22 | |||
4575 | 23 | // This is the main template; it may be used to display very different things. | 18 | // This is the main template; it may be used to display very different things. |
4576 | 24 | // Do inits depending on current $disp: | 19 | // Do inits depending on current $disp: |
4577 | 25 | template_init( $disp ); | 20 | template_init( $disp ); |
4578 | 26 | 21 | ||
4581 | 27 | 22 | // --- --- --- --- --- --- --- --- --- --- --- | |
4582 | 28 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 23 | // --- HTML HEADER INCLUDED HERE --- |
4583 | 29 | template_include( '_html_header.inc.php' ); | 24 | template_include( '_html_header.inc.php' ); |
4584 | 30 | // Note: You can customize the default HTML header by copying the generic | ||
4585 | 31 | // /templates/_html_header.inc.php file into the current template folder. | ||
4586 | 32 | // -------------------------------- END OF HEADER -------------------------------- | ||
4587 | 33 | ?> | 25 | ?> |
4588 | 34 | <div id="wrapper"> | 26 | <div id="wrapper"> |
4589 | 35 | <div id="upbg"></div> | 27 | <div id="upbg"></div> |
4590 | @@ -122,42 +114,36 @@ | |||
4591 | 122 | ) ); | 114 | ) ); |
4592 | 123 | } | 115 | } |
4593 | 124 | // ----------------------------- END OF REQUEST TITLE ---------------------------- | 116 | // ----------------------------- END OF REQUEST TITLE ---------------------------- |
4614 | 125 | ?> | 117 | |
4615 | 126 | 118 | // do we have a featured/intro item to display? | |
4616 | 127 | <?php | 119 | if( $Item = & get_featured_Item() ) |
4617 | 128 | // Go Grab the featured post: | 120 | { |
4618 | 129 | if( $Item = & get_featured_Item() ) | 121 | // --- --- --- --- --- --- --- --- --- --- --- |
4619 | 130 | { // We have a featured/intro post to display: | 122 | // --- ITEM BLOCK INCLUDED HERE --- |
4620 | 131 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 123 | template_include( '_item_block.inc.php', array( |
4621 | 132 | template_include( '_item_block.inc.php', array( | 124 | 'feature_block' => true, |
4622 | 133 | 'feature_block' => true, | 125 | 'content_mode' => 'auto', |
4623 | 134 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 126 | 'intro_mode' => 'normal', |
4624 | 135 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 127 | 'item_class' => 'bPost featured_post', |
4625 | 136 | 'item_class' => 'bPost featured_post', | 128 | 'image_size' => 'fit-400x320', |
4626 | 137 | 'image_size' => 'fit-400x320', | 129 | ) ); |
4627 | 138 | ) ); | 130 | } |
4628 | 139 | // ----------------------------END ITEM BLOCK ---------------------------- | 131 | |
4629 | 140 | } | 132 | // --------------------------------- START OF POSTS ------------------------------------- |
4610 | 141 | ?> | ||
4611 | 142 | |||
4612 | 143 | <?php | ||
4613 | 144 | // --------------------------------- START OF POSTS ------------------------------------- | ||
4630 | 145 | // Display message if no post: | 133 | // Display message if no post: |
4631 | 146 | display_if_empty(); | 134 | display_if_empty(); |
4632 | 147 | 135 | ||
4646 | 148 | while( $Item = & mainlist_get_item() ) | 136 | // do this loop for each item we need to display (aka 'the posts loop') |
4647 | 149 | { // For each blog post: | 137 | while( $Item = & mainlist_get_item() ) |
4648 | 150 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 138 | { |
4649 | 151 | template_include( '_item_block.inc.php', array( | 139 | // --- --- --- --- --- --- --- --- --- --- --- |
4650 | 152 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 140 | // --- ITEM BLOCK INCLUDED HERE --- |
4651 | 153 | 'image_size' => 'fit-400x320', | 141 | template_include( '_item_block.inc.php', array( |
4652 | 154 | ) ); | 142 | 'content_mode' => 'auto', |
4653 | 155 | // ----------------------------END ITEM BLOCK ---------------------------- | 143 | 'image_size' => 'fit-400x320', |
4654 | 156 | } // ---------------------------------- END OF POSTS ------------------------------------ | 144 | ) ); |
4655 | 157 | ?> | 145 | } |
4656 | 158 | 146 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | |
4644 | 159 | <?php | ||
4645 | 160 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
4657 | 161 | mainlist_page_links( array( | 147 | mainlist_page_links( array( |
4658 | 162 | 'block_start' => '<p class="center"><strong>', | 148 | 'block_start' => '<p class="center"><strong>', |
4659 | 163 | 'block_end' => '</strong></p>', | 149 | 'block_end' => '</strong></p>', |
4660 | @@ -165,28 +151,20 @@ | |||
4661 | 165 | 'next_text' => '>>', | 151 | 'next_text' => '>>', |
4662 | 166 | ) ); | 152 | ) ); |
4663 | 167 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 153 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
4686 | 168 | ?> | 154 | |
4687 | 169 | 155 | // --- --- --- --- --- --- --- --- --- --- --- | |
4688 | 170 | 156 | // MAIN CONTENT INCLUDED HERE | |
4689 | 171 | <?php | 157 | template_include( '$disp$', array( |
4690 | 172 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 158 | // we already handled these cases above |
4691 | 173 | template_include( '$disp$', array( | 159 | 'disp_posts' => '', |
4692 | 174 | 'disp_posts' => '', // We already handled this case above | 160 | 'disp_single' => '', |
4693 | 175 | 'disp_single' => '', // We already handled this case above | 161 | 'disp_page' => '', |
4694 | 176 | 'disp_page' => '', // We already handled this case above | 162 | ) ); |
4695 | 177 | ) ); | 163 | ?> |
4696 | 178 | // Note: you can customize any of the sub templates included here by | 164 | </div> |
4697 | 179 | // copying the matching php file into your template directory. | 165 | |
4698 | 180 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | 166 | <div class="bSideBar"> |
4699 | 181 | ?> | 167 | <?php |
4678 | 182 | |||
4679 | 183 | </div> | ||
4680 | 184 | |||
4681 | 185 | |||
4682 | 186 | <!-- =================================== START OF SIDEBAR =================================== --> | ||
4683 | 187 | <div class="bSideBar"> | ||
4684 | 188 | |||
4685 | 189 | <?php | ||
4700 | 190 | // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- | 168 | // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- |
4701 | 191 | // Display container contents: | 169 | // Display container contents: |
4702 | 192 | template_container( NT_('Sidebar'), array( | 170 | template_container( NT_('Sidebar'), array( |
4703 | @@ -243,19 +221,17 @@ | |||
4704 | 243 | 'after' => '', | 221 | 'after' => '', |
4705 | 244 | ) ); | 222 | ) ); |
4706 | 245 | ?> | 223 | ?> |
4714 | 246 | </span> | 224 | </span> |
4715 | 247 | 225 | <br />Design: <a href="http://www.nodethirtythree.com">Node33</a> | <a href="http://wpthemepark.com/themes/terrafirma/">Sadish Bala</a> | |
4716 | 248 | <br />Design: <a href="http://www.nodethirtythree.com">Node33</a> | <a href="http://wpthemepark.com/themes/terrafirma/">Sadish Bala</a> | 226 | </p> |
4717 | 249 | 227 | </div> | |
4718 | 250 | </p> | 228 | |
4719 | 251 | </div> | 229 | </div> |
4720 | 252 | </div> | 230 | |
4721 | 253 | </div> | 231 | </div> |
4722 | 254 | 232 | ||
4723 | 255 | <?php | 233 | <?php |
4725 | 256 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 234 | // --- --- --- --- --- --- --- --- --- --- --- |
4726 | 235 | // --- HTML FOOTER INCLUDED HERE --- | ||
4727 | 257 | template_include( '_html_footer.inc.php' ); | 236 | template_include( '_html_footer.inc.php' ); |
4728 | 258 | // Note: You can customize the default HTML footer by copying the | ||
4729 | 259 | // _html_footer.inc.php file into the current template folder. | ||
4730 | 260 | // ------------------------------- END OF FOOTER -------------------------------- | ||
4731 | 261 | ?> | 237 | ?> |
4732 | 262 | \ No newline at end of file | 238 | \ No newline at end of file |
4733 | 263 | 239 | ||
4734 | === modified file 'blogs/templates/vastitude/_item_block.inc.php' | |||
4735 | --- blogs/templates/vastitude/_item_block.inc.php 2010-01-02 08:34:34 +0000 | |||
4736 | +++ blogs/templates/vastitude/_item_block.inc.php 2010-01-03 09:20:32 +0000 | |||
4737 | @@ -70,16 +70,21 @@ | |||
4738 | 70 | 'include_external' => true, | 70 | 'include_external' => true, |
4739 | 71 | 'link_categories' => true, | 71 | 'link_categories' => true, |
4740 | 72 | ) ); | 72 | ) ); |
4751 | 73 | ?> | 73 | ?> |
4752 | 74 | </div> | 74 | </div> |
4753 | 75 | </div><!-- END SMALLHEAD DIV --> | 75 | |
4754 | 76 | </div><!-- END HEAD DIV --> | 76 | </div> |
4755 | 77 | <?php | 77 | |
4756 | 78 | // ---------------------- POST CONTENT INCLUDED HERE ---------------------- | 78 | </div> |
4757 | 79 | template_include( '_item_content.inc.php', $params ); | 79 | |
4758 | 80 | ?> | 80 | <?php |
4759 | 81 | <div class="bSmallPrint"> | 81 | // --- --- --- --- --- --- --- --- --- --- --- |
4760 | 82 | <?php | 82 | // --- POST CONTENT INCLUDED HERE --- |
4761 | 83 | template_include( '_item_content.inc.php', $params ); | ||
4762 | 84 | ?> | ||
4763 | 85 | |||
4764 | 86 | <div class="bSmallPrint"> | ||
4765 | 87 | <?php | ||
4766 | 83 | // List all tags attached to this post: | 88 | // List all tags attached to this post: |
4767 | 84 | $Item->tags( array( | 89 | $Item->tags( array( |
4768 | 85 | 'before' => '<div class="posttags">'.T_('Tags').': ', | 90 | 'before' => '<div class="posttags">'.T_('Tags').': ', |
4769 | @@ -115,23 +120,18 @@ | |||
4770 | 115 | 'before' => ' ', | 120 | 'before' => ' ', |
4771 | 116 | 'after' => '', | 121 | 'after' => '', |
4772 | 117 | ) ); | 122 | ) ); |
4790 | 118 | ?> | 123 | ?> |
4774 | 119 | </div> <!-- END bSmallPrint DIV --> | ||
4775 | 120 | <?php | ||
4776 | 121 | // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ | ||
4777 | 122 | template_include( '_item_feedback.inc.php', array( | ||
4778 | 123 | 'before_section_title' => '<h4>', | ||
4779 | 124 | 'after_section_title' => '</h4>', | ||
4780 | 125 | ) ); | ||
4781 | 126 | // Note: You can customize the default item feedback by copying the generic | ||
4782 | 127 | // /templates/_item_feedback.inc.php file into the current template folder. | ||
4783 | 128 | // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- | ||
4784 | 129 | ?> | ||
4785 | 130 | |||
4786 | 131 | <?php | ||
4787 | 132 | locale_restore_previous(); // Restore previous locale (Blog locale) | ||
4788 | 133 | ?> | ||
4789 | 134 | |||
4791 | 135 | </div> | 124 | </div> |
4792 | 125 | |||
4793 | 136 | <?php | 126 | <?php |
4794 | 127 | // --- --- --- --- --- --- --- --- --- --- --- | ||
4795 | 128 | // --- ITEM FEEDBACK INCLUDED HERE --- | ||
4796 | 129 | template_include( '_item_feedback.inc.php', array( | ||
4797 | 130 | 'before_section_title' => '<h4>', | ||
4798 | 131 | 'after_section_title' => '</h4>', | ||
4799 | 132 | ) ); | ||
4800 | 133 | |||
4801 | 134 | // restore previous (Blog) locale | ||
4802 | 135 | locale_restore_previous(); | ||
4803 | 137 | ?> | 136 | ?> |
4804 | 137 | </div> | ||
4805 | 138 | 138 | ||
4806 | === modified file 'blogs/templates/vastitude/index.main.php' | |||
4807 | --- blogs/templates/vastitude/index.main.php 2010-01-02 08:34:34 +0000 | |||
4808 | +++ blogs/templates/vastitude/index.main.php 2010-01-03 09:20:32 +0000 | |||
4809 | @@ -16,24 +16,15 @@ | |||
4810 | 16 | */ | 16 | */ |
4811 | 17 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); | 17 | if( !defined('QP_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); |
4812 | 18 | 18 | ||
4813 | 19 | if( version_compare( $app_version, '3.0' ) < 0 ) | ||
4814 | 20 | { // Older templates (versions 2.x and above) should work on newer b2evo versions, but newer templates may not work on older b2evo versions. | ||
4815 | 21 | die( 'This template is designed for b2evolution 3.0 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' ); | ||
4816 | 22 | } | ||
4817 | 23 | |||
4818 | 24 | // This is the main template; it may be used to display very different things. | 19 | // This is the main template; it may be used to display very different things. |
4819 | 25 | // Do inits depending on current $disp: | 20 | // Do inits depending on current $disp: |
4820 | 26 | template_init( $disp ); | 21 | template_init( $disp ); |
4821 | 27 | 22 | ||
4824 | 28 | 23 | // --- --- --- --- --- --- --- --- --- --- --- | |
4825 | 29 | // -------------------------- HTML HEADER INCLUDED HERE -------------------------- | 24 | // --- HTML HEADER INCLUDED HERE --- |
4826 | 30 | template_include( '_html_header.inc.php' ); | 25 | template_include( '_html_header.inc.php' ); |
4827 | 31 | // Note: You can customize the default HTML header by copying the generic | ||
4828 | 32 | // /templates/_html_header.inc.php file into the current template folder. | ||
4829 | 33 | // -------------------------------- END OF HEADER -------------------------------- | ||
4830 | 34 | ?> | 26 | ?> |
4831 | 35 | 27 | ||
4832 | 36 | |||
4833 | 37 | <div id="prewrap"> | 28 | <div id="prewrap"> |
4834 | 38 | <?php | 29 | <?php |
4835 | 39 | // ------------------------- "Page Top" CONTAINER EMBEDDED HERE -------------------------- | 30 | // ------------------------- "Page Top" CONTAINER EMBEDDED HERE -------------------------- |
4836 | @@ -122,42 +113,37 @@ | |||
4837 | 122 | 'format' => 'htmlbody', | 113 | 'format' => 'htmlbody', |
4838 | 123 | ) ); | 114 | ) ); |
4839 | 124 | // ----------------------------- END OF REQUEST TITLE ---------------------------- | 115 | // ----------------------------- END OF REQUEST TITLE ---------------------------- |
4860 | 125 | ?> | 116 | |
4861 | 126 | 117 | // do we have a featured/intro item to display? | |
4862 | 127 | <?php | 118 | if( $Item = & get_featured_Item() ) |
4863 | 128 | // Go Grab the featured post: | 119 | { |
4864 | 129 | if( $Item = & get_featured_Item() ) | 120 | // --- --- --- --- --- --- --- --- --- --- --- |
4865 | 130 | { // We have a featured/intro post to display: | 121 | // --- ITEM BLOCK INCLUDED HERE --- |
4866 | 131 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 122 | template_include( '_item_block.inc.php', array( |
4867 | 132 | template_include( '_item_block.inc.php', array( | 123 | 'feature_block' => true, |
4868 | 133 | 'feature_block' => true, | 124 | 'content_mode' => 'auto', |
4869 | 134 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 125 | 'intro_mode' => 'normal', |
4870 | 135 | 'intro_mode' => 'normal', // Intro posts will be displayed in normal mode | 126 | 'item_class' => 'featured_post', |
4871 | 136 | 'item_class' => 'featured_post', | 127 | 'image_size' => 'fit-400x320', |
4872 | 137 | 'image_size' => 'fit-400x320', | 128 | ) ); |
4873 | 138 | ) ); | 129 | } |
4874 | 139 | // ----------------------------END ITEM BLOCK ---------------------------- | 130 | |
4875 | 140 | } | 131 | // --------------------------------- START OF POSTS ------------------------------------- |
4856 | 141 | ?> | ||
4857 | 142 | |||
4858 | 143 | <?php | ||
4859 | 144 | // --------------------------------- START OF POSTS ------------------------------------- | ||
4876 | 145 | // Display message if no post: | 132 | // Display message if no post: |
4877 | 146 | display_if_empty(); | 133 | display_if_empty(); |
4878 | 147 | 134 | ||
4889 | 148 | while( $Item = & mainlist_get_item() ) | 135 | // do this loop for each item we need to display (aka 'the posts loop') |
4890 | 149 | { // For each blog post: | 136 | while( $Item = & mainlist_get_item() ) |
4891 | 150 | // ---------------------- ITEM BLOCK INCLUDED HERE ------------------------ | 137 | { |
4892 | 151 | template_include( '_item_block.inc.php', array( | 138 | // --- --- --- --- --- --- --- --- --- --- --- |
4893 | 152 | 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail | 139 | // --- ITEM BLOCK INCLUDED HERE --- |
4894 | 153 | 'image_size' => 'fit-400x320', | 140 | template_include( '_item_block.inc.php', array( |
4895 | 154 | ) ); | 141 | 'content_mode' => 'auto', |
4896 | 155 | // ----------------------------END ITEM BLOCK ---------------------------- | 142 | 'image_size' => 'fit-400x320', |
4897 | 156 | } // ---------------------------------- END OF POSTS ------------------------------------ | 143 | ) ); |
4898 | 157 | ?> | 144 | } |
4899 | 158 | 145 | ||
4902 | 159 | <?php | 146 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- |
4901 | 160 | // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- | ||
4903 | 161 | mainlist_page_links( array( | 147 | mainlist_page_links( array( |
4904 | 162 | 'block_start' => '<p class="center">', | 148 | 'block_start' => '<p class="center">', |
4905 | 163 | 'block_end' => '</p>', | 149 | 'block_end' => '</p>', |
4906 | @@ -165,26 +151,25 @@ | |||
4907 | 165 | 'next_text' => '>>', | 151 | 'next_text' => '>>', |
4908 | 166 | ) ); | 152 | ) ); |
4909 | 167 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- | 153 | // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- |
4926 | 168 | ?> | 154 | |
4927 | 169 | 155 | // --- --- --- --- --- --- --- --- --- --- --- | |
4928 | 170 | 156 | // MAIN CONTENT INCLUDED HERE | |
4929 | 171 | <?php | 157 | template_include( '$disp$', array( |
4930 | 172 | // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- | 158 | // we already handled these cases above |
4931 | 173 | template_include( '$disp$', array( | 159 | 'disp_posts' => '', |
4932 | 174 | 'disp_posts' => '', // We already handled this case above | 160 | 'disp_single' => '', |
4933 | 175 | 'disp_single' => '', // We already handled this case above | 161 | 'disp_page' => '', |
4934 | 176 | 'disp_page' => '', // We already handled this case above | 162 | ) ); |
4935 | 177 | ) ); | 163 | ?> |
4936 | 178 | // Note: you can customize any of the sub templates included here by | 164 | </div> |
4937 | 179 | // copying the matching php file into your template directory. | 165 | |
4938 | 180 | // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- | 166 | </div> |
4939 | 181 | ?> | 167 | |
4924 | 182 | </div><!-- END text --> | ||
4925 | 183 | </div><!-- END leftside --> | ||
4940 | 184 | <div class="rightside"> | 168 | <div class="rightside"> |
4944 | 185 | <div id="sidebar"> | 169 | |
4945 | 186 | <ul> | 170 | <div id="sidebar"> |
4946 | 187 | <?php | 171 | <ul> |
4947 | 172 | <?php | ||
4948 | 188 | // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) ------------------- | 173 | // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) ------------------- |
4949 | 189 | item_prevnext_links( array( | 174 | item_prevnext_links( array( |
4950 | 190 | 'block_start' => '<li class="prevnext">', | 175 | 'block_start' => '<li class="prevnext">', |
4951 | @@ -256,19 +241,13 @@ | |||
4952 | 256 | ?> | 241 | ?> |
4953 | 257 | 242 | ||
4954 | 258 | <br/>Template by <a href="http://blog.thedarksighed.com/projectblog/" title="Custom template designs">design by Andrew Hreschak</a> | 243 | <br/>Template by <a href="http://blog.thedarksighed.com/projectblog/" title="Custom template designs">design by Andrew Hreschak</a> |
4963 | 259 | 244 | </p> | |
4964 | 260 | </p> | 245 | </div> |
4965 | 261 | 246 | ||
4966 | 262 | </div><!-- END pagefoot --> | 247 | </div> |
4959 | 263 | |||
4960 | 264 | </div><!-- END wrap --> | ||
4961 | 265 | |||
4962 | 266 | |||
4967 | 267 | 248 | ||
4968 | 268 | <?php | 249 | <?php |
4970 | 269 | // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- | 250 | // --- --- --- --- --- --- --- --- --- --- --- |
4971 | 251 | // --- HTML FOOTER INCLUDED HERE --- | ||
4972 | 270 | template_include( '_html_footer.inc.php' ); | 252 | template_include( '_html_footer.inc.php' ); |
4973 | 271 | // Note: You can customize the default HTML footer by copying the | ||
4974 | 272 | // _html_footer.inc.php file into the current template folder. | ||
4975 | 273 | // ------------------------------- END OF FOOTER -------------------------------- | ||
4976 | 274 | ?> | 253 | ?> |
4977 | 275 | \ No newline at end of file | 254 | \ No newline at end of file |
First step of many done. Still guessing at the workflow model :|