Index: /mods/wpsg_mod_productgroups.class.php
===================================================================
--- /mods/wpsg_mod_productgroups.class.php	(revision 6319)
+++ /mods/wpsg_mod_productgroups.class.php	(revision 6320)
@@ -381,25 +381,8 @@
 					
 					$arrProdukte[$k] = $this->shop->loadProduktArray($p['id']);
-											
-					$arFiles = array();
-						
-					$dir = $this->shop->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->shop->getProduktId($p['id'])));
-						
-					//$dir = WP_CONTENT_DIR.'/uploads/produktbilder/'.$p['id']."/";
-						
-					$handle = opendir($dir);
-		 
-					while($filename = readdir($handle))
-			   		{
-			   				
-			   			$file = $dir.$filename; 
-			   			if (is_file($file) && $filename != "." && $filename != "..")
-			   			{
-			   				$arFiles[] = $filename;
-			   			}
-			   				   				   				   				   				
-			   		}
-			   		$arrProdukte[$k]['bilder'] = $arFiles;		   			
-							
+					
+					$arrProdukte[$k]['bilder'] = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id']));
+					if (!wpsg_isSizedArray($arrProdukte[$k]['bilder'])) $arrProdukte[$k]['bilder'] = array();
+					 							
 				}
 
@@ -465,6 +448,5 @@
 					
 					if ($strOrder != "") $strOrder = " ORDER BY ".$strOrder;
-				 
-					$arrProdukte = array();
+				  
 					$arrProdukte = $this->db->fetchAssoc("SELECT 
 															P.`id`, 
@@ -486,22 +468,7 @@
 						$arrProdukte[$k2] = $this->shop->loadProduktArray($p['id']);
 						
-						$arFiles = array();
-						
-						$dir = $this->shop->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->shop->getProduktId($p['id'])));
-						
-						$handle = opendir($dir);
-		 				
-						while($filename = readdir($handle))
-			   			{
-			   				
-			   				$file = $dir.$filename; 
-			   				if (is_file($file) && $filename != "." && $filename != "..")
-			   				{
-			   					$arFiles[] = $filename;
-			   				}
-			   				   				   				   				   				
-			   			}
-			   			
-			   			$arrProdukte[$k2]['bilder'] = $arFiles;
+						$arrProdukte[$k2]['bilder'] = $this->shop->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id']));
+						if (!wpsg_isSizedArray($arrProdukte[$k2]['bilder'])) $arrProdukte[$k2]['bilder'] = array();
+						 
 					}
 					$this->shop->view['data'][$pg['id']]['produkte'] = $arrProdukte;
Index: /mods/wpsg_mod_productview.class.php
===================================================================
--- /mods/wpsg_mod_productview.class.php	(revision 6319)
+++ /mods/wpsg_mod_productview.class.php	(revision 6320)
@@ -280,8 +280,8 @@
 				
 				$this->shop->view['wpsg_mod_productview']['cols'] = 3;
-				$this->shop->view['wpsg_mod_productview']['col_class']['title'] = 'col-lg-0 col-md-0';
-				$this->shop->view['wpsg_mod_productview']['col_class']['order'] = 'col-lg-4 col-md-6';
-				$this->shop->view['wpsg_mod_productview']['col_class']['info'] = 'col-lg-8 col-md-6';
-				$this->shop->view['wpsg_mod_productview']['col_class']['product'] = 'col-lg-4 col-md-4';
+				$this->shop->view['wpsg_mod_productview']['col_class']['title'] = 'col-lg-0 col-md-0 col-sm-0';
+				$this->shop->view['wpsg_mod_productview']['col_class']['order'] = 'col-lg-4 col-md-6 col-sm-6';
+				$this->shop->view['wpsg_mod_productview']['col_class']['info'] = 'col-lg-8 col-md-6 col-sm-6';
+				$this->shop->view['wpsg_mod_productview']['col_class']['product'] = 'col-lg-4 col-md-4 col-sm-4';
 								
 			}
@@ -290,8 +290,8 @@
 				
 				$this->shop->view['wpsg_mod_productview']['cols'] = 4;
-				$this->shop->view['wpsg_mod_productview']['col_class']['title'] = 'col-lg-3 col-md-3';
-				$this->shop->view['wpsg_mod_productview']['col_class']['order'] = 'col-lg-3 col-md-3';
-				$this->shop->view['wpsg_mod_productview']['col_class']['info'] = 'col-lg-6 col-md-6';
-				$this->shop->view['wpsg_mod_productview']['col_class']['product'] = 'col-lg-3 col-lg-6';
+				$this->shop->view['wpsg_mod_productview']['col_class']['title'] = 'col-lg-3 col-md-3 col-sm-3';
+				$this->shop->view['wpsg_mod_productview']['col_class']['order'] = 'col-lg-3 col-md-3 col-sm-3';
+				$this->shop->view['wpsg_mod_productview']['col_class']['info'] = 'col-lg-6 col-md-6 col-sm-6';
+				$this->shop->view['wpsg_mod_productview']['col_class']['product'] = 'col-lg-3 col-lg-6 col-sm-6';
 				
 			}
Index: /mods/wpsg_mod_produktartikel.class.php
===================================================================
--- /mods/wpsg_mod_produktartikel.class.php	(revision 6319)
+++ /mods/wpsg_mod_produktartikel.class.php	(revision 6320)
@@ -1110,5 +1110,5 @@
 		{
 			
-			$post_content = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $post_content);
+			return preg_replace('#<script(.*?)>(.*?)</script>#is', '', $post_content);
 			
 		} // private function clear_post_content($post_content)
Index: /views/mods/mod_productgroups/list.phtml
===================================================================
--- /views/mods/mod_productgroups/list.phtml	(revision 6319)
+++ /views/mods/mod_productgroups/list.phtml	(revision 6320)
@@ -11,12 +11,7 @@
 	
 	if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-	
-	// Dimension der Bilder
-	$picW = 150;
-	$picH = 100;	
-	$picMode = 's';
 
 ?>
-<?php //wpsg_debug($this->view['data']) ?>
+
 <?php $c = 0; foreach ((array)$this->view['data'] as $k => $g) { ?>
 <?php //wpsg_debug($g) ?>
@@ -24,5 +19,5 @@
 	<div class="wpsg_pgruppen_list_titel">
 		<a href="<?php echo WPSG_URL_WP ?>?page_id=<?php echo get_the_ID(); ?>&show=<?php echo $k ?>">
-			<?php echo $g['pgruppe_name'] ?>
+			<h2><?php echo $g['pgruppe_name'] ?></h2>
 		</a>
 	</div>
@@ -32,8 +27,9 @@
 			<?php if ($image >= 0 && is_int($image)) { ?>
 			<div class="wpsg_pgruppen_list_image">
-				<?php $image_path = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($g['produkte'][$i]['id'], $g['produkte'][$i]['bilder'][$image], $picW, $picH, $picMode)) ?>
+				
 				<a href="<?php echo $g['produkte'][$i]['url'] ?>">
-					<img src="<?php echo $image_path; ?>" alt="<?php echo $g['produkte'][$i]['name']; ?>"/>
+					<?php echo wp_get_attachment_image($g['produkte'][$i]['bilder'][$image]['post_id'], 'sto_productimage_100', false, array()); ?>
 				</a>
+				 
 			</div>
 			<?php } ?>
Index: /views/mods/mod_productgroups/show.phtml
===================================================================
--- /views/mods/mod_productgroups/show.phtml	(revision 6319)
+++ /views/mods/mod_productgroups/show.phtml	(revision 6320)
@@ -8,29 +8,15 @@
 
 	if (!$this->hasMod("wpsg_mod_produktbilder")) die(__("Dieses Template erfordert das Modul mod_produktbilder.", "wpsg"));
-		
-	// Dimension der Bilder
-	$picW = 200;
-	$picH = 200;	
-	$picMode = 'c';
-
-	//$p['produktattribute'][$index]['name'];		Der Name des Attributs
-	//$p['produktattribute'][$index]['value'];		Der Wert des Attributs
-	//$index ist die Nummer des Produktattributs
-	
-	//AusgabemÃ¶glichkeit bei aktiviertem Debug Modus
-	//wpsg_debug($this->view['data']);	
-	
+		 
 ?>
 <div class="wpsg_pgruppen_single">
 	<div class="wpsg_pgruppen_single_produkte_wrap">
 		<div class="wpsg_pgruppen_single_produkte">
-		<?php foreach ((array)$this->view['data']['produkte'] as $p) { ?>
-		<?php //wpsg_debug($p) ?>
+		<?php foreach ((array)$this->view['data']['produkte'] as $p) { ?> 
 			<?php if (sizeof($p['bilder']) > 0) { ?>
 			<?php $image = array_rand($p['bilder']); ?>			
-			<div class="wpsg_pgruppen_single_list_image">
-				<?php $image_path = $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($p['id'], $p['bilder'][$image], $picW, $picH, $picMode)) ?>				
+			<div class="wpsg_pgruppen_single_list_image">								
 				<a href="<?php echo $p['url'] ?>">
-					<img src="<?php echo $image_path; ?>" alt="<?php echo $p['name']; ?>"/>
+					<?php echo wp_get_attachment_image($g['bilder'][$image]['post_id'], 'sto_productimage_555', false, array()); ?>
 				</a>
 			</div>
Index: /views/mods/mod_productview/productview.js
===================================================================
--- /views/mods/mod_productview/productview.js	(revision 6319)
+++ /views/mods/mod_productview/productview.js	(revision 6320)
@@ -41,5 +41,5 @@
 		}
 		
-		jQuery('#wpsg_productview_' + index).append('<div class="wpsg_mod_productview_loading"></div>');
+		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( {
Index: /views/mods/mod_productview/productview.phtml
===================================================================
--- /views/mods/mod_productview/productview.phtml	(revision 6319)
+++ /views/mods/mod_productview/productview.phtml	(revision 6320)
@@ -212,4 +212,4 @@
 	
 	</div>
-
+	
 </div> 
