summaryrefslogtreecommitdiff
path: root/views/admin/index.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin/index.phtml')
-rw-r--r--views/admin/index.phtml10
1 files changed, 6 insertions, 4 deletions
diff --git a/views/admin/index.phtml b/views/admin/index.phtml
index dcebb2e..8926d14 100644
--- a/views/admin/index.phtml
+++ b/views/admin/index.phtml
@@ -4,6 +4,8 @@
* Templatedatei für die Startseite/Konfiguration im Backend
* Normalerweise sollte hier nichts angepasst werden
*/
+
+ $wpsg_update_data = wpsg_get_update_data();
?>
@@ -18,8 +20,8 @@
<ul class="nav navbar-nav">
<li role="presentation" class="<?php echo (($this->view['actionName'] == "index")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin"><?php echo __("Einstellungen", "wpsg"); ?></a></li>
<li role="presentation" class="<?php echo (($this->view['actionName'] == "module")?'active':''); ?>"><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') && is_array(wpsg_get_update_data())) { ?>
+
+ <?php if (current_user_can('wpsg_lizence') && wpsg_isSizedInt($wpsg_update_data['returnCode'])) { ?>
<li role="presentation" class="<?php echo (($this->view['actionName'] == "registrierung")?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;action=registrierung"><?php echo __("Lizenzverwaltung", "wpsg"); ?></a></li>
<?php } ?>
@@ -38,8 +40,8 @@
</div>
</nav>
- <hr class="wp-header-end" />
-
+ <?php echo $this->writeBackendMessage(); ?>
+
<div class="wpsg_admin_wrap">
<?php if (wpsg_isSizedString($this->view['subTemplate'])) { ?>
<?php $this->render($this->view['subTemplate']); ?>