function navbar(){
if( $("#nav").height() == 800 ){
$("#nav").height('0px');
}else{
$("#nav").height('800px');
}
}
data-follow-link="1"
к родительскому элементу меню, где есть data-widget="tree"
<div class="owl-carousel owl-theme">
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
<div class="item">
<a href="img-big.png" data-fancybox>
<img src="img-mini.png" alt="preview">
</a>
</div>
</div>
$('.owl-carousel').owlCarousel({
loop:true,
margin:10,
nav:false,
items:5
})
function resize(direction, indent){
var backgroundPosition = $('.active').css(direction);
var backgroundPosition_height = parseInt(backgroundPosition.replace(/([^0-9|-]+)/i, '')) + parseInt(indent);
var css = {};
css[direction] = backgroundPosition_height + 'px';
$('.active').css(css);
}
[[!getResources?
&tpl=`tplGallery`
&sortby=`RAND()`
&parents=`10`
&limit=`0`
&showHidden=`1`
]]
[[!getImageList?
&docid=`[[+id]]`
&tvname=`myMIGXtv`
&tpl=`thumbTpl`
&randomize=`1`
]]
<img src="[[+image]]" >