<div><a href="@Model.DefaultPicture.FullSizeImageUrl" target="_blank" class="downloadPictureLink">Download Picture</a></div>
<script type="text/javascript">
(function() {
$('.cloud-zoom-gallery').on('click', function() {
$('.downloadPictureLink').attr('href', $(this).attr('href'));
});
})();
</script>
<div class="terms-of-service">
<input id="termsofservice" type="checkbox" name="termsofservice" />
<span>@T("Checkout.TermsOfService.IAccept")<a class="read" onclick="javascript:OpenWindow('@Url.RouteUrl("TopicPopup", new { SystemName = "conditionsofuse" })', 450, 500, true)">@T("Checkout.TermsOfService.Read")</a></span>
</div>
<div>@T("the_resource_for_the_terms_of_service")</div>
<div class="terms-of-service">
<input id="termsofservice" type="checkbox" name="termsofservice" />
<label for="termsofservice">@T("Checkout.TermsOfService.IAccept")</label>
</div>
Hi,
As I said you have to put the code right before the closing tag of the <div class="gallery sevenspikes-cloudzoom-gallery"> element.
Your code should look like this:
<div class="gallery">
<div class="picture" id="sevenspikes-cloud-zoom" data-zoomWindowElementId="@Model.ElementId"
data-selectorOfTheParentElementOfTheCloudZoomWindow="@Model.SettingsModel.SelectorOfTheParentElementOfTheCloudZoomWindow"
data-defaultImageContainerSelector="@Model.SettingsModel.DefaultImageContainerSelector">
<a href="@Model.DefaultPicture.FullSizeImageUrl" class="cloud-zoom" id="zoom1" rel="@Model.DefaultPicture.DefaultRelation">
<img src="@Model.DefaultPicture.SmallImageUrl" alt="@Model.DefaultPicture.AlternateText" title="@Model.DefaultPicture.Title" id="cloudZoomImage" />
</a>
</div>
@if (Model.Pictures.Count > 1)
{
<div class="picture-thumbs">
@if (Model.SettingsModel.EnablePictureThumbnailsInCarousel)
{
<ul id="carousel" class="jcarousel jcarousel-skin-thumbs">
@foreach (var picture in Model.Pictures)
{
<li><a href="@picture.FullSizeImageUrl" class="cloud-zoom-gallery" title="@picture.Title" rel="@picture.GalleryRelation">
<img class="cloud-zoom-gallery-img" src="@picture.TinyImageUrl" alt="@picture.AlternateText" title="@picture.Title"/>
</a></li>
}
</ul>
}
else
{
foreach (var picture in Model.Pictures)
{
<a href="@picture.FullSizeImageUrl" class="cloud-zoom-gallery" title="@picture.Title" rel="@picture.GalleryRelation">
<img class="cloud-zoom-gallery-img" src="@picture.TinyImageUrl" alt="@picture.AlternateText" title="@picture.Title" />
</a>
}
}
</div>
}
<div><a href="@Model.DefaultPicture.FullSizeImageUrl" target="_blank">Download Picture</a></div>
</div>
Hi,
It is strange that the link is not visible, but it does not matter, because I have thought of even a better way for showing this link. Remove the code I gave you and place this code:
<div><a href="@Model.DefaultPicture.FullSizeImageUrl" target="_blank">Download Picture</a></div>