summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-01 20:04:24 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-01 20:04:24 +0200
commit54c1cd1867963549c3d1fd52de0780452e00407a (patch)
tree1216de5bb86594ba3cee14201e5109f939ae238a /views
parent45d28e894ad90dfd3375740410acd815e128f7cf (diff)
Produktübersichten: Kleinunternehmer-Hinweis als Ziel des Links
„Endpreis“ verweist auf den Hinweis unter der Übersicht; der Text wird geprüft ausgegeben (P31). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_productindex/layouts/grid.phtml6
-rw-r--r--views/mods/mod_productindex/layouts/list.phtml6
2 files changed, 6 insertions, 6 deletions
diff --git a/views/mods/mod_productindex/layouts/grid.phtml b/views/mods/mod_productindex/layouts/grid.phtml
index bf43c7c..f3839d0 100644
--- a/views/mods/mod_productindex/layouts/grid.phtml
+++ b/views/mods/mod_productindex/layouts/grid.phtml
@@ -144,7 +144,7 @@
<?php } ?>
<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
<div class="wpsg_produkt_preishinweis">
- <?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
+ <?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint">'.esc_html__('Endpreis', 'wpsg').'</a>'); ?>
</div>
<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
<div class="wpsg_produkt_preishinweis">
@@ -240,8 +240,8 @@
</div>
<?php if ($this->get_option('wpsg_kleinunternehmer')) { ?>
- <a name="kkhint"></a>
- <div class="wpsg_mod_productindex_kuhint"><?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?></div>
+ <?php /* Ziel des Links „Endpreis“; der title-Text erreichte Tastatur und Screenreader nicht (P31) */ ?>
+ <div class="wpsg_mod_productindex_kuhint" id="kkhint"><?php echo wp_kses_post((string)$this->get_option('wpsg_kleinunternehmer_text')); ?></div>
<?php } ?>
</div>
diff --git a/views/mods/mod_productindex/layouts/list.phtml b/views/mods/mod_productindex/layouts/list.phtml
index 9bac616..c27ee69 100644
--- a/views/mods/mod_productindex/layouts/list.phtml
+++ b/views/mods/mod_productindex/layouts/list.phtml
@@ -155,7 +155,7 @@
</div>
<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
<div class="wpsg_produkt_preishinweis">
- <?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
+ <?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint">'.esc_html__('Endpreis', 'wpsg').'</a>'); ?>
</div>
<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
<div class="wpsg_produkt_preishinweis">
@@ -238,8 +238,8 @@
</div>
<?php if ($this->get_option('wpsg_kleinunternehmer')) { ?>
- <a name="kkhint"></a>
- <div class="wpsg_mod_productindex_kuhint"><?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?></div>
+ <?php /* Ziel des Links „Endpreis“; der title-Text erreichte Tastatur und Screenreader nicht (P31) */ ?>
+ <div class="wpsg_mod_productindex_kuhint" id="kkhint"><?php echo wp_kses_post((string)$this->get_option('wpsg_kleinunternehmer_text')); ?></div>
<?php } ?>
</div>