[ 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 zeke 13 * 14 * @version $Id: items.main.php,v 1.4 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 <div id="page"> 40 41 <div id="contentleft"> 42 43 <?php 44 // NOT SUPPORTED YET 45 if( false && isset($MainList) && ! $MainList->is_filtered() ) 46 { 47 ?> 48 49 <div class="featurepost"> 50 51 <h2>Title</h2> 52 53 <p class="postinfo">By author on time in cat | comments | edit </p> 54 55 <div class="entry"> 56 bolo bolo bolo bolo bolo bolo bolo bolo bolo bolo 57 </div> 58 59 </div> 60 <?php 61 } 62 ?> 63 64 65 <?php 66 // ------------------------- SIDEBAR INCLUDED HERE -------------------------- 67 skin_include( '_sidebar_left.inc.php' ); 68 // Note: You can customize the default BODY footer by copying the 69 // _body_footer.inc.php file into the current skin folder. 70 // ----------------------------- END OF SIDEBAR ----------------------------- 71 ?> 72 73 <div id="content"> 74 75 <?php 76 // ------------------------- TITLE FOR THE CURRENT REQUEST ------------------------- 77 request_title( array( 78 'title_before'=> '<h2 class="sectionhead">', 79 'title_after' => '</h2>', 80 'title_none' => '', 81 'glue' => ' - ', 82 'title_single_disp' => true, 83 'format' => 'htmlbody', 84 ) ); 85 // ------------------------------ END OF REQUEST TITLE ----------------------------- 86 ?> 87 88 89 <?php 90 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 91 messages( array( 92 'block_start' => '<div class="action_messages">', 93 'block_end' => '</div>', 94 ) ); 95 // --------------------------------- END OF MESSAGES --------------------------------- 96 ?> 97 98 99 <?php 100 // Display message if no post: 101 display_if_empty(); 102 103 while( $Item = & mainlist_get_item() ) 104 { // For each blog post, do everything below up to the closing curly brace "}" 105 ?> 106 <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> 107 108 <?php 109 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 110 $Item->anchor(); // Anchor for permalinks to refer to. 111 ?> 112 113 <h2><?php $Item->title(); ?></h2> 114 115 <p class="postinfo"> 116 <?php 117 $Item->author( array( 118 'before' => T_('By'), 119 'after' => ' ', 120 ) ); 121 ?> 122 <?php 123 $Item->issue_time( array( 124 'before' => /* TRANS: date */ T_('on '), 125 'after' => '', 126 'time_format' => 'M j, Y', 127 ) ); 128 ?> 129 <?php 130 $Item->categories( array( 131 'before' => ' | '.T_('In '), 132 'after' => ' ', 133 'include_main' => true, 134 'include_other' => true, 135 'include_external'=> true, 136 'link_categories' => true, 137 ) ); 138 ?> 139 <?php 140 // Link to comments, trackbacks, etc.: 141 $Item->feedback_link( array( 142 'type' => 'feedbacks', 143 'link_before' => ' | ', 144 'link_after' => '', 145 'link_text_zero' => '#', 146 'link_text_one' => '#', 147 'link_text_more' => '#', 148 'link_title' => '#', 149 'use_popup' => false, 150 ) ); 151 ?> 152 <?php 153 $Item->edit_link( array( // Link to backoffice for editing 154 'before' => ' | ', 155 'after' => '', 156 ) ); 157 ?> 158 159 <?php 160 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 161 skin_include( '_item_content.inc.php', array( 162 'image_size' => 'fit-400x320', 163 'more_link_text' => T_('Read more'), 164 ) ); 165 // Note: You can customize the default item feedback by copying the generic 166 // /skins/_item_feedback.inc.php file into the current skin folder. 167 // -------------------------- END OF POST CONTENT ------------------------- 168 ?> 169 170 </div> 171 <?php 172 locale_restore_previous(); // Restore previous locale (Blog locale) 173 } 174 ?> 175 176 <?php 177 // -------------------- PREV/NEXT PAGE LINKS (POST LIST MODE) -------------------- 178 mainlist_page_links( array( 179 'block_start' => '<div class="navigation">', 180 'block_end' => '</div>', 181 'prev_text' => '<<', 182 'next_text' => '>>', 183 ) ); 184 // ------------------------- END OF PREV/NEXT PAGE LINKS ------------------------- 185 ?> 186 187 </div> 188 189 </div> 190 191 <?php 192 // ------------------------- SIDEBAR INCLUDED HERE -------------------------- 193 skin_include( '_sidebar_right.inc.php' ); 194 // Note: You can customize the default BODY footer by copying the 195 // _body_footer.inc.php file into the current skin folder. 196 // ----------------------------- END OF SIDEBAR ----------------------------- 197 ?> 198 199 </div> 200 201 <?php 202 // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- 203 skin_include( '_body_footer.inc.php' ); 204 // Note: You can customize the default BODY footer by copying the 205 // _body_footer.inc.php file into the current skin folder. 206 // ------------------------------- END OF FOOTER -------------------------------- 207 ?> 208 209 210 <?php 211 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 212 skin_include( '_html_footer.inc.php' ); 213 // Note: You can customize the default HTML footer by copying the 214 // _html_footer.inc.php file into the current skin folder. 215 // ------------------------------- END OF FOOTER -------------------------------- 216 ?>
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 |
![]() |