PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/b2evolution/corporatemag/_item_block.inc.php

http://laibcomsthemes.googlecode.com/
PHP | 62 lines | 37 code | 7 blank | 18 comment | 2 complexity | b77f69dff6dac2ba879dcaea3ad3ed2a MD5 | raw file
 1<?php
 2/**
 3 * This is the template that displays the item block
 4 *
 5 * This file is not meant to be called directly.
 6 * It is meant to be called by an include in the main.page.php template (or other templates)
 7 *
 8 * b2evolution - {@link http://b2evolution.net/}
 9 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
10 * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
11 *
12 * @package evoskins
13 * @subpackage corporatemag
14 */
15if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
16
17global $Item;
18
19// Default params:
20$params = array_merge( array(
21		'feature_block'   => false,
22		'content_mode'    => 'auto',		// 'auto' will auto select depending on $disp-detail
23		'item_class'      => 'post',
24		'image_size'	    => 'fit-400x320',
25		'more_link_text'  => T_('Read more'),
26	), $params );
27
28?>
29<div id="<?php $Item->anchor_id() ?>" class="mini-post odd no-image <?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">
30
31	<?php
32		$Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
33	?>
34
35	<h3 class="title"><?php $Item->title(); ?></h3>
36	<span class="datepost">
37		<?php
38		if( ! $Item->is_intro() )
39		{	// Display only if we're not displaying an intro post:
40			$Item->issue_time( array(
41				'before'      => /* TRANS: date */ T_(''),
42				'after'       => '',
43				'time_format' => 'F j, Y'.'',
44			) );
45		}
46		?>
47	</span>
48			
49	<div class="entry">
50		<?php
51			// ---------------------- POST CONTENT INCLUDED HERE ----------------------
52			skin_include( '_item_content.inc.php', $params );
53			// Note: You can customize the default item feedback by copying the generic
54			// /skins/_item_content.inc.php file into the current skin folder.
55			// -------------------------- END OF POST CONTENT -------------------------
56		?>
57	</div><!-- end of class="entry" -->
58</div><!-- end of class="minipost" -->
59
60<?php
61locale_restore_previous();	// Restore previous locale (Blog locale)
62?>