Easy FancyBox - Version 1.5.6

Version Description

Bugfix release.

=

Download this release

Release Info

Developer RavanH
Plugin Icon 128x128 Easy FancyBox
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

easy-fancybox-class.php CHANGED
@@ -15,7 +15,7 @@ class easyFancyBox {
15
  MAIN SCRIPT OUTPUT
16
  **********************/
17
 
18
- function main_script() {
19
 
20
  echo '
21
  <!-- Easy FancyBox ' . EASY_FANCYBOX_VERSION . ' using FancyBox ' . FANCYBOX_VERSION . ' - RavanH (http://status301.net/wordpress-plugins/easy-fancybox/) -->';
@@ -38,47 +38,6 @@ class easyFancyBox {
38
  return;
39
  }
40
 
41
- // running our IE alphaimageloader relative path styles here
42
- echo '
43
- <!--[if lt IE 8]>
44
- <style type="text/css">
45
- /* IE6 */
46
- .fancybox-ie6 #fancybox-close{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_close.png",sizingMethod="scale")}
47
- .fancybox-ie6 #fancybox-left-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_nav_left.png",sizingMethod="scale")}
48
- .fancybox-ie6 #fancybox-right-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_nav_right.png",sizingMethod="scale")}
49
- .fancybox-ie6 #fancybox-title-over{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_over.png",sizingMethod="scale");zoom:1}
50
- .fancybox-ie6 #fancybox-title-float-left{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_left.png",sizingMethod="scale")}
51
- .fancybox-ie6 #fancybox-title-float-main{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_main.png",sizingMethod="scale")}
52
- .fancybox-ie6 #fancybox-title-float-right{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_right.png",sizingMethod="scale")}
53
- .fancybox-ie6 #fancybox-bg-w,.fancybox-ie6 #fancybox-bg-e,.fancybox-ie6 #fancybox-left,.fancybox-ie6 #fancybox-right,#fancybox-hide-sel-frame{height:expression(this.parentNode.clientHeight+"px")}
54
- #fancybox-loading.fancybox-ie6{position:absolute;margin-top:0;top:expression((-20+(document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2)+(ignoreMe=document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+"px")}
55
- #fancybox-loading.fancybox-ie6 div{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_loading.png", sizingMethod="scale")}
56
- /* IE6, IE7 */
57
- .fancybox-ie .fancybox-bg{background:transparent !important}
58
- .fancybox-ie #fancybox-bg-n{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_n.png",sizingMethod="scale")}
59
- .fancybox-ie #fancybox-bg-ne{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_ne.png",sizingMethod="scale")}
60
- .fancybox-ie #fancybox-bg-e{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_e.png",sizingMethod="scale")}
61
- .fancybox-ie #fancybox-bg-se{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_se.png",sizingMethod="scale")}
62
- .fancybox-ie #fancybox-bg-s{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_s.png",sizingMethod="scale")}
63
- .fancybox-ie #fancybox-bg-sw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_sw.png",sizingMethod="scale")}
64
- .fancybox-ie #fancybox-bg-w{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_w.png",sizingMethod="scale")}
65
- .fancybox-ie #fancybox-bg-nw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_nw.png",sizingMethod="scale")}
66
- </style>
67
- <![endif]-->
68
- <!--[if IE 8]>
69
- <style type="text/css">
70
- .fancybox-ie .fancybox-bg{background:transparent !important}
71
- .fancybox-ie #fancybox-bg-n{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_n.png",sizingMethod="scale")\'}
72
- .fancybox-ie #fancybox-bg-ne{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_ne.png",sizingMethod="scale")\'}
73
- .fancybox-ie #fancybox-bg-e{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_e.png",sizingMethod="scale")\'}
74
- .fancybox-ie #fancybox-bg-se{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_se.png",sizingMethod="scale")\'}
75
- .fancybox-ie #fancybox-bg-s{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_s.png",sizingMethod="scale")\'}
76
- .fancybox-ie #fancybox-bg-sw{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_sw.png",sizingMethod="scale")\'}
77
- .fancybox-ie #fancybox-bg-w{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_w.png",sizingMethod="scale")\'}
78
- .fancybox-ie #fancybox-bg-nw{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_nw.png",sizingMethod="scale")\'}
79
- </style>
80
- <![endif]-->
81
- ';
82
  // begin output FancyBox settings
83
  echo '
84
  <script type="text/javascript">
@@ -274,24 +233,69 @@ echo '
274
  }
275
  /* ]]> */
276
  </script>
277
- <style type="text/css">.fancybox-hidden{display:none}.rtl #fancybox-left{left:auto;right:0px}.rtl #fancybox-right{left:0px;right:auto}.rtl #fancybox-right-ico{background-position:-40px -30px}.rtl #fancybox-left-ico{background-position:-40px -60px}.rtl .fancybox-title-over{text-align:right}.rtl #fancybox-left-ico,.rtl #fancybox-right-ico{right:-9999px}.rtl #fancybox-right:hover span{right:auto;left:20px}.rtl #fancybox-left:hover span{right:20px}#fancybox-img{max-width:none;max-height:none}';
 
278
 
279
  if ('true' == $overlaySpotlight)
280
- echo '#fancybox-overlay{background-attachment:fixed;background-image:url("' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png");background-position:center;background-repeat:no-repeat;background-size:cover;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png",sizingMethod="scale");-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png\',sizingMethod=\'scale\')";}';
 
281
  if ( !empty($borderRadius) )
282
- echo '#fancybox-bg-n,#fancybox-bg-ne,#fancybox-bg-e,#fancybox-bg-se,#fancybox-bg-s,#fancybox-bg-sw,#fancybox-bg-w,#fancybox-bg-nw{background-image:none}#fancybox-outer,#fancybox-content{border-radius:'.$borderRadius.'px}#fancybox-outer{-moz-box-shadow:0 0 12px #1111;-webkit-box-shadow:0 0 12px #111;box-shadow:0 0 12px #111}';
 
283
  if ('' != $backgroundColor)
284
- echo '#fancybox-outer{background-color:'.$backgroundColor.'}';
 
285
  if ('' != $paddingColor)
286
- echo '#fancybox-content{border-color:'.$paddingColor.'}';
 
287
  if ('' != $textColor)
288
- echo '#fancybox-content{color:'.$textColor.'}';
 
289
  if ('' != $frameOpacity && '1' != $frameOpacity) {
290
  $frameOpacity_percent = (int)$frameOpacity*100;
291
- echo '#fancybox-outer{filter:alpha(opacity='.$frameOpacity_percent.');-moz-opacity:'.$frameOpacity.';opacity:'.$frameOpacity.'}';
 
292
  }
293
- echo '</style>
294
- ';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  }
296
 
297
 
@@ -299,7 +303,7 @@ echo '
299
  ADMIN FUNCTIONS
300
  ***********************/
301
 
302
- function register_settings($args = array()) {
303
  foreach ($args as $key => $value) {
304
  // check to see if the section is enabled, else skip to next
305
  if ( array_key_exists($key, self::$options['Global']['options']['Enable']['options']) && !get_option( self::$options['Global']['options']['Enable']['options'][$key]['id'], self::$options['Global']['options']['Enable']['options'][$key]['default']) )
@@ -333,12 +337,12 @@ echo '
333
  }
334
 
335
  // add our FancyBox Media Settings Section on Settings > Media admin page
336
- function settings_section() {
337
  echo '<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number='.EASY_FANCYBOX_VERSION.'&no_shipping=0&tax=0&charset=UTF%2d8&currency_code=EUR" title="'.__('Donate to keep the Easy FancyBox plugin development going!','easy-fancybox').'"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" style="border:none;float:right;margin:5px 0 0 10px" alt="'.__('Donate to keep the Easy FancyBox plugin development going!','easy-fancybox').'" width="92" height="26" /></a>'.sprintf(__('The options in this section are provided by the plugin %s and determine the <strong>Media Lightbox</strong> overlay appearance and behaviour controlled by %s.','easy-fancybox'),'<strong><a href="http://status301.net/wordpress-plugins/easy-fancybox/">'.__('Easy FancyBox','easy-fancybox').'</a></strong>','<strong><a href="http://fancybox.net/">'.__('FancyBox','easy-fancybox').'</a></strong>').'</p><p>'.__('First enable each sub-section that you need. Then save and come back to adjust its specific settings.','easy-fancybox').' '.__('Note: Each additional sub-section and features like <em>Auto-detection</em>, <em>Elastic transitions</em> and all <em>Easing effects</em> (except Swing) will have some extra impact on client-side page speed. Enable only those sub-sections and options that you actually need on your site.','easy-fancybox').' '.__('Some setting like Transition options are unavailable for SWF video, PDF and iFrame content to ensure browser compatibility and readability.','easy-fancybox').'</p>';
338
  }
339
 
340
  // add our FancyBox Media Settings Fields
341
- function settings_fields($args){
342
  $disabled = (isset($args['status']) && 'disabled' == $args['status']) ? ' disabled="disabled"' : '';
343
  if (isset($args['input']))
344
  switch($args['input']) {
@@ -426,13 +430,13 @@ echo '
426
  /**
427
  * Adds an action link to the Plugins page
428
  */
429
- function add_action_link( $links ) {
430
- $settings_link = '<a href="' . admin_url('options-media.php') . '">' . __('Settings') . '</a>';
431
  array_unshift( $links, $settings_link );
432
  return $links;
433
  }
434
 
435
- function intval($setting = '') {
436
  if ($setting == '')
437
  return '';
438
 
@@ -452,7 +456,7 @@ echo '
452
  ACTIONS & FILTERS
453
  ***********************/
454
 
455
- function register_scripts() {
456
 
457
  if ( !is_admin() ) {
458
  // ENQUEUE
@@ -469,50 +473,32 @@ echo '
469
  // do nothing
470
  } else {
471
  if ( 'elastic' == get_option( self::$options['IMG']['options']['transitionIn']['id'], self::$options['IMG']['options']['transitionIn']['default']) || 'elastic' == get_option( self::$options['IMG']['options']['transitionOut']['id'], self::$options['IMG']['options']['transitionOut']['default']) ) {
472
- // first get rid of previously registered variants of jquery.easing by other plugins or theme
473
- wp_deregister_script('easing');
474
- wp_deregister_script('jquery.easing');
475
- wp_deregister_script('jqueryeasing');
476
- wp_deregister_script('jquery_easing');
477
  wp_deregister_script('jquery-easing');
478
- // then register our version
479
  wp_register_script('jquery-easing', EASY_FANCYBOX_PLUGINURL.'jquery.easing.pack.js', array('jquery'), EASING_VERSION, true);
480
  }
481
  }
482
 
483
  // mousewheel in IMG settings?
484
  if ( '1' == get_option( self::$options['IMG']['options']['mouseWheel']['id'], self::$options['IMG']['options']['mouseWheel']['default']) ) {
485
- // first get rid of previously registered variants of jquery.mousewheel (by other plugins)
486
- wp_deregister_script('mousewheel');
487
- wp_deregister_script('jquery.mousewheel');
488
- wp_deregister_script('jquerymousewheel');
489
- wp_deregister_script('jquery_mousewheel');
490
  wp_deregister_script('jquery-mousewheel');
491
- // then register our version
492
  wp_register_script('jquery-mousewheel', EASY_FANCYBOX_PLUGINURL.'jquery.mousewheel.pack.js', array('jquery'), MOUSEWHEEL_VERSION, true);
493
  }
494
 
495
  // metadata in Link settings?
496
  if ('1' == get_option( self::$options['Global']['options']['Links']['options']['metaData']['id'], self::$options['Global']['options']['Links']['options']['metaData']['default']) ) {
497
- // first get rid of previously registered variants of jquery.metadata (by other plugins)
498
- wp_deregister_script('metadata');
499
- wp_deregister_script('jquery.metadata');
500
- wp_deregister_script('jquerymetadata');
501
- wp_deregister_script('jquery_metadata');
502
  wp_deregister_script('jquery-metadata');
503
- // then register our version
504
  wp_register_script('jquery-metadata',EASY_FANCYBOX_PLUGINURL.'jquery.metadata.pack.js', array('jquery'), METADATA_VERSION, true);
505
  }
506
  }
507
  }
508
 
509
- function enqueue_styles() {
510
  // register style
511
  wp_dequeue_style('fancybox');
512
  wp_enqueue_style('fancybox', EASY_FANCYBOX_PLUGINURL.'fancybox/jquery.fancybox-'.FANCYBOX_VERSION.'.pack.css', false, EASY_FANCYBOX_VERSION, 'screen');
513
  }
514
 
515
- static function enqueue_footer_scripts() {
516
  if (!self::$add_scripts)
517
  return;
518
 
@@ -522,7 +508,7 @@ echo '
522
  wp_enqueue_script('jquery-metadata');
523
  }
524
 
525
- function on_ready() {
526
  if (!self::$add_scripts) // abort mission, there is no need for any script files
527
  return;
528
 
@@ -535,23 +521,24 @@ jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
535
  ';
536
  }
537
 
538
- static function admin_init(){
539
 
540
  add_filter('plugin_action_links_' . EASY_FANCYBOX_PLUGINBASENAME, array(__CLASS__, 'add_action_link') );
541
- // in preparation of admin page move:
 
542
  //add_action('admin_menu', array(__CLASS__, 'add_menu'));
543
 
544
  add_settings_section('fancybox_section', __('FancyBox','easy-fancybox'), array(__CLASS__, 'settings_section'), 'media');
545
 
546
  self::register_settings( self::$options );
547
 
548
- // test with media upload resize... TODO : fix - because does not work anymore in the new uploader
549
  //add_action( 'pre-upload-ui', 'media_upload_max_image_resize' );
550
  }
551
 
552
  // Hack to fix missing wmode in Youtube oEmbed code based on David C's code in the comments on
553
  // http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html
554
- static function add_video_wmode_opaque($html, $url, $attr) {
555
  if (strpos($html, "<embed src=" ) !== false) {
556
  $html = str_replace('</param><embed', '</param><param name="wmode" value="opaque"></param><embed wmode="opaque"', $html);
557
  } elseif (strpos($html, 'youtube' ) !== false && strpos($html, 'wmode' ) == false ) {
@@ -564,17 +551,13 @@ jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
564
  return $html;
565
  }
566
 
567
- static function init() {
568
-
569
- // if ( is_admin() ) {
570
- // }
571
-
572
  require_once(EASY_FANCYBOX_PLUGINDIR . 'easy-fancybox-settings.php');
573
 
574
  add_filter('embed_oembed_html', array(__CLASS__, 'add_video_wmode_opaque'), 10, 3);
575
  }
576
 
577
- static function textdomain() {
578
  if ( is_admin() ) {
579
  load_plugin_textdomain('easy-fancybox', false, dirname( EASY_FANCYBOX_PLUGINBASENAME ) . '/languages/');
580
  }
@@ -629,11 +612,11 @@ jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
629
  wp_enqueue_script('postbox');
630
 
631
  //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
632
- //add_meta_box('advanceddiv', __('Advanced Options', 'skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_advanced'), self::$pagehook, 'normal', 'core');
633
 
634
  add_meta_box('supportdiv', __('Support','easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_support'), self::$pagehook, 'side', 'core');
635
  add_meta_box('resourcesdiv', __('Resources','skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_resources'), self::$pagehook, 'side', 'low');
636
- add_meta_box('discussiondiv', __('Discussion'), array(__CLASS__.'_Admin', 'meta_box_discussion'), self::$pagehook, 'normal', 'low');
637
  add_meta_box('creditsdiv', __('Credits','skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_credits'), self::$pagehook, 'side', 'default');
638
 
639
  }
@@ -658,3 +641,4 @@ jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
658
  }
659
 
660
  }
 
15
  MAIN SCRIPT OUTPUT
16
  **********************/
17
 
18
+ public static function main_script() {
19
 
20
  echo '
21
  <!-- Easy FancyBox ' . EASY_FANCYBOX_VERSION . ' using FancyBox ' . FANCYBOX_VERSION . ' - RavanH (http://status301.net/wordpress-plugins/easy-fancybox/) -->';
38
  return;
39
  }
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  // begin output FancyBox settings
42
  echo '
43
  <script type="text/javascript">
233
  }
234
  /* ]]> */
235
  </script>
236
+ <style type="text/css">
237
+ .fancybox-hidden{display:none}.rtl #fancybox-left{left:auto;right:0px}.rtl #fancybox-right{left:0px;right:auto}.rtl #fancybox-right-ico{background-position:-40px -30px}.rtl #fancybox-left-ico{background-position:-40px -60px}.rtl .fancybox-title-over{text-align:right}.rtl #fancybox-left-ico,.rtl #fancybox-right-ico{right:-9999px}.rtl #fancybox-right:hover span{right:auto;left:20px}.rtl #fancybox-left:hover span{right:20px}#fancybox-img{max-width:none;max-height:none}';
238
 
239
  if ('true' == $overlaySpotlight)
240
+ echo '
241
+ #fancybox-overlay{background-attachment:fixed;background-image:url("' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png");background-position:center;background-repeat:no-repeat;background-size:cover;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png",sizingMethod="scale");-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png\',sizingMethod=\'scale\')";}';
242
  if ( !empty($borderRadius) )
243
+ echo '
244
+ #fancybox-bg-n,#fancybox-bg-ne,#fancybox-bg-e,#fancybox-bg-se,#fancybox-bg-s,#fancybox-bg-sw,#fancybox-bg-w,#fancybox-bg-nw{background-image:none}#fancybox-outer,#fancybox-content{border-radius:'.$borderRadius.'px}#fancybox-outer{-moz-box-shadow:0 0 12px #1111;-webkit-box-shadow:0 0 12px #111;box-shadow:0 0 12px #111}';
245
  if ('' != $backgroundColor)
246
+ echo '
247
+ #fancybox-outer{background-color:'.$backgroundColor.'}';
248
  if ('' != $paddingColor)
249
+ echo '
250
+ #fancybox-content{border-color:'.$paddingColor.'}';
251
  if ('' != $textColor)
252
+ echo '
253
+ #fancybox-content{color:'.$textColor.'}';
254
  if ('' != $frameOpacity && '1' != $frameOpacity) {
255
  $frameOpacity_percent = (int)$frameOpacity*100;
256
+ echo '
257
+ #fancybox-outer{filter:alpha(opacity='.$frameOpacity_percent.');-moz-opacity:'.$frameOpacity.';opacity:'.$frameOpacity.'}';
258
  }
259
+ echo '
260
+ </style>';
261
+
262
+ // running our IE alphaimageloader relative path styles here
263
+ echo '
264
+ <!--[if lt IE 8]>
265
+ <style type="text/css">
266
+ .fancybox-ie6 #fancybox-close{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_close.png",sizingMethod="scale")}
267
+ .fancybox-ie6 #fancybox-left-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_nav_left.png",sizingMethod="scale")}
268
+ .fancybox-ie6 #fancybox-right-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_nav_right.png",sizingMethod="scale")}
269
+ .fancybox-ie6 #fancybox-title-over{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_over.png",sizingMethod="scale");zoom:1}
270
+ .fancybox-ie6 #fancybox-title-float-left{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_left.png",sizingMethod="scale")}
271
+ .fancybox-ie6 #fancybox-title-float-main{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_main.png",sizingMethod="scale")}
272
+ .fancybox-ie6 #fancybox-title-float-right{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_title_right.png",sizingMethod="scale")}
273
+ .fancybox-ie6 #fancybox-bg-w,.fancybox-ie6 #fancybox-bg-e,.fancybox-ie6 #fancybox-left,.fancybox-ie6 #fancybox-right,#fancybox-hide-sel-frame{height:expression(this.parentNode.clientHeight+"px")}
274
+ #fancybox-loading.fancybox-ie6{position:absolute;margin-top:0;top:expression((-20+(document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2)+(ignoreMe=document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop))+"px")}
275
+ #fancybox-loading.fancybox-ie6 div{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_loading.png", sizingMethod="scale")}
276
+ .fancybox-ie #fancybox-bg-n{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_n.png",sizingMethod="scale")}
277
+ .fancybox-ie #fancybox-bg-ne{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_ne.png",sizingMethod="scale")}
278
+ .fancybox-ie #fancybox-bg-e{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_e.png",sizingMethod="scale")}
279
+ .fancybox-ie #fancybox-bg-se{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_se.png",sizingMethod="scale")}
280
+ .fancybox-ie #fancybox-bg-s{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_s.png",sizingMethod="scale")}
281
+ .fancybox-ie #fancybox-bg-sw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_sw.png",sizingMethod="scale")}
282
+ .fancybox-ie #fancybox-bg-w{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_w.png",sizingMethod="scale")}
283
+ .fancybox-ie #fancybox-bg-nw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_nw.png",sizingMethod="scale")}
284
+ </style>
285
+ <![endif]-->
286
+ <!--[if IE 8]>
287
+ <style type="text/css">
288
+ .fancybox-ie #fancybox-bg-n{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_n.png",sizingMethod="scale")\'}
289
+ .fancybox-ie #fancybox-bg-ne{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_ne.png",sizingMethod="scale")\'}
290
+ .fancybox-ie #fancybox-bg-e{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_e.png",sizingMethod="scale")\'}
291
+ .fancybox-ie #fancybox-bg-se{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_se.png",sizingMethod="scale")\'}
292
+ .fancybox-ie #fancybox-bg-s{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_s.png",sizingMethod="scale")\'}
293
+ .fancybox-ie #fancybox-bg-sw{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_sw.png",sizingMethod="scale")\'}
294
+ .fancybox-ie #fancybox-bg-w{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_w.png",sizingMethod="scale")\'}
295
+ .fancybox-ie #fancybox-bg-nw{-ms-filter:\'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'fancybox/fancy_shadow_nw.png",sizingMethod="scale")\'}
296
+ </style>
297
+ <![endif]-->
298
+ ';
299
  }
300
 
301
 
303
  ADMIN FUNCTIONS
304
  ***********************/
305
 
306
+ public static function register_settings($args = array()) {
307
  foreach ($args as $key => $value) {
308
  // check to see if the section is enabled, else skip to next
309
  if ( array_key_exists($key, self::$options['Global']['options']['Enable']['options']) && !get_option( self::$options['Global']['options']['Enable']['options'][$key]['id'], self::$options['Global']['options']['Enable']['options'][$key]['default']) )
337
  }
338
 
339
  // add our FancyBox Media Settings Section on Settings > Media admin page
340
+ public static function settings_section() {
341
  echo '<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number='.EASY_FANCYBOX_VERSION.'&no_shipping=0&tax=0&charset=UTF%2d8&currency_code=EUR" title="'.__('Donate to keep the Easy FancyBox plugin development going!','easy-fancybox').'"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" style="border:none;float:right;margin:5px 0 0 10px" alt="'.__('Donate to keep the Easy FancyBox plugin development going!','easy-fancybox').'" width="92" height="26" /></a>'.sprintf(__('The options in this section are provided by the plugin %s and determine the <strong>Media Lightbox</strong> overlay appearance and behaviour controlled by %s.','easy-fancybox'),'<strong><a href="http://status301.net/wordpress-plugins/easy-fancybox/">'.__('Easy FancyBox','easy-fancybox').'</a></strong>','<strong><a href="http://fancybox.net/">'.__('FancyBox','easy-fancybox').'</a></strong>').'</p><p>'.__('First enable each sub-section that you need. Then save and come back to adjust its specific settings.','easy-fancybox').' '.__('Note: Each additional sub-section and features like <em>Auto-detection</em>, <em>Elastic transitions</em> and all <em>Easing effects</em> (except Swing) will have some extra impact on client-side page speed. Enable only those sub-sections and options that you actually need on your site.','easy-fancybox').' '.__('Some setting like Transition options are unavailable for SWF video, PDF and iFrame content to ensure browser compatibility and readability.','easy-fancybox').'</p>';
342
  }
343
 
344
  // add our FancyBox Media Settings Fields
345
+ public static function settings_fields($args){
346
  $disabled = (isset($args['status']) && 'disabled' == $args['status']) ? ' disabled="disabled"' : '';
347
  if (isset($args['input']))
348
  switch($args['input']) {
430
  /**
431
  * Adds an action link to the Plugins page
432
  */
433
+ public static function add_action_link( $links ) {
434
+ $settings_link = '<a href="' . admin_url('options-media.php') . '">' . translate('Settings') . '</a>';
435
  array_unshift( $links, $settings_link );
436
  return $links;
437
  }
438
 
439
+ public static function intval($setting = '') {
440
  if ($setting == '')
441
  return '';
442
 
456
  ACTIONS & FILTERS
457
  ***********************/
458
 
459
+ public static function register_scripts() {
460
 
461
  if ( !is_admin() ) {
462
  // ENQUEUE
473
  // do nothing
474
  } else {
475
  if ( 'elastic' == get_option( self::$options['IMG']['options']['transitionIn']['id'], self::$options['IMG']['options']['transitionIn']['default']) || 'elastic' == get_option( self::$options['IMG']['options']['transitionOut']['id'], self::$options['IMG']['options']['transitionOut']['default']) ) {
 
 
 
 
 
476
  wp_deregister_script('jquery-easing');
 
477
  wp_register_script('jquery-easing', EASY_FANCYBOX_PLUGINURL.'jquery.easing.pack.js', array('jquery'), EASING_VERSION, true);
478
  }
479
  }
480
 
481
  // mousewheel in IMG settings?
482
  if ( '1' == get_option( self::$options['IMG']['options']['mouseWheel']['id'], self::$options['IMG']['options']['mouseWheel']['default']) ) {
 
 
 
 
 
483
  wp_deregister_script('jquery-mousewheel');
 
484
  wp_register_script('jquery-mousewheel', EASY_FANCYBOX_PLUGINURL.'jquery.mousewheel.pack.js', array('jquery'), MOUSEWHEEL_VERSION, true);
485
  }
486
 
487
  // metadata in Link settings?
488
  if ('1' == get_option( self::$options['Global']['options']['Links']['options']['metaData']['id'], self::$options['Global']['options']['Links']['options']['metaData']['default']) ) {
 
 
 
 
 
489
  wp_deregister_script('jquery-metadata');
 
490
  wp_register_script('jquery-metadata',EASY_FANCYBOX_PLUGINURL.'jquery.metadata.pack.js', array('jquery'), METADATA_VERSION, true);
491
  }
492
  }
493
  }
494
 
495
+ public static function enqueue_styles() {
496
  // register style
497
  wp_dequeue_style('fancybox');
498
  wp_enqueue_style('fancybox', EASY_FANCYBOX_PLUGINURL.'fancybox/jquery.fancybox-'.FANCYBOX_VERSION.'.pack.css', false, EASY_FANCYBOX_VERSION, 'screen');
499
  }
500
 
501
+ public static function enqueue_footer_scripts() {
502
  if (!self::$add_scripts)
503
  return;
504
 
508
  wp_enqueue_script('jquery-metadata');
509
  }
510
 
511
+ public static function on_ready() {
512
  if (!self::$add_scripts) // abort mission, there is no need for any script files
513
  return;
514
 
521
  ';
522
  }
523
 
524
+ public static function admin_init(){
525
 
526
  add_filter('plugin_action_links_' . EASY_FANCYBOX_PLUGINBASENAME, array(__CLASS__, 'add_action_link') );
527
+
528
+ // in preparation of dedicated admin page move:
529
  //add_action('admin_menu', array(__CLASS__, 'add_menu'));
530
 
531
  add_settings_section('fancybox_section', __('FancyBox','easy-fancybox'), array(__CLASS__, 'settings_section'), 'media');
532
 
533
  self::register_settings( self::$options );
534
 
535
+ // TODO : fix?? media_upload_max_image_resize() does not exist anymore...
536
  //add_action( 'pre-upload-ui', 'media_upload_max_image_resize' );
537
  }
538
 
539
  // Hack to fix missing wmode in Youtube oEmbed code based on David C's code in the comments on
540
  // http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html
541
+ public static function add_video_wmode_opaque($html, $url, $attr) {
542
  if (strpos($html, "<embed src=" ) !== false) {
543
  $html = str_replace('</param><embed', '</param><param name="wmode" value="opaque"></param><embed wmode="opaque"', $html);
544
  } elseif (strpos($html, 'youtube' ) !== false && strpos($html, 'wmode' ) == false ) {
551
  return $html;
552
  }
553
 
554
+ public static function init() {
 
 
 
 
555
  require_once(EASY_FANCYBOX_PLUGINDIR . 'easy-fancybox-settings.php');
556
 
557
  add_filter('embed_oembed_html', array(__CLASS__, 'add_video_wmode_opaque'), 10, 3);
558
  }
559
 
560
+ public static function textdomain() {
561
  if ( is_admin() ) {
562
  load_plugin_textdomain('easy-fancybox', false, dirname( EASY_FANCYBOX_PLUGINBASENAME ) . '/languages/');
563
  }
612
  wp_enqueue_script('postbox');
613
 
614
  //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
615
+ //add_meta_box('advanceddiv', __('Advanced Options', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_advanced'), self::$pagehook, 'normal', 'core');
616
 
617
  add_meta_box('supportdiv', __('Support','easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_support'), self::$pagehook, 'side', 'core');
618
  add_meta_box('resourcesdiv', __('Resources','skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_resources'), self::$pagehook, 'side', 'low');
619
+ add_meta_box('discussiondiv', translate('Discussion'), array(__CLASS__.'_Admin', 'meta_box_discussion'), self::$pagehook, 'normal', 'low');
620
  add_meta_box('creditsdiv', __('Credits','skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_credits'), self::$pagehook, 'side', 'default');
621
 
622
  }
641
  }
642
 
643
  }
644
+
easy-fancybox-settings.php CHANGED
@@ -86,7 +86,7 @@ class easyFancyBox_Options extends easyFancyBox {
86
  'description' => '<a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/"><strong><em>' . __('For advanced options and support, please get the Easy FancyBox - Pro extension.','easy-fancybox') . '</strong></a>'
87
  ),
88
  'Links' => array(
89
- 'title' => __('Links'),
90
  'input' => 'multiple',
91
  'hide' => true,
92
  'options' => array(
@@ -97,7 +97,7 @@ class easyFancyBox_Options extends easyFancyBox {
97
  'hide' => true,
98
  'input' => 'select',
99
  'options' => array(
100
- '' => __('None'),
101
  ':not(:empty)' => __('Empty (hidden) links','easy-fancybox'),
102
  ':has(img)' => __('Without thumbnail image','easy-fancybox')
103
  ),
@@ -111,7 +111,7 @@ class easyFancyBox_Options extends easyFancyBox {
111
  'hide' => true,
112
  'input' => 'select',
113
  'options' => array(
114
- '' => __('None'),
115
  '1' => __('Link with ID "fancybox-auto"','easy-fancybox'),
116
  ),
117
  'default' => '1',
@@ -167,7 +167,7 @@ class easyFancyBox_Options extends easyFancyBox {
167
  'description' => __('Enter an HTML color value.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' #777</em><br />'
168
  ),
169
  'overlaySpotlight' => array (
170
- 'id' => '',
171
  'input' => 'checkbox',
172
  'hide' => true,
173
  //'status' => 'disabled',
@@ -220,7 +220,7 @@ class easyFancyBox_Options extends easyFancyBox {
220
  'status' => 'disabled',
221
  'class' => 'small-text',
222
  'default' => '',
223
- 'description' => '<br />'
224
  ),
225
  'frameOpacity' => array (
226
  'id' => 'fancybox_frameOpacity',
@@ -255,7 +255,7 @@ class easyFancyBox_Options extends easyFancyBox {
255
  ),
256
  'width' => array (
257
  'id' => 'fancybox_width',
258
- 'title' => __('Width'),
259
  'label_for' => 'fancybox_width',
260
  'input' => 'text',
261
  'sanitize_callback' => 'intval',
@@ -265,7 +265,7 @@ class easyFancyBox_Options extends easyFancyBox {
265
  ),
266
  'height' => array (
267
  'id' => 'fancybox_height',
268
- 'title' => __('Height'),
269
  'label_for' => 'fancybox_height',
270
  'input' => 'text',
271
  'sanitize_callback' => 'intval',
@@ -274,7 +274,7 @@ class easyFancyBox_Options extends easyFancyBox {
274
  ),
275
  'padding' => array (
276
  'id' => 'fancybox_padding',
277
- 'title' => __('Border'),
278
  'label_for' => 'fancybox_padding',
279
  'input' => 'number',
280
  'step' => '1',
@@ -418,7 +418,7 @@ class easyFancyBox_Options extends easyFancyBox {
418
  'label_for' => 'fancybox_transitionIn',
419
  'input' => 'select',
420
  'options' => array(
421
- 'none' => __('None','easy-fancybox'),
422
  '' => __('Fade','easy-fancybox'),
423
  'elastic' => __('Elastic','easy-fancybox'),
424
  ),
@@ -445,7 +445,7 @@ class easyFancyBox_Options extends easyFancyBox {
445
  'label_for' => 'fancybox_transitionOut',
446
  'input' => 'select',
447
  'options' => array(
448
- 'none' => __('None','easy-fancybox'),
449
  '' => __('Fade','easy-fancybox'),
450
  'elastic' => __('Elastic','easy-fancybox'),
451
  ),
@@ -534,7 +534,7 @@ class easyFancyBox_Options extends easyFancyBox {
534
  'hide' => true,
535
  'input' => 'select',
536
  'options' => array(
537
- '' => __('Disabled'),
538
  '1' => __('WordPress galleries only','easy-fancybox'),
539
  '2' => __('All in one gallery','easy-fancybox')
540
  ),
@@ -598,8 +598,8 @@ class easyFancyBox_Options extends easyFancyBox {
598
  'id' => 'fancybox_autoSelector',
599
  'hide' => true,
600
  'input' => 'hidden',
601
- 'default' => 'div.gallery',
602
- 'translations' => __('Galleries per Section (below)','easy-fancybox') . __('This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> and/or <em>Autogallery</em> is set to <em>Galleries per Section</em>. 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 only want to group images in a WordPress gallery together, use "div.gallery". If you want to include images in a sidebar with ID primary, add ", #primary".','easy-fancybox') . __('Hide/show title on mouse hover action works best with Overlay title position.','easy-fancybox') . __('The slideshow uses a fixed 6, 8 or 12 second pause per image.','easy-fancybox') . __('(6 seconds)','easy-fancybox') . __('(8 seconds)','easy-fancybox') . __('(12 seconds)','easy-fancybox')
603
  ),
604
  'onComplete' => array (
605
  'id' => '',
@@ -674,7 +674,7 @@ class easyFancyBox_Options extends easyFancyBox {
674
  'label_for' => 'fancybox_transitionInInline',
675
  'input' => 'select',
676
  'options' => array(
677
- 'none' => __('None','easy-fancybox'),
678
  '' => __('Fade','easy-fancybox'),
679
  'elastic' => __('Elastic','easy-fancybox'),
680
  ),
@@ -701,7 +701,7 @@ class easyFancyBox_Options extends easyFancyBox {
701
  'label_for' => 'fancybox_transitionOutInline',
702
  'input' => 'select',
703
  'options' => array(
704
- 'none' => __('None','easy-fancybox'),
705
  '' => __('Fade','easy-fancybox'),
706
  'elastic' => __('Elastic','easy-fancybox'),
707
  ),
@@ -768,7 +768,7 @@ class easyFancyBox_Options extends easyFancyBox {
768
  ),
769
  'width' => array (
770
  'id' => 'fancybox_PDFwidth',
771
- 'title' => __('Width'),
772
  'label_for' => 'fancybox_PDFwidth',
773
  'input' => 'text',
774
  'sanitize_callback' => 'intval',
@@ -778,7 +778,7 @@ class easyFancyBox_Options extends easyFancyBox {
778
  ),
779
  'height' => array (
780
  'id' => 'fancybox_PDFheight',
781
- 'title' => __('Height'),
782
  'label_for' => 'fancybox_PDFheight',
783
  'input' => 'text',
784
  'sanitize_callback' => 'intval',
@@ -787,7 +787,7 @@ class easyFancyBox_Options extends easyFancyBox {
787
  ),
788
  'padding' => array (
789
  'id' => 'fancybox_PDFpadding',
790
- 'title' => __('Border'),
791
  'label_for' => 'fancybox_PDFpadding',
792
  'input' => 'number',
793
  'step' => '1',
@@ -837,7 +837,7 @@ class easyFancyBox_Options extends easyFancyBox {
837
  'options' => array(
838
  'fade' => __('Fade','easy-fancybox'),
839
  //'elastic' => __('Elastic','easy-fancybox'),
840
- 'none' => __('None','easy-fancybox')
841
  ),
842
  'default' => 'fade',
843
  ),
@@ -893,7 +893,7 @@ class easyFancyBox_Options extends easyFancyBox {
893
  ),
894
  'width' => array (
895
  'id' => 'fancybox_SWFWidth',
896
- 'title' => __('Width'),
897
  'label_for' => 'fancybox_SWFWidth',
898
  'input' => 'text',
899
  'sanitize_callback' => 'intval',
@@ -904,7 +904,7 @@ class easyFancyBox_Options extends easyFancyBox {
904
  ),
905
  'height' => array (
906
  'id' => 'fancybox_SWFHeight',
907
- 'title' => __('Height'),
908
  'label_for' => 'fancybox_SWFHeight',
909
  'input' => 'text',
910
  'sanitize_callback' => 'intval',
@@ -914,7 +914,7 @@ class easyFancyBox_Options extends easyFancyBox {
914
  ),
915
  'padding' => array (
916
  'id' => 'fancybox_SWFpadding',
917
- 'title' => __('Border'),
918
  'label_for' => 'fancybox_SWFpadding',
919
  'input' => 'number',
920
  'step' => '1',
@@ -987,7 +987,7 @@ class easyFancyBox_Options extends easyFancyBox {
987
  ),
988
  'width' => array (
989
  'id' => 'fancybox_SVGWidth',
990
- 'title' => __('Width'),
991
  'label_for' => 'fancybox_SVGWidth',
992
  'input' => 'text',
993
  'sanitize_callback' => 'intval',
@@ -998,7 +998,7 @@ class easyFancyBox_Options extends easyFancyBox {
998
  ),
999
  'height' => array (
1000
  'id' => 'fancybox_SVGHeight',
1001
- 'title' => __('Height'),
1002
  'label_for' => 'fancybox_SVGHeight',
1003
  'input' => 'text',
1004
  'sanitize_callback' => 'intval',
@@ -1008,7 +1008,7 @@ class easyFancyBox_Options extends easyFancyBox {
1008
  ),
1009
  'padding' => array (
1010
  'id' => 'fancybox_SVGpadding',
1011
- 'title' => __('Border'),
1012
  'label_for' => 'fancybox_SVGpadding',
1013
  'input' => 'number',
1014
  'step' => '1',
@@ -1092,7 +1092,7 @@ class easyFancyBox_Options extends easyFancyBox {
1092
  ),
1093
  'width' => array (
1094
  'id' => 'fancybox_YoutubeWidth',
1095
- 'title' => __('Width'),
1096
  'label_for' => 'fancybox_YoutubeWidth',
1097
  'input' => 'number',
1098
  'step' => '1',
@@ -1105,7 +1105,7 @@ class easyFancyBox_Options extends easyFancyBox {
1105
  ),
1106
  'height' => array (
1107
  'id' => 'fancybox_YoutubeHeight',
1108
- 'title' => __('Height'),
1109
  'label_for' => 'fancybox_YoutubeHeight',
1110
  'input' => 'number',
1111
  'step' => '1',
@@ -1117,7 +1117,7 @@ class easyFancyBox_Options extends easyFancyBox {
1117
  ),
1118
  'padding' => array (
1119
  'id' => 'fancybox_Youtubepadding',
1120
- 'title' => __('Border'),
1121
  'label_for' => 'fancybox_Youtubepadding',
1122
  'input' => 'number',
1123
  'step' => '1',
@@ -1191,7 +1191,7 @@ class easyFancyBox_Options extends easyFancyBox {
1191
  ),
1192
  'width' => array (
1193
  'id' => 'fancybox_VimeoWidth',
1194
- 'title' => __('Width'),
1195
  'label_for' => 'fancybox_VimeoWidth',
1196
  'input' => 'number',
1197
  'step' => '1',
@@ -1204,7 +1204,7 @@ class easyFancyBox_Options extends easyFancyBox {
1204
  ),
1205
  'height' => array (
1206
  'id' => 'fancybox_VimeoHeight',
1207
- 'title' => __('Height'),
1208
  'label_for' => 'fancybox_VimeoHeight',
1209
  'input' => 'number',
1210
  'step' => '1',
@@ -1216,7 +1216,7 @@ class easyFancyBox_Options extends easyFancyBox {
1216
  ),
1217
  'padding' => array (
1218
  'id' => 'fancybox_Vimeopadding',
1219
- 'title' => __('Border'),
1220
  'label_for' => 'fancybox_Vimeopadding',
1221
  'input' => 'number',
1222
  'step' => '1',
@@ -1291,7 +1291,7 @@ class easyFancyBox_Options extends easyFancyBox {
1291
  ),
1292
  'width' => array (
1293
  'id' => 'fancybox_DailymotionWidth',
1294
- 'title' => __('Width'),
1295
  'label_for' => 'fancybox_DailymotionWidth',
1296
  'input' => 'number',
1297
  'step' => '1',
@@ -1304,7 +1304,7 @@ class easyFancyBox_Options extends easyFancyBox {
1304
  ),
1305
  'height' => array (
1306
  'id' => 'fancybox_DailymotionHeight',
1307
- 'title' => __('Height'),
1308
  'label_for' => 'fancybox_DailymotionHeight',
1309
  'input' => 'number',
1310
  'step' => '1',
@@ -1316,7 +1316,7 @@ class easyFancyBox_Options extends easyFancyBox {
1316
  ),
1317
  'padding' => array (
1318
  'id' => 'fancybox_DailymotionPadding',
1319
- 'title' => __('Border'),
1320
  'label_for' => 'fancybox_DailymotionPadding',
1321
  'input' => 'number',
1322
  'step' => '1',
@@ -1421,7 +1421,7 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1421
  ),
1422
  'width' => array (
1423
  'id' => 'fancybox_iFramewidth',
1424
- 'title' => __('Width'),
1425
  'label_for' => 'fancybox_iFramewidth',
1426
  'input' => 'text',
1427
  'sanitize_callback' => 'intval',
@@ -1431,7 +1431,7 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1431
  ),
1432
  'height' => array (
1433
  'id' => 'fancybox_iFrameheight',
1434
- 'title' => __('Height'),
1435
  'label_for' => 'fancybox_iFrameheight',
1436
  'input' => 'text',
1437
  'sanitize_callback' => 'intval',
@@ -1440,7 +1440,7 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1440
  ),
1441
  'padding' => array (
1442
  'id' => 'fancybox_iFramepadding',
1443
- 'title' => __('Border'),
1444
  'label_for' => 'fancybox_iFramepadding',
1445
  'input' => 'number',
1446
  'step' => '1',
86
  'description' => '<a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/"><strong><em>' . __('For advanced options and support, please get the Easy FancyBox - Pro extension.','easy-fancybox') . '</strong></a>'
87
  ),
88
  'Links' => array(
89
+ 'title' => translate('Links'),
90
  'input' => 'multiple',
91
  'hide' => true,
92
  'options' => array(
97
  'hide' => true,
98
  'input' => 'select',
99
  'options' => array(
100
+ '' => translate('None'),
101
  ':not(:empty)' => __('Empty (hidden) links','easy-fancybox'),
102
  ':has(img)' => __('Without thumbnail image','easy-fancybox')
103
  ),
111
  'hide' => true,
112
  'input' => 'select',
113
  'options' => array(
114
+ '' => translate('None'),
115
  '1' => __('Link with ID "fancybox-auto"','easy-fancybox'),
116
  ),
117
  'default' => '1',
167
  'description' => __('Enter an HTML color value.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' #777</em><br />'
168
  ),
169
  'overlaySpotlight' => array (
170
+ 'id' => 'fancybox_overlaySpotlight',
171
  'input' => 'checkbox',
172
  'hide' => true,
173
  //'status' => 'disabled',
220
  'status' => 'disabled',
221
  'class' => 'small-text',
222
  'default' => '',
223
+ 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
224
  ),
225
  'frameOpacity' => array (
226
  'id' => 'fancybox_frameOpacity',
255
  ),
256
  'width' => array (
257
  'id' => 'fancybox_width',
258
+ 'title' => translate('Width'),
259
  'label_for' => 'fancybox_width',
260
  'input' => 'text',
261
  'sanitize_callback' => 'intval',
265
  ),
266
  'height' => array (
267
  'id' => 'fancybox_height',
268
+ 'title' => translate('Height'),
269
  'label_for' => 'fancybox_height',
270
  'input' => 'text',
271
  'sanitize_callback' => 'intval',
274
  ),
275
  'padding' => array (
276
  'id' => 'fancybox_padding',
277
+ 'title' => translate('Border'),
278
  'label_for' => 'fancybox_padding',
279
  'input' => 'number',
280
  'step' => '1',
418
  'label_for' => 'fancybox_transitionIn',
419
  'input' => 'select',
420
  'options' => array(
421
+ 'none' => translate('None'),
422
  '' => __('Fade','easy-fancybox'),
423
  'elastic' => __('Elastic','easy-fancybox'),
424
  ),
445
  'label_for' => 'fancybox_transitionOut',
446
  'input' => 'select',
447
  'options' => array(
448
+ 'none' => translate('None'),
449
  '' => __('Fade','easy-fancybox'),
450
  'elastic' => __('Elastic','easy-fancybox'),
451
  ),
534
  'hide' => true,
535
  'input' => 'select',
536
  'options' => array(
537
+ '' => translate('Disabled'),
538
  '1' => __('WordPress galleries only','easy-fancybox'),
539
  '2' => __('All in one gallery','easy-fancybox')
540
  ),
598
  'id' => 'fancybox_autoSelector',
599
  'hide' => true,
600
  'input' => 'hidden',
601
+ 'default' => 'div.gallery ', // add div.tiled-gallery for Tiled Galleries support
602
+ 'translations' => __('Galleries per Section (below)','easy-fancybox') . __('This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> and/or <em>Autogallery</em> is set to <em>Galleries per Section</em>. 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 only want to group images in a WordPress gallery together, use "div.gallery". If you want to include images in a sidebar with ID primary, add ", #primary".','easy-fancybox') . __('Hide/show title on mouse hover action works best with Overlay title position.','easy-fancybox') . __('Auto-rotation uses a fixed 3, 6, 9 or 12 second pause per image.','easy-fancybox') . __('(3 seconds)','easy-fancybox') . __('(6 seconds)','easy-fancybox') . __('(9 seconds)','easy-fancybox') . __('(12 seconds)','easy-fancybox')
603
  ),
604
  'onComplete' => array (
605
  'id' => '',
674
  'label_for' => 'fancybox_transitionInInline',
675
  'input' => 'select',
676
  'options' => array(
677
+ 'none' => translate('None'),
678
  '' => __('Fade','easy-fancybox'),
679
  'elastic' => __('Elastic','easy-fancybox'),
680
  ),
701
  'label_for' => 'fancybox_transitionOutInline',
702
  'input' => 'select',
703
  'options' => array(
704
+ 'none' => translate('None'),
705
  '' => __('Fade','easy-fancybox'),
706
  'elastic' => __('Elastic','easy-fancybox'),
707
  ),
768
  ),
769
  'width' => array (
770
  'id' => 'fancybox_PDFwidth',
771
+ 'title' => translate('Width'),
772
  'label_for' => 'fancybox_PDFwidth',
773
  'input' => 'text',
774
  'sanitize_callback' => 'intval',
778
  ),
779
  'height' => array (
780
  'id' => 'fancybox_PDFheight',
781
+ 'title' => translate('Height'),
782
  'label_for' => 'fancybox_PDFheight',
783
  'input' => 'text',
784
  'sanitize_callback' => 'intval',
787
  ),
788
  'padding' => array (
789
  'id' => 'fancybox_PDFpadding',
790
+ 'title' => translate('Border'),
791
  'label_for' => 'fancybox_PDFpadding',
792
  'input' => 'number',
793
  'step' => '1',
837
  'options' => array(
838
  'fade' => __('Fade','easy-fancybox'),
839
  //'elastic' => __('Elastic','easy-fancybox'),
840
+ 'none' => translate('None')
841
  ),
842
  'default' => 'fade',
843
  ),
893
  ),
894
  'width' => array (
895
  'id' => 'fancybox_SWFWidth',
896
+ 'title' => translate('Width'),
897
  'label_for' => 'fancybox_SWFWidth',
898
  'input' => 'text',
899
  'sanitize_callback' => 'intval',
904
  ),
905
  'height' => array (
906
  'id' => 'fancybox_SWFHeight',
907
+ 'title' => translate('Height'),
908
  'label_for' => 'fancybox_SWFHeight',
909
  'input' => 'text',
910
  'sanitize_callback' => 'intval',
914
  ),
915
  'padding' => array (
916
  'id' => 'fancybox_SWFpadding',
917
+ 'title' => translate('Border'),
918
  'label_for' => 'fancybox_SWFpadding',
919
  'input' => 'number',
920
  'step' => '1',
987
  ),
988
  'width' => array (
989
  'id' => 'fancybox_SVGWidth',
990
+ 'title' => translate('Width'),
991
  'label_for' => 'fancybox_SVGWidth',
992
  'input' => 'text',
993
  'sanitize_callback' => 'intval',
998
  ),
999
  'height' => array (
1000
  'id' => 'fancybox_SVGHeight',
1001
+ 'title' => translate('Height'),
1002
  'label_for' => 'fancybox_SVGHeight',
1003
  'input' => 'text',
1004
  'sanitize_callback' => 'intval',
1008
  ),
1009
  'padding' => array (
1010
  'id' => 'fancybox_SVGpadding',
1011
+ 'title' => translate('Border'),
1012
  'label_for' => 'fancybox_SVGpadding',
1013
  'input' => 'number',
1014
  'step' => '1',
1092
  ),
1093
  'width' => array (
1094
  'id' => 'fancybox_YoutubeWidth',
1095
+ 'title' => translate('Width'),
1096
  'label_for' => 'fancybox_YoutubeWidth',
1097
  'input' => 'number',
1098
  'step' => '1',
1105
  ),
1106
  'height' => array (
1107
  'id' => 'fancybox_YoutubeHeight',
1108
+ 'title' => translate('Height'),
1109
  'label_for' => 'fancybox_YoutubeHeight',
1110
  'input' => 'number',
1111
  'step' => '1',
1117
  ),
1118
  'padding' => array (
1119
  'id' => 'fancybox_Youtubepadding',
1120
+ 'title' => translate('Border'),
1121
  'label_for' => 'fancybox_Youtubepadding',
1122
  'input' => 'number',
1123
  'step' => '1',
1191
  ),
1192
  'width' => array (
1193
  'id' => 'fancybox_VimeoWidth',
1194
+ 'title' => translate('Width'),
1195
  'label_for' => 'fancybox_VimeoWidth',
1196
  'input' => 'number',
1197
  'step' => '1',
1204
  ),
1205
  'height' => array (
1206
  'id' => 'fancybox_VimeoHeight',
1207
+ 'title' => translate('Height'),
1208
  'label_for' => 'fancybox_VimeoHeight',
1209
  'input' => 'number',
1210
  'step' => '1',
1216
  ),
1217
  'padding' => array (
1218
  'id' => 'fancybox_Vimeopadding',
1219
+ 'title' => translate('Border'),
1220
  'label_for' => 'fancybox_Vimeopadding',
1221
  'input' => 'number',
1222
  'step' => '1',
1291
  ),
1292
  'width' => array (
1293
  'id' => 'fancybox_DailymotionWidth',
1294
+ 'title' => translate('Width'),
1295
  'label_for' => 'fancybox_DailymotionWidth',
1296
  'input' => 'number',
1297
  'step' => '1',
1304
  ),
1305
  'height' => array (
1306
  'id' => 'fancybox_DailymotionHeight',
1307
+ 'title' => translate('Height'),
1308
  'label_for' => 'fancybox_DailymotionHeight',
1309
  'input' => 'number',
1310
  'step' => '1',
1316
  ),
1317
  'padding' => array (
1318
  'id' => 'fancybox_DailymotionPadding',
1319
+ 'title' => translate('Border'),
1320
  'label_for' => 'fancybox_DailymotionPadding',
1321
  'input' => 'number',
1322
  'step' => '1',
1421
  ),
1422
  'width' => array (
1423
  'id' => 'fancybox_iFramewidth',
1424
+ 'title' => translate('Width'),
1425
  'label_for' => 'fancybox_iFramewidth',
1426
  'input' => 'text',
1427
  'sanitize_callback' => 'intval',
1431
  ),
1432
  'height' => array (
1433
  'id' => 'fancybox_iFrameheight',
1434
+ 'title' => translate('Height'),
1435
  'label_for' => 'fancybox_iFrameheight',
1436
  'input' => 'text',
1437
  'sanitize_callback' => 'intval',
1440
  ),
1441
  'padding' => array (
1442
  'id' => 'fancybox_iFramepadding',
1443
+ 'title' => translate('Border'),
1444
  'label_for' => 'fancybox_iFramepadding',
1445
  'input' => 'number',
1446
  'step' => '1',
easy-fancybox.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://status301.net/wordpress-plugins/easy-fancybox/
5
  Description: Easily enable the <a href="http://fancybox.net/">FancyBox jQuery extension</a> on all image, SWF, PDF, YouTube, Dailymotion and Vimeo links. Also supports iFrame and inline content.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
- Version: 1.5.5
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -36,8 +36,8 @@ Author URI: http://status301.net/
36
  * CONSTANTS
37
  **************/
38
 
39
- define( 'EASY_FANCYBOX_VERSION', '1.5.5' );
40
- define( 'FANCYBOX_VERSION', '1.3.5' );
41
  //define( 'FANCYBOX2_VERSION', '2.0.6' );
42
  define( 'MOUSEWHEEL_VERSION', '3.1.3' );
43
  define( 'EASING_VERSION', '1.3' );
5
  Description: Easily enable the <a href="http://fancybox.net/">FancyBox jQuery extension</a> on all image, SWF, PDF, YouTube, Dailymotion and Vimeo links. Also supports iFrame and inline content.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
+ Version: 1.5.6
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
36
  * CONSTANTS
37
  **************/
38
 
39
+ define( 'EASY_FANCYBOX_VERSION', '1.5.6' );
40
+ define( 'FANCYBOX_VERSION', '1.3.6' );
41
  //define( 'FANCYBOX2_VERSION', '2.0.6' );
42
  define( 'MOUSEWHEEL_VERSION', '3.1.3' );
43
  define( 'EASING_VERSION', '1.3' );
fancybox/jquery.fancybox-1.3.5.pack.js DELETED
@@ -1,24 +0,0 @@
1
- /*
2
- * FancyBox - jQuery Plugin
3
- * Simple and fancy lightbox alternative
4
- *
5
- * Examples and documentation at: http://fancybox.net
6
- *
7
- * Copyright (c) 2008 - 2010 Janis Skarnelis
8
- * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
- *
10
- * Version: 1.3.4 (11/11/2010)
11
- * Requires: jQuery v1.3+
12
- *
13
- * Dual licensed under the MIT and GPL licenses:
14
- * http://www.opensource.org/licenses/mit-license.php
15
- * http://www.gnu.org/licenses/gpl.html
16
- *
17
- * Patches applied for Easy FancyBox WordPress plugin integration:
18
- * Quoted attribute selector, RavanH ravanhagen@gmail.com
19
- * Added isTouch variable and autoResize parameter, RavanH ravanhagen@gmail.com
20
- * Catch all scrollwheel action on when jQuery Moushweel is included, RavanH ravanhagen@gmail.com
21
- * jQuery 1.9+ compat. by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
22
- * Added SVG support by Simon Maillard simon@ogesta.fr
23
- */
24
- !function(a){var b,c,d,e,f,g,h,i,j,k,w,A,B,l=0,m={},n=[],o=0,p={},q=[],r=null,s=new Image,t=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,u=/[^\.]\.(swf)\s*$/i,v=/[^\.]\.(svg)\s*$/i,x=1,y=0,z="",C=!1,D=a.extend(a("<div/>")[0],{prop:0}),E=navigator.userAgent.match(/msie [6]/i)&&!window.XMLHttpRequest,F=void 0!==document.createTouch,G=function(){c.hide(),s.onerror=s.onload=null,r&&r.abort(),b.empty()},H=function(){return!1===m.onError(n,l,m)?(c.hide(),C=!1,void 0):(m.titleShow=!1,m.width="auto",m.height="auto",b.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),J(),void 0)},I=function(){var e,f,h,i,j,k,d=n[l];if(G(),m=a.extend({},a.fn.fancybox.defaults,"undefined"==typeof a(d).data("fancybox")?m:a(d).data("fancybox")),k=m.onStart(n,l,m),k===!1)return C=!1,void 0;if("object"==typeof k&&(m=a.extend(m,k)),h=m.title||(d.nodeName?a(d).attr("title"):d.title)||"",d.nodeName&&!m.orig&&(m.orig=a(d).children("img:first").length?a(d).children("img:first"):a(d)),""===h&&m.orig&&m.titleFromAlt&&(h=m.orig.attr("alt")),e=m.href||(d.nodeName?a(d).attr("href"):d.href)||null,(/^(?:javascript)/i.test(e)||"#"==e)&&(e=null),m.type?(f=m.type,e||(e=m.content)):m.content?f="html":e&&(f=e.match(t)?"image":e.match(u)?"swf":e.match(v)?"svg":a(d).hasClass("iframe")?"iframe":0===e.indexOf("#")?"inline":"ajax"),!f)return H(),void 0;switch("inline"==f&&(d=e.substr(e.indexOf("#")),f=a(d).length>0?"inline":"ajax"),m.type=f,m.href=e,m.title=h,m.autoDimensions&&("html"==m.type||"inline"==m.type||"ajax"==m.type?(m.width="auto",m.height="auto"):m.autoDimensions=!1),m.modal&&(m.overlayShow=!0,m.hideOnOverlayClick=!1,m.hideOnContentClick=!1,m.enableEscapeButton=!1,m.showCloseButton=!1),m.padding=parseInt(m.padding,10),m.margin=parseInt(m.margin,10),b.css("padding",m.padding+m.margin),a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(g.children())}),f){case"html":b.html(m.content),J();break;case"inline":if(a(d).parent().is("#fancybox-content")===!0)return C=!1,void 0;a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(d)).bind("fancybox-cleanup",function(){a(this).replaceWith(g.children())}).bind("fancybox-cancel",function(){a(this).replaceWith(b.children())}),a(d).appendTo(b),J();break;case"image":C=!1,a.fancybox.showActivity(),s=new Image,s.onerror=function(){H()},s.onload=function(){C=!0,s.onerror=s.onload=null,K()},s.src=e;break;case"swf":m.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+m.width+'" height="'+m.height+'"><param name="movie" value="'+e+'"></param>',j="",a.each(m.swf,function(a,b){i+='<param name="'+a+'" value="'+b+'"></param>',j+=" "+a+'="'+b+'"'}),i+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+m.width+'" height="'+m.height+'"'+j+"></embed></object>",b.html(i),J();break;case"svg":m.scrolling="no",i='<object width="'+m.width+'" height="'+m.height+'" data="'+e+'"></object>',b.html(i),J();break;case"ajax":C=!1,a.fancybox.showActivity(),m.ajax.win=m.ajax.success,r=a.ajax(a.extend({},m.ajax,{url:e,data:m.ajax.data||{},error:function(a){a.status>0&&H()},success:function(a,d,f){var g="object"==typeof f?f:r;if(200==g.status){if("function"==typeof m.ajax.win){if(k=m.ajax.win(e,a,d,f),k===!1)return c.hide(),void 0;("string"==typeof k||"object"==typeof k)&&(a=k)}b.html(a),J()}}}));break;case"iframe":L()}},J=function(){var c=m.width,d=m.height;c=c.toString().indexOf("%")>-1?parseInt((a(window).width()-2*m.margin)*parseFloat(c)/100,10)+"px":"auto"==c?"auto":c+"px",d=d.toString().indexOf("%")>-1?parseInt((a(window).height()-2*m.margin)*parseFloat(d)/100,10)+"px":"auto"==d?"auto":d+"px",b.wrapInner('<div style="width:'+c+";height:"+d+";overflow: "+("auto"==m.scrolling?"auto":"yes"==m.scrolling?"scroll":"hidden")+';position:relative;"></div>'),m.width=b.width(),m.height=b.height(),L()},K=function(){m.width=s.width,m.height=s.height,a("<img />").attr({id:"fancybox-img",src:s.src,alt:m.title}).appendTo(b),L()},L=function(){var f,r;return c.hide(),e.is(":visible")&&!1===p.onCleanup(q,o,p)?(a(".fancybox-inline-tmp").trigger("fancybox-cancel"),C=!1,void 0):(C=!0,a(g.add(d)).unbind(),a(window).unbind("resize.fb scroll.fb"),a(document).unbind("keydown.fb"),e.is(":visible")&&"outside"!==p.titlePosition&&e.css("height",e.height()),q=n,o=l,p=m,p.overlayShow?(d.css({"background-color":p.overlayColor,opacity:p.overlayOpacity,cursor:p.hideOnOverlayClick?"pointer":"auto",height:a(document).height()}),d.is(":visible")||(E&&a("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),d.show())):d.hide(),B=T(),N(),e.is(":visible")?(a(h.add(j).add(k)).hide(),f=e.position(),A={top:f.top,left:f.left,width:e.width(),height:e.height()},r=A.width==B.width&&A.height==B.height,g.fadeTo(p.changeFade,.3,function(){var c=function(){g.html(b.contents()).fadeTo(p.changeFade,1,P)};a(".fancybox-inline-tmp").trigger("fancybox-change"),g.empty().removeAttr("filter").css({"border-width":p.padding,width:B.width-2*p.padding,height:m.autoDimensions?"auto":B.height-y-2*p.padding}),r?c():(D.prop=0,a(D).animate({prop:1},{duration:p.changeSpeed,easing:p.easingChange,step:R,complete:c}))}),void 0):(e.removeAttr("style"),g.css("border-width",p.padding),"elastic"==p.transitionIn?(A=V(),g.html(b.contents()),e.show(),p.opacity&&(B.opacity=0),D.prop=0,a(D).animate({prop:1},{duration:p.speedIn,easing:p.easingIn,step:R,complete:P}),void 0):("inside"==p.titlePosition&&y>0&&i.show(),g.css({width:B.width-2*p.padding,height:m.autoDimensions?"auto":B.height-y-2*p.padding}).html(b.contents()),e.css(B).fadeIn("none"==p.transitionIn?0:p.speedIn,P),void 0)))},M=function(a){return a&&a.length?"float"==p.titlePosition?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+a+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+p.titlePosition+'">'+a+"</div>":!1},N=function(){if(z=p.title||"",y=0,i.empty().removeAttr("style").removeClass(),p.titleShow===!1)return i.hide(),void 0;if(z=a.isFunction(p.titleFormat)?p.titleFormat(z,q,o,p):M(z),!z||""===z)return i.hide(),void 0;switch(i.addClass("fancybox-title-"+p.titlePosition).html(z).appendTo("body").show(),p.titlePosition){case"inside":i.css({width:B.width-2*p.padding,marginLeft:p.padding,marginRight:p.padding}),y=i.outerHeight(!0),i.appendTo(f),B.height+=y;break;case"over":i.css({marginLeft:p.padding,width:B.width-2*p.padding,bottom:p.padding}).appendTo(f);break;case"float":i.css("left",-1*parseInt((i.width()-B.width-40)/2,10)).appendTo(e);break;default:i.css({width:B.width-2*p.padding,paddingLeft:p.padding,paddingRight:p.padding}).appendTo(e)}i.hide()},O=function(){return(p.enableEscapeButton||p.enableKeyboardNav)&&a(document).bind("keydown.fb",function(b){27==b.keyCode&&p.enableEscapeButton?(b.preventDefault(),a.fancybox.close()):37!=b.keyCode&&39!=b.keyCode||!p.enableKeyboardNav||"INPUT"===b.target.tagName||"TEXTAREA"===b.target.tagName||"SELECT"===b.target.tagName||(b.preventDefault(),a.fancybox[37==b.keyCode?"prev":"next"]())}),p.showNavArrows?((p.cyclic&&q.length>1||0!==o)&&j.show(),(p.cyclic&&q.length>1||o!=q.length-1)&&k.show(),void 0):(j.hide(),k.hide(),void 0)},P=function(){a.support.opacity||(g.get(0).style.removeAttribute("filter"),e.get(0).style.removeAttribute("filter")),m.autoDimensions&&g.css("height","auto"),e.css("height","auto"),z&&z.length&&i.show(),p.showCloseButton&&h.show(),O(),p.hideOnContentClick&&g.bind("click",a.fancybox.close),p.hideOnOverlayClick&&d.bind("click",a.fancybox.close),p.autoResize&&a(window).bind("resize.fb",a.fancybox.resize),p.centerOnScroll&&a(window).bind("scroll.fb",a.fancybox.center),a.fn.mousewheel&&a(window).bind("mousewheel.fb",function(b,c){b.preventDefault(),!1!==C||0!=a(b.target).get(0).clientHeight&&a(b.target).get(0).scrollHeight!==a(b.target).get(0).clientHeight||a.fancybox[c>0?"prev":"next"]()}),"iframe"==p.type&&a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(navigator.userAgent.match(/msie [6]/i)?'allowtransparency="true""':"")+' scrolling="'+m.scrolling+'" src="'+p.href+'"></iframe>').appendTo(g),e.show(),C=!1,a.fancybox.center(),p.onComplete(q,o,p),Q()},Q=function(){var a,b;q.length-1>o&&(a=q[o+1].href,"undefined"!=typeof a&&a.match(t)&&(b=new Image,b.src=a)),o>0&&(a=q[o-1].href,"undefined"!=typeof a&&a.match(t)&&(b=new Image,b.src=a))},R=function(a){var b={width:parseInt(A.width+(B.width-A.width)*a,10),height:parseInt(A.height+(B.height-A.height)*a,10),top:parseInt(A.top+(B.top-A.top)*a,10),left:parseInt(A.left+(B.left-A.left)*a,10)};"undefined"!=typeof B.opacity&&(b.opacity=.5>a?.5:a),e.css(b),g.css({width:b.width-2*p.padding,height:b.height-y*a-2*p.padding})},S=function(){return[a(window).width()-2*p.margin,a(window).height()-2*p.margin,a(document).scrollLeft()+p.margin,a(document).scrollTop()+p.margin]},T=function(){var e,a=S(),b={},c=p.autoScale,d=2*p.padding;return b.width=p.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(p.width)/100,10):p.width+d,b.height=p.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(p.height)/100,10):p.height+d,c&&(b.width>a[0]||b.height>a[1])&&("image"==m.type||"svg"==m.type||"swf"==m.type?(e=p.width/p.height,b.width>a[0]&&(b.width=a[0],b.height=parseInt((b.width-d)/e+d,10)),b.height>a[1]&&(b.height=a[1],b.width=parseInt((b.height-d)*e+d,10))):(b.width=Math.min(b.width,a[0]),b.height=Math.min(b.height,a[1]))),b.top=parseInt(Math.max(a[3]-20,a[3]+.5*(a[1]-b.height-40)),10),b.left=parseInt(Math.max(a[2]-20,a[2]+.5*(a[0]-b.width-40)),10),b},U=function(a){var b=a.offset();return b.top+=parseInt(a.css("paddingTop"),10)||0,b.left+=parseInt(a.css("paddingLeft"),10)||0,b.top+=parseInt(a.css("border-top-width"),10)||0,b.left+=parseInt(a.css("border-left-width"),10)||0,b.width=a.width(),b.height=a.height(),b},V=function(){var d,e,b=m.orig?a(m.orig):!1,c={};return b&&b.length?(d=U(b),c={width:d.width+2*p.padding,height:d.height+2*p.padding,top:d.top-p.padding-20,left:d.left-p.padding-20}):(e=S(),c={width:2*p.padding,height:2*p.padding,top:parseInt(e[3]+.5*e[1],10),left:parseInt(e[2]+.5*e[0],10)}),c},W=function(){return c.is(":visible")?(a("div",c).css("top",-40*x+"px"),x=(x+1)%12,void 0):(clearInterval(w),void 0)};a.fn.fancybox=function(b){return a(this).length?(a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).unbind("click.fb").bind("click.fb",function(b){if(b.preventDefault(),!C){C=!0,a(this).blur(),n=[],l=0;var c=a(this).attr("rel")||"";c&&""!=c&&"nofollow"!==c?(n=a('a[rel="'+c+'"], area[rel="'+c+'"]'),l=n.index(this)):n.push(this),I()}}),this):this},a.fancybox=function(b){var c;if(!C){if(C=!0,c="undefined"!=typeof arguments[1]?arguments[1]:{},n=[],l=parseInt(c.index,10)||0,a.isArray(b)){for(var d=0,e=b.length;e>d;d++)"object"==typeof b[d]?a(b[d]).data("fancybox",a.extend({},c,b[d])):b[d]=a({}).data("fancybox",a.extend({content:b[d]},c));n=jQuery.merge(n,b)}else"object"==typeof b?a(b).data("fancybox",a.extend({},c,b)):b=a({}).data("fancybox",a.extend({content:b},c)),n.push(b);(l>n.length||0>l)&&(l=0),I()}},a.fancybox.showActivity=function(){clearInterval(w),c.show(),w=setInterval(W,66)},a.fancybox.hideActivity=function(){c.hide()},a.fancybox.next=function(){return a.fancybox.pos(o+1)},a.fancybox.prev=function(){return a.fancybox.pos(o-1)},a.fancybox.pos=function(a){C||(a=parseInt(a),n=q,a>-1&&a<q.length?(l=a,I()):p.cyclic&&q.length>1&&(l=a>=q.length?0:q.length-1,I()))},a.fancybox.cancel=function(){C||(C=!0,a(".fancybox-inline-tmp").trigger("fancybox-cancel"),G(),m.onCancel(n,l,m),C=!1)},a.fancybox.close=function(){function b(){d.fadeOut("fast"),i.empty().hide(),e.hide(),a(".fancybox-inline-tmp").trigger("fancybox-cleanup"),g.empty(),p.onClosed(q,o,p),q=m=[],o=l=0,p=m={},C=!1}if(!C&&!e.is(":hidden")){if(C=!0,p&&!1===p.onCleanup(q,o,p))return C=!1,void 0;if(G(),a(h.add(j).add(k)).hide(),a(g.add(d)).unbind(),a(window).unbind("resize.fb scroll.fb mousewheel.fb"),a(document).unbind("keydown.fb"),g.find("iframe#fancybox-frame").attr("src",E&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==p.titlePosition&&i.empty(),e.stop(),"elastic"==p.transitionOut){A=V();var c=e.position();B={top:c.top,left:c.left,width:e.width(),height:e.height()},p.opacity&&(B.opacity=1),i.empty().hide(),D.prop=1,a(D).animate({prop:0},{duration:p.speedOut,easing:p.easingOut,step:R,complete:b})}else e.fadeOut("none"==p.transitionOut?0:p.speedOut,b)}},a.fancybox.resize=function(){d.is(":visible")&&d.css("height",a(document).height()),a.fancybox.center(!0)},a.fancybox.center=function(){var a,b;C||(b=arguments[0]===!0?1:0,a=S(),(b||!(e.width()>a[0]||e.height()>a[1]))&&e.stop().animate({top:parseInt(Math.max(a[3]-20,a[3]+.5*(a[1]-g.height()-40)-p.padding)),left:parseInt(Math.max(a[2]-20,a[2]+.5*(a[0]-g.width()-40)-p.padding))},"number"==typeof arguments[0]?arguments[0]:200))},a.fancybox.init=function(){a("#fancybox-wrap").length||(a("body").append(b=a('<div id="fancybox-tmp"></div>'),c=a('<div id="fancybox-loading"><div></div></div>'),d=a('<div id="fancybox-overlay"></div>'),e=a('<div id="fancybox-wrap"></div>')),f=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(e),f.append(g=a('<div id="fancybox-content"></div>'),h=a('<a id="fancybox-close"></a>'),i=a('<div id="fancybox-title"></div>'),j=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),k=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),h.click(a.fancybox.close),c.click(a.fancybox.cancel),j.click(function(b){b.preventDefault(),a.fancybox.prev()}),k.click(function(b){b.preventDefault(),a.fancybox.next()}),a.support.opacity||e.addClass("fancybox-ie"),E&&(c.addClass("fancybox-ie6"),e.addClass("fancybox-ie6"),a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(f)))},a.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!F,autoResize:!F,ajax:{},swf:{wmode:"transparent"},svg:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},a(document).ready(function(){a.fancybox.init()})}(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox/{jquery.fancybox-1.3.5.css → jquery.fancybox-1.3.6.css} RENAMED
@@ -28,6 +28,7 @@
28
  z-index:11104;
29
  display: none;
30
  box-sizing: content-box;
 
31
  }
32
 
33
  #fancybox-loading div {
@@ -38,6 +39,7 @@
38
  height: 480px;
39
  background-image: url('fancybox.png');
40
  box-sizing: content-box;
 
41
  }
42
 
43
  #fancybox-overlay {
@@ -48,6 +50,7 @@
48
  z-index:11100;
49
  display: none;
50
  box-sizing: content-box;
 
51
  }
52
 
53
  #fancybox-tmp {
@@ -67,10 +70,12 @@
67
  outline: none;
68
  display: none;
69
  box-sizing: content-box;
 
70
  }
71
 
72
  #fancybox-wrap div {
73
  box-sizing: content-box;
 
74
  }
75
 
76
  #fancybox-outer {
@@ -329,3 +334,6 @@
329
  padding: 0 0 0 15px;
330
  background: url('fancybox.png') -55px -90px no-repeat;
331
  }
 
 
 
28
  z-index:11104;
29
  display: none;
30
  box-sizing: content-box;
31
+ -moz-box-sizing: content-box;
32
  }
33
 
34
  #fancybox-loading div {
39
  height: 480px;
40
  background-image: url('fancybox.png');
41
  box-sizing: content-box;
42
+ -moz-box-sizing: content-box;
43
  }
44
 
45
  #fancybox-overlay {
50
  z-index:11100;
51
  display: none;
52
  box-sizing: content-box;
53
+ -moz-box-sizing: content-box;
54
  }
55
 
56
  #fancybox-tmp {
70
  outline: none;
71
  display: none;
72
  box-sizing: content-box;
73
+ -moz-box-sizing: content-box;
74
  }
75
 
76
  #fancybox-wrap div {
77
  box-sizing: content-box;
78
+ -moz-box-sizing: content-box;
79
  }
80
 
81
  #fancybox-outer {
334
  padding: 0 0 0 15px;
335
  background: url('fancybox.png') -55px -90px no-repeat;
336
  }
337
+
338
+ /* IE */
339
+ .fancybox-ie .fancybox-bg{background:transparent !important}
fancybox/{jquery.fancybox-1.3.5.js → jquery.fancybox-1.3.6.js} RENAMED
@@ -8,7 +8,7 @@
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
  * Version: 1.3.4 (11/11/2010) patched and appended
11
- * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
@@ -16,9 +16,10 @@
16
  *
17
  * Patches applied:
18
  *
 
 
19
  * Line 818: qouted attribute selector, RavanH ravanhagen@gmail.com
20
  * Line 39, 620 and 1123: added isTouch variable and autoResize parameter, RavanH ravanhagen@gmail.com
21
- * Line 1098: catch scroll wheel action on overlay, not only fancybox frame (wrap)
22
  * Patched for jQuery 1.9+ compat by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
23
  *
24
  * Added SVG support by Simon Maillard simon@ogesta.fr
@@ -176,7 +177,7 @@
176
 
177
  tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));
178
 
179
- $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
180
  $(this).replaceWith(content.children());
181
  });
182
 
@@ -195,9 +196,9 @@
195
  $('<div class="fancybox-inline-tmp" />')
196
  .hide()
197
  .insertBefore( $(obj) )
198
- .bind('fancybox-cleanup', function() {
199
  $(this).replaceWith(content.children());
200
- }).bind('fancybox-cancel', function() {
201
  $(this).replaceWith(tmp.children());
202
  });
203
 
@@ -302,17 +303,19 @@
302
  _process_inline = function() {
303
  var
304
  w = selectedOpts.width,
305
- h = selectedOpts.height;
 
 
306
 
307
  if (w.toString().indexOf('%') > -1) {
308
- w = parseInt( ($(window).width() - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
309
 
310
  } else {
311
  w = w == 'auto' ? 'auto' : w + 'px';
312
  }
313
 
314
  if (h.toString().indexOf('%') > -1) {
315
- h = parseInt( ($(window).height() - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
316
 
317
  } else {
318
  h = h == 'auto' ? 'auto' : h + 'px';
@@ -353,10 +356,10 @@
353
 
354
  busy = true;
355
 
356
- $(content.add( overlay )).unbind();
357
 
358
- $(window).unbind("resize.fb scroll.fb");
359
- $(document).unbind('keydown.fb');
360
 
361
  if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {
362
  wrap.css('height', wrap.height());
@@ -571,7 +574,7 @@
571
 
572
  _set_navigation = function() {
573
  if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {
574
- $(document).bind('keydown.fb', function(e) {
575
  if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
576
  e.preventDefault();
577
  $.fancybox.close();
@@ -621,27 +624,29 @@
621
  _set_navigation();
622
 
623
  if (currentOpts.hideOnContentClick) {
624
- content.bind('click', $.fancybox.close);
625
  }
626
 
627
  if (currentOpts.hideOnOverlayClick) {
628
- overlay.bind('click', $.fancybox.close);
629
  }
630
 
631
- if(currentOpts.autoResize) {
632
- $(window).bind("resize.fb", $.fancybox.resize);
633
  }
634
 
635
  if (currentOpts.centerOnScroll) {
636
- $(window).bind("scroll.fb", $.fancybox.center);
637
  }
638
 
639
  if ($.fn.mousewheel) {
640
- $(window).bind('mousewheel.fb', function(e, delta) {
641
- e.preventDefault();
642
- if ( false === busy && ( $(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight ) ) {
 
 
643
  $.fancybox[ delta > 0 ? 'prev' : 'next']();
644
- }
645
  });
646
  }
647
 
@@ -706,8 +711,8 @@
706
 
707
  _get_viewport = function() {
708
  return [
709
- $(window).width() - (currentOpts.margin * 2),
710
- $(window).height() - (currentOpts.margin * 2),
711
  $(document).scrollLeft() + currentOpts.margin,
712
  $(document).scrollTop() + currentOpts.margin
713
  ];
@@ -825,8 +830,8 @@
825
 
826
  $(this)
827
  .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
828
- .unbind('click.fb')
829
- .bind('click.fb', function(e) {
830
  e.preventDefault();
831
 
832
  if (busy) {
@@ -972,10 +977,10 @@
972
 
973
  $(close.add( nav_left ).add( nav_right )).hide();
974
 
975
- $(content.add( overlay )).unbind();
976
 
977
- $(window).unbind("resize.fb scroll.fb mousewheel.fb");
978
- $(document).unbind('keydown.fb');
979
 
980
  content.find('iframe#fancybox-frame').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
981
 
@@ -1130,7 +1135,7 @@
1130
  autoScale : true,
1131
  autoDimensions : true,
1132
  centerOnScroll : !isTouch,
1133
- autoResize : !isTouch,
1134
 
1135
  ajax : {},
1136
  swf : { wmode: 'transparent' },
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
  * Version: 1.3.4 (11/11/2010) patched and appended
11
+ * Requires: jQuery v1.7+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
16
  *
17
  * Patches applied:
18
  *
19
+ * Line 307, 712: patches for better centering on ipad etc.
20
+ * Line 643: Check type = image for mousewheel
21
  * Line 818: qouted attribute selector, RavanH ravanhagen@gmail.com
22
  * Line 39, 620 and 1123: added isTouch variable and autoResize parameter, RavanH ravanhagen@gmail.com
 
23
  * Patched for jQuery 1.9+ compat by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
24
  *
25
  * Added SVG support by Simon Maillard simon@ogesta.fr
177
 
178
  tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));
179
 
180
+ $('.fancybox-inline-tmp').off('fancybox-cancel').on('fancybox-change', function() {
181
  $(this).replaceWith(content.children());
182
  });
183
 
196
  $('<div class="fancybox-inline-tmp" />')
197
  .hide()
198
  .insertBefore( $(obj) )
199
+ .on('fancybox-cleanup', function() {
200
  $(this).replaceWith(content.children());
201
+ }).on('fancybox-cancel', function() {
202
  $(this).replaceWith(tmp.children());
203
  });
204
 
303
  _process_inline = function() {
304
  var
305
  w = selectedOpts.width,
306
+ h = selectedOpts.height,
307
+ ww = $(window).width() == 0 ? window.innerWidth : $(window).width(),
308
+ wh = $(window).height() == 0 ? window.innerHeight : $(window).height();
309
 
310
  if (w.toString().indexOf('%') > -1) {
311
+ w = parseInt( (ww - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
312
 
313
  } else {
314
  w = w == 'auto' ? 'auto' : w + 'px';
315
  }
316
 
317
  if (h.toString().indexOf('%') > -1) {
318
+ h = parseInt( (wh - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
319
 
320
  } else {
321
  h = h == 'auto' ? 'auto' : h + 'px';
356
 
357
  busy = true;
358
 
359
+ $(content.add( overlay )).off();
360
 
361
+ $(window).off("resize.fb scroll.fb");
362
+ $(document).off('keydown.fb');
363
 
364
  if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {
365
  wrap.css('height', wrap.height());
574
 
575
  _set_navigation = function() {
576
  if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {
577
+ $(document).on('keydown.fb', function(e) {
578
  if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
579
  e.preventDefault();
580
  $.fancybox.close();
624
  _set_navigation();
625
 
626
  if (currentOpts.hideOnContentClick) {
627
+ content.on('click', $.fancybox.close);
628
  }
629
 
630
  if (currentOpts.hideOnOverlayClick) {
631
+ overlay.on('click', $.fancybox.close);
632
  }
633
 
634
+ if (currentOpts.autoResize) {
635
+ $(window).on("resize.fb", $.fancybox.resize);
636
  }
637
 
638
  if (currentOpts.centerOnScroll) {
639
+ $(window).on("scroll.fb", $.fancybox.center);
640
  }
641
 
642
  if ($.fn.mousewheel) {
643
+ wrap.on('mousewheel.fb', function(e, delta) {
644
+ if (busy) {
645
+ e.preventDefault();
646
+ } else if ( currentOpts.type == 'image' && ( $(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight ) ) {
647
+ e.preventDefault();
648
  $.fancybox[ delta > 0 ? 'prev' : 'next']();
649
+ }
650
  });
651
  }
652
 
711
 
712
  _get_viewport = function() {
713
  return [
714
+ $(window).width() == 0 ? window.innerWidth : $(window).width() - (currentOpts.margin * 2),
715
+ $(window).height() == 0 ? window.innerHeight : $(window).height() - (currentOpts.margin * 2),
716
  $(document).scrollLeft() + currentOpts.margin,
717
  $(document).scrollTop() + currentOpts.margin
718
  ];
830
 
831
  $(this)
832
  .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
833
+ .off('click.fb')
834
+ .on('click.fb', function(e) {
835
  e.preventDefault();
836
 
837
  if (busy) {
977
 
978
  $(close.add( nav_left ).add( nav_right )).hide();
979
 
980
+ $(content.add( overlay )).off();
981
 
982
+ $(window).off("resize.fb scroll.fb mousewheel.fb");
983
+ $(document).off('keydown.fb');
984
 
985
  content.find('iframe#fancybox-frame').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
986
 
1135
  autoScale : true,
1136
  autoDimensions : true,
1137
  centerOnScroll : !isTouch,
1138
+ autoResize : true, //!isTouch
1139
 
1140
  ajax : {},
1141
  swf : { wmode: 'transparent' },
fancybox/{jquery.fancybox-1.3.5.pack.css → jquery.fancybox-1.3.6.pack.css} RENAMED
@@ -1,9 +1,9 @@
1
- #fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:11104;display:none;box-sizing:content-box}
2
- #fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url(fancybox.png);box-sizing:content-box}
3
- #fancybox-overlay{position:absolute;top:0;left:0;width:100%;z-index:11100;display:none;box-sizing:content-box}
4
  #fancybox-tmp{border:0;overflow:auto;display:none;margin:0;padding:0}
5
- #fancybox-wrap{position:absolute;top:0;left:0;z-index:11101;outline:none;display:none;box-sizing:content-box;padding:20px}
6
- #fancybox-wrap div{box-sizing:content-box}
7
  #fancybox-outer{position:relative;width:100%;height:100%;background:#fff}
8
  #fancybox-content{width:0;height:0;outline:none;position:relative;overflow:hidden;z-index:11102;border:0 solid #fff;padding:0}
9
  #fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:11101}
@@ -40,3 +40,4 @@
40
  #fancybox-title-float-left{background:url(fancybox.png) -40px -90px no-repeat;padding:0 0 0 15px}
41
  #fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:700;background:url(fancybox-x.png) 0 -40px;padding:0 0 3px}
42
  #fancybox-title-float-right{background:url(fancybox.png) -55px -90px no-repeat;padding:0 0 0 15px}
 
1
+ #fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:11104;display:none;box-sizing:content-box;-moz-box-sizing: content-box}
2
+ #fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url(fancybox.png);box-sizing:content-box;-moz-box-sizing: content-box}
3
+ #fancybox-overlay{position:absolute;top:0;left:0;width:100%;z-index:11100;display:none;box-sizing:content-box;-moz-box-sizing: content-box}
4
  #fancybox-tmp{border:0;overflow:auto;display:none;margin:0;padding:0}
5
+ #fancybox-wrap{position:absolute;top:0;left:0;z-index:11101;outline:none;display:none;padding:20px;box-sizing:content-box;-moz-box-sizing: content-box}
6
+ #fancybox-wrap div{box-sizing:content-box;-moz-box-sizing: content-box}
7
  #fancybox-outer{position:relative;width:100%;height:100%;background:#fff}
8
  #fancybox-content{width:0;height:0;outline:none;position:relative;overflow:hidden;z-index:11102;border:0 solid #fff;padding:0}
9
  #fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:11101}
40
  #fancybox-title-float-left{background:url(fancybox.png) -40px -90px no-repeat;padding:0 0 0 15px}
41
  #fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:700;background:url(fancybox-x.png) 0 -40px;padding:0 0 3px}
42
  #fancybox-title-float-right{background:url(fancybox.png) -55px -90px no-repeat;padding:0 0 0 15px}
43
+ .fancybox-ie .fancybox-bg{background:transparent !important}
fancybox/jquery.fancybox-1.3.6.pack.js ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * FancyBox - jQuery Plugin
3
+ * Simple and fancy lightbox alternative
4
+ *
5
+ * Examples and documentation at: http://fancybox.net
6
+ *
7
+ * Copyright (c) 2008 - 2010 Janis Skarnelis
8
+ * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
+ *
10
+ * Version: 1.3.4 (11/11/2010) patched and appended
11
+ * Requires: jQuery v1.7+
12
+ *
13
+ * Dual licensed under the MIT and GPL licenses:
14
+ * http://www.opensource.org/licenses/mit-license.php
15
+ * http://www.gnu.org/licenses/gpl.html
16
+ *
17
+ * Patches applied for Easy FancyBox WordPress plugin integration:
18
+ * Check for type = image for mousewheel
19
+ * Better centering on ipad, RavanH ravanhagen@gmail.com
20
+ * Quoted attribute selector, RavanH ravanhagen@gmail.com
21
+ * Added isTouch variable and autoResize parameter, RavanH ravanhagen@gmail.com
22
+ * jQuery 1.9+ compat. by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
23
+ * Added SVG support by Simon Maillard simon@ogesta.fr
24
+ */
25
+ !function(a){var b,c,d,e,f,g,h,i,j,k,w,A,B,l=0,m={},n=[],o=0,p={},q=[],r=null,s=new Image,t=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,u=/[^\.]\.(swf)\s*$/i,v=/[^\.]\.(svg)\s*$/i,x=1,y=0,z="",C=!1,D=a.extend(a("<div/>")[0],{prop:0}),E=navigator.userAgent.match(/msie [6]/i)&&!window.XMLHttpRequest,F=void 0!==document.createTouch,G=function(){c.hide(),s.onerror=s.onload=null,r&&r.abort(),b.empty()},H=function(){return!1===m.onError(n,l,m)?(c.hide(),C=!1,void 0):(m.titleShow=!1,m.width="auto",m.height="auto",b.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),J(),void 0)},I=function(){var e,f,h,i,j,k,d=n[l];if(G(),m=a.extend({},a.fn.fancybox.defaults,"undefined"==typeof a(d).data("fancybox")?m:a(d).data("fancybox")),k=m.onStart(n,l,m),k===!1)return C=!1,void 0;if("object"==typeof k&&(m=a.extend(m,k)),h=m.title||(d.nodeName?a(d).attr("title"):d.title)||"",d.nodeName&&!m.orig&&(m.orig=a(d).children("img:first").length?a(d).children("img:first"):a(d)),""===h&&m.orig&&m.titleFromAlt&&(h=m.orig.attr("alt")),e=m.href||(d.nodeName?a(d).attr("href"):d.href)||null,(/^(?:javascript)/i.test(e)||"#"==e)&&(e=null),m.type?(f=m.type,e||(e=m.content)):m.content?f="html":e&&(f=e.match(t)?"image":e.match(u)?"swf":e.match(v)?"svg":a(d).hasClass("iframe")?"iframe":0===e.indexOf("#")?"inline":"ajax"),!f)return H(),void 0;switch("inline"==f&&(d=e.substr(e.indexOf("#")),f=a(d).length>0?"inline":"ajax"),m.type=f,m.href=e,m.title=h,m.autoDimensions&&("html"==m.type||"inline"==m.type||"ajax"==m.type?(m.width="auto",m.height="auto"):m.autoDimensions=!1),m.modal&&(m.overlayShow=!0,m.hideOnOverlayClick=!1,m.hideOnContentClick=!1,m.enableEscapeButton=!1,m.showCloseButton=!1),m.padding=parseInt(m.padding,10),m.margin=parseInt(m.margin,10),b.css("padding",m.padding+m.margin),a(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",function(){a(this).replaceWith(g.children())}),f){case"html":b.html(m.content),J();break;case"inline":if(a(d).parent().is("#fancybox-content")===!0)return C=!1,void 0;a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(d)).on("fancybox-cleanup",function(){a(this).replaceWith(g.children())}).on("fancybox-cancel",function(){a(this).replaceWith(b.children())}),a(d).appendTo(b),J();break;case"image":C=!1,a.fancybox.showActivity(),s=new Image,s.onerror=function(){H()},s.onload=function(){C=!0,s.onerror=s.onload=null,K()},s.src=e;break;case"swf":m.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+m.width+'" height="'+m.height+'"><param name="movie" value="'+e+'"></param>',j="",a.each(m.swf,function(a,b){i+='<param name="'+a+'" value="'+b+'"></param>',j+=" "+a+'="'+b+'"'}),i+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+m.width+'" height="'+m.height+'"'+j+"></embed></object>",b.html(i),J();break;case"svg":m.scrolling="no",i='<object width="'+m.width+'" height="'+m.height+'" data="'+e+'"></object>',b.html(i),J();break;case"ajax":C=!1,a.fancybox.showActivity(),m.ajax.win=m.ajax.success,r=a.ajax(a.extend({},m.ajax,{url:e,data:m.ajax.data||{},error:function(a){a.status>0&&H()},success:function(a,d,f){var g="object"==typeof f?f:r;if(200==g.status){if("function"==typeof m.ajax.win){if(k=m.ajax.win(e,a,d,f),k===!1)return c.hide(),void 0;("string"==typeof k||"object"==typeof k)&&(a=k)}b.html(a),J()}}}));break;case"iframe":L()}},J=function(){var c=m.width,d=m.height,e=0==a(window).width()?window.innerWidth:a(window).width(),f=0==a(window).height()?window.innerHeight:a(window).height();c=c.toString().indexOf("%")>-1?parseInt((e-2*m.margin)*parseFloat(c)/100,10)+"px":"auto"==c?"auto":c+"px",d=d.toString().indexOf("%")>-1?parseInt((f-2*m.margin)*parseFloat(d)/100,10)+"px":"auto"==d?"auto":d+"px",b.wrapInner('<div style="width:'+c+";height:"+d+";overflow: "+("auto"==m.scrolling?"auto":"yes"==m.scrolling?"scroll":"hidden")+';position:relative;"></div>'),m.width=b.width(),m.height=b.height(),L()},K=function(){m.width=s.width,m.height=s.height,a("<img />").attr({id:"fancybox-img",src:s.src,alt:m.title}).appendTo(b),L()},L=function(){var f,r;return c.hide(),e.is(":visible")&&!1===p.onCleanup(q,o,p)?(a(".fancybox-inline-tmp").trigger("fancybox-cancel"),C=!1,void 0):(C=!0,a(g.add(d)).off(),a(window).off("resize.fb scroll.fb"),a(document).off("keydown.fb"),e.is(":visible")&&"outside"!==p.titlePosition&&e.css("height",e.height()),q=n,o=l,p=m,p.overlayShow?(d.css({"background-color":p.overlayColor,opacity:p.overlayOpacity,cursor:p.hideOnOverlayClick?"pointer":"auto",height:a(document).height()}),d.is(":visible")||(E&&a("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),d.show())):d.hide(),B=T(),N(),e.is(":visible")?(a(h.add(j).add(k)).hide(),f=e.position(),A={top:f.top,left:f.left,width:e.width(),height:e.height()},r=A.width==B.width&&A.height==B.height,g.fadeTo(p.changeFade,.3,function(){var c=function(){g.html(b.contents()).fadeTo(p.changeFade,1,P)};a(".fancybox-inline-tmp").trigger("fancybox-change"),g.empty().removeAttr("filter").css({"border-width":p.padding,width:B.width-2*p.padding,height:m.autoDimensions?"auto":B.height-y-2*p.padding}),r?c():(D.prop=0,a(D).animate({prop:1},{duration:p.changeSpeed,easing:p.easingChange,step:R,complete:c}))}),void 0):(e.removeAttr("style"),g.css("border-width",p.padding),"elastic"==p.transitionIn?(A=V(),g.html(b.contents()),e.show(),p.opacity&&(B.opacity=0),D.prop=0,a(D).animate({prop:1},{duration:p.speedIn,easing:p.easingIn,step:R,complete:P}),void 0):("inside"==p.titlePosition&&y>0&&i.show(),g.css({width:B.width-2*p.padding,height:m.autoDimensions?"auto":B.height-y-2*p.padding}).html(b.contents()),e.css(B).fadeIn("none"==p.transitionIn?0:p.speedIn,P),void 0)))},M=function(a){return a&&a.length?"float"==p.titlePosition?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+a+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+p.titlePosition+'">'+a+"</div>":!1},N=function(){if(z=p.title||"",y=0,i.empty().removeAttr("style").removeClass(),p.titleShow===!1)return i.hide(),void 0;if(z=a.isFunction(p.titleFormat)?p.titleFormat(z,q,o,p):M(z),!z||""===z)return i.hide(),void 0;switch(i.addClass("fancybox-title-"+p.titlePosition).html(z).appendTo("body").show(),p.titlePosition){case"inside":i.css({width:B.width-2*p.padding,marginLeft:p.padding,marginRight:p.padding}),y=i.outerHeight(!0),i.appendTo(f),B.height+=y;break;case"over":i.css({marginLeft:p.padding,width:B.width-2*p.padding,bottom:p.padding}).appendTo(f);break;case"float":i.css("left",-1*parseInt((i.width()-B.width-40)/2,10)).appendTo(e);break;default:i.css({width:B.width-2*p.padding,paddingLeft:p.padding,paddingRight:p.padding}).appendTo(e)}i.hide()},O=function(){return(p.enableEscapeButton||p.enableKeyboardNav)&&a(document).on("keydown.fb",function(b){27==b.keyCode&&p.enableEscapeButton?(b.preventDefault(),a.fancybox.close()):37!=b.keyCode&&39!=b.keyCode||!p.enableKeyboardNav||"INPUT"===b.target.tagName||"TEXTAREA"===b.target.tagName||"SELECT"===b.target.tagName||(b.preventDefault(),a.fancybox[37==b.keyCode?"prev":"next"]())}),p.showNavArrows?((p.cyclic&&q.length>1||0!==o)&&j.show(),(p.cyclic&&q.length>1||o!=q.length-1)&&k.show(),void 0):(j.hide(),k.hide(),void 0)},P=function(){a.support.opacity||(g.get(0).style.removeAttribute("filter"),e.get(0).style.removeAttribute("filter")),m.autoDimensions&&g.css("height","auto"),e.css("height","auto"),z&&z.length&&i.show(),p.showCloseButton&&h.show(),O(),p.hideOnContentClick&&g.on("click",a.fancybox.close),p.hideOnOverlayClick&&d.on("click",a.fancybox.close),p.autoResize&&a(window).on("resize.fb",a.fancybox.resize),p.centerOnScroll&&a(window).on("scroll.fb",a.fancybox.center),a.fn.mousewheel&&e.on("mousewheel.fb",function(b,c){C?b.preventDefault():"image"!=p.type||0!=a(b.target).get(0).clientHeight&&a(b.target).get(0).scrollHeight!==a(b.target).get(0).clientHeight||(b.preventDefault(),a.fancybox[c>0?"prev":"next"]())}),"iframe"==p.type&&a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(navigator.userAgent.match(/msie [6]/i)?'allowtransparency="true""':"")+' scrolling="'+m.scrolling+'" src="'+p.href+'"></iframe>').appendTo(g),e.show(),C=!1,a.fancybox.center(),p.onComplete(q,o,p),Q()},Q=function(){var a,b;q.length-1>o&&(a=q[o+1].href,"undefined"!=typeof a&&a.match(t)&&(b=new Image,b.src=a)),o>0&&(a=q[o-1].href,"undefined"!=typeof a&&a.match(t)&&(b=new Image,b.src=a))},R=function(a){var b={width:parseInt(A.width+(B.width-A.width)*a,10),height:parseInt(A.height+(B.height-A.height)*a,10),top:parseInt(A.top+(B.top-A.top)*a,10),left:parseInt(A.left+(B.left-A.left)*a,10)};"undefined"!=typeof B.opacity&&(b.opacity=.5>a?.5:a),e.css(b),g.css({width:b.width-2*p.padding,height:b.height-y*a-2*p.padding})},S=function(){return[0==a(window).width()?window.innerWidth:a(window).width()-2*p.margin,0==a(window).height()?window.innerHeight:a(window).height()-2*p.margin,a(document).scrollLeft()+p.margin,a(document).scrollTop()+p.margin]},T=function(){var e,a=S(),b={},c=p.autoScale,d=2*p.padding;return b.width=p.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(p.width)/100,10):p.width+d,b.height=p.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(p.height)/100,10):p.height+d,c&&(b.width>a[0]||b.height>a[1])&&("image"==m.type||"svg"==m.type||"swf"==m.type?(e=p.width/p.height,b.width>a[0]&&(b.width=a[0],b.height=parseInt((b.width-d)/e+d,10)),b.height>a[1]&&(b.height=a[1],b.width=parseInt((b.height-d)*e+d,10))):(b.width=Math.min(b.width,a[0]),b.height=Math.min(b.height,a[1]))),b.top=parseInt(Math.max(a[3]-20,a[3]+.5*(a[1]-b.height-40)),10),b.left=parseInt(Math.max(a[2]-20,a[2]+.5*(a[0]-b.width-40)),10),b},U=function(a){var b=a.offset();return b.top+=parseInt(a.css("paddingTop"),10)||0,b.left+=parseInt(a.css("paddingLeft"),10)||0,b.top+=parseInt(a.css("border-top-width"),10)||0,b.left+=parseInt(a.css("border-left-width"),10)||0,b.width=a.width(),b.height=a.height(),b},V=function(){var d,e,b=m.orig?a(m.orig):!1,c={};return b&&b.length?(d=U(b),c={width:d.width+2*p.padding,height:d.height+2*p.padding,top:d.top-p.padding-20,left:d.left-p.padding-20}):(e=S(),c={width:2*p.padding,height:2*p.padding,top:parseInt(e[3]+.5*e[1],10),left:parseInt(e[2]+.5*e[0],10)}),c},W=function(){return c.is(":visible")?(a("div",c).css("top",-40*x+"px"),x=(x+1)%12,void 0):(clearInterval(w),void 0)};a.fn.fancybox=function(b){return a(this).length?(a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).off("click.fb").on("click.fb",function(b){if(b.preventDefault(),!C){C=!0,a(this).blur(),n=[],l=0;var c=a(this).attr("rel")||"";c&&""!=c&&"nofollow"!==c?(n=a('a[rel="'+c+'"], area[rel="'+c+'"]'),l=n.index(this)):n.push(this),I()}}),this):this},a.fancybox=function(b){var c;if(!C){if(C=!0,c="undefined"!=typeof arguments[1]?arguments[1]:{},n=[],l=parseInt(c.index,10)||0,a.isArray(b)){for(var d=0,e=b.length;e>d;d++)"object"==typeof b[d]?a(b[d]).data("fancybox",a.extend({},c,b[d])):b[d]=a({}).data("fancybox",a.extend({content:b[d]},c));n=jQuery.merge(n,b)}else"object"==typeof b?a(b).data("fancybox",a.extend({},c,b)):b=a({}).data("fancybox",a.extend({content:b},c)),n.push(b);(l>n.length||0>l)&&(l=0),I()}},a.fancybox.showActivity=function(){clearInterval(w),c.show(),w=setInterval(W,66)},a.fancybox.hideActivity=function(){c.hide()},a.fancybox.next=function(){return a.fancybox.pos(o+1)},a.fancybox.prev=function(){return a.fancybox.pos(o-1)},a.fancybox.pos=function(a){C||(a=parseInt(a),n=q,a>-1&&a<q.length?(l=a,I()):p.cyclic&&q.length>1&&(l=a>=q.length?0:q.length-1,I()))},a.fancybox.cancel=function(){C||(C=!0,a(".fancybox-inline-tmp").trigger("fancybox-cancel"),G(),m.onCancel(n,l,m),C=!1)},a.fancybox.close=function(){function b(){d.fadeOut("fast"),i.empty().hide(),e.hide(),a(".fancybox-inline-tmp").trigger("fancybox-cleanup"),g.empty(),p.onClosed(q,o,p),q=m=[],o=l=0,p=m={},C=!1}if(!C&&!e.is(":hidden")){if(C=!0,p&&!1===p.onCleanup(q,o,p))return C=!1,void 0;if(G(),a(h.add(j).add(k)).hide(),a(g.add(d)).off(),a(window).off("resize.fb scroll.fb mousewheel.fb"),a(document).off("keydown.fb"),g.find("iframe#fancybox-frame").attr("src",E&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==p.titlePosition&&i.empty(),e.stop(),"elastic"==p.transitionOut){A=V();var c=e.position();B={top:c.top,left:c.left,width:e.width(),height:e.height()},p.opacity&&(B.opacity=1),i.empty().hide(),D.prop=1,a(D).animate({prop:0},{duration:p.speedOut,easing:p.easingOut,step:R,complete:b})}else e.fadeOut("none"==p.transitionOut?0:p.speedOut,b)}},a.fancybox.resize=function(){d.is(":visible")&&d.css("height",a(document).height()),a.fancybox.center(!0)},a.fancybox.center=function(){var a,b;C||(b=arguments[0]===!0?1:0,a=S(),(b||!(e.width()>a[0]||e.height()>a[1]))&&e.stop().animate({top:parseInt(Math.max(a[3]-20,a[3]+.5*(a[1]-g.height()-40)-p.padding)),left:parseInt(Math.max(a[2]-20,a[2]+.5*(a[0]-g.width()-40)-p.padding))},"number"==typeof arguments[0]?arguments[0]:200))},a.fancybox.init=function(){a("#fancybox-wrap").length||(a("body").append(b=a('<div id="fancybox-tmp"></div>'),c=a('<div id="fancybox-loading"><div></div></div>'),d=a('<div id="fancybox-overlay"></div>'),e=a('<div id="fancybox-wrap"></div>')),f=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(e),f.append(g=a('<div id="fancybox-content"></div>'),h=a('<a id="fancybox-close"></a>'),i=a('<div id="fancybox-title"></div>'),j=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),k=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),h.click(a.fancybox.close),c.click(a.fancybox.cancel),j.click(function(b){b.preventDefault(),a.fancybox.prev()}),k.click(function(b){b.preventDefault(),a.fancybox.next()}),a.support.opacity||e.addClass("fancybox-ie"),E&&(c.addClass("fancybox-ie6"),e.addClass("fancybox-ie6"),a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(f)))},a.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!F,autoResize:!0,ajax:{},swf:{wmode:"transparent"},svg:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},a(document).ready(function(){a.fancybox.init()})}(jQuery);
languages/easy-fancybox-cs_CZ.po ADDED
@@ -0,0 +1,1022 @@