array( 'title' => __('Global settings','easy-fancybox'), 'input' => 'deep', 'hide' => true, 'options' => array( /*'intro' => array ( 'hide' => true, 'description' => __('These settings determine the global overlay appearance and behaviour controlled by FancyBox.','easy-fancybox') . '
' ),*/ 'Enable' => array ( 'title' => __('Enable FancyBox for','easy-fancybox'), 'input' => 'multiple', 'hide' => true, 'options' => array( 'IMG' => array ( 'id' => 'fancybox_enableImg', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'description' => '' . __('Images & Inline content','easy-fancybox') . '' ), 'PDF' => array ( 'id' => 'fancybox_enablePDF', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'description' => '' . __('PDF','easy-fancybox') . '' ), 'SWF' => array ( 'id' => 'fancybox_enableSWF', 'input' => 'checkbox', 'hide' => true, 'default' => '', 'description' => '' . __('SWF','easy-fancybox') . '' ), 'YouTube' => array ( 'id' => 'fancybox_enableYoutube', 'input' => 'checkbox', 'hide' => true, 'default' => '', 'description' => '' . __('YouTube','easy-fancybox') . '' ), 'Vimeo' => array ( 'id' => 'fancybox_enableVimeo', 'input' => 'checkbox', 'hide' => true, 'default' => '', 'description' => '' . __('Vimeo','easy-fancybox') . '' ), 'Dailymotion' => array ( 'id' => 'fancybox_enableDailymotion', 'input' => 'checkbox', 'hide' => true, 'default' => '', 'description' => '' . __('Dailymotion','easy-fancybox') . '' ), 'iFrame' => array ( 'id' => 'fancybox_enableiFrame', 'input' => 'checkbox', 'hide' => true, 'default' => '', 'description' => '' . __('iFrames','easy-fancybox') . '' ) ) ), 'Links' => array( 'title' => __('Links'), 'input' => 'multiple', 'hide' => true, 'options' => array( /*'p1' => array ( 'hide' => true, 'description' => '
' ),*/ 'attributeLimit' => array ( 'id' => 'fancybox_attributeLimit', 'title' => __('Exclude','easy-fancybox'), 'label_for' => 'fancybox_attributeLimit', 'hide' => true, 'input' => 'select', 'options' => array( '' => __('None'), ':not(:empty)' => __('Empty (hidden) links','easy-fancybox'), ':has(img)' => __('Without thumbnail image','easy-fancybox') ), 'default' => '', 'description' => '
' ), 'autoClick' => array ( 'id' => 'fancybox_autoClick', 'title' => __('Auto-open','easy-fancybox'), 'label_for' => 'fancybox_autoClick', 'hide' => true, 'input' => 'select', 'options' => array( '' => __('None'), '1' => __('Link with ID "fancybox-auto"','easy-fancybox'), 'IMG' => __('First Image link','easy-fancybox'), 'PDF' => __('First PDF link','easy-fancybox'), 'SWF' => __('First SWF link','easy-fancybox'), 'YouTube' => __('First YouTube link ','easy-fancybox'), 'Vimeo' => __('First Vimeo link ','easy-fancybox'), 'Dailymotion' => __('First Dailymotion link ','easy-fancybox'), 'iFrame' => __('First iFrame link','easy-fancybox'), '99' => __('First of any link','easy-fancybox'), ), 'default' => '1', 'description' => '
' ) ) ), 'Overlay' => array ( 'title' => __('Overlay','easy-fancybox'), 'input' => 'multiple', 'hide' => true, 'options' => array( 'overlayShow' => array ( 'id' => 'fancybox_overlayShow', 'input' => 'checkbox', 'default' => '1', 'description' => __('Show the overlay around content opened in FancyBox.','easy-fancybox') ), 'overlaySpotlight' => array ( 'id' => 'fancybox_overlaySpotlight', 'input' => 'checkbox', 'hide' => true, 'default' => '', 'description' => __('Spotlight effect.','easy-fancybox') ), 'overlayOpacity' => array ( 'id' => 'fancybox_overlayOpacity', 'title' => __('Opacity','easy-fancybox'), 'label_for' => 'fancybox_overlayOpacity', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => __('Value between 0 and 1. ','easy-fancybox') . ' ' . __('Default:','easy-fancybox') . ' 0.7
' ), 'overlayColor' => array ( 'id' => 'fancybox_overlayColor', 'title' => __('Color','easy-fancybox'), 'label_for' => 'fancybox_overlayColor', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => __('Enter an HTML color value.','easy-fancybox') . ' ' . __('Default:','easy-fancybox') . ' #777
' ) ) ), 'Window' => array ( 'title' => __('Window','easy-fancybox'), 'input' => 'multiple', 'hide' => true, 'options' => array( 'p1' => array ( 'hide' => true, 'description' => '' . __('Size') . '
' ), 'width' => array ( 'id' => 'fancybox_width', 'title' => __('Width'), 'label_for' => 'fancybox_width', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_height', 'title' => __('Height'), 'label_for' => 'fancybox_height', 'input' => 'text', 'class' => 'small-text', 'default' => '' ), 'padding' => array ( 'id' => 'fancybox_padding', 'title' => __('Border'), 'label_for' => 'fancybox_padding', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => '' . __('Default:','easy-fancybox') . ' 560 x 340 x 10
' ), 'p2' => array ( 'hide' => true, 'description' => '
' . __('Color','easy-fancybox') . '
' ), 'backgroundColor' => array ( 'id' => 'fancybox_backgroundColor', 'hide' => true, 'title' => __('Background'), 'label_for' => 'fancybox_backgroundColor', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => '' ), 'paddingColor' => array ( 'id' => 'fancybox_paddingColor', 'hide' => true, 'title' => __('Border'), 'label_for' => 'fancybox_paddingColor', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => '' ), 'textColor' => array ( 'id' => 'fancybox_textColor', 'hide' => true, 'title' => __('Text'), 'label_for' => 'fancybox_textColor', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => '' ), 'frameOpacity' => array ( 'id' => 'fancybox_frameOpacity', 'hide' => true, 'title' => __('Opacity','easy-fancybox'), 'label_for' => 'fancybox_frameOpacity', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => '
' . __('Default:','easy-fancybox') . ' #fff x #fff x inherit x 1.0
' ), 'p3' => array ( 'hide' => true, 'description' => '
' . __('Behavior','easy-fancybox') . '
' ), 'centerOnScroll' => array ( 'id' => 'fancybox_centerOnScroll', 'input' => 'checkbox', 'default' => '1', 'description' => __('Center while scrolling','easy-fancybox') ), 'showCloseButton' => array ( 'id' => 'fancybox_showCloseButton', 'input' => 'checkbox', 'default' => '1', 'description' => __('Show the (X) close button','easy-fancybox') ), 'showNavArrows' => array ( 'id' => 'fancybox_showNavArrows', 'input' => 'checkbox', 'default' => '1', 'description' => __('Show the gallery navigation arrows','easy-fancybox') ), 'p4' => array ( 'hide' => true, 'description' => '
' ), 'speedIn' => array ( 'id' => 'fancybox_speedIn', 'title' => __('Opening speed','easy-fancybox'), 'label_for' => 'fancybox_speedIn', 'input' => 'text', 'class' => 'small-text', 'default' => '', ), 'speedOut' => array ( 'id' => 'fancybox_speedOut', 'title' => __('Closing speed','easy-fancybox'), 'label_for' => 'fancybox_speedOut', 'input' => 'text', 'class' => 'small-text', 'default' => '', ), 'changeFade' => array ( 'id' => 'fancybox_changeFade', 'title' => __('Fade speed','easy-fancybox'), 'label_for' => 'fancybox_changeFade', 'input' => 'text', 'class' => 'small-text', 'default' => '', 'description' => '
' . __('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' ' . __('Default:','easy-fancybox') . ' 300
' ), 'p5' => array ( 'hide' => true, 'description' => '
' ), 'onComplete' => array ( 'id' => 'fancybox_onComplete', 'title' => __('Advanced','easy-fancybox'), 'label_for' => 'fancybox_onComplete', 'input' => 'select', 'options' => array( '' => __('None','easy-fancybox'), // no extra's 'function() { $(\'#fancybox-title\').hide(); $(\'#fancybox-wrap\').hover(function() { $(\'#fancybox-title\').show(); }, function() { $(\'#fancybox-title\').hide(); }); }' => __('Hide/show title on mouse hover action','easy-fancybox'), 'function() { fb_timeout = setTimeout(function(){jQuery.fancybox.next();}, 5000); $(\'#fancybox-wrap\').hover(function() { if(fb_timeout) clearTimeout(fb_timeout); }, function() { if(!fb_timeout) var fb_timeout = setTimeout(function(){jQuery.fancybox.next();}, 5000); }); }' => __('Gallery Auto-rotation','easy-fancybox') ), // \'jQuery("#fancybox-right").trigger("click")\' // \'jQuery.event.trigger("fancybox-next")\' // \'jQuery.fancybox.next()\' // function(){jQuery.fancybox.next();} 'noquotes' => true, 'default' => '', 'description' => '
' . __('Note: Hide/show title on mouse hover action works best with Overlay title position. Auto-rotation uses a fixed 5 second pause per image.','easy-fancybox') . '
' ), 'onCleanup' => array ( 'noquotes' => true, 'default' => 'function() { if(fb_timeout) { window.clearTimeout(fb_timeout); fb_timeout = null; } }' ) ) ) ) ), 'IMG' => array( 'title' => __('Images & Inline content','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make images open in an overlay, add their extension to the auto-detect field or use the class "fancybox" for its link. Clear field to switch off auto-enabling.','easy-fancybox') . '
' ), 'autoAttribute' => array ( 'id' => 'fancybox_autoAttribute', 'title' => __('Auto-detect','easy-fancybox'), 'label_for' => 'fancybox_autoAttribute', 'input' => 'text', 'class' => 'regular-text', 'hide' => true, 'default' => 'jpg gif png', 'selector' => 'href$=', 'description' => ' ' . __('Default:','easy-fancybox') . ' jpg gif png

' ), 'autoAttributeLimit' => array ( 'id' => 'fancybox_autoAttributeLimit', 'title' => __('Apply to','easy-fancybox'), 'label_for' => 'fancybox_autoAttributeLimit', 'hide' => true, 'input' => 'select', 'options' => array( '' => __('All image links', 'easy-fancybox'), '1' => __('Links inside Section(s) only (below)','easy-fancybox') ), 'default' => '', 'description' => '' . __('Default:','easy-fancybox') . ' ' . 'All image links' . '
' ), 'autoGallery' => array ( 'id' => 'fancybox_autoGallery', 'title' => __('Auto-gallery','easy-fancybox'), 'label_for' => 'fancybox_autoGallery', 'hide' => true, 'input' => 'select', 'options' => array( '' => __('Disabled'), '1' => __('Galleries per Section (below)','easy-fancybox'), '2' => __('All in one gallery','easy-fancybox') ), 'default' => '2', 'description' => '
  ' . __('When disabled, you can use the rel attribute to manually group image links together.','easy-fancybox') . '
' ), 'autoSelector' => array ( 'id' => 'fancybox_autoGallerySelector', 'title' => __('Section(s)','easy-fancybox'), 'label_for' => 'fancybox_autoGallerySelector', 'hide' => true, 'input' => 'text', 'class' => 'regular-text', 'default' => 'article, div.hentry', 'description' => ' ' . __('Default:','easy-fancybox') . ' ' . 'article, div.hentry' . '
' . __('This applies when Apply to is set to Limited to Sections and/or Auto-gallery is set to Galleries per Section. Adapt it to conform with your theme.','easy-fancybox') . '
' . __('Examples: If your theme wraps post content in a div with class post, change this value to "div.post". If you want to include images in a sidebar with ID primary, add ", div#primary" or "aside#primary" for html5 themes.','easy-fancybox') . '

' ), /* 'onStart' => array ( 'noquotes' => true, 'default' => 'function() { window.clearTimeout(fb_timeout); }' ),*/ 'transitionIn' => array ( 'id' => 'fancybox_transitionIn', 'title' => __('Transition In','easy-fancybox'), 'label_for' => 'fancybox_transitionIn', 'input' => 'select', 'options' => array( '' => __('Fade','easy-fancybox'), 'elastic' => __('Elastic','easy-fancybox'), 'none' => __('None','easy-fancybox') ), 'default' => 'elastic', 'description' => ' ' ), 'easingIn' => array ( 'id' => 'fancybox_easingIn', 'title' => __('Easing In','easy-fancybox'), 'label_for' => 'fancybox_easingIn', 'input' => 'select', 'options' => array( 'linear' => __('Linear','easy-fancybox'), '' => __('Swing','easy-fancybox'), 'easeOutBack' => __('Back','easy-fancybox'), 'easeOutQuad' => __('Quad','easy-fancybox'), 'easeOutExpo' => __('Expo','easy-fancybox'), ), 'default' => 'easeOutBack', 'description' => '
' ), 'transitionOut' => array ( 'id' => 'fancybox_transitionOut', 'title' => __('Transition Out','easy-fancybox'), 'label_for' => 'fancybox_transitionOut', 'input' => 'select', 'options' => array( '' => __('Fade','easy-fancybox'), 'elastic' => __('Elastic','easy-fancybox'), 'none' => __('None','easy-fancybox') ), 'default' => 'elastic', 'description' => ' ' ), 'easingOut' => array ( 'id' => 'fancybox_easingOut', 'title' => __('Easing Out','easy-fancybox'), 'label_for' => 'fancybox_easingOut', 'input' => 'select', 'options' => array( 'linear' => __('Linear','easy-fancybox'), '' => __('Swing','easy-fancybox'), 'easeInBack' => __('Back','easy-fancybox'), 'easeInQuad' => __('Quad','easy-fancybox'), 'easeInExpo' => __('Expo','easy-fancybox'), ), 'default' => 'easeInBack', 'description' => '
' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '
' ), 'opacity' => array ( 'id' => 'fancybox_opacity', 'input' => 'checkbox', 'default' => '', 'description' => __('Transparency fade during elastic transition.','easy-fancybox') . '
' ), 'titleShow' => array ( 'id' => 'fancybox_titleShow', 'input' => 'checkbox', 'default' => '1', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_titlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_titlePosition', 'input' => 'select', 'options' => array( '' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox'), 'over' => __('Overlay','easy-fancybox') ), 'default' => 'over', 'description' => ' ' ), 'titleFromAlt' => array ( 'id' => 'fancybox_titleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ), /* 'titleFormat' => array ( 'id' => 'fancybox_titleFormat', 'title' => __('Title format','easy-fancybox'), 'label_for' => 'fancybox_titleFormat', 'input' => 'select', 'options' => array( '' => __('Default FancyBox style','easy-fancybox'), 'function(title, currentArray, currentIndex, currentOpts) { return \'
' . __('Close','easy-fancybox') . ' \' + (title && title.length ? \'\' + title + \'\' : \'\' ) + \'' . __('Image','easy-fancybox') . '\' + (currentIndex + 1) + \' ' . __('of','easy-fancybox') . ' \' + currentArray.length + \'
\'; }' => __('Mimic Lightbox2 style','easy-fancybox'), ), 'noquotes' => true, 'default' => '', 'description' => '
' . __('To improve Lightbox2 style disable Show close button and set titleposition to Inside or Outside','easy-fancybox') . '
' ),*/ 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox' ) ) ), 'PDF' => array( 'title' => __('PDF','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make any PDF document file open in an overlay, switch on auto-detect or use the class "fancybox-pdf" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '
' ), 'autoAttribute' => array ( 'id' => 'fancybox_autoAttributePDF', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'selector' => 'href$=".pdf"', 'description' => __('Auto-detect','easy-fancybox') . '
' ), 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox-pdf' ), 'type' => array ( 'default' => 'html' ), 'width' => array ( 'id' => 'fancybox_PDFwidth', 'title' => __('Width'), 'label_for' => 'fancybox_PDFwidth', 'input' => 'text', 'class' => 'small-text', 'default' => '90%', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_PDFheight', 'title' => __('Height'), 'label_for' => 'fancybox_PDFheight', 'input' => 'text', 'class' => 'small-text', 'default' => '90%' ), 'padding' => array ( 'id' => 'fancybox_PDFpadding', 'title' => __('Border'), 'label_for' => 'fancybox_PDFpadding', 'input' => 'text', 'class' => 'small-text', 'default' => '10', 'description' => '

' ), 'autoScale' => array ( 'noquotes' => true, 'default' => 'false' ), 'titleShow' => array ( 'id' => 'fancybox_PDFtitleShow', 'input' => 'checkbox', 'default' => '', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_PDFtitlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_PDFtitlePosition', 'input' => 'select', 'options' => array( 'float' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox') //,'over' => __('Overlay','easy-fancybox') ), 'default' => 'float', ), 'titleFromAlt' => array ( 'id' => 'fancybox_PDFtitleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ), /* 'transitionOut' => array ( 'id' => 'fancybox_PDFtransitionOut', 'title' => __('Transition Out','easy-fancybox'), 'label_for' => 'fancybox_PDFtransitionOut', 'input' => 'select', 'class' => '', 'options' => array( 'fade' => __('Fade','easy-fancybox'), //'elastic' => __('Elastic','easy-fancybox'), 'none' => __('None','easy-fancybox') ), 'default' => 'fade', ), 'easingIn' => array ( 'default' => 'swing' ),*/ 'autoDimensions' => array ( 'noquotes' => true, 'default' => 'false' ), 'scrolling' => array ( 'default' => 'no', ), 'onStart' => array ( 'noquotes' => true, // 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'\' }' 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'\' + $(selectedArray[selectedIndex]).html() + \'\' }' ), /* 'onClosed' => array ( 'noquotes' => true, 'default' => 'function() { $("#fancybox-content").empty(); }' )*/ ) ), 'SWF' => array( 'title' => __('SWF','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make any Flash (.swf) file open in an overlay, switch on auto-detect or use the class "fancybox-swf" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '
' ), 'autoAttribute' => array ( 'id' => 'fancybox_autoAttributeSWF', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'selector' => 'href$=".swf"', 'description' => __('Auto-detect','easy-fancybox') . '
' ), 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox-swf' ), 'type' => array( 'default' => 'swf' ), 'width' => array ( 'id' => 'fancybox_SWFWidth', 'title' => __('Width'), 'label_for' => 'fancybox_SWFWidth', 'input' => 'text', 'class' => 'small-text', 'options' => array(), 'default' => '680', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_SWFHeight', 'title' => __('Height'), 'label_for' => 'fancybox_SWFHeight', 'input' => 'text', 'class' => 'small-text', 'options' => array(), 'default' => '495', ), 'padding' => array ( 'id' => 'fancybox_SWFpadding', 'title' => __('Border'), 'label_for' => 'fancybox_SWFpadding', 'input' => 'text', 'class' => 'small-text', 'default' => '0', 'description' => '

' ), 'autoScale' => array ( 'noquotes' => true, 'default' => 'false' ), 'titleShow' => array ( 'id' => 'fancybox_SWFtitleShow', 'input' => 'checkbox', 'default' => '', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_SWFtitlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_SWFtitlePosition', 'input' => 'select', 'options' => array( 'float' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox') //,'over' => __('Overlay','easy-fancybox') ), 'default' => 'float', ), 'titleFromAlt' => array ( 'id' => 'fancybox_SWFtitleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ), 'swf' => array ( 'noquotes' => true, 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}' ) ) ), 'YouTube' => array( 'title' => __('YouTube','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make any YouTube movie open in an overlay, switch on auto-detect or use the class "fancybox-youtube" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '
' ), 'autoAttribute' => array ( 'id' => 'fancybox_autoAttributeYoutube', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'selector' => 'href*="youtube.com/"', 'href-replace' => "return attr.replace(new RegExp('watch\\\?v=', 'i'), 'v/')", 'description' => __('Auto-detect','easy-fancybox') ), 'autoAttributeAlt' => array ( 'id' => 'fancybox_autoAttributeYoutubeShortURL', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'selector' => 'href*="youtu.be/"', 'href-replace' => "return attr.replace(new RegExp('youtu.be', 'i'), 'www.youtube.com/v')", 'description' => __('Auto-detect Short links','easy-fancybox') . '
' ), 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox-youtube' ), 'type' => array( 'default' => 'iframe' ), 'width' => array ( 'id' => 'fancybox_YoutubeWidth', 'title' => __('Width'), 'label_for' => 'fancybox_YoutubeWidth', 'input' => 'text', 'class' => 'small-text', 'default' => '640', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_YoutubeHeight', 'title' => __('Height'), 'label_for' => 'fancybox_YoutubeHeight', 'input' => 'text', 'class' => 'small-text', 'default' => '390', ), 'padding' => array ( 'id' => 'fancybox_Youtubepadding', 'title' => __('Border'), 'label_for' => 'fancybox_Youtubepadding', 'input' => 'text', 'class' => 'small-text', 'default' => '0', 'description' => '

' ), 'autoScale' => array ( 'noquotes' => true, 'default' => 'false' ), 'titleShow' => array ( 'id' => 'fancybox_YoutubetitleShow', 'input' => 'checkbox', 'default' => '', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_YoutubetitlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_YoutubetitlePosition', 'input' => 'select', 'options' => array( 'float' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox') //,'over' => __('Overlay','easy-fancybox') ), 'default' => 'float', ), 'titleFromAlt' => array ( 'id' => 'fancybox_YoutubetitleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ), /* 'swf' => array ( 'noquotes' => true, 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}' ), */ 'onStart' => array ( 'noquotes' => true, 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'youtu.be\', \'i\'), \'www.youtube.com/embed\').replace(new RegExp(\'watch\\\?v=([a-z0-9\_\-]+)(&|\\\?)?(.*)\', \'i\'), \'embed/$1?version=3&$3\') }' ) ) ), 'Vimeo' => array( 'title' => __('Vimeo','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make any Vimeo movie open in an overlay, switch on auto-detect or use the class "fancybox-vimeo" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '
' ), 'autoAttribute' => array ( 'id' => 'fancybox_autoAttributeVimeo', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'selector' => 'href*="vimeo.com/"', 'href-replace' => "return attr.replace(new RegExp('/([0-9])', 'i'), '/moogaloop.swf?clip_id=$1')", 'description' => __('Auto-detect','easy-fancybox') . '
' ), 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox-vimeo' ), 'type' => array( 'default' => 'iframe' ), 'width' => array ( 'id' => 'fancybox_VimeoWidth', 'title' => __('Width'), 'label_for' => 'fancybox_VimeoWidth', 'input' => 'text', 'class' => 'small-text', 'default' => '640', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_VimeoHeight', 'title' => __('Height'), 'label_for' => 'fancybox_VimeoHeight', 'input' => 'text', 'class' => 'small-text', 'default' => '360' ), 'padding' => array ( 'id' => 'fancybox_Vimeopadding', 'title' => __('Border'), 'label_for' => 'fancybox_Vimeopadding', 'input' => 'text', 'class' => 'small-text', 'default' => '0', 'description' => '

' ), 'autoScale' => array ( 'noquotes' => true, 'default' => 'false' ), 'titleShow' => array ( 'id' => 'fancybox_VimeotitleShow', 'input' => 'checkbox', 'default' => '', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_VimeotitlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_VimeotitlePosition', 'input' => 'select', 'options' => array( 'float' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox') //,'over' => __('Overlay','easy-fancybox') ), 'default' => 'float', ), 'titleFromAlt' => array ( 'id' => 'fancybox_VimeotitleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ), /* 'swf' => array ( 'noquotes' => true, 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}' ),*/ 'onStart' => array ( 'noquotes' => true, 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'http://(www\\.)?vimeo\\.com/([0-9]+)(&|\\\?)?(.*)\', \'i\'), \'http://player.vimeo.com/video/$2?$4\') }' ) ) ), 'Dailymotion' => array( 'title' => __('Dailymotion','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make any Dailymotion movie open in an overlay, switch on auto-detect or use the class "fancybox-dailymotion" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '
' ), 'autoAttribute' => array ( 'id' => 'fancybox_autoAttributeDailymotion', 'input' => 'checkbox', 'hide' => true, 'default' => '1', 'selector' => 'href*="dailymotion.com/"', 'href-replace' => "return attr.replace(new RegExp('/video/', 'i'), '/swf/')", 'description' => __('Auto-detect','easy-fancybox') . '
' ), 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox-dailymotion' ), 'type' => array( 'default' => 'iframe' ), 'width' => array ( 'id' => 'fancybox_DailymotionWidth', 'title' => __('Width'), 'label_for' => 'fancybox_DailymotionWidth', 'input' => 'text', 'class' => 'small-text', 'default' => '560', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_DailymotionHeight', 'title' => __('Height'), 'label_for' => 'fancybox_DailymotionHeight', 'input' => 'text', 'class' => 'small-text', 'default' => '315' ), 'padding' => array ( 'id' => 'fancybox_DailymotionPadding', 'title' => __('Border'), 'label_for' => 'fancybox_DailymotionPadding', 'input' => 'text', 'class' => 'small-text', 'default' => '0', 'description' => '

' ), 'autoScale' => array ( 'noquotes' => true, 'default' => 'false' ), 'titleShow' => array ( 'id' => 'fancybox_DailymotiontitleShow', 'input' => 'checkbox', 'default' => '', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_DailymotiontitlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_DailymotiontitlePosition', 'input' => 'select', 'options' => array( 'float' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox') //,'over' => __('Overlay','easy-fancybox') ), 'default' => 'float', ), 'titleFromAlt' => array ( 'id' => 'fancybox_DailymotiontitleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ), /* 'swf' => array ( 'noquotes' => true, 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}' ),*/ 'onStart' => array ( 'noquotes' => true, 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'/video/(.*)\', \'i\'), \'/embed/video/$1\') }' ) ) ), /* 'Tudou' => array( 'id' => 'fancybox_Tudou', 'title' => __('Tudou','easy-fancybox'), 'label_for' => '', 'input' => 'multiple', 'class' => '', 'description' => '', 'options' => array( 'autoAttributeTudou' => array ( 'id' => 'fancybox_autoAttributeTudou', 'label_for' => '', 'input' => 'checkbox', 'class' => '', 'options' => array(), 'hide' => true, 'default' => '1', 'description' => __('Tudou links','easy-fancybox') ) ) ),*/ /* 'Animoto' => array(), Example ANIMOTO page link http://animoto.com/play/Kf9POzQMSOGWyu41gtOtsw should become http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m */ 'iFrame' => array( 'title' => __('iFrames','easy-fancybox'), 'input' => 'multiple', 'options' => array( 'intro' => array ( 'hide' => true, 'description' => __('To make a website or HTML document open in an overlay, use the class "fancybox-iframe" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '

' ), 'tag' => array ( 'hide' => true, 'default' => 'a, area' ), 'class' => array ( 'hide' => true, 'default' => 'fancybox-iframe, li.fancybox-iframe a' ), 'type' => array ( 'default' => 'iframe' ), 'width' => array ( 'id' => 'fancybox_iFramewidth', 'title' => __('Width'), 'label_for' => 'fancybox_iFramewidth', 'input' => 'text', 'class' => 'small-text', 'default' => '70%', 'description' => ' ' ), 'height' => array ( 'id' => 'fancybox_iFrameheight', 'title' => __('Height'), 'label_for' => 'fancybox_iFrameheight', 'input' => 'text', 'class' => 'small-text', 'default' => '90%', ), 'padding' => array ( 'id' => 'fancybox_iFramepadding', 'title' => __('Border'), 'label_for' => 'fancybox_iFramepadding', 'input' => 'text', 'class' => 'small-text', 'default' => '0', 'description' => '

' ), 'scrolling' => array ( 'default' => 'auto' ), 'autoScale' => array ( 'noquotes' => true, 'default' => 'false' ), 'titleShow' => array ( 'id' => 'fancybox_iFrametitleShow', 'input' => 'checkbox', 'default' => '', 'description' => __('Show title','easy-fancybox') ), 'titlePosition' => array ( 'id' => 'fancybox_iFrametitlePosition', 'title' => __('Title Position','easy-fancybox'), 'label_for' => 'fancybox_iFrametitlePosition', 'input' => 'select', 'options' => array( 'float' => __('Float','easy-fancybox'), // same as 'float' 'outside' => __('Outside','easy-fancybox'), 'inside' => __('Inside','easy-fancybox') //,'over' => __('Overlay','easy-fancybox') ), 'default' => 'float', ), 'titleFromAlt' => array ( 'id' => 'fancybox_iFrametitleFromAlt', 'input' => 'checkbox', 'default' => '1', 'description' => __('Allow title from thumbnail alt tag','easy-fancybox') ) ) ) ); }