[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is the main/default page template for the "custom" skin. 4 * 5 * This skin only uses one single template which includes most of its features. 6 * It will also rely on default includes for specific dispays (like the comment form). 7 * 8 * For a quick explanation of b2evo 2.0 skins, please start here: 9 * {@link http://manual.b2evolution.net/Skins_2.0} 10 * 11 * The main page template is used to display the blog when no specific page template is available 12 * to handle the request (based on $disp). 13 * 14 * @package evoskins 15 * @subpackage custom 16 * 17 * @version $Id: index.main.php,v 1.9 2007/11/03 23:54:39 fplanque Exp $ 18 */ 19 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 20 21 // This is the main template; it may be used to display very different things. 22 // Do inits depending on current $disp: 23 skin_init( $disp ); 24 25 26 // -------------------------- HTML HEADER INCLUDED HERE -------------------------- 27 skin_include( '_html_header.inc.php' ); 28 // Note: You can customize the default HTML header by copying the generic 29 // /skins/_html_header.inc.php file into the current skin folder. 30 // -------------------------------- END OF HEADER -------------------------------- 31 ?> 32 33 34 <div id="wrapper"> 35 36 <div class="PageTop"> 37 <?php 38 // ------------------------- "Page Top" CONTAINER EMBEDDED HERE -------------------------- 39 // Display container and contents: 40 skin_container( NT_('Page Top'), array( 41 // The following params will be used as defaults for widgets included in this container: 42 'block_start' => '<div class="$wi_class$">', 43 'block_end' => '</div>', 44 'block_display_title' => false, 45 'list_start' => '<ul>', 46 'list_end' => '</ul>', 47 'item_start' => '<li>', 48 'item_end' => '</li>', 49 ) ); 50 // ----------------------------- END OF "Page Top" CONTAINER ----------------------------- 51 ?> 52 </div> 53 54 <div class="pageHeader"> 55 <?php 56 // ------------------------- "Header" CONTAINER EMBEDDED HERE -------------------------- 57 // Display container and contents: 58 skin_container( NT_('Header'), array( 59 // The following params will be used as defaults for widgets included in this container: 60 'block_start' => '<div class="$wi_class$">', 61 'block_end' => '</div>', 62 'block_title_start' => '<h1>', 63 'block_title_end' => '</h1>', 64 ) ); 65 // ----------------------------- END OF "Header" CONTAINER ----------------------------- 66 ?> 67 </div> 68 69 <div class="top_menu"> 70 <ul> 71 <?php 72 // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- 73 // Display container and contents: 74 // Note: this container is designed to be a single <ul> list 75 skin_container( NT_('Menu'), array( 76 // The following params will be used as defaults for widgets included in this container: 77 'block_start' => '', 78 'block_end' => '', 79 'block_display_title' => false, 80 'list_start' => '', 81 'list_end' => '', 82 'item_start' => '<li>', 83 'item_end' => '</li>', 84 ) ); 85 // ----------------------------- END OF "Menu" CONTAINER ----------------------------- 86 ?> 87 </ul> 88 89 </div> 90 91 92 <!-- =================================== START OF MAIN AREA =================================== --> 93 <div class="bPosts"> 94 95 <?php 96 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 97 messages( array( 98 'block_start' => '<div class="action_messages">', 99 'block_end' => '</div>', 100 ) ); 101 // --------------------------------- END OF MESSAGES --------------------------------- 102 ?> 103 104 <?php 105 // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) ------------------- 106 item_prevnext_links( array( 107 'block_start' => '<table class="prevnext_post"><tr>', 108 'prev_start' => '<td>', 109 'prev_end' => '</td>', 110 'next_start' => '<td class="right">', 111 'next_end' => '</td>', 112 'block_end' => '</tr></table>', 113 ) ); 114 // ------------------------- END OF PREV/NEXT POST LINKS ------------------------- 115 ?> 116 117 <?php 118 // ------------------------ TITLE FOR THE CURRENT REQUEST ------------------------ 119 request_title( array( 120 'title_before'=> '<h2>', 121 'title_after' => '</h2>', 122 'title_none' => '', 123 'glue' => ' - ', 124 'title_single_disp' => true, 125 'format' => 'htmlbody', 126 ) ); 127 // ----------------------------- END OF REQUEST TITLE ---------------------------- 128 ?> 129 130 <?php 131 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 132 mainlist_page_links( array( 133 'block_start' => '<p class="center">'.T_('Pages:').' <strong>', 134 'block_end' => '</strong></p>', 135 ) ); 136 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 137 ?> 138 139 140 <?php 141 // --------------------------------- START OF POSTS ------------------------------------- 142 // Display message if no post: 143 display_if_empty(); 144 145 while( $Item = & mainlist_get_item() ) 146 { // For each blog post, do everything below up to the closing curly brace "}" 147 ?> 148 149 <?php 150 // ------------------------------ DATE SEPARATOR ------------------------------ 151 $MainList->date_if_changed( array( 152 'before' => '<h2>', 153 'after' => '</h2>', 154 'date_format' => '#', 155 ) ); 156 ?> 157 158 <div class="bPost bPost<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> 159 160 <?php 161 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 162 $Item->anchor(); // Anchor for permalinks to refer to. 163 ?> 164 165 <div class="bSmallHead"> 166 <?php 167 // Permalink: 168 $Item->permanent_link( array( 169 'text' => '#icon#', 170 ) ); 171 172 $Item->issue_time( array( 173 'before' => ' ', 174 'after' => '', 175 )); 176 177 $Item->author( array( 178 'before' => ', '.T_('by').' <strong>', 179 'after' => '</strong>', 180 ) ); 181 182 $Item->msgform_link(); 183 echo ', '; 184 185 $Item->wordcount(); 186 echo ' '.T_('words'); 187 // echo ', '; 188 // $Item->views(); 189 190 $Item->locale_flag( array( 191 'before' => ' ', 192 'after' => '', 193 ) ); 194 ?> 195 196 <br /> 197 198 <?php 199 $Item->categories( array( 200 'before' => T_('Categories').': ', 201 'after' => ' ', 202 'include_main' => true, 203 'include_other' => true, 204 'include_external'=> true, 205 'link_categories' => true, 206 ) ); 207 ?> 208 </div> 209 210 <h3 class="bTitle"><?php $Item->title(); ?></h3> 211 212 <?php 213 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 214 skin_include( '_item_content.inc.php', array( 215 'image_size' => 'fit-400x320', 216 ) ); 217 // Note: You can customize the default item feedback by copying the generic 218 // /skins/_item_feedback.inc.php file into the current skin folder. 219 // -------------------------- END OF POST CONTENT ------------------------- 220 ?> 221 222 <?php 223 // List all tags attached to this post: 224 $Item->tags( array( 225 'before' => '<div class="bSmallPrint">'.T_('Tags').': ', 226 'after' => '</div>', 227 'separator' => ', ', 228 ) ); 229 ?> 230 231 <div class="bSmallPrint"> 232 <?php 233 // Permalink: 234 $Item->permanent_link( array( 235 'class' => 'permalink_right', 236 ) ); 237 238 // Link to comments, trackbacks, etc.: 239 $Item->feedback_link( array( 240 'type' => 'comments', 241 'link_before' => '', 242 'link_after' => '', 243 'link_text_zero' => '#', 244 'link_text_one' => '#', 245 'link_text_more' => '#', 246 'link_title' => '#', 247 'use_popup' => false, 248 ) ); 249 250 // Link to comments, trackbacks, etc.: 251 $Item->feedback_link( array( 252 'type' => 'trackbacks', 253 'link_before' => ' • ', 254 'link_after' => '', 255 'link_text_zero' => '#', 256 'link_text_one' => '#', 257 'link_text_more' => '#', 258 'link_title' => '#', 259 'use_popup' => false, 260 ) ); 261 262 $Item->edit_link( array( // Link to backoffice for editing 263 'before' => ' • ', 264 'after' => '', 265 ) ); 266 ?> 267 </div> 268 269 <?php 270 // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ 271 skin_include( '_item_feedback.inc.php', array( 272 'before_section_title' => '<h4>', 273 'after_section_title' => '</h4>', 274 ) ); 275 // Note: You can customize the default item feedback by copying the generic 276 // /skins/_item_feedback.inc.php file into the current skin folder. 277 // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- 278 ?> 279 280 <?php 281 locale_restore_previous(); // Restore previous locale (Blog locale) 282 ?> 283 </div> 284 <?php 285 } // ---------------------------------- END OF POSTS ------------------------------------ 286 ?> 287 288 <?php 289 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 290 mainlist_page_links( array( 291 'block_start' => '<p class="center"><strong>', 292 'block_end' => '</strong></p>', 293 'prev_text' => '<<', 294 'next_text' => '>>', 295 ) ); 296 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 297 ?> 298 299 300 <?php 301 // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- 302 skin_include( '$disp$', array( 303 'disp_posts' => '', // We already handled this case above 304 'disp_single' => '', // We already handled this case above 305 'disp_page' => '', // We already handled this case above 306 ) ); 307 // Note: you can customize any of the sub templates included here by 308 // copying the matching php file into your skin directory. 309 // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- 310 ?> 311 312 </div> 313 314 315 <!-- =================================== START OF SIDEBAR =================================== --> 316 <div class="bSideBar"> 317 318 <?php 319 // ------------------------- "Sidebar" CONTAINER EMBEDDED HERE -------------------------- 320 // Display container contents: 321 skin_container( NT_('Sidebar'), array( 322 // The following (optional) params will be used as defaults for widgets included in this container: 323 // This will enclose each widget in a block: 324 'block_start' => '<div class="bSideItem $wi_class$">', 325 'block_end' => '</div>', 326 // This will enclose the title of each widget: 327 'block_title_start' => '<h3>', 328 'block_title_end' => '</h3>', 329 // If a widget displays a list, this will enclose that list: 330 'list_start' => '<ul>', 331 'list_end' => '</ul>', 332 // This will enclose each item in a list: 333 'item_start' => '<li>', 334 'item_end' => '</li>', 335 // This will enclose sub-lists in a list: 336 'group_start' => '<ul>', 337 'group_end' => '</ul>', 338 // This will enclose (foot)notes: 339 'notes_start' => '<div class="notes">', 340 'notes_end' => '</div>', 341 ) ); 342 // ----------------------------- END OF "Sidebar" CONTAINER ----------------------------- 343 ?> 344 345 <p class="center"><!-- Please help us promote b2evolution and leave this link on your blog. --><a href="http://b2evolution.net/" title="b2evolution: next generation blog software"><img src="../../rsc/img/powered-by-b2evolution-120t.gif" alt="powered by b2evolution free blog software" title="b2evolution: next generation blog software" width="120" height="32" border="0" /></a></p> 346 347 </div> 348 349 350 <!-- =================================== START OF FOOTER =================================== --> 351 <div id="pageFooter"> 352 <?php 353 // Display container and contents: 354 skin_container( NT_("Footer"), array( 355 // The following params will be used as defaults for widgets included in this container: 356 ) ); 357 // Note: Double quotes have been used around "Footer" only for test purposes. 358 ?> 359 <p class="baseline"> 360 <?php 361 // Display a link to contact the owner of this blog (if owner accepts messages): 362 $Blog->contact_link( array( 363 'before' => '', 364 'after' => ' • ', 365 'text' => T_('Contact'), 366 'title' => T_('Send a message to the owner of this blog...'), 367 ) ); 368 ?> 369 <?php display_param_link( $skin_links ) ?> design by <?php display_param_link( $francois_links ) ?> / <?php display_param_link( $skinfaktory_links ) ?> 370 • 371 <?php 372 // Display additional credits (see /conf/): 373 // If you can add your own credits without removing the defaults, you'll be very cool :)) 374 // Please leave this at the bottom of the page to make sure your blog gets listed on b2evolution.net 375 credits( array( 376 'list_start' => T_('Credits').': ', 377 'list_end' => ' ', 378 'separator' => '|', 379 'item_start' => ' ', 380 'item_end' => ' ', 381 ) ); 382 ?> 383 </p> 384 </div> 385 </div> 386 387 388 <?php 389 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 390 skin_include( '_html_footer.inc.php' ); 391 // Note: You can customize the default HTML footer by copying the 392 // _html_footer.inc.php file into the current skin folder. 393 // ------------------------------- END OF FOOTER -------------------------------- 394 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |