From 849fbd4f6aab6bf9bd3467719b683ee657c5f93d Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Tue, 26 Sep 2017 08:25:10 +0000 Subject: - git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6534 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productview/mce_plugin.js | 46 ---- views/mods/mod_productview/productview.js | 205 ----------------- views/mods/mod_productview/productview.phtml | 256 --------------------- .../mods/mod_productview/productview_filter.phtml | 123 ---------- views/mods/mod_productview/settings_edit.phtml | 8 - .../mods/mod_productview/shortcodegenerator.phtml | 114 --------- views/mods/mod_produktartikel/produkt.phtml | 58 ----- 7 files changed, 810 deletions(-) delete mode 100644 views/mods/mod_productview/mce_plugin.js delete mode 100644 views/mods/mod_productview/productview.js delete mode 100644 views/mods/mod_productview/productview.phtml delete mode 100644 views/mods/mod_productview/productview_filter.phtml delete mode 100644 views/mods/mod_productview/settings_edit.phtml delete mode 100644 views/mods/mod_productview/shortcodegenerator.phtml delete mode 100644 views/mods/mod_produktartikel/produkt.phtml (limited to 'views/mods') diff --git a/views/mods/mod_productview/mce_plugin.js b/views/mods/mod_productview/mce_plugin.js deleted file mode 100644 index 179e488..0000000 --- a/views/mods/mod_productview/mce_plugin.js +++ /dev/null @@ -1,46 +0,0 @@ -(function() { - - tinymce.create('tinymce.plugins.wpsgModProductviewPlugin', { - - init : function(ed, url) { - - ed.addCommand('mcewpsg2', function() { - ed.windowManager.open({ - file : 'admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_productview&noheader=1', - title: 'Produktansicht generieren', - width : 450, - height : 450, - inline : 1 - }, { - plugin_url : url - }); - }); - - ed.addButton('wpsgModProductviewPlugin', { - title : 'Produkte über die Produktansicht anzeigen', - cmd : 'mcewpsg2', - image : url + '/../../gfx/table.png' - }); - - ed.onNodeChange.add(function(ed, cm, n) { - cm.setActive('wpsgModProductviewPlugin', n.nodeName == 'IMG'); - }); - }, - - createControl : function(n, cm) { - return null; - }, - - getInfo : function() { - return { - longname : 'wpShopGermany Produktauswahl', - author : 'maennchen1.de', - authorurl : 'http://maennchen1.de', - version : "3.0" - }; - } - }); - - tinymce.PluginManager.add('wpsgModProductviewPlugin', tinymce.plugins.wpsgModProductviewPlugin); - -})(); diff --git a/views/mods/mod_productview/productview.js b/views/mods/mod_productview/productview.js deleted file mode 100644 index 76cb7f4..0000000 --- a/views/mods/mod_productview/productview.js +++ /dev/null @@ -1,205 +0,0 @@ - - /*! - * jQuery UI Touch Punch 0.2.3 - * - * Copyright 2011–2014, Dave Furfero - * Dual licensed under the MIT or GPL Version 2 licenses. - * - * Depends: - * jquery.ui.widget.js - * jquery.ui.mouse.js - */ - !function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery); - - function wpsg_switchProductview(index, page, order, mode) - { - - var atts = jQuery.parseJSON(jQuery('#wpsg_productview_' + index + ' input[name="wpsg_atts"]').val()); - - atts.page = page; - - if (typeof order !== "undefined") atts.order = order; - if (typeof mode !== "undefined") atts.mode = mode; - else - { - - if (jQuery('#wpsg_productview_' + index + ' .wpsg_mod_productview_modeswitch > a').length > 0) - { - - if (jQuery('#wpsg_productview_' + index + ' .wpsg_mod_productview_modeswitch > a.fa-th').hasClass('active')) atts.mode = 'grid'; - else atts.mode = 'list'; - - } - - } - - if (jQuery('#wpsg_mod_productview_filter').length > 0) - { - - atts.filter = jQuery('#wpsg_mod_productview_filter input').serialize(); - - } - - jQuery('#wpsg_productview_' + index).append('
Bitte warten, die Ansicht wird aktualisiert.
'); - - jQuery.ajax( { - 'url': wpsg_ajax.ajaxurl, - 'data': { - 'wpsg_mod': 'wpsg_mod_productview', - 'wpsg_action': 'refresh', - 'wpsg_atts': atts - }, - 'success': function(data) { - - jQuery('#wpsg_productview_' + index).replaceWith(data); - - wpsg_correctProductview(index); - - } - } ); - - return false; - - } - - function wpsg_correctProductview(index) - { - - var atts = jQuery.parseJSON(jQuery('#wpsg_productview_' + index + ' input[name="wpsg_atts"]').val()); - - if (atts.mode === 'list') jQuery('.wpsg_productview_product_grid').show(0); - - var max_height = 0; jQuery('#wpsg_productview_' + index + ' .wpsg_productview_product_grid .wpsg_mod_productview_name').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height); - var max_height = 0; jQuery('#wpsg_productview_' + index + ' .wpsg_productview_product_grid .wpsg_mod_productview_description').each(function() { if (jQuery(this).outerHeight() > max_height) max_height = jQuery(this).outerHeight(); } ).outerHeight(max_height); - - if (atts.mode === 'list') jQuery('.wpsg_productview_product_grid').hide(0); - - // Sortierungslayer - jQuery('.wpsg_mod_productview-order').bind('click', function(event) { - - if (jQuery(this).find('.wpsg_mod_productview-order-layer').is(':visible')) - { - - jQuery(this).find('.wpsg_mod_productview-order-layer').slideUp(); - - } - else - { - - jQuery(this).find('.wpsg_mod_productview-order-layer').slideDown(); - - } - - event.stopPropagation(); - - } ).disableSelection(); - - // Sortierung - jQuery('.wpsg_mod_productview-order-layer a').bind('click', function() { - - var productview_index = jQuery(this).attr("data-productview-index"); - var order = jQuery(this).attr("data-order"); - - wpsg_switchProductview(productview_index, 1, order); - - return false; - - } ).disableSelection(); - - // Umschalten der List/Grid Ansichten - jQuery('.wpsg_mod_productview_modeswitch > a').bind('click', function() { - - if (jQuery(this).hasClass('fa-th') &&!jQuery(this).hasClass('active')) - { - - jQuery('.wpsg_productview_product_list').hide(250); - jQuery('.wpsg_productview_product_grid').show(250); - - } - else if (jQuery(this).hasClass('fa-list') && !jQuery(this).hasClass('active')) - { - - jQuery('.wpsg_productview_product_grid').hide(250); - jQuery('.wpsg_productview_product_list').show(250); - - } - - jQuery('.wpsg_mod_productview_modeswitch a').removeClass('active'); - jQuery(this).addClass('active'); - - return false; - - } ); - - } - - function wpsg_filter_insert(values, set) - { - - var arValues = []; - - if (jQuery.trim(values) != '') arValues = jQuery.trim(values).split(','); - - if (jQuery.inArray(set, arValues) >= 0) arValues = jQuery.grep(arValues, function(value) { return value != set; } ); - else arValues.push(set); - - return jQuery.unique(arValues).join(','); - - } - - jQuery(document).ready(function() { - - // Preisfilter - var filter_min = parseFloat(jQuery('#wpsg_mod_productview_filter_price_info input[name="price_min"]').val()); - var filter_max = parseFloat(jQuery('#wpsg_mod_productview_filter_price_info input[name="price_max"]').val()); - - jQuery("#wpsg_mod_productview_filter_price-range").slider( { - range: true, - min: filter_min, - max: filter_max, - values: [filter_min, filter_max], - slide: function(event, ui) { - - jQuery('#wpsg_mod_productview_filter_price_info input[name="price_min"]').val(ui.values[0]); - jQuery('#wpsg_mod_productview_filter_price_info input[name="price_max"]').val(ui.values[1]); - - jQuery('#wpsg_mod_productview_filter_price_info .min').html(wpsg_numberformat(ui.values[0], 2)); - jQuery('#wpsg_mod_productview_filter_price_info .max').html(wpsg_numberformat(ui.values[1], 2)); - - }, - stop: function(event, ui) { - - wpsg_switchProductview(1, 1); - - } - } ); - - // Variantenfilter Small - jQuery('.wpsg_mod_productview_filter_item a.switch').bind('click', function() { - - var input = jQuery(this).parents('.wpsg_mod_productview_filter_item').find('input.val'); - input.val(wpsg_filter_insert(input.val(), jQuery(this).attr('data-value'))); - - jQuery(this).toggleClass('active'); - - wpsg_switchProductview(1, 1); - - return false; - - } ); - - jQuery('.wpsg_productview').each(function() { - - var x = jQuery(this).attr("id").substr(17); - wpsg_correctProductview(x); - - } ); - - jQuery('body, html').bind('click', function() { - - jQuery('.wpsg_mod_productview-order-layer:visible').each(function() { jQuery(this).parent().click(); } ); - - } ); - - } ); - \ No newline at end of file diff --git a/views/mods/mod_productview/productview.phtml b/views/mods/mod_productview/productview.phtml deleted file mode 100644 index 8b58ba7..0000000 --- a/views/mods/mod_productview/productview.phtml +++ /dev/null @@ -1,256 +0,0 @@ - - - - - -
- - view['wpsg_mod_productview']['cols'] != 3) { ?> -

view['wpsg_mod_productview']['title']); ?>

- - - view['wpsg_mod_productview']['products'])) { ?> - view['wpsg_mod_productview']['products'])[0]; ?> - - view['wpsg_mod_productview']['atts']['hideorder'])) { ?> -
- view['wpsg_mod_productview']['order']; ?> - - - - - - - view['wpsg_mod_productview']['arOrder'][$order]; ?> -
-
- view['wpsg_mod_productview']['arOrder'] as $value => $label) { ?> - - -
-
-
- - - - - - view['wpsg_mod_productview']['atts']['hideviewselect'])) { ?> - - - -
- -
- - view['wpsg_mod_productview']['products'])) { ?> - - view['wpsg_mod_productview']['products'] as $oProduct) { $i ++; ?> - -
- -
- - imagehandler->getAttachmentID($oProduct->getProductKey()); - - ?> - - -
-
- -
- -
- -
- - -
- -
-

getProductName(); ?>

-
- - rating > 0) { ?> -
- -
- - - canDisplayPrice()) { ?> -
- getOldPrice(); ?> - getPrice()) { ?> -
getPrice(), $this->get_option('wpsg_currency')); ?>
-
get_option('wpsg_currency')); ?>
- -
getPrice(), $this->get_option('wpsg_currency')); ?>
- -
- -
- getFrontendTaxview() == WPSG_BRUTTO) { ?> - Versandkosten', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?> - getFrontendTaxview() == WPSG_NETTO) { ?> - Versandkosten', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?> - -
- -

- - - getShortDescription(); if (wpsg_isSizedString($shortDescription)) { ?> -
-
- -
- - - canOrder()) { ?> - - - - - -
- -
- -
- -
- - imagehandler->getAttachmentID($oProduct->getProductKey()); - - ?> - - -
- -
- -
- -
- - rating > 0) { ?> -
- -
- - -
- - canDisplayPrice()) { ?> -
- - getOldPrice(); ?> - getPrice()) { ?> -
get_option('wpsg_currency')); ?>
-
getPrice(), $this->get_option('wpsg_currency')); ?>
- -
getPrice(), $this->get_option('wpsg_currency')); ?>
- - -
- -
- getFrontendTaxview() == WPSG_BRUTTO) { ?> - Versandkosten', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?> - getFrontendTaxview() == WPSG_NETTO) { ?> - Versandkosten', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?> - -
- -
- -
- - -
-
- -
- - - -
- -
-

getProductName(); ?>

-
- -
- shortdesc; ?> -
- - canOrder()) { ?> - - - - - -
- -
- - view['wpsg_mod_productview']['cols'] === 0) { ?> -
- - - - - -
- - -
- - $this->view['wpsg_mod_productview']['pages'], - 'page' => $this->view['wpsg_mod_productview']['page'], - 'per_page' => $this->view['wpsg_mod_productview']['per_page'], - 'margin' => 2, - 'onclick' => array( - 'func' => 'wpsg_switchProductview', - 'args' => array( - $this->view['wpsg_mod_productview']['index'], - '#PAGE#' - ) - ) - )); - - ?> - -
- -
- diff --git a/views/mods/mod_productview/productview_filter.phtml b/views/mods/mod_productview/productview_filter.phtml deleted file mode 100644 index 125cea0..0000000 --- a/views/mods/mod_productview/productview_filter.phtml +++ /dev/null @@ -1,123 +0,0 @@ -
- - view['showFilter'] as $filter_data) { ?> - - - -
-

- '; - - foreach ($ar as $k => $cat) - { - - echo '
  • '; - echo ''.wpsg_hspc($cat->cat_name).''; - - $arSubCat = $shop->callMod('wpsg_mod_produktartikel', 'getSubCategory', array($cat->term_id)); - wpsg_renderCat($shop, $arSubCat, $level + 1); - - echo '
  • '; - - } - - echo ''; - - } - - } - - wpsg_renderCat($this, $filter_data['cat']); - - ?> -
    - - - -
    -

    -
    -
    - get_option('wpsg_currency'); ?> - get_option('wpsg_currency'); ?> - - -
    -
    - - - - -
    -

    - - - -
    - -
    -

    - - -
    - - - -
    -

    - -
    - $auswahl) { ?> - - - - - - - - -
    -
    - - - - -
    \ No newline at end of file diff --git a/views/mods/mod_productview/settings_edit.phtml b/views/mods/mod_productview/settings_edit.phtml deleted file mode 100644 index 69e9a00..0000000 --- a/views/mods/mod_productview/settings_edit.phtml +++ /dev/null @@ -1,8 +0,0 @@ - - \ No newline at end of file diff --git a/views/mods/mod_productview/shortcodegenerator.phtml b/views/mods/mod_productview/shortcodegenerator.phtml deleted file mode 100644 index b68b548..0000000 --- a/views/mods/mod_productview/shortcodegenerator.phtml +++ /dev/null @@ -1,114 +0,0 @@ - - - - <?php echo __('Produktansicht generieren', 'wpsg'); ?> - - - - - - - - - - - -
    - -
    - - - view['arSelect'], '-1'); ?> - - - - - - - -
    - - - - - -
    - - - \ No newline at end of file diff --git a/views/mods/mod_produktartikel/produkt.phtml b/views/mods/mod_produktartikel/produkt.phtml deleted file mode 100644 index 7ba9133..0000000 --- a/views/mods/mod_produktartikel/produkt.phtml +++ /dev/null @@ -1,58 +0,0 @@ - - -get_option('wpsg_mod_produktartikel_twitter') == '1' || $this->get_option('wpsg_mod_produktartikel_google') == '1' || $this->get_option('wpsg_mod_produktartikel_facebook') == '1') { ?> -
    - - - -
    - - \ No newline at end of file -- cgit v1.2.3