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