From a45d7a7b1617141ec0e00a3ebd41f1e3b1ff0b29 Mon Sep 17 00:00:00 2001 From: hartmut Date: Thu, 22 Jun 2017 08:45:06 +0000 Subject: Warnungen in Grid- und Listansicht beseitigt git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6341 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productindex/layouts/grid.phtml | 144 ++++++++++++------------- views/mods/mod_productindex/layouts/list.phtml | 118 ++++++++++---------- 2 files changed, 131 insertions(+), 131 deletions(-) diff --git a/views/mods/mod_productindex/layouts/grid.phtml b/views/mods/mod_productindex/layouts/grid.phtml index d0c5a80..e653d65 100644 --- a/views/mods/mod_productindex/layouts/grid.phtml +++ b/views/mods/mod_productindex/layouts/grid.phtml @@ -2,7 +2,7 @@ /** * Template für die Produktübersichtsseite (Gitteransicht) - */ + */ /* Modus für das Vorschaubild */ $bPicMode = 'c'; @@ -10,40 +10,40 @@ /* Höhe und Breite für das Vorschaubild (CSS Layout muss entsprechend angepasst werden) */ $nPicWidth = 140; $nPicHeight = 140; - + /* Wenn es auf false gesetzt wird, wird das erste Bild als Vorschaubild verwendet */ $nPicRand = true; - + $col = 4; - + ?>
- +
- + $value) { if (!wpsg_isSizedArray($value)) { ?> - + - + - +
- +
- + view['hideOrder'] != '1') { ?> -
+
- + view['wpsg_mod_productindex']['filter']['pages'] > 1) { ?>
    view['wpsg_mod_productindex']['filter']['pages']; $i ++) { ?>
  • - view['wpsg_mod_productindex']['filter']['page']) { ?> + view['wpsg_mod_productindex']['filter']['page']) { ?> - +
  • @@ -74,7 +74,7 @@
- + view['hideViewSelect'] != '1') { ?> - +
- +
view['arProducts'])) { ?> - + view['arProducts'] as $p) { $i ++; ?> - +
- -
+ +
hasMod('wpsg_mod_produktbilder')) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id'])); ?>
- - - + + + ?> @@ -113,42 +113,42 @@
-
+
+
hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindex') == '1') { ?> - get_option('wpsg_mod_weight_unit'))); ?> + get_option('wpsg_mod_weight_unit'))); ?> get_option('wpsg_mod_weight_unit'))); ?>
- +
hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?> -
- +
+
hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?> - get_option('wpsg_currency')), wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit']) ); ?> -
-
- +
+
+ hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProductindex') == '1') { ?>
- +
- + - callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?> + callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
get_option('wpsg_currency')); ?> @@ -156,51 +156,51 @@ get_option('wpsg_currency'))); ?>
- get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?> + get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'', 'Endpreis'); ?>
- -
+ +
getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?> getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').''); ?> getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').''); ?> -
+
- - + +
- + hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'checkBestand', array($this->getProduktID($p['id']), 1)) === false) { ?> - + - +
- +
-
-
- +
+
+
- + - +
- +
- +
- + view['hideOrder'] != '1') { ?>
@@ -216,16 +216,16 @@
- + view['wpsg_mod_productindex']['filter']['pages'] > 1) { ?>
    view['wpsg_mod_productindex']['filter']['pages']; $i ++) { ?>
  • - view['wpsg_mod_productindex']['filter']['page']) { ?> + view['wpsg_mod_productindex']['filter']['page']) { ?> - +
  • @@ -233,7 +233,7 @@
- + view['hideViewSelect'] != '1') { ?> - +
- +
get_option('wpsg_kleinunternehmer')) { ?> @@ -262,7 +262,7 @@ jQuery('#wpsg_mod_productindex_form').submit(); return false; - + } // function wpsg_mod_productindex_goPage(page) function wpsg_mod_productindex_viewselect(template) @@ -272,19 +272,19 @@ jQuery('#wpsg_mod_productindex_form').submit(); return false; - + } // function wpsg_mod_productindex_viewselect(template) - + jQuery(document).ready(function() { jQuery('.wpsg_mod_productindex_filter_order').bind('change', function() { - + jQuery('#wpsg_mod_productindex_filter_order').val(jQuery(this).find('option:selected').attr('value')); jQuery('#wpsg_mod_productindex_filter_page').val('1'); - jQuery('#wpsg_mod_productindex_form').submit(); - + jQuery('#wpsg_mod_productindex_form').submit(); + } ); - + } ); /* ]]> */ \ No newline at end of file diff --git a/views/mods/mod_productindex/layouts/list.phtml b/views/mods/mod_productindex/layouts/list.phtml index 8e0e71a..d8d23df 100644 --- a/views/mods/mod_productindex/layouts/list.phtml +++ b/views/mods/mod_productindex/layouts/list.phtml @@ -2,7 +2,7 @@ /** * Template für die Produktübersichtsseite - */ + */ /* Modus für das Vorschaubild */ $bPicMode = 'c'; @@ -10,36 +10,36 @@ /* Höhe und Breite für das Vorschaubild (CSS Layout muss entsprechend angepasst werden) */ $nPicWidth = 100; $nPicHeight = 100; - + /* Wenn es auf false gesetzt wird, wird das erste Bild als Vorschaubild verwendet */ $nPicRand = true; - + ?>
- +
- + $value) { if (!wpsg_isSizedArray($value)) { ?> - + - +
- +
- + view['hideOrder'] != '1') { ?>
@@ -55,16 +55,16 @@
- + view['wpsg_mod_productindex']['filter']['pages'] > 1) { ?>
    view['wpsg_mod_productindex']['filter']['pages']; $i ++) { ?>
  • - view['wpsg_mod_productindex']['filter']['page']) { ?> + view['wpsg_mod_productindex']['filter']['page']) { ?> - +
  • @@ -72,7 +72,7 @@
- + view['hideViewSelect'] != '1') { ?> - +
- +
view['arProducts'])) { ?> - + view['arProducts'] as $p) { $i ++; ?> -
+
hasMod('wpsg_mod_produktbilder')) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id'])); ?>
-
+
hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProductindex') == '1') { ?> - get_option('wpsg_mod_weight_unit'))); ?> + get_option('wpsg_mod_weight_unit'))); ?> get_option('wpsg_mod_weight_unit'))); ?>
- +
hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_fmenge') == '1') { ?> -
- +
+ hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProductindex') == '1') { ?>
- +
- +
hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showProductindex_grundpreis') == '1') { ?> - get_option('wpsg_currency')), wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $p['feinheit']) ); ?> -
+
- + - callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?> + callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
get_option('wpsg_currency')); ?> @@ -151,43 +151,43 @@ get_option('wpsg_currency'))); ?>
- get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?> + get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'', 'Endpreis'); ?>
- -
+ +
getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?> getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').''); ?> getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').''); ?> -
+
- -
+ +
hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'checkBestand', array($this->getProduktID($p['id']), 1)) === false) { ?> - +
- +
-
+
- +
- +
- + view['hideOrder'] != '1') { ?>
@@ -203,16 +203,16 @@
- + view['wpsg_mod_productindex']['filter']['pages'] > 1) { ?>
    - view['wpsg_mod_productindex']['filter']['pages']; $i ++) { ?> + view['wpsg_mod_productindex']['filter']['pages']; $i++) { ?>
  • - view['wpsg_mod_productindex']['filter']['page']) { ?> + view['wpsg_mod_productindex']['filter']['page']) { ?> - +
  • @@ -220,7 +220,7 @@
- + view['hideViewSelect'] != '1') { ?> - +
- +
get_option('wpsg_kleinunternehmer')) { ?> @@ -249,7 +249,7 @@ jQuery('#wpsg_mod_productindex_form').submit(); return false; - + } // function wpsg_mod_productindex_goPage(page) function wpsg_mod_productindex_viewselect(template) @@ -259,19 +259,19 @@ jQuery('#wpsg_mod_productindex_form').submit(); return false; - + } // function wpsg_mod_productindex_viewselect(template) - + jQuery(document).ready(function() { jQuery('.wpsg_mod_productindex_filter_order').bind('change', function() { - + jQuery('#wpsg_mod_productindex_filter_order').val(jQuery(this).find('option:selected').attr('value')); jQuery('#wpsg_mod_productindex_filter_page').val('1'); - jQuery('#wpsg_mod_productindex_form').submit(); - + jQuery('#wpsg_mod_productindex_form').submit(); + } ); - + } ); /* ]]> */ \ No newline at end of file -- cgit v1.2.3