From 0211d21e5cd3e94e215d36db65cc64a44421dc4c Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 20 Sep 2017 11:47:12 +0000 Subject: - Modulaktivierung ausblenden, wenn falscher Key git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6526 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/index.phtml | 2 +- views/admin/licence.phtml | 83 +++++++++++++++++++++++++++++++++++++++++++++-- views/admin/news.phtml | 7 ++-- 3 files changed, 84 insertions(+), 8 deletions(-) (limited to 'views') diff --git a/views/admin/index.phtml b/views/admin/index.phtml index fc0ecb9..746a1af 100644 --- a/views/admin/index.phtml +++ b/views/admin/index.phtml @@ -28,7 +28,7 @@ diff --git a/views/admin/licence.phtml b/views/admin/licence.phtml index 98fc279..37828c2 100644 --- a/views/admin/licence.phtml +++ b/views/admin/licence.phtml @@ -29,7 +29,7 @@ @@ -182,7 +182,86 @@
- + + + + $modul_info) { if ($modul_info['active'] !== true) unset($wpsg_update_data['modulinfo'][$modul_key]); } ?> + + + + + + + + + + + + $modul_info) { ?> + + + + + + + + +
+ + shop->hasModInstalled($modul_key)) { ?> + shop->arAllModule[$modul_key]->version; ?> + + + + + + + + + + + + + + + + + + + shop->hasModInstalled($modul_key) && $modul_info['version'] === $this->shop->arAllModule[$modul_key]->version) + { + + echo ' - '.__('aktuell', 'wpsg').''; + + } + else if (version_compare($modul_info['version'], WPSG_VERSION) > 0) + { + + echo ' - '.__('neue Version verfügbar', 'wpsg').'
'.wpsg_translate(__('wpShopGermany Update notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php'); + + } + else if (version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->versio) > 0) + { + + echo ' - '.__('neue Version verfügbar', 'wpsg').''; + + if ($modul_info['active'] === true) + { + + echo '
'; + echo wpsg_translate(__('Version installieren.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=registrierung&noheader=1&do=installModul&modul='.$modul_key); + + } + + } + + ?>
+ + diff --git a/views/admin/news.phtml b/views/admin/news.phtml index 25fdcf9..e08aea3 100644 --- a/views/admin/news.phtml +++ b/views/admin/news.phtml @@ -15,13 +15,10 @@ '.wpsg_hspc(wpsg_formatTimestamp($news['date'], true).' - '.$news['title']).''; - echo wpsg_drawForm_AdminboxStart(__($temp, 'wpsg')); + echo wpsg_drawForm_AdminboxStart(__($temp, 'wpsg'), '', array('panel-body-class' => ((wpsg_news::isRead($news['id']))?'bg-success':'bg-info'))); ?> - -
- <?php echo __('gelesen', 'wpsg'); ?> -
+
-- cgit v1.2.3