<!DOCTYPE html>
<html lang="en">
    <head>
        <?php echo $title;?>
        <!-- Json Script Section -->
		<?php echo $json_script;?>
		<!-- Cannonical Section -->
		<?php echo $cannonical_tag;?>
		<!-- Meta Section -->
		<?php echo $meta_content;?>
		<!-- Social Media Tag Section -->
		<?php echo $social_media_tag;?>
        <!-- Author/Image Attribute Section -->
		<?php echo $author_image_attribute;?>
        <!-- Favicon -->
        <?php echo $favicon_content;?>
 
        <!-- External CSS and Fonts -->
        <?php echo $external_css;?>
        <!-- Template Stylesheet -->
        <?php foreach($csss as $cs){?>
		<link href="<?php echo base_url().$cs->css;?>" rel="stylesheet">
		<?php } ?>
	</head>
	<?php
	$frontpagemodel = model('App\Models\FrontpageModel');
	echo $header_content;
	?>
	<nav id="nav-menu-container">
        <ul class="nav-menu">
	<?php foreach($menu as $mn){?>
		<li><a href="<?php echo base_url().$mn->page_slug;?>"><?php echo $mn->page_name;?></a></li>
		<?php $subMenu=$frontpagemodel->getSubMenuData($mn->page_slug);?>
		<?php foreach($subMenu as $sm){?>
		<li><a href="<?php echo base_url().$sm->page_slug;?>"><?php echo $sm->page_name;?></a></li>
		<?php } ?>
	<?php } ?>
		</ul>
      </nav>