From d75554fdc6126617502f4b04f20c7e18057e8bf4 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 20 Jan 2021 10:40:09 +0000 Subject: - Abo automatisch X - Tage vorher verlängern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7823 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_abo/produkt_addedit_content.phtml | 84 ++++++++++++++---------- views/mods/mod_abo/settings_edit.phtml | 78 ++++++++++------------ views/mods/mod_relatedproducts/list.phtml | 2 +- views/produkt/addedit_payship.phtml | 10 +-- 4 files changed, 92 insertions(+), 82 deletions(-) diff --git a/views/mods/mod_abo/produkt_addedit_content.phtml b/views/mods/mod_abo/produkt_addedit_content.phtml index 32d2855..0bd79e7 100644 --- a/views/mods/mod_abo/produkt_addedit_content.phtml +++ b/views/mods/mod_abo/produkt_addedit_content.phtml @@ -67,18 +67,56 @@ wpsg_mod_abo::EXPIRE_AUTO => __('Automatisch verlängern', 'wpsg') ), $this->view['product']['wpsg_mod_abo_expiremode'], array('help' => 'wpsg_mod_abo_expiremode')); ?> + get_option('wpsg_mod_abo_premode') == wpsg_mod_abo::EXPIRE_MAIL) $strLabelPreModeDefault = ' / '.__('Mail versenden', 'wpsg'); + else if ($this->get_option('wpsg_mod_abo_premode') === wpsg_mod_abo::EXPIRE_AUTO) $strLabelPreModeDefault = ' / '.__('Automatisch verlängern', 'wpsg'); + + ?> + + __('Standard', 'wpsg').$strLabelPreModeDefault, + wpsg_mod_abo::EXPIRE_MAIL => __('Mail versenden', 'wpsg'), + wpsg_mod_abo::EXPIRE_AUTO => __('Automatisch verlängern', 'wpsg') + ], $this->view['product']['wpsg_mod_abo_premode'], ['help' => 'wpsg_mod_abo_premode']); ?> + + + + +
- - - diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml index 1f50701..0717229 100644 --- a/views/mods/mod_abo/settings_edit.phtml +++ b/views/mods/mod_abo/settings_edit.phtml @@ -27,17 +27,47 @@ wpsg_mod_abo::EXPIRE_AUTO => __('Automatisch verlängern', 'wpsg') ), $this->get_option('wpsg_mod_abo_expiremode'), array('help' => 'wpsg_mod_abo_expiremode')); ?> -
+ __('Nichts', 'wpsg'), + wpsg_mod_abo::EXPIRE_MAIL => __('Mail versenden', 'wpsg'), + wpsg_mod_abo::EXPIRE_AUTO => __('Automatisch verlängern', 'wpsg') +], $this->get_option('wpsg_mod_abo_premode'), ['help' => 'wpsg_mod_abo_premode']); ?> -
+ + + +
+
@@ -53,20 +83,6 @@ '1' => __('Ja', 'wpsg') ], $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), ['help' => 'wpsg_mod_abo_autoexpire_adminmail']); ?> - __('Nein', 'wpsg'), - '1' => __('Ja', 'wpsg') - ], $this->get_option('wpsg_mod_abo_autoexpire_information'), [ - 'help' => 'wpsg_mod_abo_autoexpire_information', - 'hint' => wpsg_translate(__('Mail wird X-Tage vor einer automatischen Verlängerung versendet. (mail_autoinformation.phtml) -> Konfiguration', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#wpsgmodabautoinfo') - ]); ?> - - -
- -get_option('wpsg_mod_abo_moreorder'), array ('help' => 'wpsg_mod_abo_moreorder')); ?> - - - -
- - get_option('wpsg_mod_abo_nomoreorder_text'), array('help' => 'wpsg_mod_abo_nomoreorder_text'));?> - -
-*/?> diff --git a/views/mods/mod_relatedproducts/list.phtml b/views/mods/mod_relatedproducts/list.phtml index 9299683..2f56561 100644 --- a/views/mods/mod_relatedproducts/list.phtml +++ b/views/mods/mod_relatedproducts/list.phtml @@ -19,7 +19,7 @@ @@ -51,12 +53,12 @@ -- cgit v1.2.3