<# if ( data ) { #>
- Toate
- {{{ data.items[ key ].name }}}
<# if ( data.args.show_all ) { #>
<# } #>
<# for ( key in data.items ) { #>
<# if ( data.items[ key ].count ) { #>
<# } #>
<# } #>
<# } #>
No items found.
<# if ( data.items.length ) { #> <# for ( key in data.items ) { var item_classes = ''; if( 1 == data.items[ key ]['astra-site-open-in-new-tab'] ) { item_classes = ' open-in-new-tab '; } var open_in = data.items[ key ]['astra-site-open-portfolio-in'] || ''; item_classes += ' ' + open_in + ' '; var style = 'style-1'; var speed = '3'; #>
<#
var css = '';
if( 'style-1' == style && '' !== data.items[ key ]['thumbnail-image-url'] ) {
css = "background-image:url('"+data.items[ key ]['thumbnail-image-url']+"'); ";
if( '' !== speed ) {
css += "transition: all ease-in-out " + speed + "s;";
}
}
var type = data.items[ key ]['portfolio-type'] || '';
switch( type ) {
case 'page':
var permalink = data.items[ key ]['link'] || '';
var target = '_blank';
if( 'same-tab' == open_in )
{
target = '_self';
}
if( 'iframe' == open_in )
{ #>
<# } else { #>
<# } #>
<# if( 'style-1' !== style && '' !== data.items[ key ]['thumbnail-image-url'] ) { #>
<# } #>
Zoom
<# if( 'iframe' == open_in )
{ #>
<# } else { #>
<# }
break;
case 'video':
var video_url = data.items[ key ]['portfolio-video-url'] || '';
#>
<# if( 'style-1' !== style && '' !== data.items[ key ]['thumbnail-image-url'] ) { #>
<# } #>
Zoom
<#
break;
case 'image':
var image_url = data.items[ key ]['lightbox-image-url'] || '';
if( '' === image_url ) {
image_url = data.items[ key ]['thumbnail-image-url'] || '';
}
#>
<# if( 'style-1' !== style && '' !== data.items[ key ]['thumbnail-image-url'] ) { #>
<# } #>
Zoom
<#
break;
case 'iframe':
default:
if( 1 == data.items[ key ]['astra-site-open-in-new-tab'] ) { #>
<# } else { #>
<# } #>
<# if( 'style-1' !== style && '' !== data.items[ key ]['thumbnail-image-url'] ) { #>
<# } #>
Zoom
<# if( 1 == data.items[ key ]['astra-site-open-in-new-tab'] ) { #>
<# } else { #>
<# }
break;
}
#>
{{{ data.items[ key ].title.rendered }}}
<# if ( data.items[ key ]['astra-site-type'] ) { #>
{{data.items[ key ]['astra-site-type']}}
<# } #>
<# } #> <# } else { #>
No items found.
<# } #>