From 4e047665e3b18689fcfd9ae65da07db0cefaef9c Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Sat, 5 Mar 2016 18:57:24 +0000 Subject: - Im Shop aber schon - Produktansichtenmodul funktioniert grundlegend über Shortcode (Ohne Sortierung / Listansicht) - Tuning Produktverwaltung und ne Menge Warnungen raus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5385 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/form/input_submit.phtml | 9 + views/admin/index.phtml | 4 +- views/admin/module.phtml | 2 +- views/css/admin.css | 15 +- views/css/frontend.css | 23 + views/js/admin.js | 23 + .../mod_productgroups/produkt_index_filter.phtml | 36 +- views/mods/mod_productview/productview.js | 29 ++ views/mods/mod_productview/productview.phtml | 106 +++++ views/mods/mod_produktbilder/dummy.png | Bin 0 -> 6668 bytes views/produkt/addedit.phtml | 30 +- views/produkt/index.phtml | 514 +++++++++------------ 12 files changed, 449 insertions(+), 342 deletions(-) create mode 100644 views/admin/form/input_submit.phtml create mode 100644 views/mods/mod_productview/productview.js create mode 100644 views/mods/mod_productview/productview.phtml create mode 100644 views/mods/mod_produktbilder/dummy.png diff --git a/views/admin/form/input_submit.phtml b/views/admin/form/input_submit.phtml new file mode 100644 index 0000000..6d52b8e --- /dev/null +++ b/views/admin/form/input_submit.phtml @@ -0,0 +1,9 @@ +
+ + + +
+ +
+ +
\ No newline at end of file diff --git a/views/admin/index.phtml b/views/admin/index.phtml index 247f418..c6f7b0a 100644 --- a/views/admin/index.phtml +++ b/views/admin/index.phtml @@ -14,7 +14,7 @@ - + writeBackendMessage(); ?> diff --git a/views/admin/module.phtml b/views/admin/module.phtml index 9acd05c..ec04f3f 100644 --- a/views/admin/module.phtml +++ b/views/admin/module.phtml @@ -17,7 +17,7 @@ view['groups'] as $group_name => $g) { ?> -
+ @@ -299,7 +299,7 @@
- +
@@ -339,7 +339,7 @@
- +
@@ -349,7 +349,7 @@
- +
@@ -360,7 +360,7 @@
- +
@@ -374,7 +374,7 @@ @@ -386,11 +386,11 @@
- +
- +    - +
@@ -431,7 +431,7 @@ '4' => __('Nur einmal mit Menge 1', 'wpsg'), '1' => __('Mehrfach mit beliebiger Menge', 'wpsg'), '2' => __('Mehrfach mit Menge 1', 'wpsg') - ), $this->view['data']['basket_multiple'], array('help' => 'basket_multiple')); ?> + ), @$this->view['data']['basket_multiple'], array('help' => 'basket_multiple')); ?> view['data']['id'] > 0) { ?> @@ -491,7 +491,7 @@ add_filter('tiny_mce_before_init', 'wpsg_formatTinyMCE'); add_filter('admin_head','wpsg_ShowTinyMCE'); - wp_editor($this->view['data']['beschreibung'], 'beschreibung'); + wp_editor(@$this->view['data']['beschreibung'], 'beschreibung'); ?> diff --git a/views/produkt/index.phtml b/views/produkt/index.phtml index c379079..79223f5 100644 --- a/views/produkt/index.phtml +++ b/views/produkt/index.phtml @@ -51,303 +51,245 @@ -
-

-

- - - view['data'])) { ?> - - - -

- - writeBackendMessage(); ?> - -
- - callMod('wpsg_mod_productgroups', 'produkt_index_filter'); ?> - - - - view['data'] > 0)) { ?> -
- -
view['count']); ?> -
- - « - ‹ - view['pages']; ?> - › - » - -
- - - -
+
-
-
-

-
- -

-
-
+ -
*/ ?> - - - - view['data']) && sizeof($this->view['data']) > 0) { ?> - - - - hasMod('wpsg_mod_produktbilder')) { ?> - - - - - hasMod('wpsg_mod_productgroups')) { ?> - - - hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?> - - - - - - - - view['data'] as $d) { ?> - - hasMod('wpsg_mod_produktbilder')) { ?> - - - + + hasMod('wpsg_mod_productgroups')) { ?> + + + hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?> + + + + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($d['id'])); + +
+
+
+
- if (wpsg_isSizedArray($arBilder)) - { - - echo ''; - echo ''; - echo ''; - - } + + + + + - ?> -
- " href="wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=" class="row-title"> -
- " href="wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id="> - isMultiLingual()) { ?> - getStoreLanguages() as $l) { ?> - getDefaultLanguageLocale()) { ?> - - <?php echo wpsg_translate(__('Produkt für Sprache #1# bearbeiten.', 'wpsg'), $l['name']); ?> - + callMod('wpsg_mod_productgroups', 'produkt_index_filter'); ?> + + + + +
+ + + + + view['pages'] > 1) { ?> + + + + writeBackendMessage(); ?> + +
+ view['data']) && sizeof($this->view['data']) > 0) { ?> + + + + hasMod('wpsg_mod_produktbilder')) { ?> + + + + + hasMod('wpsg_mod_productgroups')) { ?> + + + hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?> + + + + + + + + view['data'] as $d) { ?> + + hasMod('wpsg_mod_produktbilder')) { ?> + + + + + hasMod('wpsg_mod_productgroups')) { ?> + + + hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?> + - - hasMod('wpsg_mod_productgroups')) { ?> - - + + + - hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?> - + + + hasMod('wpsg_mod_produktbilder')) { ?> + - - - - - - - - - - hasMod('wpsg_mod_produktbilder')) { ?> - - - - - hasMod('wpsg_mod_productgroups')) { ?> - - - hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showBackendStock') == '1') { ?> - - - - - - -
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($d['id'])); + + if (wpsg_isSizedArray($arBilder)) + { + + echo ''; + echo ''; + echo ''; + + } + + ?> + + " href="wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=" class="row-title"> + + + + + + + +
+ hasMod('wpsg_mod_varianten') && wpsg_isSizedArray($this->callMod('wpsg_mod_varianten', 'loadVarianten', array($d['id'])))) { ?> +
+ +
- | - ')) return false;" title="" href="wp-admin/admin.php?page=wpsg-Produkt&action=del&edit_id=&noheader=1"> - | - ')) return false;" title="" href="wp-admin/admin.php?page=wpsg-Produkt&action=copy&edit_id=&noheader=1"> - | - " href="getProduktLink(array('id' => $d['id'])); ?>"> - callMods('produkt_index_editmenu', array(&$d)); ?> - -
- - - - + + getDefaultCountry()->kuerzel.')'; ?> + + get_option('wpsg_preisangaben') == WPSG_NETTO) { ?> + get_option('wpsg_currency')); ?> + + get_option('wpsg_currency')); ?> + +
-
- hasMod('wpsg_mod_varianten') && wpsg_isSizedArray($this->callMod('wpsg_mod_varianten', 'loadVarianten', array($d['id'])))) { ?> -
- -
+
- getDefaultCountry()->kuerzel.')'; ?> - - get_option('wpsg_preisangaben') == WPSG_NETTO) { ?> - get_option('wpsg_currency')); ?> - - get_option('wpsg_currency')); ?> - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
view['count']); ?> -
- - « - ‹ - view['pages']; ?> - › - » - -
- - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
-
- -
- - -

- + +

+ + +
\ No newline at end of file -- cgit v1.2.3