PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/b2evolution/corporatemag/single.main.php

http://laibcomsthemes.googlecode.com/
PHP | 232 lines | 147 code | 23 blank | 62 comment | 2 complexity | ea3598e37ee5d3c7dfb1aa7efa36eba8 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 corporatemag
 13 *
 14 * @version $Id: single.main.php,v 1.10 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="container">
 45	<div id="content">
 46		<?php
 47			// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 48			messages( array(
 49				'block_start' => '<div class="action_messages">',
 50				'block_end'   => '</div> <!-- end of class="action_messages" -->',
 51			) );
 52			// --------------------------------- END OF MESSAGES ---------------------------------
 53		?>
 54
 55	<?php
 56		// Display message if no post:
 57		display_if_empty();
 58
 59		while( $Item = & mainlist_get_item() )
 60		{	// For each blog post, do everything below up to the closing curly brace "}"
 61		?>
 62		<div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
 63
 64			<?php
 65				$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
 66			?>
 67
 68			<h3 class="title"><?php $Item->title(); ?></h3>
 69
 70			<div class="meta">
 71			<?php
 72				$Item->author( array(
 73					'before'       => T_('<span class="text">By</span> '),' ',
 74					'after'        => ' ',
 75				) );
 76				$Item->issue_time( array(
 77					'before'      => /* TRANS: date */ T_('<span class="text">on</span> '),
 78					'after'       => ' ',
 79					'time_format' => 'F j, Y'.'',
 80				) );
 81				$Item->edit_link( array( // Link to backoffice for editing
 82					'before'    => ' <span class="separator">|</span> <span class="edit">',
 83					'after'     => '</span> ',
 84				) );
 85			?>
 86			</div><!-- end of class="meta" -->
 87
 88			<div class="entry">
 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			</div><!-- end of class="entry" -->
 99			
100			<p class="entry-meta post-meta-data">
101				<span class="categories">
102					<?php
103						$Item->categories( array(
104							'before'          => T_('<span class="text">Posted in '),
105							'after'           => '</span> ',
106							'include_main'    => true,
107							'include_other'   => true,
108							'include_external'=> true,
109							'link_categories' => true,
110						) );
111					?>
112				</span>
113				<?php
114					// Link to comments, trackbacks, etc.:
115					$Item->feedback_link( array(
116						'type' => 'feedbacks',
117						'link_before' => ' <span class="separator">|</span> <span class="comments-link">',
118						'link_after' => '</span>',
119						'link_text_zero' => '#',
120						'link_text_one' => '#',
121						'link_text_more' => '#',
122						'link_title' => '#',
123						'use_popup' => false,
124					) );
125				?>
126				<br/>
127				<span class="categories">
128					<?php
129						// List all tags attached to this post:
130						$Item->tags( array(
131							'before' =>         '<span class="text">'.T_('Tags').': ',
132							'after' =>          '</span>',
133							'separator' =>      ', ',
134						) );
135					?>
136				</span>
137			</p>
138
139		<?php
140			// Display container and contents:
141			skin_container( NT_('Post Loop'), array(
142				// The following (optional) params will be used as defaults for widgets included in this container:
143				// This will enclose each widget in a block:
144				'block_start' => '<li id="$wi_ID$" class="widget $wi_class$">',
145				'block_end' => '</li>',
146				//
147				'block_display_title' => true,
148				// This will enclose the title of each widget:
149				'block_title_start' => '<h4 class="widget-title">',
150				'block_title_end' => '</h4>',
151				// This will enclose the content of the widget:
152				'block_content_start' => '<div class="widget-content">',
153				'block_content_end' => '</div> <!-- end of class="widget-content" -->',
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				//
161				'link_default_class' => 'default',
162				// This will enclose sub-lists in a list:
163				'group_start' => '<ul>',
164				'group_end' => '</ul>',
165				// This will enclose (foot)notes:
166				'notes_start' => '<div class="notes">',
167				'notes_end' => '</div> <!-- end of class="notes" -->',
168			) );
169		?>
170
171			<div class="space"></div>
172		</div>
173
174		<br/>
175		<?php
176			// ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
177			skin_include( '_item_feedback.inc.php', array(
178					'before_section_title' => '<h3 id="comments">',
179					'after_section_title'  => '</h3>',
180					'form_title_start' => '<h3 class="comment_form_title">',
181					'form_title_end'  => '</h3>',
182				) );
183			// Note: You can customize the default item feedback by copying the generic
184			// /skins/_item_feedback.inc.php file into the current skin folder.
185			// ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
186		?>
187
188		<?php
189			locale_restore_previous();	// Restore previous locale (Blog locale)
190		}
191	?>
192
193	<br/><br/>
194	<div class="space"></div>
195	<?php
196		// ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
197		item_prevnext_links( array(
198				'block_start'	=> '<div id="post-nav">',
199				'prev_start'		=> '<div id="nav-prev-post">',
200				'prev_end'		=> '</div>',
201				'next_start'		=> '<div id="nav-next-post">',
202				'next_end'		=> '</div>',
203				'block_end' => '<div class="clear"></div></div> <!-- end of id="post-nav" -->',
204			) );
205		// ------------------------- END OF PREV/NEXT POST LINKS -------------------------
206	?>
207
208	</div> <!-- end of id="content" -->
209
210<?php
211// ------------------------- SIDEBAR INCLUDED HERE --------------------------
212skin_include( '_sidebar_right.inc.php' );
213// Note: You can customize the default BODY footer by copying the
214// _body_footer.inc.php file into the current skin folder.
215// ----------------------------- END OF SIDEBAR -----------------------------
216?>
217
218<?php
219// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
220skin_include( '_body_footer.inc.php' );
221// Note: You can customize the default BODY footer by copying the
222// _body_footer.inc.php file into the current skin folder.
223// ------------------------------- END OF FOOTER --------------------------------
224?>
225
226<?php
227// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
228skin_include( '_html_footer.inc.php' );
229// Note: You can customize the default HTML footer by copying the
230// _html_footer.inc.php file into the current skin folder.
231// ------------------------------- END OF FOOTER --------------------------------
232?>