summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-01 19:52:08 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-01 19:52:08 +0200
commitfdef6be49c0eae438c56c16a9013a252e7ed5c07 (patch)
tree51807e89765fb6d50b673013897aa8f9f9c06f72 /views/mods
parentb91bfdba300259c06d6a38730b3ff59ce0046063 (diff)
Einhängepunkte: feste Namen, Filter je Vorlage, Knöpfe und Preise
Die Aktionen der Vorlagen feuern zusätzlich als wpsg_template_… mit einzelnen Argumenten, der Vorlagenfilter auch mit relativem Schlüssel (K40). Neue Filter für Knopfklassen, Knopftexte und Preise; die bisherigen Namen bleiben. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_productindex/layouts/grid.phtml2
-rw-r--r--views/mods/mod_productindex/layouts/list.phtml2
-rw-r--r--views/mods/mod_productview/productview.phtml10
3 files changed, 7 insertions, 7 deletions
diff --git a/views/mods/mod_productindex/layouts/grid.phtml b/views/mods/mod_productindex/layouts/grid.phtml
index f9228c4..bf43c7c 100644
--- a/views/mods/mod_productindex/layouts/grid.phtml
+++ b/views/mods/mod_productindex/layouts/grid.phtml
@@ -171,7 +171,7 @@
<?php if (false) { ?>
<span class="wpsg_produkt_soldout"><?php echo __('Produkt ausverkauft', 'wpsg'); ?></span>
<?php } else { ?>
- <a class="wpsg_button<?php echo wpsg_button_class(); ?>" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?></a>
+ <a class="wpsg_button<?php echo wpsg_button_class(); ?>" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo esc_html(wpsg_button_text('to_product', __('Zum Produkt', 'wpsg'))); ?></a>
<?php } ?>
</div>
diff --git a/views/mods/mod_productindex/layouts/list.phtml b/views/mods/mod_productindex/layouts/list.phtml
index c62890b..9bac616 100644
--- a/views/mods/mod_productindex/layouts/list.phtml
+++ b/views/mods/mod_productindex/layouts/list.phtml
@@ -175,7 +175,7 @@
<?php if (false) { ?>
<span class="wpsg_produkt_soldout"><?php echo __('Produkt ausverkauft', 'wpsg'); ?></span>
<?php } else { ?>
- <a class="wpsg_button<?php echo wpsg_button_class(); ?>" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?></a>
+ <a class="wpsg_button<?php echo wpsg_button_class(); ?>" title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo esc_html(wpsg_button_text('to_product', __('Zum Produkt', 'wpsg'))); ?></a>
<?php } ?>
</div>
diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml
index 66ee06f..0319b84 100644
--- a/views/mods/mod_productview/productview.phtml
+++ b/views/mods/mod_productview/productview.phtml
@@ -90,10 +90,10 @@
<?php if ($oProduct->canDisplayPrice()) { $price = $oProduct->getPrice(); $oldPrice = $oProduct->getOldPrice(); ?>
<p class="wpsg-pv__price">
<?php if ($oldPrice !== false && $oldPrice != $price) { ?>
- <span class="wpsg-pv__price-current wpsg_mod_productview_current"><?php echo esc_html(wpsg_ff($price, $currency)); ?></span>
- <del class="wpsg-pv__price-old wpsg_mod_productview_oldprice"><?php echo esc_html(wpsg_ff($oldPrice, $currency)); ?></del>
+ <span class="wpsg-pv__price-current wpsg_mod_productview_current"><?php echo wpsg_price_html($price, 'list'); ?></span>
+ <del class="wpsg-pv__price-old wpsg_mod_productview_oldprice"><?php echo wpsg_price_html($oldPrice, 'list_old'); ?></del>
<?php } else { ?>
- <span class="wpsg-pv__price-current"><?php echo esc_html(wpsg_ff($price, $currency)); ?></span>
+ <span class="wpsg-pv__price-current"><?php echo wpsg_price_html($price, 'list'); ?></span>
<?php } ?>
</p>
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
@@ -134,10 +134,10 @@
<input type="hidden" name="wpsg[produkt_id]" value="<?php echo esc_attr((string)$product_id); ?>" />
<input type="hidden" name="wpsg[menge]" value="1" />
<input type="hidden" name="myReferer" value="<?php echo esc_attr($v['url']); ?>" />
- <button type="submit" name="wpsg[submit]" value="1" class="wpsg_button wpsg_add_basket<?php echo wpsg_button_class(); ?>"><?php echo esc_html__('In den Warenkorb', 'wpsg'); ?><span class="screen-reader-text"><?php echo esc_html(': '.$name); ?></span></button>
+ <button type="submit" name="wpsg[submit]" value="1" class="wpsg_button wpsg_add_basket<?php echo wpsg_button_class(); ?>"><?php echo esc_html(wpsg_button_text('add_to_basket', __('In den Warenkorb', 'wpsg'))); ?><span class="screen-reader-text"><?php echo esc_html(': '.$name); ?></span></button>
</form>
<?php } ?>
- <a class="wpsg_button<?php echo wpsg_button_class(); ?>" href="<?php echo esc_url($url); ?>"><?php echo esc_html__('Zum Produkt', 'wpsg'); ?><span class="screen-reader-text"><?php echo esc_html(': '.$name); ?></span></a>
+ <a class="wpsg_button<?php echo wpsg_button_class(); ?>" href="<?php echo esc_url($url); ?>"><?php echo esc_html(wpsg_button_text('to_product', __('Zum Produkt', 'wpsg'))); ?><span class="screen-reader-text"><?php echo esc_html(': '.$name); ?></span></a>
</div>
</div>