summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/admin/modulelist.phtml4
-rw-r--r--views/admin/ueber.phtml25
-rw-r--r--views/mods/mod_productview/mce_plugin.js46
-rw-r--r--views/mods/mod_productview/productview.js205
-rw-r--r--views/mods/mod_productview/productview.phtml256
-rw-r--r--views/mods/mod_productview/productview_filter.phtml123
-rw-r--r--views/mods/mod_productview/settings_edit.phtml8
-rw-r--r--views/mods/mod_productview/shortcodegenerator.phtml114
-rw-r--r--views/mods/mod_produktartikel/produkt.phtml58
9 files changed, 20 insertions, 819 deletions
diff --git a/views/admin/modulelist.phtml b/views/admin/modulelist.phtml
index b91963c..0a63e08 100644
--- a/views/admin/modulelist.phtml
+++ b/views/admin/modulelist.phtml
@@ -115,13 +115,13 @@
echo ' - <strong class="wpsg_message_ok">'.__('aktuell', 'wpsg').'</strong>';
}
- else if (version_compare($modul_info['version'], WPSG_VERSION) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], WPSG_VERSION) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong><br />'.wpsg_translate(__('<a href="#1#">wpShopGermany Update</a> notwendig', 'wpsg'), WPSG_URL_WP.'wp-admin/plugins.php');
}
- else if (version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0)
+ else if ($this->shop->hasModInstalled($modul_key) && version_compare($modul_info['version'], $this->shop->arAllModule[$modul_key]->version) > 0)
{
echo ' - <strong class="wpsg_error">'.__('neue Version verfügbar', 'wpsg').'</strong>';
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml
index 0d3289b..65c7901 100644
--- a/views/admin/ueber.phtml
+++ b/views/admin/ueber.phtml
@@ -181,16 +181,27 @@
return $aRes;
}
- $arDir = iterateDir(WPSG_PATH_USERVIEW);
+ 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.'<br />';
+ $sd = ''; foreach ($arDir as $k => $d) $sd .= $d.'<br />';
- echo wpsg_drawForm_TextStart();
- echo $sd;
- echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
+ echo $sd;
+ }
+ else
+ {
+
+ echo WPSG_PATH_USERVIEW;
+
+ }
+
+ echo wpsg_drawForm_TextEnd(__('User-Views', 'wpsg'));
+
?>
</div>
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('<div class="wpsg_mod_productview_loading"><div class="inner"><div class="fa fa-spinner fa-pulse fa-3x fa-fw"></div><div class="text">Bitte warten, die Ansicht wird aktualisiert.</div></div></div>');
-
- 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 @@
-<?php
-
- /**
- * Template für die Anzeige der Produkte
- * Es sollte nur Inhalt unter dem Div der Klasse wpsg_productview geändert werden, da dieses mittels AJAX ausgetauscht wird
- */
-
-?>
-<span class="wpsg_productview" id="wpsg_productview_<?php echo $this->view['wpsg_mod_productview']['index']; ?>">
-
- <input type="hidden" name="wpsg_atts" value="<?php echo @wpsg_hspc(json_encode($this->view['wpsg_mod_productview']['atts'])); ?>" />
-
- <div class="wpsg_productview_head row">
-
- <?php if ($this->view['wpsg_mod_productview']['cols'] != 3) { ?>
- <h2 class="wpsg_productview_title <?php echo $this->view['wpsg_mod_productview']['col_class']['title']; ?>"><?php echo wpsg_hspc($this->view['wpsg_mod_productview']['title']); ?></h2>
- <?php } ?>
-
- <?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
- <?php $oProduct = array_values($this->view['wpsg_mod_productview']['products'])[0]; ?>
-
- <?php if (!wpsg_isSizedInt($this->view['wpsg_mod_productview']['atts']['hideorder'])) { ?>
- <div class="wpsg_mod_productview-order <?php echo $this->view['wpsg_mod_productview']['col_class']['order']; ?>">
- <?php echo __('Sortierung', 'wpsg'); $order = $this->view['wpsg_mod_productview']['order']; ?>
- <?php if (substr($order, -3) === 'asc') { ?>
- <span class="glyphicon glyphicon-menu-up"></span>
- <?php } else { ?>
- <span class="glyphicon glyphicon-menu-down"></span>
- <?php } ?>
-
- <strong><?php echo $this->view['wpsg_mod_productview']['arOrder'][$order]; ?></strong>
- <div class="wpsg_mod_productview-order-layer">
- <div class="inner">
- <?php foreach ($this->view['wpsg_mod_productview']['arOrder'] as $value => $label) { ?>
- <a href="#" class="<?php echo (($this->view['wpsg_mod_productview']['order'] === $value)?'selected':''); ?>" data-productview-index="<?php echo $this->view['wpsg_mod_productview']['index']; ?>" data-order="<?php echo $value; ?>"><?php echo $label; ?></a>
- <?php } ?>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <div class="wpsg_mod_productview-info <?php echo $this->view['wpsg_mod_productview']['col_class']['info']; ?> hidden-xs">
- <strong><?php
- echo wpsg_translate(__('Anzeige #1# - #2#', 'wpsg'),
- ($this->view['wpsg_mod_productview']['page'] - 1) * $this->view['wpsg_mod_productview']['per_page'] + 1,
- $this->view['wpsg_mod_productview']['pageMax']
- ); ?></strong>
- <?php echo wpsg_translate(__('von #1# Ergebnissen', 'wpsg'), $this->view['wpsg_mod_productview']['count']); ?>
- </div>
- <?php } ?>
-
- <?php if (!wpsg_isSizedInt($this->view['wpsg_mod_productview']['atts']['hideviewselect'])) { ?>
- <div class="wpsg_mod_productview_modeswitch hidden-xs">
- <a href="#" title="<?php echo __('Schaltet die Produktansicht auf die Grid Ansicht um.', 'wpsg'); ?>" class="fa fa-th <?php echo (($this->view['wpsg_mod_productview']['mode'] == 'grid')?'active':''); ?>"></a>
- <a href="#" title="<?php echo __('Schaltet die Produktansicht auf die List Ansicht um.', 'wpsg'); ?>" class="fa fa-list <?php echo (($this->view['wpsg_mod_productview']['mode'] == 'list')?'active':''); ?>"></a>
- </div>
- <?php } ?>
-
- </div>
-
- <div class="wpsg_productview_content col-2-xs-row row">
-
- <?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
-
- <?php $i = 0; foreach ($this->view['wpsg_mod_productview']['products'] as $oProduct) { $i ++; ?>
-
- <div style="<?php echo (($this->view['wpsg_mod_productview']['mode'] == 'list')?'':'display:none;'); ?>" class="wpsg_productview_product wpsg_productview_product_list wpsg_productview_product_<?php echo $oProduct->id; ?> col-md-12">
-
- <div class="row">
-
- <?php
-
- $attachment_id = $this->imagehandler->getAttachmentID($oProduct->getProductKey());
-
- ?>
-
- <?php if (wpsg_isSizedInt($attachment_id)) { $bImage = true; ?>
- <div class="col-md-4 col-sm-4">
- <div class="wpsg_mod_productview_image" style="background-image:url('<?php echo $image_url; ?>');"></div>
-
- <div class="box_img_wrap">
- <?php echo wp_get_attachment_image($attachment_id, 'wpsg-productview-image'); ?>
- </div>
-
- </div>
- <?php } ?>
-
- <div class="col-md-<?php echo (($bImage)?'8':'12'); ?> col-sm-<?php echo (($bImage)?'8':'12'); ?>">
-
- <div class="wpsg_mod_productview_name">
- <h2><?php echo $oProduct->getProductName(); ?></h2>
- </div>
-
- <?php if ($oProduct->rating > 0) { ?>
- <div class="wpsg_star_wrap">
- <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $oProduct->rating)?'fa-star-active':''); ?>"></i><?php } ?>
- </div>
- <?php } ?>
-
- <?php if ($oProduct->canDisplayPrice()) { ?>
- <div class="wpsg_mod_productview_price_wrap">
- <?php $oldPrice = $oProduct->getOldPrice(); ?>
- <?php if ($oldPrice !== false && $oldPrice != $oProduct->getPrice()) { ?>
- <div class="wpsg_mod_productview_current"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
- <div class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></div>
- <?php } else { ?>
- <div class="wpsg_mod_productview_price"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
- <?php } ?>
- </div>
-
- <div class="wpsg_mod_productview_tax_wrap">
- <?php if ($this->getFrontendTaxview() == WPSG_BRUTTO) { ?>
- <?php echo wpsg_translate(__('inkl. #1#% MwSt. zzgl. <a href="#2#">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
- <?php } else if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
- <?php echo wpsg_translate(__('zzgl. #1#% MwSt. zzgl. <a href="#2#">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
- <?php } ?>
- </div>
- <?php } else { ?>
- <p><?php echo __('Preise werden nur für angemeldete Benutzer angezeigt.', 'wpsg'); ?></p>
- <?php } ?>
-
- <?php $shortDescription = $oProduct->getShortDescription(); if (wpsg_isSizedString($shortDescription)) { ?>
- <div class="wpsg_mod_productview_description sto-productview-description">
- <strong><?php echo __('Produktbeschreibung', 'wpsg'); ?></strong><br />
- <?php echo $shortDescription; ?>
- </div>
- <?php } ?>
-
- <?php if ($oProduct->canOrder()) { ?>
- <a class="sto_button sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } else { ?>
- <a class="sto_button sto_button_soldout sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } ?>
-
- </div>
-
- </div>
-
- </div>
-
- <div onclick="<?php
-
- echo 'location.href = \''.$oProduct->getProductURL().'\';';
-
- ?>" style="<?php echo (($this->view['wpsg_mod_productview']['mode'] == 'grid')?'':'display:none;'); ?>" class="wpsg_productview_product wpsg_productview_product_grid wpsg_productview_product_<?php echo $oProduct->id; ?> <?php echo $this->view['wpsg_mod_productview']['col_class']['product']; ?> col-xs-6">
-
- <?php
-
- $attachment_id = $this->imagehandler->getAttachmentID($oProduct->getProductKey());
-
- ?>
-
- <?php if (wpsg_isSizedInt($attachment_id)) { ?>
- <div class="wpsg_mod_productview_image">
-
- <div class="box_img_wrap">
- <?php echo wp_get_attachment_image($attachment_id, 'wpsg-productview-image'); ?>
- </div>
-
- <div class="wpsg_mod_productview_go">
-
- <?php if ($oProduct->rating > 0) { ?>
- <div class="wpsg_star_wrap">
- <?php for ($i = 0; $i < 5; $i ++) { ?><i class="fa fa-star <?php echo (($i >= $oProduct->rating)?'fa-star-active':''); ?>"></i><?php } ?>
- </div>
- <?php } ?>
-
- <div class="wpsg_center">
-
- <?php if ($oProduct->canDisplayPrice()) { ?>
- <div class="wpsg_mod_productview_price_wrap">
-
- <?php $oldPrice = $oProduct->getOldPrice(); ?>
- <?php if ($oldPrice !== false && $oldPrice != $oProduct->getPrice()) { ?>
- <div class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></div>
- <div class="wpsg_mod_productview_current"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
- <?php } else { ?>
- <div class="wpsg_mod_productview_price"><?php echo wpsg_ff($oProduct->getPrice(), $this->get_option('wpsg_currency')); ?></div>
- <?php } ?>
-
- </div>
-
- <div class="wpsg_mod_productview_tax_wrap">
- <?php if ($this->getFrontendTaxview() == WPSG_BRUTTO) { ?>
- <?php echo wpsg_translate(__('inkl. #1#% MwSt. zzgl. <a onclick="event.stopPropagation();" href="#2#">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
- <?php } else if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
- <?php echo wpsg_translate(__('zzgl. #1#% MwSt. zzgl. <a onclick="event.stopPropagation(); href="#2#">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
- <?php } ?>
- </div>
- <?php } else { ?>
- <div class="wpsg_mod_productview_price_wrap">
- <?php echo __('Preise werden nur für angemeldete Benutzer angezeigt.', 'wpsg'); ?>
- </div>
- <?php } ?>
-
- </div>
- </div>
-
- </div>
-
- <?php } ?>
-
- <div class="wpsg_mod_productview_bottom">
-
- <div class="wpsg_mod_productview_name">
- <h2><?php echo $oProduct->getProductName(); ?></h2>
- </div>
-
- <div class="wpsg_mod_productview_description">
- <?php echo $oProduct->shortdesc; ?>
- </div>
-
- <?php if ($oProduct->canOrder()) { ?>
- <a class="sto_button sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } else { ?>
- <a class="sto_button sto_button_soldout sto_button_layout2 sto_button_productview_addBasket" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
- <?php } ?>
-
- </div>
-
- </div>
-
- <?php if ($i % $this->view['wpsg_mod_productview']['cols'] === 0) { ?>
- <div class="clearfix visible-lg-block"></div>
- <?php } ?>
-
- <?php } ?>
-
- <?php } else { ?>
- <div class="col-lg-12"><?php echo __('Keine Produkte in dieser Ansicht.', 'wpsg'); ?></div>
- <?php } ?>
-
- <div class="clearfix"></div>
-
- <?php
-
- echo \sto\frontend\Pager::render(array(
- 'pages' => $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#'
- )
- )
- ));
-
- ?>
-
- </div>
-
-</span>
-
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 @@
-<div class="wpsg_mod_productview_filter" id="wpsg_mod_productview_filter">
-
- <?php foreach ($this->view['showFilter'] as $filter_data) { ?>
-
- <?php if ($filter_data['type'] === 'catfilter') { /* Kategoriefilter */ ?>
-
- <div class="wpsg_mod_productview_filter_item wpsg_mod_productview_filter_cat">
- <h2><?php echo __('Produktkategorie', 'wpsg'); ?></h2>
- <?php
-
- function wpsg_renderCat(&$shop, $ar, $level = 1)
- {
-
- if (wpsg_isSizedArray($ar))
- {
-
- echo '<ul class="level'.$level.'">';
-
- foreach ($ar as $k => $cat)
- {
-
- echo '<li>';
- echo '<a href="'.get_term_link($cat->term_id).'" title="'.wpsg_hspc($cat->cat_name).'">'.wpsg_hspc($cat->cat_name).'</a>';
-
- $arSubCat = $shop->callMod('wpsg_mod_produktartikel', 'getSubCategory', array($cat->term_id));
- wpsg_renderCat($shop, $arSubCat, $level + 1);
-
- echo '</li>';
-
- }
-
- echo '</ul>';
-
- }
-
- }
-
- wpsg_renderCat($this, $filter_data['cat']);
-
- ?>
- </div>
-
- <?php } else if ($filter_data['type'] === 'pricefilter') { ?>
-
- <div class="wpsg_mod_productview_filter_item wpsg_mod_productview_filter_price">
- <h2><?php echo __('Sortierung nach Preis', 'wpsg'); ?></h2>
- <div id="wpsg_mod_productview_filter_price-range"><span class="ui-slider-bg"></span></div>
- <div id="wpsg_mod_productview_filter_price_info">
- <span class="min"><?php echo wpsg_ff($filter_data['min']); ?></span> <?php echo $this->get_option('wpsg_currency'); ?> - <span class="max"><?php echo wpsg_ff($filter_data['max']); ?></span> <?php echo $this->get_option('wpsg_currency'); ?>
- <input type="hidden" name="price_min" value="<?php echo $filter_data['min']; ?>" />
- <input type="hidden" name="price_max" value="<?php echo $filter_data['max']; ?>" />
- </div>
- </div>
-
- <?php } else if ($filter_data['type'] === 'productvariants') { $variant = $filter_data['variant']; ?>
-
- <?php if ($filter_data['displayMode'] === wpsg_mod_productview::DISPLAYMODE_FILTER_CHECKBOX) { ?>
- <div class="wpsg_mod_productview_filter_item wpsg_mod_productview_filter_variant_checkbox wpsg_mod_productview_filter_variant wpsg_mod_productview_filter_variant_<?php echo $variant['type']; ?>">
- <h2><?php echo $variant['name']; ?></h2>
- <input class="val" type=hidden name="variants[<?php echo $variant['id']; ?>]" value="" />
-
- <div class="variation_wrap">
- <?php foreach ($filter_data['variation'] as $variation) { ?>
- <a class="switch" href="#" data-value="<?php echo $variation['id']; ?>">
-
- <span class="fa fa-square-o"></span>
- <span class="fa fa-check-square-o"></span>
-
- <?php if (wpsg_isSizedString($variation['shortname'])) { ?>
- <?php echo wpsg_hspc($variation['shortname']); ?>
- <?php } else { ?>
- <?php echo wpsg_hspc($variation['name']); ?>
- <?php } ?>
-
- </a>
- <?php } ?>
- </div>
- </div>
- <?php } else if ($filter_data['displayMode'] === wpsg_mod_productview::DISPLAYMODE_FILTER_SMALL) { ?>
- <div class="wpsg_mod_productview_filter_item wpsg_mod_productview_filter_variant_small wpsg_mod_productview_filter_variant wpsg_mod_productview_filter_variant_<?php echo $variant['type']; ?>">
- <h2><?php echo $variant['name']; ?></h2>
- <input class="val" type=hidden name="variants[<?php echo $variant['id']; ?>]" value="" />
- <div class="variation_wrap">
- <?php foreach ($filter_data['variation'] as $variation) { ?>
- <a class="switch" href="#" data-value="<?php echo $variation['id']; ?>">
-
- <?php if (wpsg_isSizedString($variation['shortname'])) { ?>
-
- <?php if (preg_match('/^\#[0-9a-fA-F]+$/', $variation['shortname'])) { ?>
- <span class="color" style="background-color:<?php echo $variation['shortname']; ?>;"><span class="fa-check-square-o fa"></span></span>
- <?php } else { ?>
- <?php echo wpsg_hspc($variation['shortname']); ?>
- <?php } ?>
-
- <?php } else { echo wpsg_hspc($variation['name']); } ?>
- </a>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- </div>
- <?php } ?>
-
- <?php } else if ($filter_data['type'] === 'productattributs') { $attribut = $filter_data['attribute']; ?>
- <div class="wpsg_mod_productview_filter_item wpsg_mod_productview_filter_attribut wpsg_mod_productview_filter_attribut_select">
- <h2><?php echo wpsg_hspc($attribut['name']); ?></h2>
- <input class="val" type=hidden name="attributs[<?php echo $attribut['id']; ?>]" value="" />
- <div class="attribut_wrap">
- <?php foreach ($attribut['auswahl'] as $index => $auswahl) { ?>
- <a class="switch" href="#" data-value="<?php echo wpsg_hspc($index); ?>">
-
- <span class="fa fa-square-o"></span>
- <span class="fa fa-check-square-o"></span>
- <?php echo wpsg_hspc($auswahl); ?>
-
- </a>
- <?php } ?>
- </div>
- </div>
- <?php } ?>
-
- <?php } ?>
-
-</div> \ 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 @@
-<?php
-
- /**
- * Template für die Einstellungen des Moduls "Produktansichten"
- */
-
-?>
- \ 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
-
- /**
- * Template für die Produktauswahl über den RTE
- */
-
-?>
-<html>
- <head>
- <title><?php echo __('Produktansicht generieren', 'wpsg'); ?></title>
-
- <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl'); ?>/wp-includes/js/jquery/jquery.js"></script>
- <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl'); ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
- <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl'); ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
- <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl'); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
-
- <link rel="stylesheet" href="<?php echo get_option('siteurl'); ?>/wp-content/plugins/wpshopgermany/views/js/bootstrap-3.3.6-dist/css/bootstrap.css" type="text/css" media="all" />
- <link rel="stylesheet" href="<?php echo get_option('siteurl'); ?>/wp-content/plugins/wpshopgermany/views/js/bootstrap-3.3.6-dist/css/bootstrap-theme.css" type="text/css" media="all" />
- </head>
- <body>
-
- <div style="padding-top:15px; font-size:12px;" class="form-horizontal">
-
- <div class="container-fluid">
-
- <?php echo wpsg_drawForm_Input('title', __('Titel', 'wpsg'), ''); ?>
- <?php echo wpsg_drawForm_Select('showswitch', __('Anzeige', 'wpsg'), $this->view['arSelect'], '-1'); ?>
-
- <div class="showswitch showswitch_0" style="display:none;">
- <?php echo wpsg_drawForm_Input('product_ids', __('Produkte (IDs kommagetrennt)', 'wpsg'), ''); ?>
- </div>
-
- <div class="showswitch showswitch_9" style="display:none;">
- <?php echo wpsg_drawForm_Select('pg_ids', __('Produktgruppen (Mehrfachauswahl mit STRG)', 'wpsg'), $this->view['arProductgroups'], '', array('multiple' => 8)); ?>
- </div>
-
- <div class="showswitch showswitch_15" style="display:none;">
- <?php echo wpsg_drawForm_Select('pg_cat', __('Produktkategorien (Mehrfachauswahl mit STRG)', 'wpsg'), $this->view['arCategories'], '', array('multiple' => 8)); ?>
- </div>
-
- </div>
-
- <input onclick="return insertSC();" style="margin:15px; width:auto; display:block; padding:3px 10px 3px 10px; box-sizing:border-box;" type="button" value="<?php echo __('Shortcode einfügen', 'wpsg'); ?>" />
-
- <script type="text/javascript">/* <![CDATA[ */
-
- function insertSC()
- {
-
- var text = "[wpsg_productview ";
-
- if (jQuery('#title').val().length > 0) text += ' title="' + jQuery('#title').val() + '"';
- if (jQuery('#showswitch').val() == '-1') text += ' product="-1"';
- else if (jQuery('#showswitch').val() == '0') text += ' product="' + jQuery('#product_ids').val() + '"';
- else if (jQuery('#showswitch').val() == '9')
- {
-
- text += ' productgroup_ids="'; var arIDs = [];
- jQuery('#pg_ids option:selected').each(function() { arIDs.push(jQuery(this).val()); } );
- text += arIDs.join(',') + '"';
-
- }
- else if (jQuery('#showswitch').val() == '15')
- {
-
- text += ' cat_ids="'; var arIDs = [];
- jQuery('#pg_cat option:selected').each(function() { arIDs.push(jQuery(this).val()); } );
- text += arIDs.join(',') + '"';
-
- }
-
- text += "]";
-
- if (window.tinyMCE)
- {
-
- <?php if (get_bloginfo('version') < 3.9) { ?>
-
- window.tinyMCE.execInstanceCommand("content", "mceInsertContent", false, text);
- tinyMCEPopup.editor.execCommand("mceRepaint");
-
- <?php } else { ?>
-
- parent.tinyMCE.execCommand('mceInsertContent', false, text);
- parent.tinyMCE.activeEditor.windowManager.close();
-
- <?php } ?>
-
-
- tinyMCEPopup.close();
-
- }
-
- return false;
-
- }
-
- jQuery(document).ready(function() {
-
- jQuery('#showswitch').bind('change', function() {
-
- jQuery('.showswitch').hide();
- jQuery('.showswitch_' + jQuery(this).val()).show();
-
- } ).change();
-
- } );
-
- /* ]]> */</script>
-
- </div>
-
- </body>
-</html> \ 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 @@
-<?php
-
- /**
- * Dieses Template wird in das Produkttemplate eingebunden und hat die Funktion die Social Media Links zu integrieren
- */
-
-?>
-
-<?php /* if ($this->get_option('wpsg_mod_produktartikel_twitter') == '1' || $this->get_option('wpsg_mod_produktartikel_google') == '1' || $this->get_option('wpsg_mod_produktartikel_facebook') == '1') { ?>
-<div class="socialshareprivacy" id="socialshareprivacy_<?php echo $this->getTemplateIndex(); ?>"></div>
-<script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- if (jQuery('#socialshareprivacy_<?php echo $this->getTemplateIndex(); ?>').length > 0)
- {
-
- jQuery('#socialshareprivacy_<?php echo $this->getTemplateIndex(); ?>').socialSharePrivacy( {
- 'services': {
- 'facebook': {
- 'status': '<?php echo (($this->get_option('wpsg_mod_produktartikel_facebook') == '1')?'on':'off'); ?>',
- 'dummy_img': '<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/socialshareprivacy/socialshareprivacy/images/dummy_facebook.png'; ?>'
- },
- 'twitter': {
- 'status': '<?php echo (($this->get_option('wpsg_mod_produktartikel_twitter') == '1')?'on':'off'); ?>',
- 'dummy_img': '<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/socialshareprivacy/socialshareprivacy/images/dummy_twitter.png'; ?>'
- },
- 'gplus': {
- 'status': '<?php echo (($this->get_option('wpsg_mod_produktartikel_google') == '1')?'on':'off'); ?>',
- 'dummy_img': '<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/socialshareprivacy/socialshareprivacy/images/dummy_gplus.png'; ?>'
- }
- },
- 'uri': '<?php echo $this->view['data']['url']; ?>',
- css_path: '<?php echo WPSG_URL_CONTENT; ?>plugins/'.WPSG_FOLDERNAME.'/lib/socialshareprivacy/socialshareprivacy/socialshareprivacy.css'
- } );
-
- }
-
- } );
-
- </script>
-<?php } */?>
-
-<div class="shariff" data-services="[&quot;facebook&quot;,&quot;facebook-like&quot;]" data-backend-url="<?php echo WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/shariff-backend-php-master/'; ?>"></div>
-
-<script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- /*
- new Shariff(jQuery('.shariff'), {
- orientation: 'horizontal'
- } );
- */
-
- } );
-
-</script> \ No newline at end of file