summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/admin/kundendaten_tab3.phtml2
-rw-r--r--views/admin/path.phtml2
-rw-r--r--views/mods/mod_kundenverwaltung/profil.phtml2
-rw-r--r--views/mods/mod_kundenverwaltung/register.phtml2
-rw-r--r--views/mods/mod_onepagecheckout/onepage.phtml2
-rw-r--r--views/mods/mod_request/requestpage.phtml2
-rw-r--r--views/warenkorb/checkout.phtml2
7 files changed, 7 insertions, 7 deletions
diff --git a/views/admin/kundendaten_tab3.phtml b/views/admin/kundendaten_tab3.phtml
index 36c4916..c47ee1c 100644
--- a/views/admin/kundendaten_tab3.phtml
+++ b/views/admin/kundendaten_tab3.phtml
@@ -26,7 +26,7 @@
<?php echo wpsg_drawForm_Select('wpsg_defaultland', __('Standardland', 'wpsg'), $this->view['arLander'], $this->get_option('wpsg_defaultland'), array('help' => 'wpsg_defaultland', 'hint' =>
'nohspc_'.wpsg_translate(__('Die Länder können in der <a href="#1#">Länderverwaltung</a> definiert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=laender')
)); ?>
-<?php echo wpsg_drawForm_Select('wpsg_customerpreset_title', __('Standardanrede', 'wpsg'), $this->view['arTitle'], $this->get_option('wpsg_customerpreset_title'), array( 'help' => 'wpsg_customerpreset_title',
+<?php echo wpsg_drawForm_Select('wpsg_customerpreset_title', __('Standardanrede', 'wpsg'), ['-1' => __('Bitte auswählen', 'wpsg')] + $this->view['arTitle'], $this->get_option('wpsg_customerpreset_title'), array( 'help' => 'wpsg_customerpreset_title',
'hint' => 'nohspc_'.wpsg_translate(__('Die Auswahl kann in den <a href="#1#">Kundendaten</a> definiert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=kundendaten'),
'noIndex' => true
)); ?> \ No newline at end of file
diff --git a/views/admin/path.phtml b/views/admin/path.phtml
index db0237d..63fb129 100644
--- a/views/admin/path.phtml
+++ b/views/admin/path.phtml
@@ -32,7 +32,7 @@
<br />
</div>
- <?php echo wpsg_drawForm_Input('wpsg_path_upload_multiblog', __('Multiblog Upload Path (relativ zu wp-content)', 'wpsg'), $this->get_option('wpsg_path_upload_multiblog', true), array('hint' => __('Sollte den Platzhalter %blog_id% enthalten, dieser zeigt auf die ID des jeweiligen Blockes sonst kann es bei dem Betrieb von mehreren Shops zu Überschreibungen kommen.', 'wpsg'))); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_path_upload_multiblog', __('Multiblog Upload Path (relativ zu wp-content)', 'wpsg'), $this->get_option('wpsg_path_upload_multiblog', true), array('hint' => __('Bei „Jeden Blog getrennt behandeln“ den Platzhalter %blog_id% verwenden, sonst überschreiben sich die Dateien der Shops. Bei einem gemeinsamen Shop für alle Blogs einen Pfad ohne %blog_id% eintragen, sonst liegen Rechnungen und Downloads je nach Blog in verschiedenen Ordnern. Ein geänderter Pfad gilt nur für neue Dateien.', 'wpsg'))); ?>
<input type="hidden" name="subaction" value="path" />
diff --git a/views/mods/mod_kundenverwaltung/profil.phtml b/views/mods/mod_kundenverwaltung/profil.phtml
index b974e4f..4244f31 100644
--- a/views/mods/mod_kundenverwaltung/profil.phtml
+++ b/views/mods/mod_kundenverwaltung/profil.phtml
@@ -155,7 +155,7 @@
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
<?php /* <option value="<?php echo $i; $i++; ?>" <?php echo (($this->view['data']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option> */ ?>
<option value="<?php echo $i; /*wpsg_hspc($t);*/ ?>"
- <?php if ($this->view['data']['title'] == $i) : echo 'selected="selected"'; endif; ?>>
+ <?php if (strval($this->view['data']['title'] ?? '-1') === strval($i)) : echo 'selected="selected"'; endif; ?>>
<?php echo $t; $i++; ?>
</option>
<?php } ?>
diff --git a/views/mods/mod_kundenverwaltung/register.phtml b/views/mods/mod_kundenverwaltung/register.phtml
index 43d3dc1..0d93425 100644
--- a/views/mods/mod_kundenverwaltung/register.phtml
+++ b/views/mods/mod_kundenverwaltung/register.phtml
@@ -169,7 +169,7 @@
<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_register <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[register][title]">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
- <option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['data']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
+ <option value="<?php echo $i; ?>" <?php echo ((strval($this->view['data']['title'] ?? '-1') === strval($i))?'selected="selected"':''); $i++; ?>><?php echo $t; ?></option>
<?php } ?>
</select>
</div>
diff --git a/views/mods/mod_onepagecheckout/onepage.phtml b/views/mods/mod_onepagecheckout/onepage.phtml
index 4929524..213b62c 100644
--- a/views/mods/mod_onepagecheckout/onepage.phtml
+++ b/views/mods/mod_onepagecheckout/onepage.phtml
@@ -196,7 +196,7 @@
<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[checkout][title]">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
- <option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['basket']['checkout']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
+ <option value="<?php echo $i; ?>" <?php echo ((strval($this->view['basket']['checkout']['title'] ?? '-1') === strval($i))?'selected="selected"':''); $i++; ?>><?php echo $t; ?></option>
<?php } ?>
</select>
</div>
diff --git a/views/mods/mod_request/requestpage.phtml b/views/mods/mod_request/requestpage.phtml
index 84a212a..7eb7fae 100644
--- a/views/mods/mod_request/requestpage.phtml
+++ b/views/mods/mod_request/requestpage.phtml
@@ -292,7 +292,7 @@
<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[request][customer][title]">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
- <option value="<?php echo $i; /*wpsg_hspc($t);*/ $i++; ?>" <?php echo (($this->view['requestlist']['customer']['title'] == $t)?'selected="selected"':''); ?>><?php echo $t; ?></option>
+ <option value="<?php echo $i; ?>" <?php echo ((strval($this->view['requestlist']['customer']['title'] ?? '-1') === strval($i))?'selected="selected"':''); $i++; ?>><?php echo $t; ?></option>
<?php } ?>
</select>
</div>
diff --git a/views/warenkorb/checkout.phtml b/views/warenkorb/checkout.phtml
index f1dce4a..1d30a1c 100644
--- a/views/warenkorb/checkout.phtml
+++ b/views/warenkorb/checkout.phtml
@@ -133,7 +133,7 @@
<select class="<?php echo (($this->view['pflicht']['anrede'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("title", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_title" name="wpsg[checkout][title]">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
<?php $i=0; foreach (explode("|", $this->view['pflicht']['anrede_auswahl']) as $t) { ?>
- <option value="<?php echo $i; /*wpsg_hspc($t);*/ ?>" <?php echo (($this->view['basket']['checkout']['title'] == $i)?'selected="selected"':''); ?>><?php echo $t; $i++; ?></option>
+ <option value="<?php echo $i; /*wpsg_hspc($t);*/ ?>" <?php echo ((strval($this->view['basket']['checkout']['title'] ?? '-1') === strval($i))?'selected="selected"':''); ?>><?php echo $t; $i++; ?></option>
<?php } ?>
</select>
</div>