| [ 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: single.main.php,v 1.6 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 add_headline( <<<HEREDOC 25 <style type="text/css" media="screen"> 26 #page { background: url("img/kubrickbgwide.jpg") repeat-y top; } 27 </style> 28 HEREDOC 29 ); 30 skin_include( '_html_header.inc.php' ); 31 // Note: You can customize the default HTML header by copying the generic 32 // /skins/_html_header.inc.php file into the current skin folder. 33 // -------------------------------- END OF HEADER -------------------------------- 34 ?> 35 36 37 <?php 38 // ------------------------- BODY HEADER INCLUDED HERE -------------------------- 39 skin_include( '_body_header.inc.php' ); 40 // Note: You can customize the default BODY heder by copying the generic 41 // /skins/_body_footer.inc.php file into the current skin folder. 42 // ------------------------------- END OF FOOTER -------------------------------- 43 ?> 44 45 46 <div id="content" class="widecolumn"> 47 48 49 <?php 50 // ------------------------- MESSAGES GENERATED FROM ACTIONS ------------------------- 51 messages( array( 52 'block_start' => '<div class="action_messages">', 53 'block_end' => '</div>', 54 ) ); 55 // --------------------------------- END OF MESSAGES --------------------------------- 56 ?> 57 58 59 <?php 60 // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) ------------------- 61 item_prevnext_links( array( 62 'block_start' => '<table class="prevnext_post"><tr>', 63 'prev_start' => '<td>', 64 'prev_end' => '</td>', 65 'next_start' => '<td class="right">', 66 'next_end' => '</td>', 67 'block_end' => '</tr></table>', 68 ) ); 69 // ------------------------- END OF PREV/NEXT POST LINKS ------------------------- 70 ?> 71 72 73 <?php 74 // Display message if no post: 75 display_if_empty(); 76 77 while( $Item = & mainlist_get_item() ) 78 { // For each blog post, do everything below up to the closing curly brace "}" 79 ?> 80 81 <?php 82 $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs) 83 $Item->anchor(); // Anchor for permalinks to refer to. 84 ?> 85 86 <div class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>"> 87 88 <h2><?php $Item->title(); ?></h2> 89 90 <?php 91 // ---------------------- POST CONTENT INCLUDED HERE ---------------------- 92 skin_include( '_item_content.inc.php', array( 93 'image_size' => 'fit-400x320', 94 ) ); 95 // Note: You can customize the default item feedback by copying the generic 96 // /skins/_item_feedback.inc.php file into the current skin folder. 97 // -------------------------- END OF POST CONTENT ------------------------- 98 ?> 99 100 <p class="postmetadata alt"> 101 <small> 102 <?php 103 $Item->issue_time( array( 104 'before' => /* TRANS: date */ T_('This entry was posted on '), 105 'time_format' => 'F jS, Y', 106 ) ); 107 ?> 108 <?php 109 $Item->issue_time( array( 110 'before' => /* TRANS: time */ T_('at '), 111 ) ); 112 ?> 113 <?php 114 $Item->categories( array( 115 'before' => ' '.T_('and is filed under').' ', 116 'after' => ' ', 117 'include_main' => true, 118 'include_other' => true, 119 'include_external'=> true, 120 'link_categories' => true, 121 ) ); 122 ?> 123 <!-- You can follow any responses to this entry through the RSS feed. --> 124 <?php 125 $Item->edit_link( array( // Link to backoffice for editing 126 'before' => '', 127 'after' => '', 128 ) ); 129 ?> 130 </small> 131 </p> 132 133 </div> 134 135 136 <?php 137 // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------ 138 skin_include( '_item_feedback.inc.php', array( 139 'before_section_title' => '<h3>', 140 'after_section_title' => '</h3>', 141 ) ); 142 // Note: You can customize the default item feedback by copying the generic 143 // /skins/_item_feedback.inc.php file into the current skin folder. 144 // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) --------------------- 145 ?> 146 147 <?php 148 locale_restore_previous(); // Restore previous locale (Blog locale) 149 } 150 ?> 151 152 </div> 153 154 155 <?php 156 // ------------------------- BODY FOOTER INCLUDED HERE -------------------------- 157 skin_include( '_body_footer.inc.php' ); 158 // Note: You can customize the default BODY footer by copying the 159 // _body_footer.inc.php file into the current skin folder. 160 // ------------------------------- END OF FOOTER -------------------------------- 161 ?> 162 163 164 <?php 165 // ------------------------- HTML FOOTER INCLUDED HERE -------------------------- 166 skin_include( '_html_footer.inc.php' ); 167 // Note: You can customize the default HTML footer by copying the 168 // _html_footer.inc.php file into the current skin folder. 169 // ------------------------------- END OF FOOTER -------------------------------- 170 ?>
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 |
|