Subversion Repositories wpShopGermany4

Compare Revisions

Ignore whitespace Rev 7475 → Rev 7476

/produkttemplates/standard2.phtml
12,7 → 12,7
 
?>
 
<div class="wpsg_produkt_wrapper">
<div class="wpsg_produkt_wrapper wpsg_produkt_wrapper2">
 
<input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
<input type="hidden" name="titleDisplayed" value="<?php echo $this->titleDisplayed; ?>" />
50,10 → 50,9
 
<?php if (sizeof($arAttachmentIDsAll) > 0) { for ($i = 0; $i < sizeof($arAttachmentIDsAll); $i ++) { ?>
<?php /* URL für die Lightbox */ ?>
<?php $att = wp_get_attachment_image_src($arAttachmentIDsAll[$i], array(800, 600), false); ?>
<a <?php if ($arAttachmentIDsAll[$i] != $arAttachmentID) echo 'style="display:none;"'; ?> rel="gallery-wpsg-<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>" class="thickbox">
<a data-index="<?php echo $i; ?>" <?php if ($arAttachmentIDsAll[$i] != $arAttachmentID) echo 'style="display:none;"'; ?> rel="gallery-wpsg-<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>" class="thickbox bigimg">
 
<?php echo wp_get_attachment_image($arAttachmentIDsAll[$i], array(300, 300), false, array()); ?>
160,27 → 159,18
<div class="wpsg_clear"></div>
 
<div class="wpsg_gallery_wrap">
<div class="jcarousel-wrapper sto_carousel">
<?php /* Kleine Bilder vorschau unten */ ?>
<ul>
<?php $i = 0; foreach ($arAttachmentIDsAll as $attachment_id) { ?>
<li>
<div data-target="<?php echo $i; ?>" class="bigimgswitch">
<?php echo wp_get_attachment_image($attachment_id, 'wpsg-basket-image', false, array()); ?>
</div>
</li>
<?php $i ++; } ?>
</ul>
 
<?php /* Kleine Bilder vorschau unten */ ?>
<div class="jcarousel" style="<?php echo ((sizeof($arAttachmentIDsAll) > 5)?'margin-left:25px;':''); ?>">
<ul>
<?php $i = 0; foreach ($arAttachmentIDsAll as $attachment_id) { ?>
<li>
<a data-target="<?php echo $i; ?>" href="#">
<div class="wpsg_image_producttemplate_small">
<div class="box_img_wrap">
<?php echo wp_get_attachment_image($attachment_id, 'wpsg-basket-image', false, array()); ?>
</div>
</div>
</a>
</li>
<?php $i ++; } ?>
</ul>
</div>
 
</div>
</div>
 
<?php /* Lagerbestand START*/?>
451,5 → 441,20
</div>
 
</div>
<script>
jQuery('.wpsg_produkt_wrapper2 .wpsg_gallery_wrap .bigimgswitch').on('click', function() {
var jqThis = jQuery(this);
 
jqThis.closest('.wpsg_produkt_wrapper2').find('.bigimg').hide();
jqThis.closest('.wpsg_produkt_wrapper2').find('.bigimg[data-index="' + jqThis.data("target") + '"]').show();
return false;
});
</script>
 
</div>