{* *}{strip} {* *} {if !empty($item->images)} {* *} {$url = (($site|default:'')|cat:($files_folder|default:''))|escape} {* *} {capture assign=result} {* *} {$index = 0} {foreach $item->images as $f} {if !empty($item->images_view[$index])}
{* *} {$href = ''} {$alt = $item->images_alts[$index]|default:''} {$text = $item->images_texts[$index]|default:''} {* *} {if preg_replace('!^https?://!i', '', $text) != $text} {$href = preg_replace('!(http://[^\s]*)(\s.*)?$!is', '$1', $text)} {$text = preg_replace('!(http://[^\s]*)(\s(.*))?$!is', '$3', $text)} {/if} {capture assign=img_url} {if !preg_match('!^([a-z]+:)?//!i', $f)} {$url} {/if} {$f|escape} {/capture} {* *} {$alt = ($alt != '') ? $alt : 'Фото'} {if !empty($item->images_thumbs[$index])} {$f = $item->images_thumbs[$index]} {capture assign=img_url} {if !preg_match('!^([a-z]+:)?//!i', $f)} {$url} {/if} {$f|escape} {/capture} {/if} {$alt|escape} {* *} {if trim($text) != ''}
{$text}
{/if}
{/if} {$index = $index + 1} {/foreach} {/capture} {* *} {if $result|regex_replace:'/[\s\t\r\n]/':'' != ''} {* *} {$url = $item->url|default:''|lower} {if $images_title|default:'' == ''} {if isset($tplSettings['galleryUrlsTitle'][$url])} {$images_title = $tplSettings['galleryUrlsTitle'][$url]} {/if} {/if} {$title = $images_title|default:$tplSettings['galleryDefaultTitle']|default:'Фото галерея'} {$class = ''} {if !empty($tplSettings['brandGalleryUrls'])} {if in_array($url, $tplSettings['brandGalleryUrls'])} {$title = $tplSettings['brandGalleryTitle']|default:'Ассортимент продукции по производителям'} {$class = 'brand-gallery'} {/if} {/if} {* *} {* *} {include 'JAK-lightbox/main.tpl' photos = $item->images folder = $files_folder|default:'' link_css = false link_engine = true} {/if} {/if} {/strip}