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 \'
\' + (title && title.length ? \'\' + title + \'\' : \'\' ) + \'' . __('Image','easy-fancybox') . '\' + (currentIndex + 1) + \' ' . __('of','easy-fancybox') . ' \' + currentArray.length + \'