<?php
/**
 * appRain CMF
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */

?>

<?php echo App::Config()->isSiteLive(); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<?php App::Hook('UI')->Render('template_head_tag_start'); #User Interface Hook ?>
    <?php echo $this->callElement("default/common/header_info"); ?>
    <script type="text/javascript" >var base = '<?php echo $this->baseurl();?>';</script>

	<!-- Load by addons -->
	<?php $this->fetchAddonlibs();?>

	<!-- Static -->
    <link href="<?php echo $this->skinurl("/css/default.css");?>" rel="stylesheet" type="text/css" media="all" />

	<!-- Dynamic -->
    <link href="<?php echo $this->baseurl("/common/default-css");?>" rel="stylesheet" type="text/css" media="all" />
	<script type="text/javascript" src="<?php echo $this->baseurl("/common/default-js");?>"></script>
	<?php App::Hook('UI')->Render('template_head_tag_end'); #User Interface Hook ?>
</head>
    <body>
        <div id="content">
            <?php  echo $this->callElement("default/common/header"); ?>
            <?php echo $content_rendered ;?>
            <?php echo $this->callElement("default/common/footer"); ?>
        </div>
    </body>
</html>