<?php
/*--------------------------------------------------------------
 # Copyright (C) joomla-monster.com
# License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
# Website: http://www.joomla-monster.com
# Support: info@joomla-monster.com
---------------------------------------------------------------*/

defined('_JEXEC') or die;

// get column's classes
$class = $this->params->get('class');

//get information about font size switcher
$fontswitcher = $this->params->get('fontSizeSwitcher', '0');

?>

<div id="jm-main">
	<div class="container-fluid">
		<div class="row-fluid">
			<div id="jm-content" class="<?php echo $class['content']; ?>">
				<?php if($this->checkModules('content-top')) : ?>
				<div id="jm-content-top" class="<?php echo $this->getClass('content-top'); ?>">
					<?php echo $this->renderModules('content-top','jmmodule'); ?>
				</div>
				<?php endif; ?>
				<?php if ($this->displayComponent()) : ?>
				<main id="jm-maincontent">
					<?php if($fontswitcher) : ?>
					<div id="jm-font-switcher" class="text-right">
						<a href="javascript:void(0);" class="texttoggler small" rel="smallview" title="small size">A</a>
						<a href="javascript:void(0);" class="texttoggler normal" rel="normalview" title="normal size">A</a>
						<a href="javascript:void(0);" class="texttoggler large" rel="largeview" title="large size">A</a>
						<script type="text/javascript">
						documenttextsizer.setup("texttoggler")
						</script>
					</div>
					<?php endif; ?>
					<jdoc:include type="component" />
				</main>
				<?php endif ?>
				<?php if($this->checkModules('content-bottom')) : ?>
				<div id="jm-content-bottom" class="<?php echo $this->getClass('content-bottom'); ?>">
					<?php echo $this->renderModules('content-bottom','jmmodule'); ?>
				</div>
				<?php endif; ?>
			</div>
			<?php if($this->checkModules('left-column')) : ?>
			<aside id="jm-left" class="<?php echo $class['left']; ?>">
			    <div class="<?php echo $this->getClass('left-column'); ?>">
                    <?php echo $this->renderModules('left-column','jmmodule'); ?>
				</div>
			</aside>
			<?php endif; ?>
			<?php if($this->checkModules('right-column')) : ?>
			<aside id="jm-right" class="<?php echo $class['right']; ?>">
                <div class="<?php echo $this->getClass('right-column'); ?>">
                    <?php echo $this->renderModules('right-column','jmmodule'); ?>
				</div>
			</aside>
			<?php endif; ?>
		</div>
	</div>
</div>