<?php

namespace FSPoster\App\view;

use FSPoster\App\Providers\Helper;

defined( 'ABSPATH' ) or exit;
?>

<style>
	#wpcontent
	{
		padding-left: 0 !important;
	}
</style>

<div>
	<div style="position: relative; height: 100px; background-color: #289BE5; width: 100%; text-align: center; color: #FFF; display: flex; align-items: center; justify-content: center;">

		<a href="?page=fs-poster" class="ws_setting_menu<?=$parameters['menuKey']=='account'?' active_menu':''?>">
			<div class="ws_menu_image"><i class="fa fa-user"></i></div>
			<div class="ws_menu_title"><?=__('ACCOUNTS' , 'fs-poster')?></div>
		</a>

		<a href="?page=fs-poster-schedule" class="ws_setting_menu<?=$parameters['menuKey']=='schedule'?' active_menu':''?>">
			<div class="ws_menu_image"><i class="fa fa-clock"></i></div>
			<div class="ws_menu_title"><?=__('SCHEDULES' , 'fs-poster')?></div>
		</a>

		<a href="?page=fs-poster-share" class="ws_setting_menu<?=$parameters['menuKey']=='share'?' active_menu':''?>">
			<div class="ws_menu_image"><i class="fa fa-edit fa-pencil-square-o"></i></div>
			<div class="ws_menu_title"><?=__('SHARE' , 'fs-poster')?></div>
		</a>

		<a href="?page=fs-poster-posts" class="ws_setting_menu<?=$parameters['menuKey']=='posts'?' active_menu':''?>">
			<div class="ws_menu_image"><i class="fa fa-bullhorn "></i></div>
			<div class="ws_menu_title"><?=__('LOGS' , 'fs-poster')?></div>
		</a>

		<a href="?page=fs-poster-insights" class="ws_setting_menu<?=$parameters['menuKey']=='insights'?' active_menu':''?>">
			<div class="ws_menu_image"><i class="fa fa-chart-bar"></i></div>
			<div class="ws_menu_title"><?=__('INSIGHTS' , 'fs-poster')?></div>
		</a>

		<a href="?page=fs-poster-app" class="ws_setting_menu<?=$parameters['menuKey']=='app'?' active_menu':''?>">
			<div class="ws_menu_image"><i class="fa fa-rocket"></i></div>
			<div class="ws_menu_title"><?=__('APPS' , 'fs-poster')?></div>
		</a>
		<?php
		if( current_user_can('administrator') )
		{
			?>
			<a href="?page=fs-poster-settings" class="ws_setting_menu<?=$parameters['menuKey']=='settings'?' active_menu':''?>">
				<div class="ws_menu_image"><i class="fa fa-cogs"></i></div>
				<div class="ws_menu_title"><?=__('SETTINGS' , 'fs-poster')?></div>
			</a>
			<?php
		}
		?>
	</div>
	<div>
		<?php
		Helper::view('app_menus.' . $parameters['menuKey']);
		?>
	</div>
</div>
