/* global FusionPageBuilderApp */ ( function( $ ) { $( document ).ready( function() { // Generate Lightbox shortcode content FusionPageBuilderApp.lightboxShortcodeFilter = function( attributes ) { var $id = attributes.params.id, $class = attributes.params[ 'class' ], $title = attributes.params.title, $description = attributes.params.description, $href = ( '' === attributes.params.type ) ? attributes.params.full_image : attributes.params.video_url, $src = attributes.params.thumbnail_image, $alt = attributes.params.alt_text, $lightboxCode = '' + $alt + ''; attributes.params.element_content = $lightboxCode; return attributes; }; } ); }( jQuery ) );