Line 95... |
Line 95... |
95 |
|
95 |
|
96 |
<?php if (($i - 1) % $col == 0) { ?><div class="wpsg_mod_productindex_productrow"><?php } ?>
|
96 |
<?php if (($i - 1) % $col == 0) { ?><div class="wpsg_mod_productindex_productrow"><?php } ?>
|
97 |
|
97 |
|
98 |
<div class="wpsg_mod_productindex_product <?php echo (($i == sizeof($this->view['arProducts']))?'wpsg_mod_productindex_product_last':''); ?> <?php echo (($i == 1)?'wpsg_mod_productindex_product_first':''); ?>" style="width:<?php echo round((100 / $col), 2) ?>%;">
|
98 |
<div class="wpsg_mod_productindex_product <?php echo (($i == sizeof($this->view['arProducts']))?'wpsg_mod_productindex_product_last':''); ?> <?php echo (($i == 1)?'wpsg_mod_productindex_product_first':''); ?>" style="width:<?php echo round((100 / $col), 2) ?>%;">
|
99 |
<div class="wpsg_mod_productindex_product_inner">
|
99 |
<div class="wpsg_mod_productindex_product_inner">
|
100 |
<?php if ($this->hasMod('wpsg_mod_produktbilder')) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($p['id'])); ?>
|
- |
|
101 |
<div class="wpsg_mod_productindex_pic">
|
- |
|
102 |
<?php if (wpsg_isSizedArray($arBilder)) { ?>
|
- |
|
103 |
<a title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>">
|
- |
|
104 |
<?php if ($nPicRand === true) $nPicIndex = array_rand($arBilder); else $nPicIndex = 0; ?>
|
- |
|
105 |
|
100 |
|
106 |
<?php
|
- |
|
107 |
$href = wp_get_attachment_image_src($arBilder[$nPicIndex]['post_id'], Array(800, 600));
|
101 |
<?php $attachment_id = $this->imagehandler->getAttachmentID($p['product_key']); ?>
|
108 |
$imgtag = wp_get_attachment_image($arBilder[$nPicIndex]['post_id'], Array($nPicWidth, $nPicHeight));
|
102 |
<?php echo wp_get_attachment_image($attachment_id, array(800, 600)); ?>
|
109 |
?>
|
103 |
|
110 |
<?php echo $imgtag; ?>
|
- |
|
111 |
</a>
|
104 |
|
112 |
<?php } ?>
|
- |
|
113 |
</div>
|
105 |
|
114 |
<?php } ?>
|
- |
|
115 |
<div class="wpsg_mod_productindex_content">
|
106 |
<div class="wpsg_mod_productindex_content">
|
116 |
<div class="wpsg_mod_productindex_title">
|
107 |
<div class="wpsg_mod_productindex_title">
|
117 |
<a title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo $this->getProductName($this->getProduktID($p['id']), true); ?></a>
|
108 |
<a title="<?php echo __('Zur Detailseite des Produkts', 'wpsg'); ?>" href="<?php echo wpsg_url($p['url']); ?>"><?php echo $this->getProductName($this->getProduktID($p['id']), true); ?></a>
|
118 |
</div>
|
109 |
</div>
|
119 |
<div class="wpsg_mod_productindex_infos">
|
110 |
<div class="wpsg_mod_productindex_infos">
|
Line 287... |
Line 278... |
287 |
jQuery('#wpsg_mod_productindex_filter_page').val('1');
|
278 |
jQuery('#wpsg_mod_productindex_filter_page').val('1');
|
288 |
jQuery('#wpsg_mod_productindex_form').submit();
|
279 |
jQuery('#wpsg_mod_productindex_form').submit();
|
289 |
|
280 |
|
290 |
} );
|
281 |
} );
|
291 |
|
282 |
|
292 |
} );
|
283 |
} );
|
293 |
|
284 |
|
294 |
/* ]]> */</script>
|
285 |
/* ]]> */</script>
|
295 |
|
286 |
|