86 lines
2.8 KiB
Smarty
86 lines
2.8 KiB
Smarty
<div class="tresc">
|
|
<h1 class="title">{$objElement->GetName()}</h1>
|
|
{if isset($param['title'])}
|
|
<h2 class="title">{$objArticle->GetTitle()}</h2>
|
|
{/if}
|
|
|
|
<div class="trescContent">
|
|
<div style="clear: left;">
|
|
|
|
{$objArticle->GetDescription()}
|
|
|
|
</div>
|
|
{assign var=k value=1}
|
|
{foreach from=$arrayImage item=objItem }
|
|
{if $objItem@first}
|
|
{literal}
|
|
<script>
|
|
|
|
//alert( idItem);
|
|
|
|
$(window).scroll(function () {
|
|
{/literal}
|
|
{/if}
|
|
{* {if $k eq 1}*}
|
|
{literal}
|
|
idItem = '#projectItem_' + '{/literal}{$objItem@iteration}{literal}';
|
|
//alert( idItem);
|
|
if ($(idItem).visible(true)) {
|
|
|
|
$(idItem).addClass('scrollHiddenOff');
|
|
$(idItem).removeClass('scrollHiddenOn');
|
|
} else {
|
|
//alert( idItem);
|
|
$(idItem).addClass('scrollHiddenOn');
|
|
$(idItem).removeClass('scrollHiddenOff');
|
|
}
|
|
{/literal}
|
|
{* {/if} *}
|
|
{if $objItem@last}
|
|
{literal}
|
|
});
|
|
</script>
|
|
{/literal}
|
|
{/if}
|
|
{if $k eq 4}
|
|
{assign var=k value=1}
|
|
{else}
|
|
{assign var=k value=$k+1}
|
|
|
|
{/if}
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
{if isset($param['title'])}
|
|
{assign var=k value=1}
|
|
{foreach from=$arrayImage item=image}
|
|
{if $k eq 1}
|
|
|
|
<div class="col-12" style="padding: 0px;">
|
|
{/if}
|
|
<div class="col-3 col-s-6 imgGallery scrollHiddenOn" id="projectItem_{$image@iteration}">
|
|
<a class="gallery" href="{$image->GetFullUrlId($objArticle->GetId())}" title="{$image->GetDescription()|escape}" >
|
|
{assign var=imageGallery value=$image->GetFullPathOrgId($objArticle->GetId())}
|
|
{assign var=titleImg value=$image->GetDescription()|escape}
|
|
<figure class="itemImageGalleryDetail">{thumb file=$imageGallery longside=false shortside=false width="640" height="480" link='false' crop=true title=$titleImg }</figure>
|
|
{* <figure class="itemImageGalleryDetail"><img src="{$image->GetFullUrlId($objArticle->GetId())}" alt="{$image->GetDescription()}" title="{$image->GetDescription()}" /></figure>*}
|
|
</a>
|
|
</div>
|
|
{if $k eq 4}
|
|
{assign var=k value=1}
|
|
</div>
|
|
<div class="cb"></div>
|
|
{else}
|
|
{assign var=k value=$k+1}
|
|
{/if}
|
|
{/foreach}
|
|
<div class="cb"></div>
|
|
|
|
{/if}
|
|
<div class="cb"></div>
|
|
|
|
|
|
|