Index: /mods/wpsg_mod_basic.class.php
===================================================================
--- /mods/wpsg_mod_basic.class.php	(revision 6473)
+++ /mods/wpsg_mod_basic.class.php	(revision 6474)
@@ -44,5 +44,4 @@
 			101     => 'wpsg_mod_downloadplus',	// 100 = Core reserviert	
 			105 	=> 'wpsg_mod_basketteaser',
-			120 	=> 'wpsg_mod_produktbilder',
 			125		=> 'wpsg_mod_protectedshops',
 			130 	=> 'wpsg_mod_willcollect',
@@ -234,5 +233,5 @@
 		/** 
 		 * Verarbeutet Ajax Anfragen innerhalb der Produktverwaltung
-		 * Die URLs sehen dann etwa so aus: <?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_produktbilder&cmd=produktbilder_liste 
+		 * Die URLs sehen dann etwa so aus: <?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=ajax&mod=wpsg_mod_productvariants&cmd=produktbilder_liste 
 		 */
 		public function produkt_ajax() { }
Index: /mods/wpsg_mod_productgroups.class.php
===================================================================
--- /mods/wpsg_mod_productgroups.class.php	(revision 6473)
+++ /mods/wpsg_mod_productgroups.class.php	(revision 6474)
@@ -310,5 +310,5 @@
 			if (get_the_id() <= 0 || get_the_id() != $this->shop->get_option('wpsg_productgroups_page')) return;
 
-			if ($_REQUEST['show'] > 0)
+			if (isset($_REQUEST['show']) && $_REQUEST['show'] > 0)
 			{
 
@@ -382,5 +382,5 @@
 					$arrProdukte[$k] = $this->shop->loadProduktArray($p['id']);
 
-					$arrProdukte[$k]['bilder'] = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id']));
+					$arrProdukte[$k]['bilder'] = $this->shop->imagehandler->getAttachmentIDs($p['id']);
 					if (!wpsg_isSizedArray($arrProdukte[$k]['bilder'])) $arrProdukte[$k]['bilder'] = array();
 
@@ -468,5 +468,5 @@
 						$arrProdukte[$k2] = $this->shop->loadProduktArray($p['id']);
 
-						$arrProdukte[$k2]['bilder'] = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id']));
+						$arrProdukte[$k2]['bilder'] = $this->shop->imagehandler->getAttachmentIDs($p['id']);
 						if (!wpsg_isSizedArray($arrProdukte[$k2]['bilder'])) $arrProdukte[$k2]['bilder'] = array();
 
Index: /mods/wpsg_mod_produktartikel.class.php
===================================================================
--- /mods/wpsg_mod_produktartikel.class.php	(revision 6473)
+++ /mods/wpsg_mod_produktartikel.class.php	(revision 6474)
@@ -316,13 +316,8 @@
 			$this->shop->update_option('wpsg_mod_produktartikel_listtemplate', $_REQUEST['wpsg_mod_produktartikel_listtemplate']);
 			$this->shop->update_option('wpsg_mod_produktartikel_searchtemplate', $_REQUEST['wpsg_mod_produktartikel_searchtemplate']);
-			$this->shop->update_option('wpsg_mod_produktartikel_facebook', $_REQUEST['wpsg_mod_produktartikel_facebook']);
-			$this->shop->update_option('wpsg_mod_produktartikel_google', $_REQUEST['wpsg_mod_produktartikel_google']);
-			$this->shop->update_option('wpsg_mod_produktartikel_twitter', $_REQUEST['wpsg_mod_produktartikel_twitter']);
 
 			$this->shop->update_option('wpsg_mod_produktartikel_showui', $_REQUEST['wpsg_mod_produktartikel_showui']);
 
-			if ($this->shop->hasMod('wpsg_mod_produktbilder')) {
-				$this->shop->update_option('wpsg_mod_produktartikel_postthumbnail', $_REQUEST['wpsg_mod_produktartikel_postthumbnail']);
-			}
+			$this->shop->update_option('wpsg_mod_produktartikel_postthumbnail', $_REQUEST['wpsg_mod_produktartikel_postthumbnail']);
 
 			$pathkey_alt = $this->shop->get_option('wpsg_mod_produktartikel_pathkey');
@@ -504,16 +499,8 @@
 				$this->shop->view['data']['beschreibung'] = preg_replace("/\r|\n/", "", wpsg_hspc(strip_tags($this->shop->view['data']['beschreibung'])));
 
-				if ($this->shop->hasMod('wpsg_mod_produktbilder'))
-				{
-
-					$arBilder = array();
-					$arTemp = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($produkt_id));
-
-					foreach($arTemp as $k => $v) {
-						$arBilder[] = $v['guid'];
-					}
-					if (isset($arBilder) && (sizeof($arBilder) > 0)) $this->shop->view['data']['bilder'] = $arBilder;
-
-				}
+				$arBilder = array();
+				$arBilder = $this->shop->imagehandler->getAttachmentIDs($produkt_id);
+				
+				if (isset($arBilder) && (sizeof($arBilder) > 0)) $this->shop->view['data']['bilder'] = $arBilder;
 
 				if ($this->shop->get_option('wpsg_mod_produktartikel_facebook') == '1')
@@ -850,5 +837,5 @@
 			// Wenn das Produktbildermodul inaktiv ist, muss ich hier nichts machen
 			// Oder wenn Option nicht aktiv
-			if (!$this->shop->hasMod('wpsg_mod_produktbilder') || !wpsg_isSizedInt($this->shop->get_option('wpsg_mod_produktartikel_postthumbnail'))) return;
+			if (!wpsg_isSizedInt($this->shop->get_option('wpsg_mod_produktartikel_postthumbnail'))) return;
 
 			$post_id = $this->getPostIdFromProductId($product_id);	// Parent-ID
@@ -860,10 +847,4 @@
 				$post_thumbnail_id = get_post_thumbnail_id($post_id);
 
-				// Die Bilder mÃŒssen in extra Ordner liegen, da Wordpress auch die skallierten Bilder dort ablegt
-				$path_post_thumbnail = $this->shop->callMod('wpsg_mod_produktbilder', 'getPicPath', array($product_id)).'postthumbnail/';
-
-				// Ordner fÃŒr die Thumbnails lÃ¶schen, er beinhaltet die skalierten alten Bilder und wird wieder angelegt sofern ein Bild existiert
-				//wpsg_rrmdir($path_post_thumbnail);
-
 				// Eventuell bestehendes Thumbnail lÃ¶schen
 				if (wpsg_isSizedInt($post_thumbnail_id))
@@ -871,72 +852,18 @@
 
 					// Postmeta Typ _thumbnail_id lÃ¶schen
-					delete_post_thumbnail($post_id);
+					//delete_post_thumbnail($post_id);
 					// Postmeta Typ _wp_attachment_metadata und _wp_attached_file und Post lÃ¶schen
-					wp_delete_attachment($post_thumbnail_id);
-
-				}
-				// Medium weil sonst $attach_data['size'] 0 ist
-				$arBilder = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($product_id, 'thumbnail'));
-				//$arBilder = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($product_id));
-
-				if (wpsg_isSizedArray($arBilder))
-				{
-
-					$imgsrc = pathinfo($arBilder[0]['guid'])['basename'];	// hdoval-2-150x150.png
-					$imgdest = pathinfo(get_attached_file($arBilder[0]['post_id']))['basename'];	// hdoval-2.png
-					// alt: C:\xampp\htdocs\wp2\wp-content\uploads\wpsg\wpsg_produktbilder\6\posthumbnail/
-					// neu: C:\xampp\htdocs\wp2/wp-content/uploads/2017/03/postthumbnail/
-					$path_post_thumbnail = pathinfo(get_attached_file($arBilder[0]['post_id']))['dirname'].'/postthumbnail/';
-					// C:\xampp\htdocs\wp2/wp-content/uploads/2017/03/hdoval-2-150x150.png
-					$filename = pathinfo(get_attached_file($arBilder[0]['post_id']))['dirname'].'/'.$imgsrc;
-					// http://shop4.home/wp-content/uploads/2017/03
-					$fileurl = pathinfo($arBilder[0]['guid'])['dirname'].'/'.$imgdest;
-					$fileurl = pathinfo($arBilder[0]['guid'])['dirname'].'/'.$imgsrc;
-
-					//$img_file = array_shift($arBilder);
-					$img_file = $imgsrc;
-
-					// C:\xampp\htdocs\wp2\wp-content\uploads\wpsg\wpsg_produktbilder\6\hdoval-2-300x300.png
-					//$filename = $this->shop->callMod('wpsg_mod_produktbilder', 'getPicPath', array($product_id)).$img_file;
-
-					if (!file_exists($path_post_thumbnail)) mkdir($path_post_thumbnail, 0777, true);
-
-					if (file_exists($path_post_thumbnail))
-					{
-
-						copy($filename, $path_post_thumbnail.$img_file);
-
-						if (file_exists($path_post_thumbnail.$img_file))
-						{
-
-							$filetype = wp_check_filetype($img_file, null);
-							// http://shop4.home/wp-content/uploads/wpsg/wpsg_produktbilder/6/posthumbnail/hdoval-2-150x150.png
-							//$fileurl = $this->shop->callMod('wpsg_mod_produktbilder', 'getPicPath', array($product_id, true)).'posthumbnail/'.$img_file;
-
-							$attachment = array(
-								'guid' => $fileurl,
-								'post_mime_type' => $filetype['type'],
-								'post_title' => preg_replace('/\.[^.]+$/', '', basename($img_file)),
-								'post_content' => '',
-								'post_status' => 'inherit'
-							);
-							// Post und Postmeta Typ _wp_attached_file anlegen
-							$attach_id = wp_insert_attachment($attachment, $path_post_thumbnail.$img_file, $post_id);
-
-							// Meta Daten schreiben
-							require_once(ABSPATH.'wp-admin/includes/image.php');
-
-							// Postmeta Typ _wp_attachment_metadata anlegen
-							$attach_data = wp_generate_attachment_metadata($attach_id, $path_post_thumbnail.$img_file);
-							wp_update_attachment_metadata($attach_id, $attach_data);
-
-							// Postmeta Typ _thumbnail_id anlegen
-							set_post_thumbnail($post_id, $attach_id);
-
-						}
-					}
-
-				}
-
+					//wp_delete_attachment($post_thumbnail_id);
+
+				}
+
+				$attachs = $this->shop->imagehandler->getAttachmentIDs($product_id);
+				if (wpsg_isSizedArray($attachs))  
+				{
+					$attach_id = $attachs[0];
+				
+					// Postmeta Typ _thumbnail_id anlegen
+					set_post_thumbnail($post_id, $attach_id);
+				}
 			}
 
Index: /mods/wpsg_mod_request.class.php
===================================================================
--- /mods/wpsg_mod_request.class.php	(revision 6473)
+++ /mods/wpsg_mod_request.class.php	(revision 6474)
@@ -213,11 +213,6 @@
 		{
 		
-			if ($this->shop->hasMod('wpsg_mod_produktbilder'))
-			{
-			
 				echo wpsg_drawForm_Checkbox('wpsg_mod_request_requestpageimage', __('Produktbild auf Anfrageseite anzeigen', 'wpsg'), $this->shop->get_option('wpsg_mod_request_requestpageimage'));
 				
-			}
-			 	
 		} // public function admin_presentation()
 		
@@ -225,10 +220,5 @@
 		{
 			
-			if ($this->shop->hasMod('wpsg_mod_produktbilder'))
-			{
-				
 				$this->shop->update_option('wpsg_mod_request_requestpageimage', $_REQUEST['wpsg_mod_request_requestpageimage']);
-
-			}
 				
 		} // public function admin_presentation_submit()
Index: /views/mods/mod_discount/productgroups_addedit_sidebar.phtml
===================================================================
--- /views/mods/mod_discount/productgroups_addedit_sidebar.phtml	(revision 6473)
+++ /views/mods/mod_discount/productgroups_addedit_sidebar.phtml	(revision 6474)
@@ -6,14 +6,8 @@
 
 ?>
-<div id="postbox_productgrouprabatt" class="postbox">
-	<div class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br /></div>
-	<h3 class="handle">
-		<span><?php echo __('Produktgruppenrabatt', 'wpsg'); ?></span>
-	</h3>
-	<div class="inside">
-		<?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount[discount_aktiv]', __('Aktion aktiv', 'wpsg'), $this->view['wpsg_mod_discount']['data'][0]); ?>
-		<?php echo wpsg_drawForm_Input('wpsg_mod_discount[discount_from]', __('Start (TT.MM.JJJJ)', 'wpsg'), wpsg_hspc(wpsg_getStr($this->view['wpsg_mod_discount']['data'][1]))); ?>
-		<?php echo wpsg_drawForm_Input('wpsg_mod_discount[discount_to]', __('Ende (TT.MM.JJJJ)', 'wpsg'), wpsg_hspc(wpsg_getStr($this->view['wpsg_mod_discount']['data'][2]))); ?>
-		<?php echo wpsg_drawForm_Input('wpsg_mod_discount[discount_value]', __('Rabatt', 'wpsg'), wpsg_ff(wpsg_getStr($this->view['wpsg_mod_discount']['data'][3]))); ?>
-	</div>
-</div>
+<?php echo wpsg_drawForm_AdminboxStart(__('Produktgruppenrabatt'));  ?>
+	<?php echo wpsg_drawForm_Checkbox('wpsg_mod_discount[discount_aktiv]', __('Aktion aktiv', 'wpsg'), $this->view['wpsg_mod_discount']['data'][0]); ?>
+	<?php echo wpsg_drawForm_Input('wpsg_mod_discount[discount_from]', __('Start (TT.MM.JJJJ)', 'wpsg'), wpsg_hspc(wpsg_getStr($this->view['wpsg_mod_discount']['data'][1]))); ?>
+	<?php echo wpsg_drawForm_Input('wpsg_mod_discount[discount_to]', __('Ende (TT.MM.JJJJ)', 'wpsg'), wpsg_hspc(wpsg_getStr($this->view['wpsg_mod_discount']['data'][2]))); ?>
+	<?php echo wpsg_drawForm_Input('wpsg_mod_discount[discount_value]', __('Rabatt', 'wpsg'), wpsg_ff(wpsg_getStr($this->view['wpsg_mod_discount']['data'][3]))); ?>
+<?php echo wpsg_drawForm_AdminboxEnd(); ?>
Index: /views/mods/mod_productgroups/list.phtml
===================================================================
--- /views/mods/mod_productgroups/list.phtml	(revision 6473)
+++ /views/mods/mod_productgroups/list.phtml	(revision 6474)
@@ -10,6 +10,4 @@
 	$showP = 4;
 	
-	if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-
 ?>
 
@@ -29,5 +27,5 @@
 				
 				<a href="<?php echo $g['produkte'][$i]['url'] ?>">
-					<?php echo wp_get_attachment_image($g['produkte'][$i]['bilder'][$image]['post_id'], 'sto_productimage_100', false, array()); ?>
+					<?php echo wp_get_attachment_image($g['produkte'][$i]['bilder'][0], 'thumbnail', false, array()); ?>
 				</a>
 				 
Index: /views/mods/mod_productgroups/show.phtml
===================================================================
--- /views/mods/mod_productgroups/show.phtml	(revision 6473)
+++ /views/mods/mod_productgroups/show.phtml	(revision 6474)
@@ -7,6 +7,4 @@
 	 */
 
-	if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-		 
 ?>
 <div class="wpsg_pgruppen_single">
@@ -18,5 +16,5 @@
 			<div class="wpsg_pgruppen_single_list_image">								
 				<a href="<?php echo $p['url'] ?>">
-					<?php echo wp_get_attachment_image($g['bilder'][$image]['post_id'], 'sto_productimage_555', false, array()); ?>
+					<?php echo wp_get_attachment_image($p['bilder'][0], 'medium', false, array()); ?>
 				</a>
 			</div>
Index: /views/mods/mod_productview/productview.phtml
===================================================================
--- /views/mods/mod_productview/productview.phtml	(revision 6473)
+++ /views/mods/mod_productview/productview.phtml	(revision 6474)
@@ -5,7 +5,7 @@
 	 * Es sollte nur Inhalt unter dem Div der Klasse wpsg_productview geÃ€ndert werden, da dieses mittels AJAX ausgetauscht wird 
 	 */
-
+  
 ?>
-<div class="wpsg_productview" id="wpsg_productview_<?php echo $this->view['wpsg_mod_productview']['index']; ?>">
+<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'])); ?>" />
@@ -18,4 +18,7 @@
 		
 		<?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']; ?>
@@ -34,7 +37,8 @@
 				</div>			
 			</div>			
-		</div>
-		
-		<div class="wpsg_mod_productview-info <?php echo $this->view['wpsg_mod_productview']['col_class']['info']; ?>">
+		</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'), 
@@ -46,12 +50,14 @@
 		<?php } ?>
 
-		<div class="wpsg_mod_productview_modeswitch">
+		<?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 row">
+	<div class="wpsg_productview_content col-2-xs-row row">
 	
 		<?php if (wpsg_isSizedArray($this->view['wpsg_mod_productview']['products'])) { ?>
@@ -62,17 +68,23 @@
 
 				<div class="row">
-
-					<?php $bImage = false; if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
-					<?php $image_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage', array($oProduct->id, 520, 520, 'sz')); ?>
-					<?php if (wpsg_isSizedString($image_url)) { $bImage = true; ?>
-					<div class="col-md-4 wpsg_mod_productview_image">
-
-						<img src="<?php echo $image_url; ?>" alt="" />
-
+					
+					<?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 } ?>
-					<?php } ?>
-
-					<div class="col-md-<?php echo (($bImage)?'8':'12'); ?>">
+
+					<div class="col-md-<?php echo (($bImage)?'8':'12'); ?> col-sm-<?php echo (($bImage)?'8':'12'); ?>">
 
 						<div class="wpsg_mod_productview_name">
@@ -86,73 +98,99 @@
 						<?php } ?>
 
-						<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 $shortDescription = $oProduct->getShortDescription(); if (wpsg_isSizedString($shortDescription)) { ?>
-						<div class="wpsg_mod_productview_description theme_color_1">
-							<strong><?php echo __('Produktbeschreibung', 'wpsg'); ?></strong><br />
-							<?php echo $shortDescription; ?>
-						</div>
-						<?php } ?>
-
-						<a class="wpsg_mod_productview_button" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
-
-					</div>
-
-				</div>
-
-			</div>
-
-			<div style="<?php echo (($this->view['wpsg_mod_productview']['mode'] == 'grid')?'':'display:none;'); ?>" class="<?php echo (($this->view['wpsg_mod_productview']['mode'] == 'grid')?'':'hidden'); ?> wpsg_productview_product wpsg_productview_product_grid wpsg_productview_product_<?php echo $oProduct->id; ?> <?php echo $this->view['wpsg_mod_productview']['col_class']['product']; ?>">
-				
-				<?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
-				<?php $image_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage', array($oProduct->id, 520, 520, 'sz')); ?>
-				<?php if (wpsg_isSizedString($image_url)) { ?>
-				<div class="wpsg_mod_productview_image">
-				
-					<img src="<?php echo $image_url; ?>" alt="" />
-					
-					<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()) { ?>							
+								<?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>
-									<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 href="#2#">Versandkosten</a>', 'wpsg'), $oProduct->getFrontendTaxValue(), $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)); ?>
+									<?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 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>									
@@ -161,5 +199,5 @@
 				</div>
 				
-				<?php } } ?>
+				<?php } ?>
 				
 				<div class="wpsg_mod_productview_bottom">
@@ -173,5 +211,9 @@
 					</div>
 					
-					<a class="wpsg_mod_productview_button" href="<?php echo $oProduct->getProductURL(); ?>"><?php echo __('Zum Produkt', 'wpsg'); ?><span class="fa fa-angle-double-right"></span></a>
+					<?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>
@@ -191,25 +233,24 @@
 		<div class="clearfix"></div>
 		
-		<?php if (wpsg_isSizedInt($this->view['wpsg_mod_productview']['pages']) && $this->view['wpsg_mod_productview']['pages'] > 1) { ?>
-		<div class="wpsg_productview_pager">
-			<div class="wpsg_productview_pager_wrap">
-				<?php if ($this->view['wpsg_mod_productview']['page'] > 1) { ?>			
-				<a href="#" title="<?php echo wpsg_translate(__('Eine Seite zurÃŒck und die vorherigen #1# Produkte anzeigen', 'wpsg'), $this->view['wpsg_mod_productview']['per_page']); ?>" onclick="return wpsg_switchProductview(<?php echo $this->view['wpsg_mod_productview']['index']; ?>, <?php echo $this->view['wpsg_mod_productview']['page'] - 1; ?>);"><span class="glyphicon glyphicon-arrow-left"></span></a>
-				<?php } ?>
-				<?php for ($i = 1; $i <= $this->view['wpsg_mod_productview']['pages']; $i ++) { ?>
-					<?php if ($i == $this->view['wpsg_mod_productview']['page']) { ?>
-					<span><?php echo $i; ?></span>
-					<?php } else { ?>
-					<a onclick="return wpsg_switchProductview(<?php echo $this->view['wpsg_mod_productview']['index']; ?>, <?php echo $i; ?>); " href="#"><?php echo $i; ?></a>
-					<?php } ?>
-				<?php } ?>
-				<?php if ($this->view['wpsg_mod_productview']['page'] < $this->view['wpsg_mod_productview']['pages']) { ?>			
-				<a href="#" title="<?php echo wpsg_translate(__('Eine Seite vor und die nÃ€chsten #1# Produkte anzeigen', 'wpsg'), $this->view['wpsg_mod_productview']['per_page']); ?>" onclick="return wpsg_switchProductview(<?php echo $this->view['wpsg_mod_productview']['index']; ?>, <?php echo $this->view['wpsg_mod_productview']['page'] + 1; ?>); "><span class="glyphicon glyphicon-arrow-right"></span></a>
-				<?php } ?>
-			</div>
-		</div>
-		<?php } ?>
-	
+		<?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>
-	
-</div> 
+
+</span> 
+
Index: ews/mods/mod_produktartikel/header_facebook.phtml
===================================================================
--- /views/mods/mod_produktartikel/header_facebook.phtml	(revision 6473)
+++ 	(revision )
@@ -1,16 +1,0 @@
-<?php
-
-	/**
-	 * Template fÃŒr die Facebook META Integration auf einer Produktseite
-	 */
-
-?>
- 
-<meta property="og:title" content="<?php echo $this->view['data']['name']; ?>" />
-<meta property="og:type" content="product" />
-<?php if ($this->hasMod('wpsg_mod_produktbilder') && isset($this->view['data']['bilder'][0])) { ?>
-<meta property="og:image" content="<?php echo $this->view['data']['bilder'][0] ?>" />
-<?php } ?>
-<meta property="og:url" content="<?php echo $this->view['data']['url']; ?>" />
-<meta property="og:description" content="<?php echo $this->view['data']['beschreibung']; ?>" />
- 
Index: ews/mods/mod_produktartikel/header_google.phtml
===================================================================
--- /views/mods/mod_produktartikel/header_google.phtml	(revision 6473)
+++ 	(revision )
@@ -1,13 +1,0 @@
-<?php
-
-	/**
-	 * Template fÃŒr die Header Daten bei Google+ Einbindung
-	 */
-
-?>
- 
-<meta itemprop="name" content="<?php echo $this->view['data']['name']; ?>" />
-<meta itemprop="description" content="<?php echo $this->view['data']['beschreibung']; ?>" />
-<meta itemprop="url" content="<?php echo $this->view['data']['url']; ?>" />
-<meta itemprop="image" content="<?php echo $this->view['data']['bilder'][0] ?>" />
- 
Index: /views/mods/mod_produktartikel/schemaorg.phtml
===================================================================
--- /views/mods/mod_produktartikel/schemaorg.phtml	(revision 6473)
+++ /views/mods/mod_produktartikel/schemaorg.phtml	(revision 6474)
@@ -9,5 +9,5 @@
 <div itemscope itemtype="http://schema.org/Product" style="display:none;">
 	<span itemprop="name"><?php echo wpsg_hspc($this->view['data']['name']); ?></span>
-	<img itemprop="image" src="<?php echo $this->view['data']['bilder'][0] ?>" />
+	<img itemprop="image" src="<?php echo wp_get_attachment_image($this->view['data']['bilder'][0], 'medium'); ?>" />
 	<a itemprop="url" href="<?php echo $this->view['data']['url']; ?>"><?php echo $this->view['data']['name']; ?></a>
 	<div itemprop="description"><?php echo $this->view['data']['beschreibung']; ?></div>
Index: /views/mods/mod_produktartikel/settings_edit.phtml
===================================================================
--- /views/mods/mod_produktartikel/settings_edit.phtml	(revision 6473)
+++ /views/mods/mod_produktartikel/settings_edit.phtml	(revision 6474)
@@ -9,7 +9,5 @@
 <?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_showui', __('Custom Post Type in Wordpress MenÃŒ sichtbar', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_showui'), array('help' => 'wpsg_mod_produktartikel_showui'))?>
 
-<?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
 <?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_postthumbnail', __('Produktbild als Beitragsbild ÃŒbergeben', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_postthumbnail'), array('help' => 'wpsg_mod_produktartikel_postthumbnail')); ?>
-<?php } ?>
 
 <?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_showHome', __('Direkt auf Startseitenansicht anzeigen', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_showHome'), array('help' => 'wpsg_mod_produktartikel_showHome')); ?>
@@ -113,9 +111,2 @@
 	/* ]]> */</script>
 	<?php } ?>
-
-<br />
-
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_facebook', __('Facebook Integration', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_facebook'), array('help' => 'wpsg_mod_produktartikel_facebook')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_google', __('Google+ Integration', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_google'), array('help' => 'wpsg_mod_produktartikel_google')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_produktartikel_twitter', __('Twitter Integration', 'wpsg'), $this->get_option('wpsg_mod_produktartikel_twitter'), array('help' => 'wpsg_mod_produktartikel_twitter')); ?>
- 
