diff options
| author | jlbeer <noreply@maennchen1.de> | 2026-09-25 17:05:32 +0200 |
|---|---|---|
| committer | jlbeer <noreply@maennchen1.de> | 2026-09-25 17:05:32 +0200 |
| commit | abfd45b167a9deff2de2633212e28fe0b336c63d (patch) | |
| tree | 02a260a680be29cb0daa1bbc13a964ef2028c447 /views/mods/mod_weight | |
| parent | fc461e1afd3dcce2ddb39c0f3da5fd7cd342100a (diff) | |
| parent | be200df7d3e9b0fb65043627b35037eaf0046e6b (diff) | |
Merge remote-tracking branch 'origin/main'
Diffstat (limited to 'views/mods/mod_weight')
| -rw-r--r-- | views/mods/mod_weight/basket_row.phtml | 11 | ||||
| -rw-r--r-- | views/mods/mod_weight/basket_row_end.phtml | 12 | ||||
| -rw-r--r-- | views/mods/mod_weight/overview_row.phtml | 12 | ||||
| -rw-r--r-- | views/mods/mod_weight/overview_row_end.phtml | 12 | ||||
| -rw-r--r-- | views/mods/mod_weight/product_addedit_content.phtml | 10 |
5 files changed, 34 insertions, 23 deletions
diff --git a/views/mods/mod_weight/basket_row.phtml b/views/mods/mod_weight/basket_row.phtml index e47000b..1f8b2aa 100644 --- a/views/mods/mod_weight/basket_row.phtml +++ b/views/mods/mod_weight/basket_row.phtml @@ -4,11 +4,14 @@ * Template für die Anzeige des Produktgewichts im Warenkorb
*/
//wpsg_debug($this->view);
+
+ if (!defined('ABSPATH')) exit;
+
?>
<div class="product_info">
<div class="title">
- <span class="fa fa-balance-scale"></span>
- <?php echo __("Gewicht", "wpsg"); ?>:
- <strong><?php echo wpsg_ff($this->view['weight'], $this->get_option('wpsg_mod_weight_unit')); ?></strong>
- </div>
+ <span class="fa fa-balance-scale"></span>
+ <?php echo esc_html__('Gewicht', 'wpsg'); ?>:
+ <strong><?php echo esc_html(wpsg_ff($this->view['weight'], $this->get_option('wpsg_mod_weight_unit'))); ?></strong>
+ </div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_weight/basket_row_end.phtml b/views/mods/mod_weight/basket_row_end.phtml index 21d98b5..a58d2e0 100644 --- a/views/mods/mod_weight/basket_row_end.phtml +++ b/views/mods/mod_weight/basket_row_end.phtml @@ -4,15 +4,17 @@ * Template für die Anzeige des Gesamtgewichts innerhalb des Warenkorbs
*/
+ if (!defined('ABSPATH')) exit;
+
?>
<div class="basket_sum_row">
<div class="title">
- <?php echo __('Gesamtgewicht', 'wpsg'); ?>:
+ <?php echo esc_html__('Gesamtgewicht', 'wpsg'); ?>:
+ </div>
+ <div class="value">
+ <?php echo esc_html(wpsg_ff($this->view['wpsg_mod_weight']['weight'], $this->get_option('wpsg_mod_weight_unit'))); ?>
</div>
<div class="value">
- <?php echo wpsg_ff($this->view['wpsg_mod_weight']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
+
</div>
- <div class="value">
- <?php echo __(' ', 'wpsg'); ?>
- </div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_weight/overview_row.phtml b/views/mods/mod_weight/overview_row.phtml index a1cd49e..beac1f1 100644 --- a/views/mods/mod_weight/overview_row.phtml +++ b/views/mods/mod_weight/overview_row.phtml @@ -4,12 +4,14 @@ * Template für die Integration des Produktgewichts in die Bestellzusammenfassung
*/
+ if (!defined('ABSPATH')) exit;
+
?>
<div class="product_info">
- <div
+ <div
<?php if ($this->view['$bPicture'] == true) { ?>class="titlep"><?php } else { ?>class="title"><?php } ?>
- <span class="fa fa-balance-scale"></span>
- <?php echo __("Gewicht", "wpsg"); ?>:
- <strong><?php echo wpsg_ff($this->view['weight'], $this->get_option('wpsg_mod_weight_unit')); ?></strong>
- </div>
+ <span class="fa fa-balance-scale"></span>
+ <?php echo esc_html__('Gewicht', 'wpsg'); ?>:
+ <strong><?php echo esc_html(wpsg_ff($this->view['weight'], $this->get_option('wpsg_mod_weight_unit'))); ?></strong>
+ </div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_weight/overview_row_end.phtml b/views/mods/mod_weight/overview_row_end.phtml index 84a3d83..d9a7f3e 100644 --- a/views/mods/mod_weight/overview_row_end.phtml +++ b/views/mods/mod_weight/overview_row_end.phtml @@ -4,15 +4,17 @@ * Template für die Integration des Produktgewichts in die Bestellzusammenfassung
*/
+ if (!defined('ABSPATH')) exit;
+
?>
<div class="overview_sum_row">
<div class="title">
- <?php echo __('Gesamtgewicht', 'wpsg'); ?>:
+ <?php echo esc_html__('Gesamtgewicht', 'wpsg'); ?>:
+ </div>
+ <div class="value">
+ <?php echo esc_html(wpsg_ff($this->view['wpsg_mod_weight']['weight'], $this->get_option('wpsg_mod_weight_unit'))); ?>
</div>
<div class="value">
- <?php echo wpsg_ff($this->view['wpsg_mod_weight']['weight'], $this->get_option('wpsg_mod_weight_unit')); ?>
+
</div>
- <div class="value">
- <?php echo __(' ', 'wpsg'); ?>
- </div>
</div>
\ No newline at end of file diff --git a/views/mods/mod_weight/product_addedit_content.phtml b/views/mods/mod_weight/product_addedit_content.phtml index 3f9be4e..34bd8ff 100644 --- a/views/mods/mod_weight/product_addedit_content.phtml +++ b/views/mods/mod_weight/product_addedit_content.phtml @@ -1,17 +1,19 @@ <?php
-
+
/**
* Template für die Integration des Produktgewichts in die Produktverwaltung
*/
+ if (!defined('ABSPATH')) exit;
+
?>
<?php echo wpsg_drawForm_AdminboxStart(__('Produktgewicht', 'wpsg')); ?>
- <?php echo wpsg_drawForm_Input('wpsg_mod_weight[weight]', __('Produktgewicht', 'wpsg'), wpsg_ff($this->view['wpsg_mod_weight']['weight']), array('unit' => $this->get_option('wpsg_mod_weight_unit'))); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_weight[weight]', __('Produktgewicht', 'wpsg'), wpsg_ff($this->view['wpsg_mod_weight']['weight']), ['unit' => $this->get_option('wpsg_mod_weight_unit')]); ?>
- <br />
+ <br />
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_weight"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Gewichtsmoduls', 'wpsg'); ?></a>
+ <a href="<?php echo esc_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_weight'); ?>"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo esc_html__('Zur Konfiguration des Gewichtsmoduls', 'wpsg'); ?></a>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|
