Easy FancyBox - Version 1.5.5

Version Description

Mousewheel fix. New approach for IE alphaimageloader path fix with less compatibility issues.

=

Download this release

Release Info

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

Code changes from version 1.5.2 to 1.5.5

easy-fancybox-class.php CHANGED
@@ -38,8 +38,47 @@ class easyFancyBox {
38
  return;
39
  }
40
 
41
- //wp_print_scripts('jquery'); // using print_scripts here instead of enqueue because else the order will be wrong...
42
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  // begin output FancyBox settings
44
  echo '
45
  <script type="text/javascript">
@@ -415,6 +454,7 @@ class easyFancyBox {
415
 
416
  function register_scripts() {
417
 
 
418
  // ENQUEUE
419
  // first get rid of previously registered variants of jquery.fancybox by other plugins or theme
420
  wp_deregister_script('fancybox');
@@ -463,11 +503,13 @@ class easyFancyBox {
463
  // then register our version
464
  wp_register_script('jquery-metadata',EASY_FANCYBOX_PLUGINURL.'jquery.metadata.pack.js', array('jquery'), METADATA_VERSION, true);
465
  }
 
466
  }
467
 
468
  function enqueue_styles() {
469
  // register style
470
- wp_enqueue_style('easy-fancybox-css', EASY_FANCYBOX_PLUGINURL.'easy-fancybox.css.php', false, FANCYBOX_VERSION, 'screen');
 
471
  }
472
 
473
  static function enqueue_footer_scripts() {
@@ -608,7 +650,7 @@ jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
608
  add_action('admin_init', array(__CLASS__, 'admin_init'));
609
 
610
  add_action('init', array(__CLASS__, 'init'));
611
- add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_styles'));
612
  add_action('wp_head', array(__CLASS__, 'main_script'), 999);
613
  add_action('wp_print_scripts', array(__CLASS__, 'register_scripts'), 999);
614
  add_action('wp_footer', array(__CLASS__, 'enqueue_footer_scripts'));
@@ -616,4 +658,3 @@ jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
616
  }
617
 
618
  }
619
-
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">
454
 
455
  function register_scripts() {
456
 
457
+ if ( !is_admin() ) {
458
  // ENQUEUE
459
  // first get rid of previously registered variants of jquery.fancybox by other plugins or theme
460
  wp_deregister_script('fancybox');
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() {
650
  add_action('admin_init', array(__CLASS__, 'admin_init'));
651
 
652
  add_action('init', array(__CLASS__, 'init'));
653
+ add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_styles'), 999);
654
  add_action('wp_head', array(__CLASS__, 'main_script'), 999);
655
  add_action('wp_print_scripts', array(__CLASS__, 'register_scripts'), 999);
656
  add_action('wp_footer', array(__CLASS__, 'enqueue_footer_scripts'));
658
  }
659
 
660
  }
 
easy-fancybox-settings.php CHANGED
@@ -539,7 +539,7 @@ class easyFancyBox_Options extends easyFancyBox {
539
  '2' => __('All in one gallery','easy-fancybox')
540
  ),
541
  'default' => '1',
542
- 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('When disabled, you can use the rel attribute to manually group image links together.','easy-fancybox') . ' ' . __('Leave the mousewheel option (below) unchecked when you do not use FancyBox for galleries on your site.','easy-fancybox') . '<br /><br />'
543
  ),
544
  'showNavArrows' => array (
545
  'id' => 'fancybox_showNavArrows',
@@ -559,7 +559,7 @@ class easyFancyBox_Options extends easyFancyBox {
559
  'id' => 'fancybox_mouseWheel',
560
  'hide' => true,
561
  'input' => 'checkbox',
562
- 'default' => '',
563
  'description' => __('Include the Mousewheel jQuery extension script to allow gallery browsing by mousewheel action.','easy-fancybox')
564
  ),
565
  'cyclic' => array (
539
  '2' => __('All in one gallery','easy-fancybox')
540
  ),
541
  'default' => '1',
542
+ 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('When disabled, you can use the rel attribute to manually group image links together.','easy-fancybox') . '<br /><br />'
543
  ),
544
  'showNavArrows' => array (
545
  'id' => 'fancybox_showNavArrows',
559
  'id' => 'fancybox_mouseWheel',
560
  'hide' => true,
561
  'input' => 'checkbox',
562
+ 'default' => '1',
563
  'description' => __('Include the Mousewheel jQuery extension script to allow gallery browsing by mousewheel action.','easy-fancybox')
564
  ),
565
  'cyclic' => array (
easy-fancybox.css.php DELETED
@@ -1,78 +0,0 @@
1
- <?php
2
- /* -------------------------------------
3
- Easy Fancybox Styleheet Conversion
4
- ------------------------------------- */
5
-
6
- /* our function to parse css */
7
- function iepathfix_compress($buffer) {
8
- $path = ( (empty($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] == "off")) ? "http://" : "https://" ) . htmlspecialchars( $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']), ENT_QUOTES);
9
-
10
- /*
11
- * Fixes:
12
- * 1. Relative path fix : add 'fancybox/'
13
- * 2. IE6 path fix : replace relative with full path
14
- * 2. Z-index issue with Twenty Eleven work-around
15
- */
16
- $buffer = str_replace(array("url('", "AlphaImageLoader(src='fancybox/", "z-index: "), array("url('fancybox/", "AlphaImageLoader(src='" . $path . "/fancybox/", "z-index:1"), $buffer);
17
-
18
- /* remove comments */
19
- $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
20
-
21
- /* remove tabs and newlines */
22
- $buffer = str_replace(array("\r", "\n", "\t"), '', $buffer);
23
-
24
- /* and squeeze some more, for luck ;) */
25
- $buffer = str_replace(array(", ", ": ", " {", "{ ", " }", "} ", "; ", " 0;"), array(",", ":", "{", "{", "}", "}", ";", ";"), $buffer);
26
-
27
- return $buffer;
28
- }
29
-
30
- /* our original stylesheet */
31
- $file = dirname(__FILE__) . '/fancybox/jquery.fancybox-1.3.5.css';
32
-
33
- /* set up response headers, allowing browser caching */
34
- $expires = 60*60*24*30; // seconds, minutes, hours, days
35
- $last_modified_time = ( filemtime($file) < filemtime(__FILE__) ) ? filemtime(__FILE__) : filemtime($file);
36
- $if_modified_since = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE'])
37
- : false;
38
- $if_none_match = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH'])
39
- : false;
40
-
41
- header('Content-type: text/css; charset=utf-8', true);
42
- header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $last_modified_time) . ' GMT');
43
- header('Accept-Ranges: bytes');
44
- header('Pragma: public');
45
- header('Cache-Control: maxage=' . $expires);
46
- header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
47
- if ( function_exists('md5_file') ) {
48
- $etag = md5_file($file);
49
- header('Etag: ' . $etag);
50
- if ( $if_none_match ) {
51
- $tags = split( ", ", $if_none_match );
52
- foreach( $tags as $tag ) {
53
- if( $tag == $etag ) {
54
- // if we've got an etag match, answer not modified header and hang up
55
- header('HTTP/1.1 304 Not Modified');
56
- exit;
57
- }
58
- }
59
- }
60
- }
61
- if ( $if_modified_since && $last_modified_time && strtotime($if_modified_since) == $last_modified_time ) {
62
- // if we've got a not modified since match, answer not modified header and hang up
63
- header('HTTP/1.1 304 Not Modified');
64
- exit;
65
- }
66
-
67
- /* generate content */
68
- ob_start("iepathfix_compress");
69
-
70
- if (!file_exists($file)) {
71
- echo '/* Warning: stylesheet not found! */';
72
- } else {
73
- /* the css file */
74
- include( $file );
75
- }
76
-
77
- ob_end_flush();
78
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.2
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -36,7 +36,7 @@ Author URI: http://status301.net/
36
  * CONSTANTS
37
  **************/
38
 
39
- define( 'EASY_FANCYBOX_VERSION', '1.5.1' );
40
  define( 'FANCYBOX_VERSION', '1.3.5' );
41
  //define( 'FANCYBOX2_VERSION', '2.0.6' );
42
  define( 'MOUSEWHEEL_VERSION', '3.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.5
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
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' );
fancybox/jquery.fancybox-1.3.5.css CHANGED
@@ -25,7 +25,7 @@
25
  margin-left: -20px;
26
  cursor: pointer;
27
  overflow: hidden;
28
- z-index: 1104;
29
  display: none;
30
  box-sizing: content-box;
31
  }
@@ -45,7 +45,7 @@
45
  top: 0;
46
  left: 0;
47
  width: 100%;
48
- z-index: 1100;
49
  display: none;
50
  box-sizing: content-box;
51
  }
@@ -63,7 +63,7 @@
63
  top: 0;
64
  left: 0;
65
  padding: 20px;
66
- z-index: 1101;
67
  outline: none;
68
  display: none;
69
  box-sizing: content-box;
@@ -87,7 +87,7 @@
87
  outline: none;
88
  position: relative;
89
  overflow: hidden;
90
- z-index: 1102;
91
  border: 0px solid #fff;
92
  }
93
 
@@ -98,7 +98,7 @@
98
  width: 100%;
99
  height: 100%;
100
  background: transparent;
101
- z-index: 1101;
102
  }
103
 
104
  #fancybox-close {
@@ -109,7 +109,7 @@
109
  height: 30px;
110
  background: transparent url('fancybox.png') -40px 0px;
111
  cursor: pointer;
112
- z-index: 1103;
113
  display: none;
114
  }
115
 
@@ -146,7 +146,7 @@
146
  cursor: pointer;
147
  outline: none;
148
  background: transparent url('blank.gif');
149
- z-index: 1102;
150
  display: none;
151
  }
152
 
@@ -166,7 +166,7 @@
166
  height: 30px;
167
  margin-top: -15px;
168
  cursor: pointer;
169
- z-index: 1102;
170
  display: block;
171
  }
172
 
@@ -200,7 +200,7 @@
200
  border: 0;
201
  width: 20px;
202
  height: 20px;
203
- z-index: 1001;
204
  }
205
 
206
  #fancybox-bg-n {
@@ -264,7 +264,7 @@
264
  #fancybox-title {
265
  font-family: Helvetica;
266
  font-size: 12px;
267
- z-index: 1102;
268
  }
269
 
270
  .fancybox-title-inside {
@@ -329,39 +329,3 @@
329
  padding: 0 0 0 15px;
330
  background: url('fancybox.png') -55px -90px no-repeat;
331
  }
332
-
333
- /* IE6 */
334
-
335
- .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
336
-
337
- .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
338
- .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
339
-
340
- .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
341
- .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
342
- .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
343
- .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
344
-
345
- .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
346
- height: expression(this.parentNode.clientHeight + "px");
347
- }
348
-
349
- #fancybox-loading.fancybox-ie6 {
350
- position: absolute; margin-top: 0;
351
- 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');
352
- }
353
-
354
- #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
355
-
356
- /* IE6, IE7, IE8 */
357
-
358
- .fancybox-ie .fancybox-bg { background: transparent !important; }
359
-
360
- .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
361
- .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
362
- .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
363
- .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
364
- .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
365
- .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
366
- .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
367
- .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
25
  margin-left: -20px;
26
  cursor: pointer;
27
  overflow: hidden;
28
+ z-index:11104;
29
  display: none;
30
  box-sizing: content-box;
31
  }
45
  top: 0;
46
  left: 0;
47
  width: 100%;
48
+ z-index:11100;
49
  display: none;
50
  box-sizing: content-box;
51
  }
63
  top: 0;
64
  left: 0;
65
  padding: 20px;
66
+ z-index:11101;
67
  outline: none;
68
  display: none;
69
  box-sizing: content-box;
87
  outline: none;
88
  position: relative;
89
  overflow: hidden;
90
+ z-index:11102;
91
  border: 0px solid #fff;
92
  }
93
 
98
  width: 100%;
99
  height: 100%;
100
  background: transparent;
101
+ z-index:11101;
102
  }
103
 
104
  #fancybox-close {
109
  height: 30px;
110
  background: transparent url('fancybox.png') -40px 0px;
111
  cursor: pointer;
112
+ z-index:11103;
113
  display: none;
114
  }
115
 
146
  cursor: pointer;
147
  outline: none;
148
  background: transparent url('blank.gif');
149
+ z-index:11102;
150
  display: none;
151
  }
152
 
166
  height: 30px;
167
  margin-top: -15px;
168
  cursor: pointer;
169
+ z-index:11102;
170
  display: block;
171
  }
172
 
200
  border: 0;
201
  width: 20px;
202
  height: 20px;
203
+ z-index:11001;
204
  }
205
 
206
  #fancybox-bg-n {
264
  #fancybox-title {
265
  font-family: Helvetica;
266
  font-size: 12px;
267
+ z-index:11102;
268
  }
269
 
270
  .fancybox-title-inside {
329
  padding: 0 0 0 15px;
330
  background: url('fancybox.png') -55px -90px no-repeat;
331
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox/jquery.fancybox-1.3.5.js CHANGED
@@ -18,6 +18,7 @@
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
  * Patched for jQuery 1.9+ compat by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
22
  *
23
  * Added SVG support by Simon Maillard simon@ogesta.fr
@@ -635,6 +636,15 @@
635
  $(window).bind("scroll.fb", $.fancybox.center);
636
  }
637
 
 
 
 
 
 
 
 
 
 
638
  if (currentOpts.type == 'iframe') {
639
  $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + (navigator.userAgent.match(/msie [6]/i) ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
640
  }
@@ -964,7 +974,7 @@
964
 
965
  $(content.add( overlay )).unbind();
966
 
967
- $(window).unbind("resize.fb scroll.fb");
968
  $(document).unbind('keydown.fb');
969
 
970
  content.find('iframe#fancybox-frame').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
@@ -1094,18 +1104,6 @@
1094
  $.fancybox.next();
1095
  });
1096
 
1097
- if ($.fn.mousewheel) {
1098
- wrap.bind('mousewheel.fb', function(e, delta) {
1099
- if (busy) {
1100
- e.preventDefault();
1101
-
1102
- } else if ($(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {
1103
- e.preventDefault();
1104
- $.fancybox[ delta > 0 ? 'prev' : 'next']();
1105
- }
1106
- });
1107
- }
1108
-
1109
  if (!$.support.opacity) {
1110
  wrap.addClass('fancybox-ie');
1111
  }
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
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
+
648
  if (currentOpts.type == 'iframe') {
649
  $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + (navigator.userAgent.match(/msie [6]/i) ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
650
  }
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');
1104
  $.fancybox.next();
1105
  });
1106
 
 
 
 
 
 
 
 
 
 
 
 
 
1107
  if (!$.support.opacity) {
1108
  wrap.addClass('fancybox-ie');
1109
  }
fancybox/jquery.fancybox-1.3.5.pack.css ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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}
10
+ #fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url(fancybox.png) -40px 0;cursor:pointer;z-index:11103;display:none}
11
+ #fancybox-error{color:#444;font:normal 12px/20px Arial;margin:0;padding:14px}
12
+ #fancybox-img{width:100%;height:100%;border:none;outline:none;line-height:0;vertical-align:top;margin:0;padding:0}
13
+ #fancybox-frame{width:100%;height:100%;border:none;display:block}
14
+ #fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;outline:none;background:transparent url(blank.gif);z-index:11102;display:none}
15
+ #fancybox-left{left:0}
16
+ #fancybox-right{right:0}
17
+ #fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:11102;display:block}
18
+ #fancybox-left-ico{background-image:url(fancybox.png);background-position:-40px -30px}
19
+ #fancybox-right-ico{background-image:url(fancybox.png);background-position:-40px -60px}
20
+ #fancybox-left:hover,#fancybox-right:hover{visibility:visible}
21
+ #fancybox-left:hover span{left:20px}
22
+ #fancybox-right:hover span{left:auto;right:20px}
23
+ .fancybox-bg{position:absolute;border:0;width:20px;height:20px;z-index:11001;margin:0;padding:0}
24
+ #fancybox-bg-n{top:-20px;left:0;width:100%;background-image:url(fancybox-x.png)}
25
+ #fancybox-bg-ne{top:-20px;right:-20px;background-image:url(fancybox.png);background-position:-40px -162px}
26
+ #fancybox-bg-e{top:0;right:-20px;height:100%;background-image:url(fancybox-y.png);background-position:-20px 0}
27
+ #fancybox-bg-se{bottom:-20px;right:-20px;background-image:url(fancybox.png);background-position:-40px -182px}
28
+ #fancybox-bg-s{bottom:-20px;left:0;width:100%;background-image:url(fancybox-x.png);background-position:0 -20px}
29
+ #fancybox-bg-sw{bottom:-20px;left:-20px;background-image:url(fancybox.png);background-position:-40px -142px}
30
+ #fancybox-bg-w{top:0;left:-20px;height:100%;background-image:url(fancybox-y.png)}
31
+ #fancybox-bg-nw{top:-20px;left:-20px;background-image:url(fancybox.png);background-position:-40px -122px}
32
+ #fancybox-title{font-family:Helvetica;font-size:12px;z-index:11102}
33
+ .fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background:#fff;position:relative}
34
+ .fancybox-title-outside{padding-top:10px;color:#fff}
35
+ .fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}
36
+ #fancybox-title-over{background-image:url(fancy_title_over.png);display:block;padding:10px}
37
+ .fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}
38
+ #fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto}
39
+ #fancybox-title-float-wrap td{border:none;white-space:nowrap}
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}
fancybox/jquery.fancybox-1.3.5.pack.js CHANGED
@@ -17,7 +17,8 @@
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
  * jQuery 1.9+ compat. by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
21
  * Added SVG support by Simon Maillard simon@ogesta.fr
22
  */
23
- (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,a(d).data("fancybox")===void 0?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).indexOf("%")>-1?parseInt((a(window).width()-2*m.margin)*parseFloat(c)/100,10)+"px":"auto"==c?"auto":c+"px",d=(""+d).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),"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,a!==void 0&&a.match(t)&&(b=new Image,b.src=a)),o>0&&(a=q[o-1].href,a!==void 0&&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)};B.opacity!==void 0&&(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).indexOf("%")>-1?parseInt(a[0]*parseFloat(p.width)/100,10):p.width+d,b.height=(""+p.height).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=arguments[1]!==void 0?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&&q.length>a?(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"),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.fn.mousewheel&&e.bind("mousewheel.fb",function(b,c){C?b.preventDefault():(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"]())}),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);
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);
languages/easy-fancybox-cs_CZ.mo ADDED
Binary file
languages/easy-fancybox-fr_FR.mo CHANGED
Binary file
languages/easy-fancybox-id_ID.mo CHANGED
Binary file
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: RavanH
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=1%2e3%2e4%2e9&no_shipping=0&tax=0&charset=UTF%2d8&currency_code=EUR
4
  Tags: fancybox, lightbox, gallery, image, photo, video, flash, nextgen, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, swf, jquery
5
  Requires at least: 3.3
6
- Tested up to: 3.6
7
- Stable tag: 1.5.2
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
@@ -42,11 +42,12 @@ Visit [FancyBox](http://fancybox.net/) for more information, examples and the Fa
42
 
43
  = Translators =
44
 
 
45
  - **Dutch** * R.A. van Hagen http://status301.net (version 1.5.0)
46
- - **French** * Emmanuel Maillard (version 1.3.4.9)
47
  - **Gujarati** * Apoto Team http://www.apoto.com (version 1.5.0)
48
  - **Hindi** * Outshine Solutions http://outshinesolutions.com (version 1.3.4.9)
49
- - **Indonesian** * Nasrulhaq Muiz http://al-badar.net (version 1.3.4.9)
50
  - **Lithuanian** * Vincent G http://www.host1free.com (version 1.3.4.9)
51
  - **Polish** * Kamil Szymański (version 1.3.4.9)
52
  - **Romanian** * Web Geek Sciense http://webhostinggeeks.com/ (version 1.3.4.9)
@@ -56,6 +57,7 @@ Visit [FancyBox](http://fancybox.net/) for more information, examples and the Fa
56
  - **Turkish** * Hakan Er http://hakanertr.wordpress.com/ (version: 1.5.2)
57
  - **Ukrainian** * Cmd Software http://www.cmd-soft.com (version: 1.3.4.9)
58
 
 
59
  == Installation ==
60
 
61
  = Wordpress =
@@ -122,17 +124,18 @@ Yes, but _only_ if you used the option **Link thumbnails to: Image File** when i
122
 
123
  = The lightbox does not look good on mobile devices. What can I do about that? =
124
 
125
- The FancyBox 1.3.4 script that is used in thsi plugin was not developed with mobile devices in mind. The only way around this issue is currently to disable FancyBox for small screen sizes. You can do this by adding a text widget in your sidebar with the following code snippet.
126
 
127
  `
128
  <script type="text/javascript">
129
- if(window.innerWidth < 500 || window.innerHeight < 500 || window.outerWidth < 500 || window.outerHeight < 500 ) {
130
- jQuery(document).off('ready gform_post_render', easy_fancybox_handler);
 
131
  };
132
  </script>
133
  `
134
 
135
- Tweak the value 500 to target other screen sizes.
136
 
137
  = Can I make a slideshow from my gallery? =
138
 
@@ -146,17 +149,17 @@ Yes. All links with class **nofancybox** that would normally get auto-enabled, w
146
  `<a href="url/to/fullimg.jpg" class="nofancybox"><img src="url/to/thumbnail.jpg" /></a>`
147
 
148
 
149
- = Will a NextGen gallery be displayed in a FancyBox overlay ? =
150
 
151
- It *can* be.
152
 
153
- 1. Switch OFF the FancyBox Auto-gallery option; and
154
- 1. set the NextGen option "JavaScript Thumbnail effect" to "Custom"; and
155
- 1. fill the code line field with
156
  `
157
  class="fancybox" rel="%GALLERY_NAME%"
158
  `
159
-
160
 
161
  = Can I use ONE thumbnail to open a complete gallery ? =
162
 
@@ -186,15 +189,13 @@ General steps:
186
 
187
  **A.** Place the shortcode of your choice in your page/post content.
188
 
189
- **B.** Configure NextGen on **Gallery > Options > Gallery settings** to at least have the following options set like this:
190
 
191
  1. Number of images per page: 1
192
- 1. Integrate slideshow: unchecked (optional but advised: use auto-rotation in the FancyBox settings instead)
193
- 1. Show first: Thumbnails
194
- 1. Show ImageBrowser: unchecked
195
- 1. Add hidden images: checked
196
 
197
- **C.** Optional: add the following new CSS rule to your theme stylesheet (or install [Custom CSS](http://wordpress.org/extend/plugins/safecss/) and add it on the new Appearance > Edit CSS admin page) to hide the page browsing links below the gallery thumbnail.
198
  `
199
  .ngg-navigation {
200
  display:none;
@@ -238,7 +239,11 @@ If you do'nt have *Auto-detect* checked under **SWF** on Settings > Media admin
238
 
239
  = How do I show content with different sizes? =
240
 
241
- FancyBox tries to detect the size of the conten automatically but if it can not find a size, it will default to the settings for that particular content type as set on the Settings > Media page. You can manually override this by defining the width and height wrapped in curly brases in the class attribute of the link itself. For example, a Flash movie with different size:
 
 
 
 
242
 
243
  `
244
  <a class="fancybox-swf {width:1024,height:675}" href="link-to-your-swf"></a>
@@ -362,7 +367,8 @@ Yes. Designed to work with **Network Activate** and does not require manual acti
362
 
363
  = Plugin conflicts =
364
 
365
- - **All in One SEO Pack** with outbound link tracking enabled. Disable that feature.
 
366
  - **Better WP Security** randomly changes version numbers in linked file URLs, breaking the FancyBox stylesheet. Disable the option "Display random version number to all non-administrative users" in the Better WP Security settings.
367
  - By default **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
368
  - **Wordpress Firewall 2** blocks access to image files needed for porper display of the FancyBox overlay in older IE and other non-css3 browsers.
@@ -381,7 +387,7 @@ Yes. Designed to work with **Network Activate** and does not require manual acti
381
  z-index:999;
382
  }
383
  `
384
- - Most if not all **Elegant Themes** have FancyBox already integrated in a hard-coded way, making them incompatible with Easy FancyBox.
385
  - The **Mystique** theme has two option called "Lightbox" and "Optimize website for faster loading" that will break Easy FancyBox. Disable both in Mystique's options > Advanced.
386
  - **Imbalance** and other themes that uses the Photo Galleria jQuery extension: turn of the JSGallery option.
387
  - Themes like **Envisioned**, **Chameleon** and many others have FancyBox baked in. There is no solution other than stripping the theme of all FancyBox related code or disable the plugin and use the theme provided version...
@@ -450,11 +456,15 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
450
 
451
  == Upgrade Notice ==
452
 
453
- = 1.5.1 =
454
- jQuery 1.9+ compatibility plus Jetpack's Infinite Scroll support.
455
 
456
  == Changelog ==
457
 
 
 
 
 
458
  = 1.5.2 =
459
  * BUGFIX: easy_fancybox_handler() in combo with trigger('click') causes Uncaught Exception script error
460
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=1%2e3%2e4%2e9&no_shipping=0&tax=0&charset=UTF%2d8&currency_code=EUR
4
  Tags: fancybox, lightbox, gallery, image, photo, video, flash, nextgen, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, swf, jquery
5
  Requires at least: 3.3
6
+ Tested up to: 3.8
7
+ Stable tag: 1.5.5
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
42
 
43
  = Translators =
44
 
45
+ - **Czech** * Eldenroot (version 1.5.5)
46
  - **Dutch** * R.A. van Hagen http://status301.net (version 1.5.0)
47
+ - **French** * Emmanuel Maillard (version 1.5.5)
48
  - **Gujarati** * Apoto Team http://www.apoto.com (version 1.5.0)
49
  - **Hindi** * Outshine Solutions http://outshinesolutions.com (version 1.3.4.9)
50
+ - **Indonesian** * Nasrulhaq Muiz http://al-badar.net (version 1.5.5)
51
  - **Lithuanian** * Vincent G http://www.host1free.com (version 1.3.4.9)
52
  - **Polish** * Kamil Szymański (version 1.3.4.9)
53
  - **Romanian** * Web Geek Sciense http://webhostinggeeks.com/ (version 1.3.4.9)
57
  - **Turkish** * Hakan Er http://hakanertr.wordpress.com/ (version: 1.5.2)
58
  - **Ukrainian** * Cmd Software http://www.cmd-soft.com (version: 1.3.4.9)
59
 
60
+
61
  == Installation ==
62
 
63
  = Wordpress =
124
 
125
  = The lightbox does not look good on mobile devices. What can I do about that? =
126
 
127
+ The FancyBox 1.3.4 script that is used in this plugin was not developed with mobile devices in mind. The only way around this issue is currently to disable FancyBox for small screen sizes. You can do this by adding a text widget in your sidebar with the following code snippet.
128
 
129
  `
130
  <script type="text/javascript">
131
+ var pixelRatio = window.devicePixelRatio || 1;
132
+ if(window.innerWidth/pixelRatio < 641 ) {
133
+ easy_fancybox_handler = null;
134
  };
135
  </script>
136
  `
137
 
138
+ Tweak the value 641 to target other screen sizes.
139
 
140
  = Can I make a slideshow from my gallery? =
141
 
149
  `<a href="url/to/fullimg.jpg" class="nofancybox"><img src="url/to/thumbnail.jpg" /></a>`
150
 
151
 
152
+ = Can NextGEN Gallery work with Easy FancyBox ? =
153
 
154
+ NetxGEN has its own built in FancyBox version along with a choice of other lightbox scripts but if you prefer to use Easy FancyBox (because of better customisability) then you need to take some steps to make the two plugins compatible.
155
 
156
+ 1. Go to your Settings > Media admin page and switch OFF the FancyBox Auto-gallery option;
157
+ 1. Go to Gallery > Other Options and set the Lightbox Effects option to "No lightbox" and click on Show Advanced Settings;
158
+ 1. fill the Code field with
159
  `
160
  class="fancybox" rel="%GALLERY_NAME%"
161
  `
162
+ 1. Leave the other fields empty and save your settings.
163
 
164
  = Can I use ONE thumbnail to open a complete gallery ? =
165
 
189
 
190
  **A.** Place the shortcode of your choice in your page/post content.
191
 
192
+ **B.** Configure NextGen on **Gallery > Gallery Settings** to Display galleries as "NextGEN Basic Thumbnails" and then under the NextGEN Basic Thumbnails to at least have the following options set like this:
193
 
194
  1. Number of images per page: 1
195
+ 1. Use imagebrowser effect: No
196
+ 1. Add hidden images: Yes
 
 
197
 
198
+ **C.** Optional: add the following new CSS rule to your theme stylesheet (or install [Custom CSS](http://wordpress.org/plugins/safecss/) or [Jetpack](http://wordpress.org/plugins/jetpack/) and add it on the new Appearance > Edit CSS admin page) to hide the page browsing links below the gallery thumbnail.
199
  `
200
  .ngg-navigation {
201
  display:none;
239
 
240
  = How do I show content with different sizes? =
241
 
242
+ FancyBox tries to detect the size of the conten automatically but if it can not find a size, it will default to the settings for that particular content type as set on the Settings > Media page.
243
+
244
+ You can manually override this by defining the width and height wrapped in curly brases in the class attribute of the link itself. Make sure the option "Inlcude the Metadata jQuery extension script..." under FancyBox | Links on Settings > Media is enabled.
245
+
246
+ For example, a Flash movie with different size:
247
 
248
  `
249
  <a class="fancybox-swf {width:1024,height:675}" href="link-to-your-swf"></a>
367
 
368
  = Plugin conflicts =
369
 
370
+ - **jQuery Updater** moves jQuery to version 2+ wich is incompatible.
371
+ - **All in One SEO Pack** and **Analytics for WordPress** with outbound link tracking enabled. Disable that feature.
372
  - **Better WP Security** randomly changes version numbers in linked file URLs, breaking the FancyBox stylesheet. Disable the option "Display random version number to all non-administrative users" in the Better WP Security settings.
373
  - By default **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
374
  - **Wordpress Firewall 2** blocks access to image files needed for porper display of the FancyBox overlay in older IE and other non-css3 browsers.
387
  z-index:999;
388
  }
389
  `
390
+ - Older versions of **Elegant Themes** have FancyBox integrated in a hard-coded way, making them incompatible with Easy FancyBox. In the latest versions of these themes, there is an option to disable the included FancyBox. Use this option to make your theme compatible with Easy FancyBox :)
391
  - The **Mystique** theme has two option called "Lightbox" and "Optimize website for faster loading" that will break Easy FancyBox. Disable both in Mystique's options > Advanced.
392
  - **Imbalance** and other themes that uses the Photo Galleria jQuery extension: turn of the JSGallery option.
393
  - Themes like **Envisioned**, **Chameleon** and many others have FancyBox baked in. There is no solution other than stripping the theme of all FancyBox related code or disable the plugin and use the theme provided version...
456
 
457
  == Upgrade Notice ==
458
 
459
+ = 1.5.5 =
460
+ Mousewheel fix. New approach for IE alphaimageloader path fix with less compatibility issues.
461
 
462
  == Changelog ==
463
 
464
+ = 1.5.5 =
465
+ * Prevent mousewheel scrolling page in the background
466
+ * New stylesheet IE alphaimageloader path fix approach
467
+
468
  = 1.5.2 =
469
  * BUGFIX: easy_fancybox_handler() in combo with trigger('click') causes Uncaught Exception script error
470