PageRenderTime 255ms CodeModel.GetById 131ms app.highlight 7ms RepoModel.GetById 114ms app.codeStats 0ms

/b2evolution/firebug/page.main.php

http://laibcomsthemes.googlecode.com/
PHP | 235 lines | 139 code | 33 blank | 63 comment | 2 complexity | 362a390d01d48ce6013f1961e46cc72e 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 firebug
 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="content">
 47
 48		<div class="space"></div>
 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><?php $Item->title(); ?></h2>
 74
 75			<p class="postinfo">
 76			<?php
 77				$Item->issue_time( array(
 78						'before'      => /* TRANS: date */ '',
 79						'after'       => ' / ',
 80						'time_format' => 'F jS, Y'.'',
 81					) );
 82				// Link to comments, trackbacks, etc.:
 83				$Item->feedback_link( array(
 84						'type' => 'feedbacks',
 85						'link_before' => '',
 86						'link_after' => '',
 87						'link_text_zero' => '#',
 88						'link_text_one' => '#',
 89						'link_text_more' => '#',
 90						'link_title' => '#',
 91						'use_popup' => false,
 92					) );
 93      				$Item->author( array(
 94						'before'       => ' / '.T_('by').' ',
 95						'after'        => ' ',
 96					) );
 97			?>
 98			</p>
 99
100			<?php
101				// ---------------------- POST CONTENT INCLUDED HERE ----------------------
102				skin_include( '_item_content.inc.php', array(
103						'image_size'	=>	'fit-400x320',
104					) );
105				// Note: You can customize the default item feedback by copying the generic
106				// /skins/_item_feedback.inc.php file into the current skin folder.
107				// -------------------------- END OF POST CONTENT -------------------------
108			?>
109
110			<?php
111				// ------------------------- SIDEBAR INCLUDED HERE --------------------------
112				skin_include( '_socialbar.inc.php' );
113				// Note: You can customize the default BODY footer by copying the
114				// _body_footer.inc.php file into the current skin folder.
115				// ----------------------------- END OF SIDEBAR -----------------------------
116			?>
117
118			<p class="postmetadata">
119			<?php
120				$Item->categories( array(
121						'before'          => ''.T_('Posted in: '),
122						'after'           => ' ',
123						'include_main'    => true,
124						'include_other'   => true,
125						'include_external'=> true,
126						'link_categories' => true,
127					) );
128				$Item->edit_link( array( // Link to backoffice for editing
129						'before'    => ' | ',
130						'after'     => '',
131					) );
132			?>
133			</p>
134
135			<?php
136				// List all tags attached to this post:
137				$Item->tags( array(
138						'before' =>         '<p class="tags">'.T_('Tags: ').'',
139						'after' =>          '</p>',
140						'separator' =>      ', ',
141					) );
142			?>
143
144		<?php
145			// Display container and contents:
146			skin_container( NT_('Post Loop'), array(
147				// The following (optional) params will be used as defaults for widgets included in this container:
148				// This will enclose each widget in a block:
149				'block_start' => '<li class="$wi_class$">',
150				'block_end' => '</li>',
151				// This will enclose the title of each widget:
152				'block_title_start' => '<h3>',
153				'block_title_end' => '</h3>',
154				// If a widget displays a list, this will enclose that list:
155				'list_start' => '<ul>',
156				'list_end' => '</ul>',
157				// This will enclose each item in a list:
158				'item_start' => '<li>',
159				'item_end' => '</li>',
160				// This will enclose sub-lists in a list:
161				'group_start' => '<ul>',
162				'group_end' => '</ul>',
163				// This will enclose (foot)notes:
164				'notes_start' => '<div class="notes">',
165				'notes_end' => '</div> <!-- end of class="notes" -->',
166			) );
167		?>
168
169			<div class="space"></div>
170		</div> <!-- end of id="item_" -->
171
172		<?php
173			// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
174			skin_include( '_item_feedback.inc.php', array(
175					'before_section_title' => '<h3 id="comments">',
176					'after_section_title'  => '</h3>',
177					'form_title_start' => '<h3 class="comment_form_title">',
178					'form_title_end'  => '</h3>',
179				) );
180			// Note: You can customize the default item feedback by copying the generic
181			// /skins/_item_feedback.inc.php file into the current skin folder.
182			// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
183		?>
184
185		<?php
186			locale_restore_previous();	// Restore previous locale (Blog locale)
187		}
188	?>
189
190	<div class="space"></div>
191	<?php
192		// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
193		item_prevnext_links( array(
194				'block_start'	=> '<div id="navigation">',
195				'prev_start'		=> '<div class="floatleft">',
196				'prev_end'		=> '</div> <!-- end of class="floatleft" -->',
197				'next_start'		=> '<div class="floatright">',
198				'next_end'		=> '</div> <!-- end of class="floatright" -->',
199				'block_end' => '</div> <!-- end of id="navigation" -->',
200			) );
201		// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
202	?>
203
204			</div> <!-- end of id="content" -->
205
206		</div> <!-- end of id="main" -->
207
208
209<?php
210// ------------------------- SIDEBAR INCLUDED HERE --------------------------
211skin_include( '_sidebar_right.inc.php' );
212// Note: You can customize the default BODY footer by copying the
213// _body_footer.inc.php file into the current skin folder.
214// ----------------------------- END OF SIDEBAR -----------------------------
215?>
216
217		<div class="clear"></div>
218
219<?php
220// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
221skin_include( '_body_footer.inc.php' );
222// Note: You can customize the default BODY footer by copying the
223// _body_footer.inc.php file into the current skin folder.
224// ------------------------------- END OF FOOTER --------------------------------
225?>
226
227	</div> <!-- end of id="wrapper" -->
228
229<?php
230// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
231skin_include( '_html_footer.inc.php' );
232// Note: You can customize the default HTML footer by copying the
233// _html_footer.inc.php file into the current skin folder.
234// ------------------------------- END OF FOOTER --------------------------------
235?>