[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This file will display a blog, WITHOUT using skins. 4 * 5 * This file will set some display parameters and then display the blog in a template. 6 * 7 * Note: You only need to use this file for advanced use/customization of b2evolution. 8 * Most of the time, calling your blog through index.php with a skin will be enough. 9 * You should try to customize a skin before thrying to use this fle. 10 * 11 * Same display without using skins: a_stub.php 12 * 13 * b2evolution - {@link http://b2evolution.net/} 14 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html} 15 * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} 16 * 17 * @package evoskins 18 * @subpackage noskin 19 */ 20 21 # First, select which blog you want to display here! 22 # You can find these numbers in the back-office under the Blogs section. 23 # You can also create new blogs over there. If you do, you may duplicate this file for the new blog. 24 $blog = 1; 25 26 # Tell b2evolution you don't want to use evoSkins for this template: 27 $skin = ''; 28 29 # This setting retricts posts to those published, thus hiding drafts. 30 # You should not have to change this. 31 $show_statuses = array(); 32 33 # Here you can set a limit before which posts will be ignored 34 # You can use a unix timestamp value or 'now' which will hide all posts in the past 35 $timestamp_min = ''; 36 37 # Here you can set a limit after which posts will be ignored 38 # You can use a unix timestamp value or 'now' which will hide all posts in the future 39 $timestamp_max = 'now'; 40 41 # Additionnaly, you can set other values (see URL params in the manual)... 42 # $order = 'ASC'; // This for example would display the blog in chronological order... 43 44 /** 45 * Let b2evolution handle the query string and load the blog data: 46 */ 47 require_once dirname(__FILE__).'/conf/_config.php'; 48 49 require $inc_path.'_blog_main.inc.php'; 50 51 // Make sure includes will check in the current folder! 52 $ads_current_skin_path = dirname(__FILE__).'/'; 53 54 55 # Now, below you'll find the main template... 56 57 58 // This is the main template; it may be used to display very different things. 59 // Do inits depending on current $disp: 60 skin_init( $disp ); 61 62 header( 'Content-type: text/html; charset='.$io_charset ); 63 ?> 64 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 65 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>"><!-- InstanceBegin template="/Templates/Standard.dwt" codeOutsideHTMLIsLocked="false" --> 66 <head> 67 <!-- InstanceBeginEditable name="doctitle" --> 68 <title><?php 69 // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- 70 request_title( array( 71 'auto_pilot' => 'seo_title', 72 ) ); 73 // ------------------------------ END OF REQUEST TITLE ----------------------------- 74 ?></title> 75 <!-- InstanceEndEditable --> 76 <link rel="stylesheet" href="rsc/css/fp02.css" type="text/css" /> 77 <!-- InstanceBeginEditable name="head" --> 78 <?php skin_content_meta(); /* Charset for static pages */ ?> 79 <?php $Plugins->trigger_event( 'SkinBeginHtmlHead' ); ?> 80 <?php skin_base_tag(); /* You're not using any skin here but this won't hurt. However it will be very helpfull to have this here when you make the switch to a skin! */ ?> 81 <meta name="description" content="<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" /> 82 <meta name="keywords" content="<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>" /> 83 <meta name="generator" content="b2evolution <?php echo $app_version ?>" /> <!-- Please leave this for stats --> 84 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" /> 85 <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp( 'atom_url', 'raw' ) ?>" /> 86 <?php include_headlines() /* Add javascript and css files included by plugins and skin */ ?> 87 <!-- InstanceEndEditable --> 88 </head> 89 <body> 90 <!-- InstanceBeginEditable name="ToolBar" --> 91 <?php 92 // ---------------------------- TOOLBAR INCLUDED HERE ---------------------------- 93 require $skins_path.'_toolbar.inc.php'; 94 // ------------------------------- END OF TOOLBAR -------------------------------- 95 ?> 96 <!-- InstanceEndEditable --> 97 98 99 <div class="pageHeader"> 100 <div class="pageHeaderContent"> 101 102 <!-- InstanceBeginEditable name="NavBar2" --> 103 <?php 104 // --------------------------------- START OF BLOG LIST -------------------------------- 105 skin_widget( array( 106 // CODE for the widget: 107 'widget' => 'colls_list_public', 108 // Optional display params 109 'block_start' => '<div class="NavBar">', 110 'block_end' => '</div>', 111 'block_display_title' => false, 112 'list_start' => '', 113 'list_end' => '', 114 'item_start' => '', 115 'item_end' => '', 116 'item_selected_start' => '', 117 'item_selected_end' => '', 118 'link_selected_class' => 'NavButton2', 119 'link_default_class' => 'NavButton2', 120 ) ); 121 // ---------------------------------- END OF BLOG LIST --------------------------------- 122 ?> 123 <!-- InstanceEndEditable --> 124 125 <div class="NavBar"> 126 <div class="pageTitle"> 127 <h1 id="pageTitle"><!-- InstanceBeginEditable name="PageTitle" --><?php $Blog->disp( 'name', 'htmlbody' ) ?><!-- InstanceEndEditable --></h1> 128 </div> 129 </div> 130 131 <div class="pageHeaderEnd"></div> 132 133 </div> 134 </div> 135 136 137 <div class="pageSubTitle"><!-- InstanceBeginEditable name="SubTitle" --><?php $Blog->disp( 'tagline', 'htmlbody' ) ?><!-- InstanceEndEditable --></div> 138 139 140 <div class="main"><!-- InstanceBeginEditable name="Main" --> 141 142 <div class="bPosts"> 143 144 <?php 145 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 146 messages( array( 147 'block_start' => '<div class="action_messages">', 148 'block_end' => '</div>', 149 ) ); 150 // --------------------------------- END OF MESSAGES --------------------------------- 151 ?> 152 153 <?php 154 // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) ------------------- 155 item_prevnext_links( array( 156 'block_start' => '<table class="prevnext_post"><tr>', 157 'prev_start' => '<td>', 158 'prev_end' => '</td>', 159 'next_start' => '<td class="right">', 160 'next_end' => '</td>', 161 'block_end' => '</tr></table>', 162 ) ); 163 // ------------------------- END OF PREV/NEXT POST LINKS ------------------------- 164 ?> 165 166 <?php 167 // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- 168 request_title( array( 169 'title_before'=> '<h2>', 170 'title_after' => '</h2>', 171 'title_none' => '', 172 'glue' => ' - ', 173 'title_single_disp' => true, 174 'format' => 'htmlbody', 175 ) ); 176 // ------------------------------ END OF REQUEST TITLE ----------------------------- 177 ?> 178 179 <?php 180 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 181 mainlist_page_links( array( 182 'block_start' => '<p class="center"><strong>', 183 'block_end' => '</strong></p>', 184 ) ); 185 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 186 ?> 187 188 189 <!-- =================================== START OF MAIN AREA =================================== --> 190 191 <?php // ------------------------------------ START OF POSTS ---------------------------------------- 192 // Display message if no post: 193 display_if_empty(); 194 195 while( $Item = & mainlist_get_item() ) 196 { // For each blog post, do everything below up to the closing curly brace "}" 197 ?> 198 199 <?php 200 // ------------------------------ DATE SEPARATOR ------------------------------ 201 $MainList->date_if_changed( array( 202 'before' => '<h2>', 203 'after' => '</h2>', 204 'date_format' => '#', 205 ) ); 206 ?> 207 <div class="bPost" lang="<?php $Item->lang() ?>"> 208 <?php $Item->anchor(); ?> 209 <div class="bSmallHead"> 210 <?php 211 $Item->permanent_link( array( 212 'text' => '#icon#', 213 ) ); 214 ?> 215 <?php 216 $Item->issue_time(); // Post issue time 217 ?> 218 <?php 219 $Item->categories( array( 220 'before' => ', '.T_('Categories').': ', 221 'after' => ' ', 222 'include_main' => true, 223 'include_other' => true, 224 'include_external'=> true, 225 'link_categories' => true, 226 ) ); 227 ?> 228 </div> 229 <h3 class="bTitle"><?php $Item->title(); ?></h3> 230 231 <?php 232 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 233 skin_include( '_item_content.inc.php', array( 234 'image_size' => 'fit-400x320', 235 ) ); 236 // Note: You can customize the default item feedback by copying the generic 237 // /skins/_item_feedback.inc.php file into the current skin folder. 238 // -------------------------- END OF POST CONTENT ------------------------- 239 ?> 240 241 <?php 242 // List all tags attached to this post: 243 $Item->tags( array( 244 'before' => '<div class="bSmallPrint">'.T_('Tags').': ', 245 'after' => '</div>', 246 'separator' => ', ', 247 ) ); 248 ?> 249 250 <div class="bSmallPrint"> 251 <?php 252 // Link to comments, trackbacks, etc.: 253 $Item->feedback_link( array( 254 'type' => 'comments', 255 'link_before' => '', 256 'link_after' => ' • ', 257 'link_text_zero' => '#', 258 'link_text_one' => '#', 259 'link_text_more' => '#', 260 'link_title' => '#', 261 'use_popup' => false, 262 ) ); 263 ?> 264 <?php 265 // Link to comments, trackbacks, etc.: 266 $Item->feedback_link( array( 267 'type' => 'trackbacks', 268 'link_before' => '', 269 'link_after' => ' • ', 270 'link_text_zero' => '#', 271 'link_text_one' => '#', 272 'link_text_more' => '#', 273 'link_title' => '#', 274 'use_popup' => false, 275 ) ); 276 ?> 277 278 <?php $Item->permanent_link(); ?> 279 </div> 280 <?php 281 // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ 282 skin_include( '_item_feedback.inc.php', array( 283 'before_section_title' => '<h4>', 284 'after_section_title' => '</h4>', 285 ) ); 286 // Note: You can customize the default item feedback by copying the generic 287 // /skins/_item_feedback.inc.php file into the current skin folder. 288 // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- 289 ?> 290 </div> 291 <?php } // ---------------------------------- END OF POSTS ------------------------------------ ?> 292 293 <?php 294 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 295 mainlist_page_links( array( 296 'block_start' => '<p class="center"><strong>', 297 'block_end' => '</strong></p>', 298 'prev_text' => '<<', 299 'next_text' => '>>', 300 ) ); 301 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 302 ?> 303 304 305 <?php 306 // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) -------------- 307 skin_include( '$disp$', array( 308 'disp_posts' => '', // We already handled this case above 309 'disp_single' => '', // We already handled this case above 310 'disp_page' => '', // We already handled this case above 311 ) ); 312 // Note: you can customize any of the sub templates included here by 313 // copying the matching php file into your skin directory. 314 // ------------------------- END OF MAIN CONTENT TEMPLATE --------------------------- 315 ?> 316 317 </div> 318 319 <!-- =================================== START OF SIDEBAR =================================== --> 320 321 <div class="bSideBar"> 322 323 <div class="bSideItem"> 324 325 <h3><?php 326 // BLOG TITLE: 327 $Blog->disp( 'name', 'htmlbody' ); 328 // Note: we could have called the coll_title widget instead, but that would be overkill. 329 ?></h3> 330 331 <p><?php 332 // BLOG LONG DESCRIPTION: 333 $Blog->disp( 'longdesc', 'htmlbody' ); 334 // Note: we could have called the coll_longdesc widget instead, but that would be overkill. 335 ?></p> 336 337 <?php 338 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 339 mainlist_page_links( array( 340 'block_start' => '<p class="center"><strong>', 341 'block_end' => '</strong></p>', 342 'links_format' => '$prev$ :: $next$', 343 'prev_text' => '<< '.T_('Previous'), 344 'next_text' => T_('Next').' >>', 345 ) ); 346 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 347 ?> 348 349 <?php 350 // --------------------------------- START OF COMMON LINKS -------------------------------- 351 // Call the coll_common_links widget: 352 skin_widget( array( 353 // CODE for the widget: 354 'widget' => 'coll_common_links', 355 // Optional display params: 356 'show_recently' => true, 357 'show_archives' => true, 358 'show_categories' => false, 359 'show_latestcomments' => false, 360 'list_start' => '<ul>', 361 'list_end' => '</ul>', 362 'item_start' => '<li>', 363 'item_end' => '</li>', 364 ) ); 365 // ---------------------------------- END OF COMMON LINKS --------------------------------- 366 ?> 367 368 <?php 369 // ------------------------------- START OF CALENDAR --------------------------------- 370 // Call the Calendar plugin (if installed): 371 $Plugins->call_by_code( 'evo_Calr', array( // Params follow: 372 'block_start' => '', 373 'block_end' => '', 374 'displaycaption' => true, 375 'linktomontharchive' => false, 376 ) ); 377 // -------------------------------- END OF CALENDAR ---------------------------------- 378 ?> 379 </div> 380 381 <?php 382 // --------------------------------- START OF SEARCH FORM -------------------------------- 383 // Call the coll_search_form widget: 384 skin_widget( array( 385 // CODE for the widget: 386 'widget' => 'coll_search_form', 387 // Optional display params: 388 'block_start' => '<div class="bSideItem">', 389 'block_end' => '</div>', 390 'block_title_start' => '<h3 class="sideItemTitle">', 391 'block_title_end' => '</h3>', 392 ) ); 393 // ---------------------------------- END OF SEARCH FORM --------------------------------- 394 ?> 395 396 <?php 397 // --------------------------------- START OF CATEGORY LIST -------------------------------- 398 skin_widget( array( 399 // CODE for the widget: 400 'widget' => 'coll_category_list', 401 // Optional display params 402 'block_start' => '<div class="bSideItem">', 403 'block_end' => '</div>', 404 'block_title_start' => '<h3 class="sideItemTitle">', 405 'block_title_end' => '</h3>', 406 ) ); 407 // ---------------------------------- END OF CATEGORY LIST --------------------------------- 408 ?> 409 410 <?php 411 // -------------------------- ARCHIVES INSERTED HERE ----------------------------- 412 $Plugins->call_by_code( 'evo_Arch', array( 413 'block_start' => '<div class="bSideItem">', 414 'block_end' => '</div>', 415 'block_title_start' => '<h3>', 416 'block_title_end' => '</h3>', 417 ) ); 418 // ------------------------------ END OF ARCHIVES -------------------------------- 419 ?> 420 421 <?php 422 // --------------------------------- START OF LINKBLOG -------------------------------- 423 // Call the coll_search_form widget: 424 skin_widget( array( 425 // CODE for the widget: 426 'widget' => 'linkblog', 427 // Optional display params: 428 'block_start' => '<div class="bSideItem">', 429 'block_end' => '</div>', 430 'block_title_start' => '<h3 class="sideItemTitle">', 431 'block_title_end' => '</h3>', 432 ) ); 433 // ---------------------------------- END OF LINKBLOG --------------------------------- 434 ?> 435 436 <?php 437 // --------------------------------- START OF USER TOOLS -------------------------------- 438 skin_widget( array( 439 // CODE for the widget: 440 'widget' => 'user_tools', 441 // Optional display params 442 'block_start' => '<div class="bSideItem">', 443 'block_end' => '</div>', 444 'block_title_start' => '<h3 class="sideItemTitle">', 445 'block_title_end' => '</h3>', 446 ) ); 447 // ---------------------------------- END OF USER TOOLS --------------------------------- 448 ?> 449 450 <?php 451 // --------------------------------- START OF XML FEEDS -------------------------------- 452 skin_widget( array( 453 // CODE for the widget: 454 'widget' => 'coll_xml_feeds', 455 // Optional display params 456 'block_start' => '<div class="bSideItem">', 457 'block_end' => '</div>', 458 'block_title_start' => '<h3 class="sideItemTitle">', 459 'block_title_end' => '</h3>', 460 ) ); 461 // ---------------------------------- END OF XML FEEDS --------------------------------- 462 ?> 463 464 <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> 465 466 </div> 467 <!-- InstanceEndEditable --></div> 468 <table cellspacing="3" class="wide"> 469 <tr> 470 <td class="cartouche">Original page design by <a href="http://fplanque.net/">François PLANQUE</a> </td> 471 472 <td class="cartouche" align="right"> <a href="http://b2evolution.net/" title="b2evolution home"><img src="rsc/img/b2evolution_button.png" alt="b2evolution" width="80" height="15" class="middle" /></a></td> 473 </tr> 474 </table> 475 <!-- InstanceBeginEditable name="Baseline" --> 476 <?php 477 $Hit->log(); // log the hit on this page 478 debug_info(); // output debug info if requested 479 ?> 480 <!-- InstanceEndEditable --> 481 </body> 482 <!-- InstanceEnd --></html>
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 |
![]() |