| [ 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: single.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 // ------------------------- SIDEBAR INCLUDED HERE -------------------------- 45 skin_include( '_sidebar_left.inc.php' ); 46 // Note: You can customize the default BODY footer by copying the 47 // _body_footer.inc.php file into the current skin folder. 48 // ----------------------------- END OF SIDEBAR ----------------------------- 49 ?> 50 51 <div id="content"> 52 53 <?php 54 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 55 messages( array( 56 'block_start' => '<div class="action_messages">', 57 'block_end' => '</div>', 58 ) ); 59 // --------------------------------- END OF MESSAGES --------------------------------- 60 ?> 61 62 63 <?php 64 // Display message if no post: 65 display_if_empty(); 66 67 while( $Item = & mainlist_get_item() ) 68 { // For each blog post, do everything below up to the closing curly brace "}" 69 ?> 70 <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> 71 72 <?php 73 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 74 $Item->anchor(); // Anchor for permalinks to refer to. 75 ?> 76 77 <h2><?php $Item->title(); ?></h2> 78 79 <p class="postinfo"> 80 <?php 81 $Item->author( array( 82 'before' => T_('By'), 83 'after' => ' ', 84 ) ); 85 ?> 86 <?php 87 $Item->issue_time( array( 88 'before' => /* TRANS: date */ T_('on '), 89 'after' => '', 90 'time_format' => 'M j, Y', 91 ) ); 92 ?> 93 <?php 94 $Item->categories( array( 95 'before' => ' | '.T_('In '), 96 'after' => ' ', 97 'include_main' => true, 98 'include_other' => true, 99 'include_external'=> true, 100 'link_categories' => true, 101 ) ); 102 ?> 103 <?php 104 // Link to comments, trackbacks, etc.: 105 $Item->feedback_link( array( 106 'type' => 'feedbacks', 107 'link_before' => ' | ', 108 'link_after' => '', 109 'link_text_zero' => '#', 110 'link_text_one' => '#', 111 'link_text_more' => '#', 112 'link_title' => '#', 113 'use_popup' => false, 114 ) ); 115 ?> 116 <?php 117 $Item->edit_link( array( // Link to backoffice for editing 118 'before' => ' | ', 119 'after' => '', 120 ) ); 121 ?> 122 123 <?php 124 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 125 skin_include( '_item_content.inc.php', array( 126 'image_size' => 'fit-400x320', 127 ) ); 128 // Note: You can customize the default item feedback by copying the generic 129 // /skins/_item_feedback.inc.php file into the current skin folder. 130 // -------------------------- END OF POST CONTENT ------------------------- 131 ?> 132 133 </div> 134 135 <?php 136 // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ 137 skin_include( '_item_feedback.inc.php', array( 138 'before_section_title' => '<h3 class="feedback_section">', 139 'after_section_title' => '</h3>', 140 'form_title_start' => '<h3 class="comment_form_title">', 141 'form_title_end' => '</h3>', 142 ) ); 143 // Note: You can customize the default item feedback by copying the generic 144 // /skins/_item_feedback.inc.php file into the current skin folder. 145 // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- 146 ?> 147 148 <?php 149 locale_restore_previous(); // Restore previous locale (Blog locale) 150 } 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 </div> 167 168 </div> 169 170 <?php 171 // ------------------------- SIDEBAR INCLUDED HERE -------------------------- 172 skin_include( '_sidebar_right.inc.php' ); 173 // Note: You can customize the default BODY footer by copying the 174 // _body_footer.inc.php file into the current skin folder. 175 // ----------------------------- END OF SIDEBAR ----------------------------- 176 ?> 177 178 </div> 179 180 <?php 181 // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- 182 skin_include( '_body_footer.inc.php' ); 183 // Note: You can customize the default BODY footer by copying the 184 // _body_footer.inc.php file into the current skin folder. 185 // ------------------------------- END OF FOOTER -------------------------------- 186 ?> 187 188 189 <?php 190 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 191 skin_include( '_html_footer.inc.php' ); 192 // Note: You can customize the default HTML footer by copying the 193 // _html_footer.inc.php file into the current skin folder. 194 // ------------------------------- END OF FOOTER -------------------------------- 195 ?>
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 |
|