/b2evolution/firebug/page.main.php

http://laibcomsthemes.googlecode.com/ · PHP · 235 lines · 139 code · 33 blank · 63 comment · 2 complexity · 362a390d01d48ce6013f1961e46cc72e MD5 · raw file

  1. <?php
  2. /**
  3. * This is the main/default page template.
  4. *
  5. * For a quick explanation of b2evo 2.0 skins, please start here:
  6. * {@link http://manual.b2evolution.net/Skins_2.0}
  7. *
  8. * The main page template is used to display the blog when no specific page template is available
  9. * to handle the request (based on $disp).
  10. *
  11. * @package evoskins
  12. * @subpackage firebug
  13. *
  14. * @version $Id: page.main.php,v 1.6 2008/04/15 21:53:31 fplanque Exp $
  15. */
  16. if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17. if( version_compare( $app_version, '3.3' ) < 0 )
  18. { // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
  19. die( 'This skin is designed for b2evolution 3.3 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
  20. }
  21. // This is the main template; it may be used to display very different things.
  22. // Do inits depending on current $disp:
  23. skin_init( $disp );
  24. // -------------------------- HTML HEADER INCLUDED HERE --------------------------
  25. skin_include( '_html_header.inc.php' );
  26. // Note: You can customize the default HTML header by copying the generic
  27. // /skins/_html_header.inc.php file into the current skin folder.
  28. // -------------------------------- END OF HEADER --------------------------------
  29. ?>
  30. <?php
  31. // ------------------------- BODY HEADER INCLUDED HERE --------------------------
  32. skin_include( '_body_header.inc.php' );
  33. // Note: You can customize the default BODY header by copying the generic
  34. // /skins/_body_footer.inc.php file into the current skin folder.
  35. // ------------------------------- END OF HEADER --------------------------------
  36. ?>
  37. <div id="main">
  38. <div id="content">
  39. <div class="space"></div>
  40. <?php
  41. // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  42. messages( array(
  43. 'block_start' => '<div class="action_messages">',
  44. 'block_end' => '</div> <!-- end of class="action_messages -->',
  45. ) );
  46. // --------------------------------- END OF MESSAGES ---------------------------------
  47. ?>
  48. <?php
  49. // Display message if no post:
  50. display_if_empty();
  51. while( $Item = & mainlist_get_item() )
  52. { // For each blog post, do everything below up to the closing curly brace "}"
  53. ?>
  54. <div id="<?php $Item->anchor_id() ?>" class="post post<?php $Item->status_raw() ?>" lang="<?php $Item->lang() ?>">
  55. <?php
  56. $Item->locale_temp_switch(); // Temporarily switch to post locale (useful for multilingual blogs)
  57. ?>
  58. <h2><?php $Item->title(); ?></h2>
  59. <p class="postinfo">
  60. <?php
  61. $Item->issue_time( array(
  62. 'before' => /* TRANS: date */ '',
  63. 'after' => ' / ',
  64. 'time_format' => 'F jS, Y'.'',
  65. ) );
  66. // Link to comments, trackbacks, etc.:
  67. $Item->feedback_link( array(
  68. 'type' => 'feedbacks',
  69. 'link_before' => '',
  70. 'link_after' => '',
  71. 'link_text_zero' => '#',
  72. 'link_text_one' => '#',
  73. 'link_text_more' => '#',
  74. 'link_title' => '#',
  75. 'use_popup' => false,
  76. ) );
  77. $Item->author( array(
  78. 'before' => ' / '.T_('by').' ',
  79. 'after' => ' ',
  80. ) );
  81. ?>
  82. </p>
  83. <?php
  84. // ---------------------- POST CONTENT INCLUDED HERE ----------------------
  85. skin_include( '_item_content.inc.php', array(
  86. 'image_size' => 'fit-400x320',
  87. ) );
  88. // Note: You can customize the default item feedback by copying the generic
  89. // /skins/_item_feedback.inc.php file into the current skin folder.
  90. // -------------------------- END OF POST CONTENT -------------------------
  91. ?>
  92. <?php
  93. // ------------------------- SIDEBAR INCLUDED HERE --------------------------
  94. skin_include( '_socialbar.inc.php' );
  95. // Note: You can customize the default BODY footer by copying the
  96. // _body_footer.inc.php file into the current skin folder.
  97. // ----------------------------- END OF SIDEBAR -----------------------------
  98. ?>
  99. <p class="postmetadata">
  100. <?php
  101. $Item->categories( array(
  102. 'before' => ''.T_('Posted in: '),
  103. 'after' => ' ',
  104. 'include_main' => true,
  105. 'include_other' => true,
  106. 'include_external'=> true,
  107. 'link_categories' => true,
  108. ) );
  109. $Item->edit_link( array( // Link to backoffice for editing
  110. 'before' => ' | ',
  111. 'after' => '',
  112. ) );
  113. ?>
  114. </p>
  115. <?php
  116. // List all tags attached to this post:
  117. $Item->tags( array(
  118. 'before' => '<p class="tags">'.T_('Tags: ').'',
  119. 'after' => '</p>',
  120. 'separator' => ', ',
  121. ) );
  122. ?>
  123. <?php
  124. // Display container and contents:
  125. skin_container( NT_('Post Loop'), array(
  126. // The following (optional) params will be used as defaults for widgets included in this container:
  127. // This will enclose each widget in a block:
  128. 'block_start' => '<li class="$wi_class$">',
  129. 'block_end' => '</li>',
  130. // This will enclose the title of each widget:
  131. 'block_title_start' => '<h3>',
  132. 'block_title_end' => '</h3>',
  133. // If a widget displays a list, this will enclose that list:
  134. 'list_start' => '<ul>',
  135. 'list_end' => '</ul>',
  136. // This will enclose each item in a list:
  137. 'item_start' => '<li>',
  138. 'item_end' => '</li>',
  139. // This will enclose sub-lists in a list:
  140. 'group_start' => '<ul>',
  141. 'group_end' => '</ul>',
  142. // This will enclose (foot)notes:
  143. 'notes_start' => '<div class="notes">',
  144. 'notes_end' => '</div> <!-- end of class="notes" -->',
  145. ) );
  146. ?>
  147. <div class="space"></div>
  148. </div> <!-- end of id="item_" -->
  149. <?php
  150. // ------------------ FEEDBACK (COMMENTS/TRACKBACKS) INCLUDED HERE ------------------
  151. skin_include( '_item_feedback.inc.php', array(
  152. 'before_section_title' => '<h3 id="comments">',
  153. 'after_section_title' => '</h3>',
  154. 'form_title_start' => '<h3 class="comment_form_title">',
  155. 'form_title_end' => '</h3>',
  156. ) );
  157. // Note: You can customize the default item feedback by copying the generic
  158. // /skins/_item_feedback.inc.php file into the current skin folder.
  159. // ---------------------- END OF FEEDBACK (COMMENTS/TRACKBACKS) ---------------------
  160. ?>
  161. <?php
  162. locale_restore_previous(); // Restore previous locale (Blog locale)
  163. }
  164. ?>
  165. <div class="space"></div>
  166. <?php
  167. // ------------------- PREV/NEXT POST LINKS (SINGLE POST MODE) -------------------
  168. item_prevnext_links( array(
  169. 'block_start' => '<div id="navigation">',
  170. 'prev_start' => '<div class="floatleft">',
  171. 'prev_end' => '</div> <!-- end of class="floatleft" -->',
  172. 'next_start' => '<div class="floatright">',
  173. 'next_end' => '</div> <!-- end of class="floatright" -->',
  174. 'block_end' => '</div> <!-- end of id="navigation" -->',
  175. ) );
  176. // ------------------------- END OF PREV/NEXT POST LINKS -------------------------
  177. ?>
  178. </div> <!-- end of id="content" -->
  179. </div> <!-- end of id="main" -->
  180. <?php
  181. // ------------------------- SIDEBAR INCLUDED HERE --------------------------
  182. skin_include( '_sidebar_right.inc.php' );
  183. // Note: You can customize the default BODY footer by copying the
  184. // _body_footer.inc.php file into the current skin folder.
  185. // ----------------------------- END OF SIDEBAR -----------------------------
  186. ?>
  187. <div class="clear"></div>
  188. <?php
  189. // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
  190. skin_include( '_body_footer.inc.php' );
  191. // Note: You can customize the default BODY footer by copying the
  192. // _body_footer.inc.php file into the current skin folder.
  193. // ------------------------------- END OF FOOTER --------------------------------
  194. ?>
  195. </div> <!-- end of id="wrapper" -->
  196. <?php
  197. // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
  198. skin_include( '_html_footer.inc.php' );
  199. // Note: You can customize the default HTML footer by copying the
  200. // _html_footer.inc.php file into the current skin folder.
  201. // ------------------------------- END OF FOOTER --------------------------------
  202. ?>