From 99b01f24a799a2696c5acb5636334aa5ab384352 Mon Sep 17 00:00:00 2001 From: jlbeer Date: Mon, 7 Sep 2026 14:45:02 +0200 Subject: - Übersetzungsfunktionen vereinheitlicht (manchmal nur _() ) - PHP 8.5 / WP 7.1 - Warnungen, die im Plugin "Plugin Check" erwähnt wurden behoben MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/mods/mod_revocation/ajaxDialogContent.phtml | 20 ++++++++-------- views/mods/mod_revocation/mail_row.phtml | 2 +- views/mods/mod_revocation/mail_row_html.phtml | 4 ++-- .../mod_revocation/mails/mail_admin_html.phtml | 28 +++++++++++----------- .../mod_revocation/mails/mail_admin_text.phtml | 24 +++++++++---------- .../mod_revocation/mails/mail_customer_html.phtml | 26 ++++++++++---------- .../mod_revocation/mails/mail_customer_text.phtml | 24 +++++++++---------- views/mods/mod_revocation/order_view_row.phtml | 4 ++-- views/mods/mod_revocation/page_form.phtml | 22 ++++++++--------- views/mods/mod_revocation/settings_edit.phtml | 28 +++++++++++----------- views/mods/mod_revocation/wp_footer.phtml | 10 ++++---- ...mod_kundenverwaltung_order_after_products.phtml | 4 ++-- 12 files changed, 98 insertions(+), 98 deletions(-) (limited to 'views/mods/mod_revocation') diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml index 633f643..89a32c3 100644 --- a/views/mods/mod_revocation/ajaxDialogContent.phtml +++ b/views/mods/mod_revocation/ajaxDialogContent.phtml @@ -61,7 +61,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
@@ -69,10 +69,10 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
@@ -101,14 +101,14 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
-
+
@@ -116,10 +116,10 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
@@ -139,7 +139,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
-
+
diff --git a/views/mods/mod_revocation/mail_row.phtml b/views/mods/mod_revocation/mail_row.phtml index 399bef0..2815226 100755 --- a/views/mods/mod_revocation/mail_row.phtml +++ b/views/mods/mod_revocation/mail_row.phtml @@ -13,6 +13,6 @@ $revo_url = get_home_url('/', '', 'http').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount); ?> - + \ No newline at end of file diff --git a/views/mods/mod_revocation/mail_row_html.phtml b/views/mods/mod_revocation/mail_row_html.phtml index 47293f5..e58ae64 100755 --- a/views/mods/mod_revocation/mail_row_html.phtml +++ b/views/mods/mod_revocation/mail_row_html.phtml @@ -17,8 +17,8 @@ ?>   - : + : - + diff --git a/views/mods/mod_revocation/mails/mail_admin_html.phtml b/views/mods/mod_revocation/mails/mail_admin_html.phtml index 57920b5..f3c0a58 100644 --- a/views/mods/mod_revocation/mails/mail_admin_html.phtml +++ b/views/mods/mod_revocation/mails/mail_admin_html.phtml @@ -14,13 +14,13 @@ $arReason = Revocation::getReasons(); ?> -

+

-

+

- : %kunde_anrede% %kunde_vname% %kunde_name%
- : %kunde_email% + : %kunde_anrede% %kunde_vname% %kunde_name%
+ : %kunde_email%


@@ -40,24 +40,24 @@

- : + : getNr(); ?>

- : + : x getProduct()->getProductName(true); ?> - / : + / : getProduct()->getNr(); ?>

- : + :

- : + :

@@ -65,16 +65,16 @@

- : + :

- +

-
- get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?> - - +
+ get_option('wpsg_shopdata_name'); ?> + -

\ No newline at end of file diff --git a/views/mods/mod_revocation/mails/mail_admin_text.phtml b/views/mods/mod_revocation/mails/mail_admin_text.phtml index 8ce601a..6b00c4d 100644 --- a/views/mods/mod_revocation/mails/mail_admin_text.phtml +++ b/views/mods/mod_revocation/mails/mail_admin_text.phtml @@ -13,12 +13,12 @@ $arSubmitData = \wpsg_ShopController::getShop()->view['arSubmitData'] ?? []; $arReason = Revocation::getReasons(); -?> +?> - + - %kunde_anrede% %kunde_vname% %kunde_name% - %kunde_email% + %kunde_anrede% %kunde_vname% %kunde_name% + %kunde_email% $d) { @@ -29,16 +29,16 @@ $oOrderProduct = $d['oOrderProduct']; ?> - getNr(); ?> - x getProduct()->getProductName(true); ?> / : getProduct()->getNr(); ?> - - + getNr(); ?> + x getProduct()->getProductName(true); ?> / : getProduct()->getNr(); ?> + + - + - + - -get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?> - \ No newline at end of file + +get_option('wpsg_shopdata_name'); ?> - \ No newline at end of file diff --git a/views/mods/mod_revocation/mails/mail_customer_html.phtml b/views/mods/mod_revocation/mails/mail_customer_html.phtml index 9b84c5a..cc7fac6 100644 --- a/views/mods/mod_revocation/mails/mail_customer_html.phtml +++ b/views/mods/mod_revocation/mails/mail_customer_html.phtml @@ -14,11 +14,11 @@ $arReason = Revocation::getReasons(); ?> -

%kunde_anrede% %kunde_name%,

+

%kunde_anrede% %kunde_name%,

-

+

-

+

$d): @@ -35,25 +35,25 @@

- : + : getNr(); ?>

- : + : x getProduct()->getProductName(true); ?> - / : + / : getProduct()->getNr(); ?>

- : + :

- : + :

@@ -62,15 +62,15 @@

- : + :

- -

+ +

-
+
get_option('wpsg_shopdata_name'); ?> - - + -

\ No newline at end of file diff --git a/views/mods/mod_revocation/mails/mail_customer_text.phtml b/views/mods/mod_revocation/mails/mail_customer_text.phtml index fb65b63..5636d6b 100644 --- a/views/mods/mod_revocation/mails/mail_customer_text.phtml +++ b/views/mods/mod_revocation/mails/mail_customer_text.phtml @@ -13,11 +13,11 @@ $arSubmitData = \wpsg_ShopController::getShop()->view['arSubmitData'] ?? []; $arReason = Revocation::getReasons(); -?> %kunde_anrede% %kunde_name%, +?> %kunde_anrede% %kunde_name%, - + - + $d): @@ -32,23 +32,23 @@ ))[0]['text'] ?? ''; ?> - getNr(); ?> + getNr(); ?> - x getProduct()->getProductName(true); ?> / : getProduct()->getNr(); ?> + x getProduct()->getProductName(true); ?> / : getProduct()->getNr(); ?> - + - + - + - - + + - + -get_option('wpsg_shopdata_name'); ?> - \ No newline at end of file +get_option('wpsg_shopdata_name'); ?> - \ No newline at end of file diff --git a/views/mods/mod_revocation/order_view_row.phtml b/views/mods/mod_revocation/order_view_row.phtml index 0d1cecc..9a58cc1 100644 --- a/views/mods/mod_revocation/order_view_row.phtml +++ b/views/mods/mod_revocation/order_view_row.phtml @@ -15,8 +15,8 @@ - : - + : + diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml index daa8eff..5640420 100644 --- a/views/mods/mod_revocation/page_form.phtml +++ b/views/mods/mod_revocation/page_form.phtml @@ -48,14 +48,14 @@
-
+
-
+
@@ -63,10 +63,10 @@
-
+
@@ -84,7 +84,7 @@
-
+
0 && $contact_email !== '') ? 'readonly' : ''); ?> @@ -93,12 +93,12 @@

- - . + + .

- +
@@ -173,7 +173,7 @@ } else { form.style.display = 'none'; - msg.innerHTML = '
'; + msg.innerHTML = '
'; msg.scrollIntoView({ behavior: 'smooth', block: 'center' }); } @@ -181,7 +181,7 @@ }).catch(() => { button.disabled = false; - msg.innerHTML = '
'; + msg.innerHTML = '
'; }); diff --git a/views/mods/mod_revocation/settings_edit.phtml b/views/mods/mod_revocation/settings_edit.phtml index c47b46b..47666f4 100644 --- a/views/mods/mod_revocation/settings_edit.phtml +++ b/views/mods/mod_revocation/settings_edit.phtml @@ -16,8 +16,8 @@
@@ -25,23 +25,23 @@
- get_option('wpsg_mod_revocation_view_order'), ['fullWidth' => true]); ?> - get_option('wpsg_mod_revocation_view_flyout'), ['fullWidth' => true]); ?> - get_option('wpsg_mod_revocation_view_product'), ['fullWidth' => true]); ?> - get_option('wpsg_mod_revocation_view_customer_mail'), ['fullWidth' => true]); ?> + get_option('wpsg_mod_revocation_view_order'), ['fullWidth' => true]); ?> + get_option('wpsg_mod_revocation_view_flyout'), ['fullWidth' => true]); ?> + get_option('wpsg_mod_revocation_view_product'), ['fullWidth' => true]); ?> + get_option('wpsg_mod_revocation_view_customer_mail'), ['fullWidth' => true]); ?>
- view['pages'], wpsg_ShopController::getShop()->get_option('wpsg_page_widerrufsformular'), ['hint' => __('Wählen Sie „Neu anlegen und zuordnen", damit beim Speichern automatisch eine eigene Seite erstellt wird – oder ordnen Sie eine bestehende Seite zu. Das Formular wird automatisch in diese Seite eingebunden.', 'wpsgRevocation')]); ?> + view['pages'], wpsg_ShopController::getShop()->get_option('wpsg_page_widerrufsformular'), ['hint' => __('Wählen Sie „Neu anlegen und zuordnen", damit beim Speichern automatisch eine eigene Seite erstellt wird – oder ordnen Sie eine bestehende Seite zu. Das Formular wird automatisch in diese Seite eingebunden.', 'wpsg')]); ?>

E-Mail Konfiguration.', 'wpsgRevocation'), + __('Einstellungen zu den E-Mails finden Sie in der E-Mail Konfiguration.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf' ); ?>
- +

@@ -49,14 +49,14 @@
-

+

- +
@@ -107,7 +107,7 @@ }; const removeReason = r => { - if (confirm('')) { + if (confirm('')) { arReason.value = arReason.value.filter(v => v !== r); diff --git a/views/mods/mod_revocation/wp_footer.phtml b/views/mods/mod_revocation/wp_footer.phtml index 3c4f9c8..9e7a404 100644 --- a/views/mods/mod_revocation/wp_footer.phtml +++ b/views/mods/mod_revocation/wp_footer.phtml @@ -16,7 +16,7 @@
Vertrag widerrufen - +
@@ -29,17 +29,17 @@
- +
- <?php echo __('Bitte warten ...', 'wpsgRevocation'); ?> + <?php echo __('Bitte warten ...', 'wpsg'); ?>
@@ -119,7 +119,7 @@ } else { - alert(''); + alert(''); close_dialog(event); document.querySelectorAll('.wpsg_revocation_order_product_checkbox:checked').forEach(el => { diff --git a/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml b/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml index c9c0cb1..458e1f3 100644 --- a/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml +++ b/views/mods/mod_revocation/wpsg_mod_kundenverwaltung_order_after_products.phtml @@ -38,11 +38,11 @@ data-amount="" /> Vertrag widerrufen - +
-

+

-- cgit v1.2.3