/b2evolution/emerald/index.main.php

http://laibcomsthemes.googlecode.com/ · PHP · 108 lines · 47 code · 17 blank · 44 comment · 2 complexity · 2768762237f36d916bae55efa62ba3a2 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 emerald
  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 FOOTER --------------------------------
  36. ?>
  37. <div id="content">
  38. <div id="primaryContentContainer">
  39. <div id="primaryContent">
  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>',
  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="primaryContent" -->
  69. </div> <!-- end of id="primaryContentContainer" -->
  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> <!-- end of id="content" -->
  78. <?php
  79. // ------------------------- BODY FOOTER INCLUDED HERE --------------------------
  80. skin_include( '_body_footer.inc.php' );
  81. // Note: You can customize the default BODY footer by copying the
  82. // _body_footer.inc.php file into the current skin folder.
  83. // ------------------------------- END OF FOOTER --------------------------------
  84. ?>
  85. <?php
  86. // ------------------------- HTML FOOTER INCLUDED HERE --------------------------
  87. skin_include( '_html_footer.inc.php' );
  88. // Note: You can customize the default HTML footer by copying the
  89. // _html_footer.inc.php file into the current skin folder.
  90. // ------------------------------- END OF FOOTER --------------------------------
  91. ?>