<?php defined('ABSPATH') or die()?>

<?php
	
	$admin_page_url = admin_url()."admin.php?page={$this->prefix}_settings";
	
	if( !isset($_GET['sub_page']) || empty($_GET['sub_page']) ) $_GET['sub_page'] = 'files';
	// Escaping data
	$_GET['sub_page'] = preg_replace( "/[<>#$%]/", "", $_GET['sub_page']);
	// Sanitizing data
	$_GET['sub_page'] = filter_var($_GET['sub_page'], FILTER_SANITIZE_STRING);
?>
<div class="bootstart-admin-container">

	<div class='bootstart-admin-header'>
		<h2><?php echo $this->name; ?></h2>
	</div>
	
	<div class="bootstart-admin-navigation" style="display:none;">
		
		<ul>
			
			<li class="<?php if($_GET['sub_page']=='files') echo 'bootstart-admin-active-page';?>"><a href="<?php echo $admin_page_url."&&sub_page=files"?>">Files</a></li>
			<li class="<?php if($_GET['sub_page']=='settings') echo 'bootstart-admin-active-page';?>"><a href="<?php echo $admin_page_url."&&sub_page=settings"?>">Settings</a></li>
			
		</ul>
		
	</div>
	
	<div class='bootstart-admin-content'>

		<?php include $_GET['sub_page'].'.php';?>
		
	</div>

	<div class='bootstart-admin-footer'>
		<span><a href='http://www.giribaz.com'>Go Premium</span></a> Our premium plugin offers tons of features and priority support.
		Don't forget to leave us a <a href='https://wordpress.org/support/view/plugin-reviews/file-manager'>review</a>. If you find anything difficult jsut ask <a href='https://wordpress.org/support/plugin/file-manager'>here</a>.
	</div>

</div>
