PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/b2evolution/pixel/page.main.php

http://laibcomsthemes.googlecode.com/
PHP | 238 lines | 142 code | 33 blank | 63 comment | 2 complexity | d0d9cfd8c7fce5d57d034e7d66a2bebe MD5 | raw file
  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 pixel
 13 *
 14 * @version $Id: page.main.php,v 1.6 2008/04/15 21:53:31 fplanque Exp $
 15 */
 16if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
 17
 18if( version_compare( $app_version, '3.3' ) < 0 )
 19{ // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
 20	die( 'This skin is designed for b2evolution 3.3 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
 21}
 22
 23// This is the main template; it may be used to display very different things.
 24// Do inits depending on current $disp:
 25skin_init( $disp );
 26
 27
 28// -------------------------- HTML HEADER INCLUDED HERE --------------------------
 29skin_include( '_html_header.inc.php' );
 30// Note: You can customize the default HTML header by copying the generic
 31// /skins/_html_header.inc.php file into the current skin folder.
 32// -------------------------------- END OF HEADER --------------------------------
 33?>
 34
 35
 36<?php
 37// ------------------------- BODY HEADER INCLUDED HERE --------------------------
 38skin_include( '_body_header.inc.php' );
 39// Note: You can customize the default BODY header by copying the generic
 40// /skins/_body_footer.inc.php file into the current skin folder.
 41// ------------------------------- END OF HEADER --------------------------------
 42?>
 43
 44<div id="main">
 45
 46	<div id="contentwrapper">
 47
 48	<div id="content">
 49
 50	<?php
 51		// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 52		messages( array(
 53			'block_start' => '<div class="action_messages">',
 54			'block_end'   => '</div> <!-- end of class="action_messages" -->',
 55		) );
 56		// --------------------------------- END OF MESSAGES ---------------------------------
 57	?>
 58
 59
 60	<?php
 61		// Display message if no post:
 62		display_if_empty();
 63
 64		while( $Item = & mainlist_get_item() )
 65		{	// For each blog post, do everything below up to the closing curly brace "}"
 66		?>
 67		<div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
 68
 69			<?php
 70				$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
 71			?>
 72
 73			<h2 class="topTitle"><?php $Item->title(); ?></h2>
 74
 75			<p class="postinfo">
 76			<?php
 77			      	$Item->author( array(
 78						'before'       => T_('by').' ',
 79						'after'        => ' ',
 80					) );
 81				$Item->issue_time( array(
 82						'before'      => /* TRANS: date */ T_('on '),
 83						'after'       => '',
 84						'time_format' => 'M.d, Y'.',',
 85					) );
 86				$Item->categories( array(
 87						'before'          => ''.T_('under '),
 88						'after'           => ' ',
 89						'include_main'    => true,
 90						'include_other'   => true,
 91						'include_external'=> true,
 92						'link_categories' => true,
 93					) );
 94				$Item->edit_link( array( // Link to backoffice for editing
 95						'before'    => ' | ',
 96						'after'     => '',
 97					) );
 98			?>
 99			</p>
100
101			<?php
102				// ---------------------- POST CONTENT INCLUDED HERE ----------------------
103				skin_include( '_item_content.inc.php', array(
104						'image_size'	=>	'fit-400x320',
105					) );
106				// Note: You can customize the default item feedback by copying the generic
107				// /skins/_item_feedback.inc.php file into the current skin folder.
108				// -------------------------- END OF POST CONTENT -------------------------
109			?>
110
111			<span class="topComments">
112			<?php
113				// Link to comments, trackbacks, etc.:
114				$Item->feedback_link( array(
115						'type' => 'feedbacks',
116						'link_before' => '',
117						'link_after' => '',
118						'link_text_zero' => '#',
119						'link_text_one' => '#',
120						'link_text_more' => '#',
121						'link_title' => '#',
122						'use_popup' => false,
123					) );
124			?>
125			</span>
126
127			<?php
128				// List all tags attached to this post:
129				$Item->tags( array(
130						'before' =>         '<span class="posttags">'.T_('<em>:</em>').'',
131						'after' =>          '</span>',
132						'separator' =>      ', ',
133					) );
134			?>
135
136		<div class="postloop">
137		<?php
138			// Display container and contents:
139			skin_container( NT_('Post Loop'), array(
140				// The following (optional) params will be used as defaults for widgets included in this container:
141				// This will enclose each widget in a block:
142				'block_start' => '<li class="$wi_class$">',
143				'block_end' => '</li>',
144				// This will enclose the title of each widget:
145				'block_title_start' => '<h2>',
146				'block_title_end' => '</h2>',
147				// If a widget displays a list, this will enclose that list:
148				'list_start' => '<ul>',
149				'list_end' => '</ul>',
150				// This will enclose each item in a list:
151				'item_start' => '<li>',
152				'item_end' => '</li>',
153				// This will enclose sub-lists in a list:
154				'group_start' => '<ul>',
155				'group_end' => '</ul>',
156				// This will enclose (foot)notes:
157				'notes_start' => '<div class="notes">',
158				'notes_end' => '</div> <!-- end of class="notes" -->',
159			) );
160		?>
161		</div>
162
163			<div class="cleared"></div>
164		</div> <!-- end of id="item_" -->
165
166		<div id="comments">
167		<?php
168			// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
169			skin_include( '_item_feedback.inc.php', array(
170					'before_section_title' => '<h3 id="commentstitle">',
171					'after_section_title'  => '</h3>',
172					'form_title_start' => '<h3 class="comment_form_title">',
173					'form_title_end'  => '</h3>',
174				) );
175			// Note: You can customize the default item feedback by copying the generic
176			// /skins/_item_feedback.inc.php file into the current skin folder.
177			// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
178		?>
179		</div> <!-- end of id="comments" -->
180
181		<?php
182			locale_restore_previous();	// Restore previous locale (Blog locale)
183		}
184	?>
185
186	<?php
187		// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
188		item_prevnext_links( array(
189				'block_start'	=> '<div id="nextprevious">',
190				'prev_start'		=> '<div class="floatleft">',
191				'prev_end'		=> '</div> <!-- end of class="floatleft" -->',
192				'next_start'		=> '<div class="floatright">',
193				'next_end'		=> '</div> <!-- end of class="floatright" -->',
194				'block_end' => '<div class="cleared"></div></div> <!-- end of id="nextprevious" -->',
195			) );
196		// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
197	?>
198
199	</div> <!-- end of id="content" -->
200	</div> <!-- end of id="contentwrapper" -->
201
202
203<?php
204// ------------------------- SIDEBAR INCLUDED HERE --------------------------
205skin_include( '_sidebar_right.inc.php' );
206// Note: You can customize the default BODY footer by copying the
207// _body_footer.inc.php file into the current skin folder.
208// ----------------------------- END OF SIDEBAR -----------------------------
209?>
210
211	<div class="cleared"></div>
212</div> <!-- end of id="main" -->
213
214<?php
215// ------------------------- SIDEBAR INCLUDED HERE --------------------------
216skin_include( '_sidebar_bottom.inc.php' );
217// Note: You can customize the default BODY footer by copying the
218// _body_footer.inc.php file into the current skin folder.
219// ----------------------------- END OF SIDEBAR -----------------------------
220?>
221
222
223<?php
224// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
225skin_include( '_body_footer.inc.php' );
226// Note: You can customize the default BODY footer by copying the
227// _body_footer.inc.php file into the current skin folder.
228// ------------------------------- END OF FOOTER --------------------------------
229?>
230
231
232<?php
233// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
234skin_include( '_html_footer.inc.php' );
235// Note: You can customize the default HTML footer by copying the
236// _html_footer.inc.php file into the current skin folder.
237// ------------------------------- END OF FOOTER --------------------------------
238?>