summaryrefslogtreecommitdiff
path: root/views/admin
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-09-27 16:36:48 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-09-27 16:36:48 +0200
commitb1fa4788318985cb32045ea0ee5604cd58c2a461 (patch)
treed9e6640a835be6cd5011b4e69068f5bc5479beda /views/admin
parent5384d5c78d1f7bcdbe15093034e41f88224e8465 (diff)
Wirkungslose Optionen entfernt (K1, P7, B4, P3), WPML-Hinweis (K3), nohspc_ sichtbar (K27), Rabatt-Umschalter (B27)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/admin')
-rw-r--r--views/admin/form/checkbox.phtml2
-rw-r--r--views/admin/form/input.phtml2
-rw-r--r--views/admin/form/select.phtml2
-rw-r--r--views/admin/includes.phtml1
-rw-r--r--views/admin/wpml.phtml91
5 files changed, 46 insertions, 52 deletions
diff --git a/views/admin/form/checkbox.phtml b/views/admin/form/checkbox.phtml
index 12e184a..5dcee75 100644
--- a/views/admin/form/checkbox.phtml
+++ b/views/admin/form/checkbox.phtml
@@ -37,7 +37,7 @@
<?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['hint'])) { ?>
- <div class="hint info"><?php echo $this->view['field_config']['hint']; ?></div>
+ <div class="hint info"><?php echo preg_replace('/^nohspc_/', '', $this->view['field_config']['hint']); ?></div>
<?php } ?>
</div>
diff --git a/views/admin/form/input.phtml b/views/admin/form/input.phtml
index cad903c..60482d1 100644
--- a/views/admin/form/input.phtml
+++ b/views/admin/form/input.phtml
@@ -51,7 +51,7 @@
<?php } ?>
<?php if (wpsg_isSizedString($this->view['field_config']['hint'])) { ?>
- <small id="emailHelp" class="form-text text-muted"><?php echo $this->view['field_config']['hint']; ?></small>
+ <small id="emailHelp" class="form-text text-muted"><?php echo preg_replace('/^nohspc_/', '', $this->view['field_config']['hint']); ?></small>
<?php } ?>
</div>
diff --git a/views/admin/form/select.phtml b/views/admin/form/select.phtml
index ed142e3..d29158d 100644
--- a/views/admin/form/select.phtml
+++ b/views/admin/form/select.phtml
@@ -101,7 +101,7 @@
</div>
<?php if (wpsg_isSizedString($this->view['field_config']['hint'])) { ?>
- <div class="hint info"><?php echo $this->view['field_config']['hint']; ?></div>
+ <div class="hint info"><?php echo preg_replace('/^nohspc_/', '', $this->view['field_config']['hint']); ?></div>
<?php } ?>
</div>
diff --git a/views/admin/includes.phtml b/views/admin/includes.phtml
index de0f5a0..9dc5701 100644
--- a/views/admin/includes.phtml
+++ b/views/admin/includes.phtml
@@ -41,7 +41,6 @@
<br />
- <?php echo wpsg_drawForm_Checkbox('wpsg_load_bootstrap_glyphfont_css', __('Bootstrap Glyphfont CSS im Frontend laden', 'wpsg'), $this->get_option('wpsg_load_bootstrap_glyphfont_css'), array('help' => 'wpsg_load_bootstrap_glyphfont_css')); ?>
<br />
diff --git a/views/admin/wpml.phtml b/views/admin/wpml.phtml
index df2c08c..efad07f 100644
--- a/views/admin/wpml.phtml
+++ b/views/admin/wpml.phtml
@@ -1,48 +1,43 @@
-<?php
-
- /**
- * User: Daschmi (https://daschmi.de)
- * Date: 01.06.2017
- * Time: 13:53
- */
-
- namespace wpsg;
-
-?>
-
-<div class="wpsg_admin_submenu">
-
- <div class="list-group">
- <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
- <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
- <a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
- <?php } ?>
- </div>
-
-</div>
-
-<div class="wpsg_admin_content form-horizontal">
- <form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=wpml&noheader=1'); ?>">
-
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <h3 class="panel-title"><?php echo __('WPML Einstellungen', 'wpsg'); ?></h3>
- </div>
- <div class="panel-body">
-
- <?php /* ?>
- <?php echo wpsg_drawForm_Checkbox('clear', __('Nicht verwendete String-Übersetzungen entfernen', 'wpsg'), false, array('fullWidth' => true)); ?>
-
- <br /> */ ?>
-
- <p class="info"><?php echo __('Fügt dynamische Inhalte wie Ländernamen, Namen von Varianten etc. zu den String-Übersetzungen von WPML hinzu und ermöglicht unter WPML -> String-Übersetzung die Übersetzung von diesen Inhalten.', 'wpsg'); ?></p>
-
- <input type="submit" name="wpsg_set_string_translation" class="button" value="<?php echo __('String-Übersetzung füllen', 'wpsg'); ?>" />
-
- </div>
- </div>
-
- </form>
-</div>
-
-
+<?php
+
+ /**
+ * User: Daschmi (https://daschmi.de)
+ * Date: 01.06.2017
+ * Time: 13:53
+ */
+
+ namespace wpsg;
+
+?>
+
+<div class="wpsg_admin_submenu">
+
+ <div class="list-group">
+ <span class="list-group-head list-group-item"><?php echo __('Konfiguration', 'wpsg'); ?></span>
+ <?php foreach ($this->view['arSubAction'] as $k => $v) { ?>
+ <a class="list-group-item <?php echo (($k == $this->view['subAction'])?'active':''); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&amp;subaction=<?php echo $k; ?>"><?php echo $v['Menutext']; ?></a>
+ <?php } ?>
+ </div>
+
+</div>
+
+<div class="wpsg_admin_content form-horizontal">
+ <form name="form1" method="post" enctype="multipart/form-data" action="<?php echo wpsg_hspc(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=wpml&noheader=1'); ?>">
+
+ <div class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title"><?php echo __('WPML Einstellungen', 'wpsg'); ?></h3>
+ </div>
+ <div class="panel-body">
+
+ <p class="info"><?php echo __('Fügt Ländernamen, Versandzonen, die Anredeauswahl und den Widerrufstext der Bestellbestätigung zu den String-Übersetzungen von WPML hinzu. Übersetzen Sie diese Einträge danach unter WPML -> String-Übersetzung. Zuvor automatisch angelegte Einträge werden dabei samt Übersetzung ersetzt.', 'wpsg'); ?></p>
+
+ <input type="submit" name="wpsg_set_string_translation" class="button" value="<?php echo __('String-Übersetzung füllen', 'wpsg'); ?>" />
+
+ </div>
+ </div>
+
+ </form>
+</div>
+
+