/b2evolution/pixel/index.main.php

http://laibcomsthemes.googlecode.com/ · PHP · 123 lines · 51 code · 24 blank · 48 comment · 2 complexity · 3e703c900d2375c3a0f7307f723cf36d 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 pixel
  13. *
  14. * @version $Id: index.main.php,v 1.3 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="contentwrapper">
  39. <div id="content">
  40. <?php
  41. // ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
  42. request_title( array(
  43. 'title_before'=> '<h2 class="sectionhead">',
  44. 'title_after' => '</h2>',
  45. 'title_none' => '',
  46. 'glue' => ' - ',
  47. 'title_single_disp' => true,
  48. 'format' => 'htmlbody',
  49. ) );
  50. // ------------------------------ END OF REQUEST TITLE -----------------------------
  51. ?>
  52. <?php
  53. // ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
  54. messages( array(
  55. 'block_start' => '<div class="action_messages">',
  56. 'block_end' => '</div> <!-- end of class="action_messages" -->',
  57. ) );
  58. // --------------------------------- END OF MESSAGES ---------------------------------
  59. ?>
  60. <?php
  61. // -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
  62. skin_include( '$disp$', array(
  63. ) );
  64. // Note: you can customize any of the sub templates included here by
  65. // copying the matching php file into your skin directory.
  66. // ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
  67. ?>
  68. </div> <!-- end of id="content" -->
  69. </div> <!-- end of id="contentwrapper" -->
  70. <?php
  71. // ------------------------- SIDEBAR INCLUDED HERE --------------------------
  72. skin_include( '_sidebar_right.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. <div class="cleared"></div>
  78. </div> <!-- end of id="main" -->
  79. <?php
  80. // ------------------------- SIDEBAR INCLUDED HERE --------------------------
  81. skin_include( '_sidebar_bottom.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. <?php
  87. // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
  88. skin_include( '_body_footer.inc.php' );
  89. // Note: You can customize the default BODY footer by copying the
  90. // _body_footer.inc.php file into the current skin folder.
  91. // ------------------------------- END OF FOOTER --------------------------------
  92. ?>
  93. <?php
  94. // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
  95. skin_include( '_html_footer.inc.php' );
  96. // Note: You can customize the default HTML footer by copying the
  97. // _html_footer.inc.php file into the current skin folder.
  98. // ------------------------------- END OF FOOTER --------------------------------
  99. ?>