<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>

<?php $amazingaffiliates_page = "home";  ?>

<main class="amazingaffiliates_admin_page"  style="background-color:white;">
	
	<nav id="amazingaffiliates_navbar">
		<?php do_action('amazingaffiliates_navbar', $amazingaffiliates_page ); ?>
	</nav>
	
	<?php do_action('amazingaffiliates_setupnotice' ); ?>
	
	<div id="header" style="display:none;">
        
        <h1 class="amazingaffiliates_admin_page_title" >Dashboard</h1>
		
	</div>
	
	<br>
	
	<h2>Notifications:</h2>
	<?php
	require( plugin_dir_path( __FILE__ ) . 'notifications.php' );
	foreach ($amazingaffiliates_notifications as $notification) {
	    echo wp_kses_post( $notification );
	}
	?>
        
	<br>
	
	<h2>Dashboard:</h2>
	<div id="dashboard" >
        
        <?php if(has_action('amazingaffiliates_dashboard')) do_action('amazingaffiliates_dashboard'); ?>
        
	</div>
	
	<br>
	
</main>