[ 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 * The main page template is used to display the blog when no specific page template is available 9 * to handle the request (based on $disp). 10 * 11 * @package evoskins 12 * @subpackage kubrick 13 * 14 * @version $Id: items.main.php,v 1.7 2007/11/03 23:54:38 fplanque Exp $ 15 */ 16 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 17 18 // This is the main template; it may be used to display very different things. 19 // Do inits depending on current $disp: 20 skin_init( $disp ); 21 22 23 // -------------------------- HTML HEADER INCLUDED HERE -------------------------- 24 skin_include( '_html_header.inc.php' ); 25 // Note: You can customize the default HTML header by copying the generic 26 // /skins/_html_header.inc.php file into the current skin folder. 27 // -------------------------------- END OF HEADER -------------------------------- 28 ?> 29 30 31 <?php 32 // ------------------------- BODY HEADER INCLUDED HERE -------------------------- 33 skin_include( '_body_header.inc.php' ); 34 // Note: You can customize the default BODY heder by copying the generic 35 // /skins/_body_footer.inc.php file into the current skin folder. 36 // ------------------------------- END OF FOOTER -------------------------------- 37 ?> 38 39 40 <div id="content" class="narrowcolumn"> 41 42 <?php 43 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 44 messages( array( 45 'block_start' => '<div class="action_messages">', 46 'block_end' => '</div>', 47 ) ); 48 // --------------------------------- END OF MESSAGES --------------------------------- 49 ?> 50 51 <?php 52 // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- 53 request_title( array( 54 'title_before'=> '<h2>', 55 'title_after' => '</h2>', 56 'title_none' => '', 57 'glue' => ' - ', 58 'title_single_disp' => true, 59 'format' => 'htmlbody', 60 ) ); 61 // ------------------------------ END OF REQUEST TITLE ----------------------------- 62 ?> 63 64 <?php 65 // Display message if no post: 66 display_if_empty(); 67 68 while( $Item = & mainlist_get_item() ) 69 { // For each blog post, do everything below up to the closing curly brace "}" 70 ?> 71 <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> 72 73 <?php 74 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 75 $Item->anchor(); // Anchor for permalinks to refer to. 76 ?> 77 78 <h2><?php $Item->title(); ?></h2> 79 <small> 80 <?php 81 $Item->issue_time( array( 82 'time_format' => 'F jS, Y', 83 ) ); 84 ?> 85 </small> 86 87 <?php 88 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 89 skin_include( '_item_content.inc.php', array( 90 'image_size' => 'fit-400x320', 91 ) ); 92 // Note: You can customize the default item feedback by copying the generic 93 // /skins/_item_feedback.inc.php file into the current skin folder. 94 // -------------------------- END OF POST CONTENT ------------------------- 95 ?> 96 97 <p class="postmetadata"> 98 <?php 99 $Item->categories( array( 100 'before' => T_('Posted in').' ', 101 'after' => ' ', 102 'include_main' => true, 103 'include_other' => true, 104 'include_external'=> true, 105 'link_categories' => true, 106 ) ); 107 ?> 108 109 <?php 110 $Item->edit_link( array( // Link to backoffice for editing 111 'before' => ' | ', 112 'after' => '', 113 ) ); 114 ?> 115 116 <?php 117 // Link to comments, trackbacks, etc.: 118 $Item->feedback_link( array( 119 'type' => 'feedbacks', 120 'link_before' => ' | ', 121 'link_after' => '', 122 'link_text_zero' => '#', 123 'link_text_one' => '#', 124 'link_text_more' => '#', 125 'link_title' => '#', 126 'use_popup' => false, 127 ) ); 128 ?> 129 </div> 130 131 <?php 132 locale_restore_previous(); // Restore previous locale (Blog locale) 133 } 134 ?> 135 136 <?php 137 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 138 mainlist_page_links( array( 139 'block_start' => '<div class="navigation">', 140 'block_end' => '</div>', 141 'prev_text' => '<<', 142 'next_text' => '>>', 143 ) ); 144 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 145 ?> 146 147 148 </div> 149 150 151 <?php 152 // ------------------------- SIDEBAR INCLUDED HERE -------------------------- 153 skin_include( '_sidebar.inc.php' ); 154 // Note: You can customize the default BODY footer by copying the 155 // _body_footer.inc.php file into the current skin folder. 156 // ----------------------------- END OF SIDEBAR ----------------------------- 157 ?> 158 159 160 <?php 161 // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- 162 skin_include( '_body_footer.inc.php' ); 163 // Note: You can customize the default BODY footer by copying the 164 // _body_footer.inc.php file into the current skin folder. 165 // ------------------------------- END OF FOOTER -------------------------------- 166 ?> 167 168 169 <?php 170 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 171 skin_include( '_html_footer.inc.php' ); 172 // Note: You can customize the default HTML footer by copying the 173 // _html_footer.inc.php file into the current skin folder. 174 // ------------------------------- END OF FOOTER -------------------------------- 175 ?>
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 |
![]() |