summaryrefslogtreecommitdiff
path: root/views/mods/mod_weight
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_weight')
-rw-r--r--views/mods/mod_weight/basket_row.phtml11
-rw-r--r--views/mods/mod_weight/basket_row_end.phtml12
-rw-r--r--views/mods/mod_weight/overview_row.phtml12
-rw-r--r--views/mods/mod_weight/overview_row_end.phtml12
-rw-r--r--views/mods/mod_weight/product_addedit_content.phtml10
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')); ?>
+ &nbsp;
</div>
- <div class="value">
- <?php echo __('&nbsp;', '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')); ?>
+ &nbsp;
</div>
- <div class="value">
- <?php echo __('&nbsp;', '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(); ?>