Vinyes dels Aspres
Al Parc Natural d'Interès Nacional de l' Albera.
https://m.youtube.com/watch?feature=youtu.be&v=eOl79BYcHGk
");
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 if(format=="footer"){
//el format footer es mostren les fotos en block, no cal slick
}
else {
$(slickContainer).slick(
{
lazyLoad: 'ondemand',
infinite: true,
slidesToShow: parseInt(cols),
slidesToScroll: 1,
vertical:false,
centerMode:false,
autoplaySpeed:5000,
autoplay:true,
arrows:true,
});
}
$(slickContainer).show();//mostrem l' slick
//$(helpLoaderInsta).hide();//amaguem el loader
$(document).foundation();//arrenquem el foundation
if($(titolInsta).length > 0)
{
$(titolInsta).show(); //mostrem el titol si n' hi ha
}
$(slickContainer).slick('setPosition');
}
//]]>