PageRenderTime 344ms CodeModel.GetById 180ms app.highlight 3ms RepoModel.GetById 158ms app.codeStats 0ms

/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 */
 16if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
 17
 18if( version_compare( $app_version, '3.3' ) < 0 )
 19{ // Older skins (versions 2.x and above) should work on newer b2evo versions, but newer skins may not work on older b2evo versions.
 20	die( 'This skin is designed for b2evolution 3.3 and above. Please <a href="http://b2evolution.net/downloads/index.html">upgrade your b2evolution</a>.' );
 21}
 22
 23// This is the main template; it may be used to display very different things.
 24// Do inits depending on current $disp:
 25skin_init( $disp );
 26
 27
 28// -------------------------- HTML HEADER INCLUDED HERE --------------------------
 29skin_include( '_html_header.inc.php' );
 30// Note: You can customize the default HTML header by copying the generic
 31// /skins/_html_header.inc.php file into the current skin folder.
 32// -------------------------------- END OF HEADER --------------------------------
 33?>
 34
 35
 36<?php
 37// ------------------------- BODY HEADER INCLUDED HERE --------------------------
 38skin_include( '_body_header.inc.php' );
 39// Note: You can customize the default BODY header by copying the generic
 40// /skins/_body_footer.inc.php file into the current skin folder.
 41// ------------------------------- END OF FOOTER --------------------------------
 42?>
 43
 44<div id="content">
 45	<div id="primaryContentContainer">
 46		<div id="primaryContent">
 47
 48	<?php
 49		// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
 50		request_title( array(
 51				'title_before'=> '<h2 class="sectionhead">',
 52				'title_after' => '</h2>',
 53				'title_none'  => '',
 54				'glue'        => ' - ',
 55				'title_single_disp' => true,
 56				'format'      => 'htmlbody',
 57			) );
 58		// ------------------------------ END OF REQUEST TITLE -----------------------------
 59	?>
 60
 61
 62	<?php
 63		// ------------------------- MESSAGES GENERATED FROM ACTIONS -------------------------
 64		messages( array(
 65			'block_start' => '<div class="action_messages">',
 66			'block_end'   => '</div>',
 67		) );
 68		// --------------------------------- END OF MESSAGES ---------------------------------
 69	?>
 70
 71
 72	<?php
 73		// -------------- MAIN CONTENT TEMPLATE INCLUDED HERE (Based on $disp) --------------
 74		skin_include( '$disp$', array(
 75			) );
 76		// Note: you can customize any of the sub templates included here by
 77		// copying the matching php file into your skin directory.
 78		// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
 79	?>
 80
 81			</div> <!-- end of id="primaryContent" -->
 82		</div> <!-- end of id="primaryContentContainer" -->
 83
 84<?php
 85// ------------------------- SIDEBAR INCLUDED HERE --------------------------
 86skin_include( '_sidebar_right.inc.php' );
 87// Note: You can customize the default BODY footer by copying the
 88// _body_footer.inc.php file into the current skin folder.
 89// ----------------------------- END OF SIDEBAR -----------------------------
 90?>
 91
 92	</div> <!-- end of id="content" -->
 93
 94<?php
 95// ------------------------- BODY FOOTER INCLUDED HERE --------------------------
 96skin_include( '_body_footer.inc.php' );
 97// Note: You can customize the default BODY footer by copying the
 98// _body_footer.inc.php file into the current skin folder.
 99// ------------------------------- END OF FOOTER --------------------------------
100?>
101
102<?php
103// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
104skin_include( '_html_footer.inc.php' );
105// Note: You can customize the default HTML footer by copying the
106// _html_footer.inc.php file into the current skin folder.
107// ------------------------------- END OF FOOTER --------------------------------
108?>