<?php

	/**
	 * Templatedatei für die Startseite/Konfiguration im Backend
	 * Normalerweise sollte hier nichts angepasst werden
	 */

?>

<div class="wpsg_admin">

	<div class="wrap">
		<h2><?php echo __('wpShopGermany', 'wpsg'); ?></h2>
 	</div>
	
	<?php echo $this->writeBackendMessage(); ?>
			
	<div class="wpsg_admin_topmenu">
		<ul>
			<li class="<?php echo (($this->view['actionName'] == "index")?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin"><?php echo __("Einstellungen", "wpsg"); ?></a></li>
			<li class="<?php echo (($this->view['actionName'] == "module")?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=module"><?php echo __("Module", "wpsg"); ?></a></li>
			<?php if (current_user_can('wpsg_lizence') && $this->hasMod('wpsg_mod_core')) { ?>			
			<li class="<?php echo (($this->view['actionName'] == "registrierung")?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=registrierung"><?php echo __("Lizenzverwaltung", "wpsg"); ?></a></li>
			<?php } ?>
			<li class="<?php echo (($this->view['actionName'] == 'news')?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=news">
				<?php echo __('Aktuelles', 'wpsg'); ?>
				<?php if (wpsg_isSizedInt($wpsg_news_unread = wpsg_news::countUnreadNews())) { ?>
				<span class="wpsg_news_unreadhint"><?php echo $wpsg_news_unread; ?></span>
				<?php } ?>			
			</a></li>
			<li class="<?php echo (($this->view['actionName'] == "hilfe")?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=hilfe"><?php echo __("Hilfe", "wpsg"); ?></a></li>
			<li class="<?php echo (($this->view['actionName'] == "ueber")?'current':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=ueber"><?php echo __("Über", "wpsg"); ?></a></li>
		</ul>
	</div>
	<div style="clear:both;"></div>
	
	<div class="wpsg_admin_wrap">
		<?php if (wpsg_isSizedString($this->view['subTemplate'])) { ?>
		<?php $this->render($this->view['subTemplate']); ?>
		<?php } ?>
	</div>
	
</div>