");
return json_info[0];
}
function init_components_insta(instagrm_control){
var slickContainer = $(instagrm_control).children(".slick_instagram");
var helpLoaderInsta = $(instagrm_control).children(".helpLoaderInsta");
var titolInsta = $(instagrm_control).children(".titolInstagram");
var cols = $(slickContainer).attr("data-cols");
var format = $(slickContainer).attr("data-format");
if(format=="mur_social") {
$(slickContainer).slick(
{
infinite: true,
slidesToShow: parseInt(cols),
slidesToScroll: 1,
vertical:true,
verticalSwiping:true,
centerMode:false,
autoplaySpeed:5000,
autoplay:true,
arrows:false,
});
}
else {
$(slickContainer).slick(
{
lazyLoad: 'ondemand',
infinite: true,
slidesToShow: parseInt(cols),
slidesToScroll: 1,
vertical:false,
centerMode:false,
autoplaySpeed:5000,
autoplay:true,
arrows:true,
});
}
$(slickContainer).show();
$("[data-reveal]").foundation();
if($(titolInsta).length > 0)
{
$(titolInsta).show(); }
$(slickContainer).slick('setPosition');
}
//]]>