summaryrefslogtreecommitdiff
path: root/views/blocks
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/blocks
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/blocks')
-rw-r--r--views/blocks/product-list.phtml8
1 files changed, 4 insertions, 4 deletions
diff --git a/views/blocks/product-list.phtml b/views/blocks/product-list.phtml
index 802c0c9..55c229c 100644
--- a/views/blocks/product-list.phtml
+++ b/views/blocks/product-list.phtml
@@ -34,9 +34,9 @@
<?php if ($this->canDisplayPrice()) { $price = $oProduct->getPrice($product_id); ?>
<div class="wpsg-product-list__price">
<?php if ($this->hasMod('wpsg_mod_productvariants') && $this->callMod('wpsg_mod_productvariants', 'isVariantsProduct', [$product_id])) { ?>
- <?php echo esc_html(wpsg_translate(__('ab #1#', 'wpsg'), wpsg_ff($price, $currency))); ?>
+ <?php echo wpsg_translate(esc_html__('ab #1#', 'wpsg'), wpsg_price_html($price, 'list')); ?>
<?php } else { ?>
- <?php echo esc_html(wpsg_ff($price, $currency)); ?>
+ <?php echo wpsg_price_html($price, 'list'); ?>
<?php } ?>
</div>
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
@@ -53,10 +53,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($this->getCurrentURL()); ?>" />
- <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 } else { ?>
- <a class="wpsg_button<?php echo wpsg_button_class(); ?>" href="<?php echo esc_url($p['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($p['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>
<?php } ?>
</div>