[ 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: page.main.php,v 1.3 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 71 <?php 72 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 73 $Item->anchor(); // Anchor for permalinks to refer to. 74 ?> 75 76 <h2 class="sectionhead" lang="<?php $Item->lang() ?>"> 77 <?php 78 $Item->edit_link( array( // Link to backoffice for editing 79 'before' => '', 80 'after' => '', 81 'class' => 'floatright', 82 ) ); 83 ?> 84 <?php $Item->title(); ?> 85 </h2> 86 87 <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> 88 89 <?php 90 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 91 skin_include( '_item_content.inc.php', array( 92 'image_size' => 'fit-400x320', 93 ) ); 94 // Note: You can customize the default item feedback by copying the generic 95 // /skins/_item_feedback.inc.php file into the current skin folder. 96 // -------------------------- END OF POST CONTENT ------------------------- 97 ?> 98 99 </div> 100 101 <?php 102 // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ 103 skin_include( '_item_feedback.inc.php', array( 104 'before_section_title' => '<h3 class="feedback_section">', 105 'after_section_title' => '</h3>', 106 'form_title_start' => '<h3 class="comment_form_title">', 107 'form_title_end' => '</h3>', 108 ) ); 109 // Note: You can customize the default item feedback by copying the generic 110 // /skins/_item_feedback.inc.php file into the current skin folder. 111 // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- 112 ?> 113 114 <?php 115 locale_restore_previous(); // Restore previous locale (Blog locale) 116 } 117 ?> 118 119 </div> 120 121 </div> 122 123 <?php 124 // ------------------------- SIDEBAR INCLUDED HERE -------------------------- 125 skin_include( '_sidebar_right.inc.php' ); 126 // Note: You can customize the default BODY footer by copying the 127 // _body_footer.inc.php file into the current skin folder. 128 // ----------------------------- END OF SIDEBAR ----------------------------- 129 ?> 130 131 </div> 132 133 <?php 134 // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- 135 skin_include( '_body_footer.inc.php' ); 136 // Note: You can customize the default BODY footer by copying the 137 // _body_footer.inc.php file into the current skin folder. 138 // ------------------------------- END OF FOOTER -------------------------------- 139 ?> 140 141 142 <?php 143 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 144 skin_include( '_html_footer.inc.php' ); 145 // Note: You can customize the default HTML footer by copying the 146 // _html_footer.inc.php file into the current skin folder. 147 // ------------------------------- END OF FOOTER -------------------------------- 148 ?>
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 |
![]() |