[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is the main/default page template. 4 * 5 * For a quick explanation of b2evo 2.0 skins, please start here: 6 * {@link http://manual.b2evolution.net/Skins_2.0} 7 * 8 * It is used to display the blog when no specific page template is available to handle the request. 9 * 10 * @package evoskins 11 * @subpackage natural_pink 12 * 13 * @version $Id: index.main.php,v 1.9 2007/11/04 17:55:13 fplanque Exp $ 14 */ 15 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 16 17 // This is the main template; it may be used to display very different things. 18 // Do inits depending on current $disp: 19 skin_init( $disp ); 20 21 22 // -------------------------- HTML HEADER INCLUDED HERE -------------------------- 23 skin_include( '_html_header.inc.php' ); 24 // Note: You can customize the default HTML header by copying the 25 // _html_header.inc.php file into the current skin folder. 26 // -------------------------------- END OF HEADER -------------------------------- 27 ?> 28 29 <div class="wrapper"> 30 <div class="wrapper2"> 31 32 <div class="PageTop"> 33 <?php 34 // Display container and contents: 35 skin_container( NT_('Page Top'), array( 36 // The following params will be used as defaults for widgets included in this container: 37 'block_start' => '<div class="$wi_class$">', 38 'block_end' => '</div>', 39 'block_display_title' => false, 40 'list_start' => '<ul>', 41 'list_end' => '</ul>', 42 'item_start' => '<li>', 43 'item_end' => '</li>', 44 ) ); 45 ?> 46 </div> 47 48 <div class="pageHeader"> 49 <?php 50 // Display container and contents: 51 skin_container( NT_('Header'), array( 52 // The following params will be used as defaults for widgets included in this container: 53 'block_start' => '<div class="$wi_class$">', 54 'block_end' => '</div>', 55 'block_title_start' => '<h1>', 56 'block_title_end' => '</h1>', 57 ) ); 58 ?> 59 60 <div class="top_menu"> 61 <ul> 62 <?php 63 // ------------------------- "Menu" CONTAINER EMBEDDED HERE -------------------------- 64 // Display container and contents: 65 skin_container( NT_('Menu'), array( 66 // The following params will be used as defaults for widgets included in this container: 67 'block_start' => '', 68 'block_end' => '', 69 'block_display_title' => false, 70 'list_start' => '', 71 'list_end' => '', 72 'item_start' => '<li>', 73 'item_end' => '</li>', 74 ) ); 75 // ----------------------------- END OF "Menu" CONTAINER ----------------------------- 76 ?> 77 </ul> 78 </div> 79 </div> 80 81 <div class="bPosts"> 82 83 <?php 84 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 85 messages( array( 86 'block_start' => '<div class="action_messages">', 87 'block_end' => '</div>', 88 ) ); 89 // --------------------------------- END OF MESSAGES --------------------------------- 90 ?> 91 92 <?php 93 // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) ------------------- 94 item_prevnext_links( array( 95 'block_start' => '<table class="prevnext_post"><tr>', 96 'prev_start' => '<td>', 97 'prev_end' => '</td>', 98 'next_start' => '<td class="right">', 99 'next_end' => '</td>', 100 'block_end' => '</tr></table>', 101 ) ); 102 // ------------------------- END OF PREV/NEXT POST LINKS ------------------------- 103 ?> 104 105 <?php 106 // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- 107 request_title( array( 108 'title_before'=> '<h2>', 109 'title_after' => '</h2>', 110 'title_none' => '', 111 'glue' => ' - ', 112 'title_single_disp' => true, 113 'format' => 'htmlbody', 114 ) ); 115 // ------------------------------ END OF REQUEST TITLE ----------------------------- 116 ?> 117 118 <!-- =================================== START OF MAIN AREA =================================== --> 119 120 <?php // ------------------------------------ START OF POSTS ---------------------------------------- 121 // Display message if no post: 122 display_if_empty(); 123 124 while( $Item = & mainlist_get_item() ) 125 { // For each blog post, do everything below up to the closing curly brace "}" 126 ?> 127 128 <?php 129 // ------------------------------ DATE SEPARATOR ------------------------------ 130 $MainList->date_if_changed( array( 131 'before' => '<h2>', 132 'after' => '</h2>', 133 'date_format' => '#', 134 ) ); 135 ?> 136 <div class="bPost" lang="<?php $Item->lang() ?>"> 137 138 <?php 139 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 140 $Item->anchor(); // Anchor for permalinks to refer to. 141 ?> 142 143 <div class="bSmallHead"> 144 <?php 145 $Item->permanent_link( array( 146 'text' => '#icon#', 147 ) ); 148 149 $Item->issue_time( array( 150 'before' => ' ', 151 'after' => ', ', 152 ) ); 153 154 $Item->categories( array( 155 'before' => T_('Categories').': ', 156 'after' => ' ', 157 'include_main' => true, 158 'include_other' => true, 159 'include_external'=> true, 160 'link_categories' => true, 161 ) ); 162 ?> 163 </div> 164 165 <h3 class="bTitle"><?php $Item->title(); ?></h3> 166 167 <?php 168 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 169 skin_include( '_item_content.inc.php', array( 170 'image_size' => 'fit-400x320', 171 ) ); 172 // Note: You can customize the default item feedback by copying the generic 173 // /skins/_item_feedback.inc.php file into the current skin folder. 174 // -------------------------- END OF POST CONTENT ------------------------- 175 ?> 176 177 <div class="bSmallPrint"> 178 <?php 179 $Item->permanent_link(); 180 181 // Link to comments, trackbacks, etc.: 182 $Item->feedback_link( array( 183 'type' => 'comments', 184 'link_before' => ' • ', 185 'link_after' => '', 186 'link_text_zero' => '#', 187 'link_text_one' => '#', 188 'link_text_more' => '#', 189 'link_title' => '#', 190 'use_popup' => false, 191 ) ); 192 193 // Link to comments, trackbacks, etc.: 194 $Item->feedback_link( array( 195 'type' => 'trackbacks', 196 'link_before' => ' • ', 197 'link_after' => '', 198 'link_text_zero' => '#', 199 'link_text_one' => '#', 200 'link_text_more' => '#', 201 'link_title' => '#', 202 'use_popup' => false, 203 ) ); 204 205 $Item->edit_link( array( // Link to backoffice for editing 206 'before' => ' • ', 207 'after' => '', 208 ) ); 209 ?> 210 </div> 211 212 <?php 213 // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ 214 skin_include( '_item_feedback.inc.php', array( 215 'before_section_title' => '<h4>', 216 'after_section_title' => '</h4>', 217 ) ); 218 // Note: You can customize the default item feedback by copying the generic 219 // /skins/_item_feedback.inc.php file into the current skin folder. 220 // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- 221 ?> 222 223 <?php 224 locale_restore_previous(); // Restore previous locale (Blog locale) 225 ?> 226 </div> 227 <div class="separator" ><img src="rsc/img/separator.gif" width="265" height="14" alt="" /></div> 228 <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> 229 230 <?php 231 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 232 mainlist_page_links( array( 233 'block_start' => '<p class="center"><strong>', 234 'block_end' => '</strong></p>', 235 'links_format' => '$prev$ :: $next$', 236 'prev_text' => '<< '.T_('Previous'), 237 'next_text' => T_('Next').' >>', 238 ) ); 239 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 240 ?> 241 242 243 <?php 244 // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- 245 skin_include( '$disp$', array( 246 'disp_posts' => '', // We already handled this case above 247 'disp_single' => '', // We already handled this case above 248 'disp_page' => '', // We already handled this case above 249 ) ); 250 // Note: you can customize any of the sub templates included here by 251 // copying the matching php file into your skin directory. 252 // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- 253 ?> 254 255 </div> 256 <!-- =================================== START OF SIDEBAR =================================== --> 257 258 <div class="bSideBar"> 259 260 <?php 261 // Display container contents: 262 skin_container( NT_('Sidebar'), array( 263 // The following (optional) params will be used as defaults for widgets included in this container: 264 // This will enclose each widget in a block: 265 'block_start' => '<div class="bSideItem $wi_class$">', 266 'block_end' => '</div>', 267 // This will enclose the title of each widget: 268 'block_title_start' => '<h3>', 269 'block_title_end' => '</h3>', 270 // If a widget displays a list, this will enclose that list: 271 'list_start' => '<ul>', 272 'list_end' => '</ul>', 273 // This will enclose each item in a list: 274 'item_start' => '<li>', 275 'item_end' => '</li>', 276 // This will enclose sub-lists in a list: 277 'group_start' => '<ul>', 278 'group_end' => '</ul>', 279 ) ); 280 ?> 281 282 <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> 283 284 </div> 285 286 <div class="clear"><img src="<?php echo $rsc_url; ?>img/blank.gif" width="1" height="1" alt="" /></div> 287 288 <?php 289 // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- 290 skin_include( '_body_footer.inc.php' ); 291 // Note: You can customize the default BODY footer by copying the 292 // _body_footer.inc.php file into the current skin folder. 293 // ------------------------------- END OF FOOTER -------------------------------- 294 ?> 295 296 </div> 297 </div> 298 299 <?php 300 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 301 skin_include( '_html_footer.inc.php' ); 302 // Note: You can customize the default HTML footer by copying the 303 // _html_footer.inc.php file into the current skin folder. 304 // ------------------------------- END OF FOOTER -------------------------------- 305 ?>
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 |
![]() |