From b8a6622d79c99688325955e9af25c2e17e802843 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 8 Sep 2017 09:03:43 +0000 Subject: - Lizenzverwaltung git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6484 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/module.phtml | 109 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 89 insertions(+), 20 deletions(-) (limited to 'views/admin/module.phtml') diff --git a/views/admin/module.phtml b/views/admin/module.phtml index 514918b..394ee7a 100644 --- a/views/admin/module.phtml +++ b/views/admin/module.phtml @@ -5,6 +5,12 @@ * Sollte nicht angepasst werden */ + $wpsg_update_data = wpsg_get_update_data(); + if (wpsg_isSizedArray($wpsg_update_data['modulinfo'])) $modul_info = $wpsg_update_data['modulinfo']; + else $modul_info = array(); + + //wpsg_debug($modul_info); + ?>
@@ -50,23 +56,79 @@ __('Nein', 'wpsg'), '1' => __('Ja', 'wpsg')), ((wpsg_isSizedInt($modul_install))?'1':'0')); ?> arAllModule[$_REQUEST['modul']]->version)) { ?> - arAllModule[$_REQUEST['modul']]->version, array('text' => true)); ?> + + - arAllModule[$_REQUEST['modul']]->free) && $this->arAllModule[$_REQUEST['modul']]->free === true) { ?> - - - arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) { ?> - - - arAllModule[$_REQUEST['modul']]->getDemoDays() > 0) { ?> - arAllModule[$_REQUEST['modul']]->getDemoDays()); ?> - - - - - - + arAllModule[$_REQUEST['modul']]->version; + + if (wpsg_isSizedArray($modul_info[$_REQUEST['modul']])) + { + + $modul_info_modul = $modul_info[$_REQUEST['modul']]; + + if ($modul_info_modul['version'] === $this->shop->arAllModule[$_REQUEST['modul']]->version) + { + + echo ' - '.__('aktuell', 'wpsg').''; + + } + else if (version_compare($modul_info_modul['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_modul['version'], $this->shop->arAllModule[$_REQUEST['modul']]->versio) > 0) + { + + echo ' - '.__('neue Version verfügbar', 'wpsg').''; + + if ($modul_info_modul['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='.$_REQUEST['modul']); + + } + + } + + } + + ?> + + + + + + + + + + + + + + + + [ ] + + [ ] + + [ ] + + + + + + + + +
+ arAllModule[$_REQUEST['modul']]->version) || ((wpsg_isTrue($this->arAllModule[$_REQUEST['modul']]->free) || (is_array($this->arLizenz) && in_array($_REQUEST['modul'], (array)$this->arLizenz['mods'])) || $this->arAllModule[$_REQUEST['modul']]->getDemoDays() > 0))) { ?> @@ -140,7 +202,7 @@ - + @@ -175,9 +237,9 @@ - + - + @@ -202,8 +264,15 @@ else if (version_compare($modul_info['version'], $this->arAllModule[$modul_key]->versio) > 0) { - echo ' - '.__('neue Version verfügbar', 'wpsg').'
'; - 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); + 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); + + } } -- cgit v1.2.3