<?php
/**
 * @file
 * Custom theme implementation to display a single Drupal page.
 */
//$menu = menu_navigation_links('navigation');
?>
<?php if ($overlay): ?>
	<!-- Navbar -->
	<div id="navbar" class="navbar navbar-medium navbar-inverse navbar-static-top">
		<div class="navbar-inner">
			<div class="container">
				<?php print $navbar_brand ?>
				<?php print $navbar_search ?>
				<?php if ($navbar_menu): ?>
					<nav class="nav-collapse collapse" role="navigation">
						<?php print $bee_menu; ?>
					</nav>
				<?php endif ?>
			</div>
		</div>
	</div>

	<?php if ($page['featured']): ?>
		<!-- Featured -->
		<div id="featured" class="container-wrapper hidden-phone">
			<div class="container">
				<?php print render($page['featured']) ?>
			</div>
		</div>
	<?php endif ?>
	<?php if ($preface): ?>
		<!-- Header -->
		<header id="header" class="container-wrapper">
			<div class="container">
				<?php print $preface ?>
			</div>
		</header>
	<?php endif ?>
<?php endif ?>

<!-- Main -->
<div id="main">
	<div class="container">
		<?php print $messages ?>
		<div class="row row-toggle">
			<?php if ($has_sidebar_first): ?>
				<!-- Sidebar first -->
				<aside id="sidebar-first" class="sidebar span3 hidden-phone">
					<?php print render($page['sidebar_first']) ?>
					<?php print render($page['sidebar_first_affix']) ?>
				</aside>
			<?php endif ?>
			<!-- Content -->
			<section id="content" class="span<?php print $content_cols ?>">
				<?php print render($page['content']) ?>
			</section>
			<?php if ($has_sidebar_second): ?>
				<!-- Sidebar second -->
				<aside id="sidebar-second" class="sidebar span3 hidden-phone">
					<?php print render($page['sidebar_second']) ?>
					<?php print render($page['sidebar_second_affix']) ?>
				</aside>
			<?php endif ?>
		</div>
	</div>
</div>
<!-- Footer -->
<footer id="footer" class="container-wrapper">
	<div class="container">
		<?php print render($page['footer']) ?>
		<div class="footer-links pull-right">
			<a href="#"><?php print t('Back to top') ?> </a>
		</div>
	</div>
</footer>