/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. */
  15. if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  16. global $Item;
  17. // Default params:
  18. $params = array_merge( array(
  19. 'feature_block' => false,
  20. 'content_mode' => 'auto', // 'auto' will auto select depending on $disp-detail
  21. 'item_class' => 'post',
  22. 'image_size' => 'fit-400x320',
  23. 'more_link_text' => T_('Read more'),
  24. ), $params );
  25. ?>
  26. <div id="<?php $Item->anchor_id() ?>" class="mini-post odd no-image <?php $Item->div_classes( $params ) ?>" lang="<?php $Item->lang() ?>">
  27. <?php
  28. $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  29. ?>
  30. <h3 class="title"><?php $Item->title(); ?></h3>
  31. <span class="datepost">
  32. <?php
  33. if( ! $Item->is_intro() )
  34. { // Display only if we're not displaying an intro post:
  35. $Item->issue_time( array(
  36. 'before' => /* TRANS: date */ T_(''),
  37. 'after' => '',
  38. 'time_format' => 'F j, Y'.'',
  39. ) );
  40. }
  41. ?>
  42. </span>
  43. <div class="entry">
  44. <?php
  45. // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  46. skin_include( '_item_content.inc.php', $params );
  47. // Note: You can customize the default item feedback by copying the generic
  48. // /skins/_item_content.inc.php file into the current skin folder.
  49. // -------------------------- END OF POST CONTENT -------------------------
  50. ?>
  51. </div><!-- end of class="entry" -->
  52. </div><!-- end of class="minipost" -->
  53. <?php
  54. locale_restore_previous(); // Restore previous locale (Blog locale)
  55. ?>