'; var img = iframe ;//.css('height',css_height).get(0).outerHTML; $carousel += img; $carousel += '

'; $i++; }); $carousel += '
'; // next/prev indicators if($images.length > 1) { $carousel += ''; $carousel += ''; $carousel += ' '; $carousel += ''; $carousel += ''; } $carousel += '
'; var $close = ''; jQuery('.aui-carousel-modal .modal-content').html($carousel).prepend($close); // enable ajax load //gd_init_carousel_ajax(); } } /** * Init lightbox embed. */ function aui_init_lightbox_embed(){ // Open a lightbox for embeded items jQuery('.aui-lightbox-image, .aui-lightbox-iframe').unbind('click').click(function(ele) { aui_lightbox_embed(this,ele); }); } /** * Initiate all AUI JS. */ function aui_init(){ // nav menu submenus init_nav_sub_menus(); // init tooltips aui_init_tooltips(); // init select2 aui_init_select2(); // init flatpickr aui_init_flatpickr(); // init Greedy nav aui_init_greedy_nav(); // Set times to time ago aui_time_ago('timeago'); // init multiple item carousels aui_init_carousel_multiple_items(); // init lightbox embeds aui_init_lightbox_embed(); } // run on window loaded jQuery(window).on("load",function() { aui_init(); });