PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/b2evolution/firebug/_item_block.inc.php

http://laibcomsthemes.googlecode.com/
PHP | 118 lines | 82 code | 12 blank | 24 comment | 3 complexity | 7c4d28e2a8e8a832dd2ddcdd8c0083c3 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 firebug
 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="<?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			<h2><?php $Item->title(); ?></h2>
 36
 37			<p class="postinfo">
 38			<?php
 39			if( ! $Item->is_intro() )
 40			{	// Display only if we're not displaying an intro post:
 41				$Item->issue_time( array(
 42						'before'      => /* TRANS: date */ '',
 43						'after'       => ' / ',
 44						'time_format' => 'F jS, Y'.'',
 45					) );
 46				// Link to comments, trackbacks, etc.:
 47				$Item->feedback_link( array(
 48						'type' => 'feedbacks',
 49						'link_before' => '',
 50						'link_after' => '',
 51						'link_text_zero' => '#',
 52						'link_text_one' => '#',
 53						'link_text_more' => '#',
 54						'link_title' => '#',
 55						'use_popup' => false,
 56					) );
 57      				$Item->author( array(
 58						'before'       => ' / '.T_('by').' ',
 59						'after'        => ' ',
 60					) );
 61			}
 62			?>
 63			</p>
 64
 65			<?php
 66				// ---------------------- POST CONTENT INCLUDED HERE ----------------------
 67				skin_include( '_item_content.inc.php', array(
 68						'image_size'     => 'fit-400x320',
 69						'more_link_text' => ''.T_('Read more&#8230;').'',
 70					) );
 71				// Note: You can customize the default item feedback by copying the generic
 72				// /skins/_item_feedback.inc.php file into the current skin folder.
 73				// -------------------------- END OF POST CONTENT -------------------------
 74			?>
 75
 76			<?php
 77			if( ! $Item->is_intro() )
 78			{	// Display only if we're not displaying an intro post:
 79
 80				// ------------------------- SIDEBAR INCLUDED HERE --------------------------
 81				skin_include( '_socialbar.inc.php' );
 82				// Note: You can customize the default BODY footer by copying the
 83				// _body_footer.inc.php file into the current skin folder.
 84				// ----------------------------- END OF SIDEBAR -----------------------------
 85			}
 86			?>
 87
 88			<p class="postmetadata">
 89			<?php
 90				$Item->categories( array(
 91						'before'          => ''.T_('Posted in: '),
 92						'after'           => ' ',
 93						'include_main'    => true,
 94						'include_other'   => true,
 95						'include_external'=> true,
 96						'link_categories' => true,
 97					) );
 98				$Item->edit_link( array( // Link to backoffice for editing
 99						'before'    => ' | ',
100						'after'     => '',
101					) );
102			?>
103			</p>
104
105			<?php
106				// List all tags attached to this post:
107				$Item->tags( array(
108						'before' =>         '<p class="tags">'.T_('Tags: ').'',
109						'after' =>          '</p>',
110						'separator' =>      ', ',
111					) );
112			?>
113
114			<div class="space"></div>
115		</div>
116		<?php
117		locale_restore_previous();	// Restore previous locale (Blog locale)
118		?>