From 94b6b128d93490cbcc82cd89671dc9e300fd172b Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 20 Oct 2017 13:10:26 +0000 Subject: - Shoptheme erkennt auch das Verzeichnis wpshopgermany (Für Entwicklungsumgebung) - Produkturl in Produktverwaltung zeigt bei Produktartikelverwendung auf den übersetzen Artikel - Systemcheck ausgebaut und Meldungen ausblendbar - Kommentare für Produktartikel global aktivierbar (Nur mit Theme) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6633 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/admin/hilfe.phtml | 9 +- views/admin/ueber.phtml | 124 +++++++++++---------- views/js/admin.js | 12 +- .../produkt_addedit_content.phtml | 5 +- views/mods/mod_produktartikel/settings_edit.phtml | 6 + views/produkt/addedit.phtml | 6 +- views/produkt/select.phtml | 29 ++++- 7 files changed, 114 insertions(+), 77 deletions(-) (limited to 'views') diff --git a/views/admin/hilfe.phtml b/views/admin/hilfe.phtml index a56acab..3486484 100644 --- a/views/admin/hilfe.phtml +++ b/views/admin/hilfe.phtml @@ -27,12 +27,5 @@

https://wpshopgermany.uservoice.com/ - - -

hier umgewandelt werden.', 'wpsg'), - WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=migratemwst' - ); ?> - - + \ No newline at end of file diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml index 65c7901..82b685b 100644 --- a/views/admin/ueber.phtml +++ b/views/admin/ueber.phtml @@ -80,6 +80,66 @@ +

+ + + + + + + + + +
+ +
+ isDir()) + { + //(!$oItem->isDot() ? $aRes[$oItem->getFilename()] = iterateDir($oItem->getPathname()):0); + if (!$oItem->isDot()) { + $aResx = iterateDir($oItem->getPathname()); + $aRes = array_merge($aRes, $aResx); + } + continue; + } + //$aRes[] = $oItem->getFilename(); + $aRes[] = str_replace($pathuv, '', str_replace('\\', '/', $oItem->getPathname())); + } + return $aRes; + } + + echo wpsg_drawForm_TextStart(); + + if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW)) + { + + $arDir = iterateDir(WPSG_PATH_USERVIEW); + + $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'
'; + + echo $sd; + + } + else + { + + echo WPSG_PATH_USERVIEW; + + } + + echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg')); + + ?> + + @@ -134,19 +194,9 @@ -
- - - - - - - - - -
+ - callMods('systemcheck', array(&$arData)); ?> + systemcheck(); ?>
@@ -155,55 +205,9 @@

- - -
- isDir()) - { - //(!$oItem->isDot() ? $aRes[$oItem->getFilename()] = iterateDir($oItem->getPathname()):0); - if (!$oItem->isDot()) { - $aResx = iterateDir($oItem->getPathname()); - $aRes = array_merge($aRes, $aResx); - } - continue; - } - //$aRes[] = $oItem->getFilename(); - $aRes[] = str_replace($pathuv, '', str_replace('\\', '/', $oItem->getPathname())); - } - return $aRes; - } - - echo wpsg_drawForm_TextStart(); - - if (file_exists(WPSG_PATH_USERVIEW) && is_dir(WPSG_PATH_USERVIEW)) - { - - $arDir = iterateDir(WPSG_PATH_USERVIEW); - - $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'
'; - - echo $sd; + - } - else - { - - echo WPSG_PATH_USERVIEW; - - } - - echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg')); - - ?> -
+ diff --git a/views/js/admin.js b/views/js/admin.js index fa32ba8..c466f59 100644 --- a/views/js/admin.js +++ b/views/js/admin.js @@ -149,9 +149,15 @@ function wpsg_in_array(needle, haystack) var po; - function wpsg_ajaxBind() - { - + function wpsg_ajaxBind() { + + jQuery('.wpsg-is-dismissible').on('click', '.notice-dismiss', function(event, el) { + + var dismiss_url = jQuery(this).parent('.notice.is-dismissible').attr('data-dismiss-url'); + if (dismiss_url) { jQuery.get(dismiss_url); } + + }); + // Hilfe Tooltips jQuery('*[data-wpsg-tip]').on('click', function() { diff --git a/views/mods/mod_produktartikel/produkt_addedit_content.phtml b/views/mods/mod_produktartikel/produkt_addedit_content.phtml index 7f58019..d8821c2 100644 --- a/views/mods/mod_produktartikel/produkt_addedit_content.phtml +++ b/views/mods/mod_produktartikel/produkt_addedit_content.phtml @@ -25,8 +25,11 @@ view['data']['menu_order'])); ?> + + get_option('wpsg_mod_produktartikel_comment') <= 0) { ?> view['data']['comment_status'], 'open')); ?> - + +
diff --git a/views/mods/mod_produktartikel/settings_edit.phtml b/views/mods/mod_produktartikel/settings_edit.phtml index 170b150..a6b6ce6 100644 --- a/views/mods/mod_produktartikel/settings_edit.phtml +++ b/views/mods/mod_produktartikel/settings_edit.phtml @@ -18,6 +18,12 @@ get_option('wpsg_mod_produktartikel_ean'), array('help' => 'wpsg_mod_produktartikel_ean')); ?> get_option('wpsg_mod_produktartikel_gtin'), array('help' => 'wpsg_mod_produktartikel_gtin')); ?> + __('Produktspezifisch', 'wpsg'), + '1' => __('Global aktiviert', 'wpsg'), + '2' => __('Global deaktiviert', 'wpsg') +), $this->get_option('wpsg_mod_produktartikel_comment')); ?> + view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?> 'wpsg_error')); ?> diff --git a/views/produkt/addedit.phtml b/views/produkt/addedit.phtml index 0e1eed3..420888b 100644 --- a/views/produkt/addedit.phtml +++ b/views/produkt/addedit.phtml @@ -32,7 +32,11 @@
view['data']['id'])) { ?> - ', 'wpsg'), $this->view['data']['id'], $this->view['oProduct']->getProductURL()); ?> + ', 'wpsg'), + $this->view['data']['id'], + $this->view['oProduct']->getProductURL(((isset($_REQUEST['wpsg_lang']))?$_REQUEST['wpsg_lang']:false)) + ); ?> diff --git a/views/produkt/select.phtml b/views/produkt/select.phtml index 89c095a..2fd0f31 100644 --- a/views/produkt/select.phtml +++ b/views/produkt/select.phtml @@ -139,10 +139,31 @@ } // function insertProduktClose() - + + + + - +
@@ -161,7 +182,7 @@
- +

@@ -170,7 +191,7 @@ view['arProduktgroups'], false); ?> view['arProductgroupsOrder'], false); ?> view['arProductgroupsDirection'], false); ?> - + -- cgit v1.2.3