/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
- <?php
- /**
- * This is the template that displays the item block
- *
- * This file is not meant to be called directly.
- * It is meant to be called by an include in the main.page.php template (or other templates)
- *
- * b2evolution - {@link http://b2evolution.net/}
- * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
- * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
- *
- * @package evoskins
- * @subpackage corporatemag
- */
- if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
- global $Item;
- // Default params:
- $params = array_merge( array(
- 'feature_block' => false,
- 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
- 'item_class' => 'post',
- 'image_size' => 'fit-400x320',
- 'more_link_text' => T_('Read more'),
- ), $params );
- ?>
- <div id="<?php $Item->anchor_id() ?>" class="mini-post odd no-image <?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">
- <?php
- $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
- ?>
- <h3 class="title"><?php $Item->title(); ?></h3>
- <span class="datepost">
- <?php
- if( ! $Item->is_intro() )
- { // Display only if we're not displaying an intro post:
- $Item->issue_time( array(
- 'before' => /* TRANS: date */ T_(''),
- 'after' => '',
- 'time_format' => 'F j, Y'.'',
- ) );
- }
- ?>
- </span>
-
- <div class="entry">
- <?php
- // ---------------------- POST CONTENT INCLUDED HERE ----------------------
- skin_include( '_item_content.inc.php', $params );
- // Note: You can customize the default item feedback by copying the generic
- // /skins/_item_content.inc.php file into the current skin folder.
- // -------------------------- END OF POST CONTENT -------------------------
- ?>
- </div><!-- end of class="entry" -->
- </div><!-- end of class="minipost" -->
- <?php
- locale_restore_previous(); // Restore previous locale (Blog locale)
- ?>