<?php
/**
 * Navigation Include Template
 *
 * @package GetSimple
 */
 
$debugInfoUrl = 'http://get-simple.info/docs/debugging';

if (cookie_check()) { 
	echo '<ul id="pill"><li class="leftnav"><a href="logout.php" accesskey="'. find_accesskey(i18n_r('TAB_LOGOUT')).'" title="'.i18n_r('TAB_LOGOUT').'"><span class="notext">'.i18n_r('TAB_LOGOUT').'</span></a></li>';
	if (isDebug()) {
		echo '<li class="debug"><a href="'.$debugInfoUrl.'" target="_blank" title="'.i18n_r('DEBUG_MODE_TITLE').'">'.i18n_r('DEBUG_MODE').'</a></li>';
	}
	echo '<li class="rightnav" ><a href="settings.php#profile" title="'.i18n_r('WELCOME').' '.$USR.'"><span class="notext">'.i18n_r('WELCOME').'</span> <strong>'.$USR.'!</strong></a></li>
	<li style="display:none"><a class="settings" href="settings.php" accesskey="'.find_accesskey(i18n_r('TAB_SETTINGS')).'" title="'.i18n_r('TAB_SETTINGS').'"><span class="notext">'.i18n_r('TAB_SETTINGS').'</span></a></li>
	<li style="display:none"><a class="support" href="support.php" accesskey="'.find_accesskey(i18n_r('TAB_SUPPORT')).'" title="'.i18n_r('TAB_SUPPORT').'"><span class="notext">'.i18n_r('TAB_SUPPORT').'</span></a></li>

	</ul>';
} 

//determine page type if plugin is being shown
if (get_filename_id() == 'load') {
	$plugin_class = $plugin_info[$plugin_id]['page_type'];
} else {
	$plugin_class = '';
}

?>
<h1 id="sitename"><a href="<?php echo $SITEURL; ?>" target="_blank" ><?php echo cl($SITENAME); ?></a></h1>
<ul class="nav <?php echo $plugin_class; ?>">
	<li id="nav_pages" ><a class="pages" href="pages.php" accesskey="<?php echo find_accesskey(i18n_r('TAB_PAGES'));?>" ><?php i18n('TAB_PAGES');?></a></li>
	<li id="nav_upload" ><a class="files" href="upload.php" accesskey="<?php echo find_accesskey(i18n_r('TAB_FILES'));?>" ><?php i18n('TAB_FILES');?></a></li>
	<li id="nav_theme" ><a class="theme" href="theme.php" accesskey="<?php echo find_accesskey(i18n_r('TAB_THEME'));?>" ><?php i18n('TAB_THEME');?></a></li>
	<li id="nav_backups" ><a class="backups" href="backups.php" accesskey="<?php echo find_accesskey(i18n_r('TAB_BACKUPS'));?>" ><?php i18n('TAB_BACKUPS');?></a></li>
	<li id="nav_plugins" ><a class="plugins" href="plugins.php" accesskey="<?php echo find_accesskey(i18n_r('PLUGINS_NAV'));?>" ><?php i18n('PLUGINS_NAV');?></a></li>
	
	<?php exec_action('nav-tab');	?>
	
	<li id="nav_loaderimg" ><img class="toggle" id="loader" src="template/images/ajax.gif" alt="" /></li>
	<li class="rightnav" ><a class="settings first" href="settings.php" accesskey="<?php echo find_accesskey(i18n_r('TAB_SETTINGS'));?>" title="<?php i18n('TAB_SETTINGS');?>"><span class="notext"><?php i18n('TAB_SETTINGS');?></span></a></li>
	<li class="rightnav" ><a class="support last" href="support.php" accesskey="<?php echo find_accesskey(i18n_r('TAB_SUPPORT'));?>" title="<?php i18n('TAB_SUPPORT');?>"><span class="notext"><?php i18n('TAB_SUPPORT');?></span></a></li>

</ul>

</div>
</div>
	
<div class="wrapper">

	<?php include('template/error_checking.php'); ?>
