From 0ccd23f52859f01c59ea3fdeba4004091612f8d5 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 1 Sep 2017 14:35:06 +0000 Subject: - Bilder / Varianten umgebaut vereinheitlicht und aufgeräumt - Produktbilder Modul durch "Imagehandler" ersetzt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6438 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productvariants/admin_edit.phtml | 104 ++---- views/mods/mod_productvariants/produkt.phtml | 22 +- views/mods/mod_produktbilder/dummy.jpg | Bin 5946 -> 0 bytes .../produkt_addedit_content.phtml | 364 --------------------- .../mods/mod_produktbilder/produkt_edit_list.phtml | 24 -- .../mod_produktbilder/produkt_edit_list2.phtml | 27 -- .../mod_produktbilder/produkt_edit_list_MT.phtml | 27 -- views/mods/mod_produktbilder/settings_edit.phtml | 7 - 8 files changed, 41 insertions(+), 534 deletions(-) delete mode 100644 views/mods/mod_produktbilder/dummy.jpg delete mode 100644 views/mods/mod_produktbilder/produkt_addedit_content.phtml delete mode 100644 views/mods/mod_produktbilder/produkt_edit_list.phtml delete mode 100644 views/mods/mod_produktbilder/produkt_edit_list2.phtml delete mode 100644 views/mods/mod_produktbilder/produkt_edit_list_MT.phtml delete mode 100644 views/mods/mod_produktbilder/settings_edit.phtml (limited to 'views/mods') diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 1c403c1..987e076 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -173,29 +173,27 @@   callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['product_id'])); - $k = $this->view['variant']['id']; - $kv = $vari['id']; - $temp = $this->callMod('wpsg_mod_productvariants', 'getVariImages', array($this->view['product_id'], $k, $vari['iid'])); + + $arAttachmentIDs = $this->imagehandler->getAttachmentIDs($this->view['product_id'], $vari['id']); + ?> - - - view['variant']['id'] $vari $var $kv $_REQUEST['pic'] - $file2 = $b['basenameori']; - $href = wp_get_attachment_image_src($b['post_id'], Array(25, 25)); - ?> - pic" id="" data-pid="" - onclick="return wpsg_vp_vari_setPic(this, , , '', , );"> - - - + + + + + pic" id="" onclick="return wpsg_vp_vari_setPic(this, view['variant']['id']; ?>, , '', view['product_id']; ?>);"> + + + + + + - - - - - - + + + + @@ -245,54 +237,26 @@ - - - - - - - -

- - -

- - view['data']['id'])) { ?> -
-
- - - - - - - \ No newline at end of file diff --git a/views/mods/mod_produktbilder/produkt_edit_list.phtml b/views/mods/mod_produktbilder/produkt_edit_list.phtml deleted file mode 100644 index d0aaf12..0000000 --- a/views/mods/mod_produktbilder/produkt_edit_list.phtml +++ /dev/null @@ -1,24 +0,0 @@ - -view['ProduktBilder']) > 0) { ?> - - view['ProduktBilder'] as $b) { ?> - -
- - <?php echo wpsg_hspc($b); ?> - - -
- - -
- - -

- \ No newline at end of file diff --git a/views/mods/mod_produktbilder/produkt_edit_list2.phtml b/views/mods/mod_produktbilder/produkt_edit_list2.phtml deleted file mode 100644 index 07ca110..0000000 --- a/views/mods/mod_produktbilder/produkt_edit_list2.phtml +++ /dev/null @@ -1,27 +0,0 @@ - - - view['ProduktBilder2']) && (sizeof($this->view['ProduktBilder2']) > 0)) { ?> - - view['ProduktBilder2'] as $b) { ?> - -
- - - <?php echo wpsg_hspc($b['fname']); ?> - - - -
- - -
- - -

- \ No newline at end of file diff --git a/views/mods/mod_produktbilder/produkt_edit_list_MT.phtml b/views/mods/mod_produktbilder/produkt_edit_list_MT.phtml deleted file mode 100644 index 3589f68..0000000 --- a/views/mods/mod_produktbilder/produkt_edit_list_MT.phtml +++ /dev/null @@ -1,27 +0,0 @@ - - - view['ProduktBilder_MT']) && (sizeof($this->view['ProduktBilder_MT']) > 0)) { ?> - - view['ProduktBilder_MT'] as $b) { ?> - -
- - - <?php echo wpsg_hspc($b['fname']); ?> - - - -
- - -
- - -

- \ No newline at end of file diff --git a/views/mods/mod_produktbilder/settings_edit.phtml b/views/mods/mod_produktbilder/settings_edit.phtml deleted file mode 100644 index b34edc6..0000000 --- a/views/mods/mod_produktbilder/settings_edit.phtml +++ /dev/null @@ -1,7 +0,0 @@ - -- cgit v1.2.3