Subversion Repositories wpShopGermany4

Rev

Rev 6438 | Rev 7130 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6438 Rev 6454
Line 120... Line 120...
120
 
120
 
121
			<div class="overview_product_row">
121
			<div class="overview_product_row">
122
 
122
 
123
				<?php $this->view['$bPicture'] = false; ?>
123
				<?php $this->view['$bPicture'] = false; ?>
124
 
124
 
125
				<?php if ($this->get_option('wpsg_imagehandler_basketimage') == '1' && $this->hasMod('wpsg_mod_produktbilder')) {
125
				<?php if ($this->get_option('wpsg_imagehandler_basketimage') == '1') {
126
 
-
 
127
					if (wpsg_isSizedString($product_data['varianten_image'])) $arImages = array($product_data['varianten_image']);
-
 
128
					else $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktID($product_data['id'])));
-
 
129
 
126
 
130
				?>
127
				?>
131
				<div class="productimage">
128
				<div class="productimage">
132
					<?php if (wpsg_isSizedString($arImages[0]['guid'])) { ?>
-
 
133
 
129
 
134
					<?php
130
					<?php
-
 
131
 
135
					if (isset($product_data['product_key'])) {
132
					if (isset($product_data['product_key'])) {
136
						$arr = $this->callMod('wpsg_mod_productvariants', 'getKombiVariImages', array($product_data['product_key']));
133
						$arAttachmentIDs = $this->imagehandler->getAttachmentIDs($product_data['product_key']);
137
						if (wpsg_isSizedArray($arr))
134
						$attachmentID = $this->imagehandler->getAttachmentID($product_data['product_key']);
138
						{
135
						
139
							$ais = wp_get_attachment_image_src($arr[0]['post_id'], 'thumbnail');
136
						echo wp_get_attachment_image($attachmentID, 'medium');
140
							$url = $ais[0];
-
 
141
						}
-
 
142
						else
-
 
143
						{
-
 
144
							$url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($product_data['productkey'], 'thumbnail'));
-
 
145
						}
137
						
146
					} else {
-
 
147
						$url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($product_data['productkey'], 'thumbnail'));
-
 
148
					}
138
					}
149
					if (wpsg_isSizedString($url)) $this->view['$bPicture'] = true;
139
					if ($attachmentID > 0) $this->view['$bPicture'] = true;
150
					echo "<img src=".$url." alt='' />";
-
 
-
 
140
					
151
					?>
141
					?>
152
 
142
 
153
					<?php } ?>
-
 
154
				</div>
143
				</div>
155
				<?php } ?>
144
				<?php } ?>
156
 
145
 
157
				<div class="product_content">
146
				<div class="product_content">
158
 
147