Easy FancyBox - Version 1.3.4.9

Version Description

Metadata and image map support. Opening speed bugfix. New iFrame/HTML5 embed code for Youtube, Vimeo and Dailymotion. Frame color and opacity options. Media options simplification.

=

Download this release

Release Info

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

Code changes from version 1.5.6 to 1.3.4.9

Files changed (54) hide show
  1. easy-fancybox-admin.php +0 -0
  2. easy-fancybox-class.php +0 -644
  3. languages/easy-fancybox-es_ES.mo → easy-fancybox-es_ES.mo +0 -0
  4. easy-fancybox-fr_FR.mo +0 -0
  5. languages/easy-fancybox-hi_IN.mo → easy-fancybox-hi_IN.mo +0 -0
  6. easy-fancybox-id_ID.mo +0 -0
  7. languages/easy-fancybox-lt_LT.mo → easy-fancybox-lt_LT.mo +0 -0
  8. languages/easy-fancybox-pl_PL.mo → easy-fancybox-pl_PL.mo +0 -0
  9. languages/easy-fancybox.ro_RO.mo → easy-fancybox-ro_RO.mo +0 -0
  10. easy-fancybox-settings.php +561 -954
  11. easy-fancybox-tr_TR.mo +0 -0
  12. languages/easy-fancybox-ua_UA.mo → easy-fancybox-ua_UA.mo +0 -0
  13. easy-fancybox.css.php +33 -0
  14. easy-fancybox.php +446 -43
  15. languages/easy-fancybox_sk_SK.po → easy-fancybox.pot +89 -138
  16. languages/easy-fancybox_sk_SK.mo → easy-fancybox_sk_SK.mo +0 -0
  17. fancybox/jquery.easing-1.3.pack.js +72 -0
  18. fancybox/{jquery.fancybox-1.3.6.css → jquery.fancybox-1.3.4.css} +46 -26
  19. fancybox/{jquery.fancybox-1.3.6.js → jquery.fancybox-1.3.4.js} +47 -77
  20. fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  21. fancybox/jquery.fancybox-1.3.6.pack.css +0 -43
  22. fancybox/jquery.fancybox-1.3.6.pack.js +0 -25
  23. fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
  24. jquery.easing.js +0 -205
  25. jquery.easing.pack.js +0 -14
  26. jquery.metadata.pack.js +0 -21
  27. jquery.mousewheel.js +0 -117
  28. jquery.mousewheel.pack.js +0 -8
  29. languages/easy-fancybox-cs_CZ.mo +0 -0
  30. languages/easy-fancybox-cs_CZ.po +0 -1022
  31. languages/easy-fancybox-es_ES.po +0 -526
  32. languages/easy-fancybox-fa_IR.mo +0 -0
  33. languages/easy-fancybox-fa_IR.po +0 -1032
  34. languages/easy-fancybox-fr_FR.mo +0 -0
  35. languages/easy-fancybox-fr_FR.po +0 -856
  36. languages/easy-fancybox-hi_IN.po +0 -525
  37. languages/easy-fancybox-id_ID.mo +0 -0
  38. languages/easy-fancybox-id_ID.po +0 -980
  39. languages/easy-fancybox-lt_LT.po +0 -523
  40. languages/easy-fancybox-nl_NL.mo +0 -0
  41. languages/easy-fancybox-nl_NL.po +0 -1067
  42. languages/easy-fancybox-pl_PL.po +0 -526
  43. languages/easy-fancybox-ro_RO.po +0 -522
  44. languages/easy-fancybox-sr_RS.mo +0 -0
  45. languages/easy-fancybox-sr_RS.po +0 -1029
  46. languages/easy-fancybox-tr_TR.mo +0 -0
  47. languages/easy-fancybox-tr_TR.po +0 -1073
  48. languages/easy-fancybox-ua_UA.po +0 -560
  49. languages/easy-fancybox-xx_XX.po +0 -906
  50. languages/easy-fancybox.pot +0 -908
  51. languages/easy-fancybox_Gu_IN.mo +0 -0
  52. languages/easy-fancybox_Gu_IN.po +0 -983
  53. languages/instructions.txt +0 -28
  54. readme.txt +71 -215
easy-fancybox-admin.php DELETED
File without changes
easy-fancybox-class.php DELETED
@@ -1,644 +0,0 @@
1
- <?php
2
- /**
3
- * Easy FancyBox Class
4
- */
5
- class easyFancyBox {
6
-
7
- public static $pagehook;
8
-
9
- public static $add_scripts = false;
10
-
11
- public static $options = array();
12
-
13
-
14
- /**********************
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/) -->';
22
-
23
- // check for any enabled sections
24
- //if(!empty(self::$options['Global']['options']['Enable']['options']))
25
- foreach (self::$options['Global']['options']['Enable']['options'] as $value) {
26
- // anything enabled?
27
- if ( isset($value['id']) && '1' == get_option($value['id'],$value['default']) ) {
28
- self::$add_scripts = true;
29
- break;
30
- }
31
- }
32
- // and abort when none are active
33
- if (!self::$add_scripts) {
34
- echo '
35
- <!-- Nothing enabled under Settings > Media > FancyBox. -->
36
-
37
- ';
38
- return;
39
- }
40
-
41
- // begin output FancyBox settings
42
- echo '
43
- <script type="text/javascript">
44
- /* <![CDATA[ */
45
- var fb_timeout = null;';
46
-
47
- /*
48
- * Global settings routine
49
- */
50
- $more=0;
51
- echo '
52
- var fb_opts = {';
53
- foreach (self::$options['Global']['options'] as $globals) {
54
- foreach ($globals['options'] as $_key => $_value) {
55
- if ( isset($_value['id']) )
56
- if ( isset($_value['default']) )
57
- $parm = get_option($_value['id'], $_value['default']);
58
- else
59
- $parm = get_option($_value['id']);
60
- elseif ( isset($_value['default']) )
61
- $parm = $_value['default'];
62
- else
63
- $parm = '';
64
-
65
- if ( isset($_value['input']) && 'checkbox'==$_value['input'] )
66
- $parm = ( '1' == $parm ) ? 'true' : 'false';
67
-
68
- if( !isset($_value['hide']) && $parm!='' ) {
69
- $quote = (is_numeric($parm) || (isset($_value['noquotes']) && $_value['noquotes'] == true) ) ? '' : '\'';
70
- if ($more>0)
71
- echo ',';
72
- echo ' \''.$_key.'\' : ';
73
- echo $quote.$parm.$quote;
74
- $more++;
75
- } else {
76
- $$_key = $parm;
77
- }
78
- }
79
- }
80
- echo ' };
81
- var easy_fancybox_handler = function(){';
82
-
83
- foreach (self::$options as $key => $value) {
84
- // check if not enabled or hide=true then skip
85
- if ( isset($value['hide']) || !get_option(self::$options['Global']['options']['Enable']['options'][$key]['id'], self::$options['Global']['options']['Enable']['options'][$key]['default']) )
86
- continue;
87
-
88
- echo '
89
- /* ' . $key . ' */';
90
- /*
91
- * Auto-detection routines (2x)
92
- */
93
- $autoAttribute = (isset($value['options']['autoAttribute'])) ? get_option( $value['options']['autoAttribute']['id'], $value['options']['autoAttribute']['default'] ) : "";
94
- // update from previous version:
95
- if($attributeLimit == '.not(\':empty\')')
96
- $attributeLimit = ':not(:empty)';
97
- elseif($attributeLimit == '.has(\'img\')')
98
- $attributeLimit = ':has(img)';
99
-
100
- if(!empty($autoAttribute)) {
101
- if(is_numeric($autoAttribute)) {
102
- echo '
103
- jQuery(\'a['.$value['options']['autoAttribute']['selector'].']:not(.nofancybox)'.$attributeLimit.', area['.$value['options']['autoAttribute']['selector'].']:not(.nofancybox)'.$attributeLimit.'\')';
104
- //if ( isset($value['options']['autoAttribute']['href-replace']) )
105
- // echo '.attr(\'href\', function(index, attr){'.$value['options']['autoAttribute']['href-replace'].'})';
106
- echo '.addClass(\''.$value['options']['class']['default'].'\');';
107
- } else {
108
- // set selectors
109
- $file_types = array_filter( explode( ' ', str_replace( ',', ' ', $autoAttribute ) ) );
110
- $more=0;
111
- echo '
112
- var fb_'.$key.'_select = \'';
113
- foreach ($file_types as $type) {
114
- if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "gif")
115
- $type = '.'.$type;
116
- if ($more>0)
117
- echo ', ';
118
- echo 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)'.$attributeLimit.', area['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)'.$attributeLimit;
119
- $more++;
120
- }
121
- echo '\';';
122
-
123
- // class and rel depending on settings
124
- if( '1' == get_option($value['options']['autoAttributeLimit']['id'],$value['options']['autoAttributeLimit']['default']) ) {
125
- // add class
126
- echo '
127
- var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
128
- fb_'.$key.'_sections.each(function() { jQuery(this).find(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
129
- // and set rel
130
- switch( get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
131
- case '':
132
- default :
133
- echo '; });';
134
- break;
135
- case '1':
136
- echo '.attr(\'rel\', \'gallery-\' + fb_'.$key.'_sections.index(this)); });';
137
- break;
138
- case '2':
139
- echo '.attr(\'rel\', \'gallery\'); });';
140
- }
141
- } else {
142
- // add class
143
- echo '
144
- jQuery(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
145
- // set rel
146
- switch( get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
147
- case '':
148
- default :
149
- echo ';';
150
- break;
151
- case '1':
152
- echo ';
153
- var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
154
- fb_'.$key.'_sections.each(function() { jQuery(this).find(fb_'.$key.'_select).attr(\'rel\', \'gallery-\' + fb_'.$key.'_sections.index(this)); });';
155
- break;
156
- case '2':
157
- echo '.attr(\'rel\', \'gallery\');';
158
- }
159
- }
160
-
161
- }
162
- }
163
-
164
- $autoAttributeAlt = ( isset($value['options']['autoAttributeAlt']) ) ? get_option( $value['options']['autoAttributeAlt']['id'], $value['options']['autoAttributeAlt']['default'] ) : "";
165
- if(!empty($autoAttributeAlt) && is_numeric($autoAttributeAlt)) {
166
- echo '
167
- jQuery(\'a['.$value['options']['autoAttributeAlt']['selector'].']:not(.nofancybox)'.$attributeLimit.', area['.$value['options']['autoAttributeAlt']['selector'].']:not(.nofancybox)'.$attributeLimit.'\')';
168
- //if (!empty($value['options']['autoAttributeAlt']['href-replace']))
169
- // echo '.attr(\'href\', function(index, attr){'.$value['options']['autoAttributeAlt']['href-replace']. '})';
170
- echo '.addClass(\''.$value['options']['class']['default'].'\');';
171
- }
172
-
173
- /*
174
- * Generate .fancybox() bind
175
- */
176
- $trigger='';
177
- if( $key == $autoClick )
178
- $trigger = '.filter(\':first\').trigger(\'click\')';
179
-
180
- echo '
181
- jQuery(\'' . $value['options']['tag']['default']. '\')';
182
-
183
- // use each() to allow different metadata values per instance; fix by Elron. Thanks!
184
- if ( '1' == get_option(self::$options['Global']['options']['Links']['options']['metaData']['id'],self::$options['Global']['options']['Links']['options']['metaData']['default']) )
185
- echo '.each(function() { jQuery(this)';
186
-
187
- echo '.fancybox( jQuery.extend({}, fb_opts, {';
188
- $more=0;
189
- foreach ($value['options'] as $_key => $_value) {
190
- if (isset($_value['id']) || isset($_value['default']))
191
- $parm = (isset($_value['id']))? get_option($_value['id'], $_value['default']) : $_value['default'];
192
- else
193
- $parm = '';
194
-
195
- if( isset($_value['input']) && 'checkbox'==$_value['input'] )
196
- $parm = ( '1' == $parm ) ? 'true' : 'false';
197
-
198
- if( !isset($_value['hide']) && $parm!='' ) {
199
- $quote = (is_numeric($parm) || (isset($_value['noquotes']) && $_value['noquotes'] == true) ) ? '' : '\'';
200
- if ($more>0)
201
- echo ',';
202
- echo ' \''.$_key.'\' : ';
203
- echo $quote.$parm.$quote;
204
- $more++;
205
- }
206
- }
207
- echo ' }) ';
208
-
209
- // use each() to allow different metadata values per instance; fix by Elron. Thanks!
210
- if ( '1' == get_option(self::$options['Global']['options']['Links']['options']['metaData']['id'],self::$options['Global']['options']['Links']['options']['metaData']['default']) )
211
- echo ');} ';
212
-
213
- echo ')'.$trigger.';';
214
-
215
- }
216
-
217
- switch( $autoClick ) {
218
- case '':
219
- default :
220
- break;
221
- case '1':
222
- echo '
223
- /* Auto-click */
224
- jQuery(\'#fancybox-auto\').trigger(\'click\');';
225
- break;
226
- case '99':
227
- echo '
228
- /* Auto-load */
229
- jQuery(\'a[class*="fancybox"]\').filter(\':first\').trigger(\'click\');';
230
- break;
231
- }
232
- echo '
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
-
302
- /***********************
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']) )
310
- continue;
311
-
312
- switch($value['input']) {
313
- case 'deep':
314
- // go deeper by looping back on itself
315
- self::register_settings($value['options']);
316
- break;
317
- case 'multiple':
318
- add_settings_field( 'fancybox_'.$key, '<a name="'.$value['title'].'"></a>'.$value['title'], array(__CLASS__, 'settings_fields'), 'media', 'fancybox_section', $value);
319
- foreach ( $value['options'] as $_value ) {
320
- if ( !isset($_value['sanitize_callback']) )
321
- $sanitize_callback = '';
322
- else
323
- $sanitize_callback = array(__CLASS__, $_value['sanitize_callback']);
324
- if ( isset($_value['id']) )
325
- register_setting( 'media', $_value['id'], $sanitize_callback );
326
- }
327
- break;
328
- default:
329
- if ( !isset($value['sanitize_callback']) )
330
- $sanitize_callback = '';
331
- else
332
- $sanitize_callback = array(__CLASS__, $value['sanitize_callback']);
333
- if ( isset($value['id']) )
334
- register_setting( 'media', 'fancybox_'.$key, $sanitize_callback );
335
- }
336
- }
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']) {
349
- case 'multiple':
350
- case 'deep':
351
- foreach ($args['options'] as $options)
352
- self::settings_fields($options);
353
- if (isset($args['description'])) echo $args['description'];
354
- break;
355
- case 'select':
356
- if( !empty($args['label_for']) )
357
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
358
- else
359
- echo $args['title'];
360
- echo '
361
- <select name="'.$args['id'].'" id="'.$args['id'].'">';
362
- foreach ($args['options'] as $optionkey => $optionvalue) {
363
- $selected = (get_option($args['id'], $args['default']) == $optionkey) ? ' selected="selected"' : '';
364
- echo '
365
- <option value="'.esc_attr($optionkey).'"'.$selected.' '.$disabled.' >'.$optionvalue.'</option>';
366
- }
367
- echo '
368
- </select> ';
369
- if( empty($args['label_for']) )
370
- echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
371
- else
372
- if (isset($args['description'])) echo $args['description'];
373
- break;
374
- case 'checkbox':
375
- if( !empty($args['label_for']) )
376
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
377
- else
378
- if (isset($args['title'])) echo $args['title'];
379
- $value = esc_attr( get_option($args['id'], $args['default']) );
380
- if ($value == "1")
381
- $checked = ' checked="checked"';
382
- else
383
- $checked = '';
384
- if ($args['default'] == "1")
385
- $default = __('Checked','easy-fancybox');
386
- else
387
- $default = __('Unchecked','easy-fancybox');
388
- if( empty($args['label_for']) )
389
- echo '
390
- <label><input type="checkbox" name="'.$args['id'].'" id="'.$args['id'].'" value="1" '.$checked.' '.$disabled.' /> '.$args['description'].'</label><br />';
391
- else
392
- echo '
393
- <input type="checkbox" name="'.$args['id'].'" id="'.$args['id'].'" value="1" '.$checked.' '.$disabled.' /> '.$args['description'].'<br />';
394
- break;
395
- case 'text':
396
- if( !empty($args['label_for']) )
397
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
398
- else
399
- echo $args['title'];
400
- echo '
401
- <input type="text" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" class="'.$args['class'].'"'.$disabled.' /> ';
402
- if( empty($args['label_for']) )
403
- echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
404
- else
405
- if (isset($args['description'])) echo $args['description'];
406
- break;
407
- case 'number':
408
- if( !empty($args['label_for']) )
409
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
410
- else
411
- echo $args['title'];
412
- echo '
413
- <input type="number" step="'.$args['step'].'" min="'.$args['min'].'" max="'.$args['max'].'" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" class="'.$args['class'].'"'.$disabled.' /> ';
414
- if( empty($args['label_for']) )
415
- echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
416
- else
417
- if (isset($args['description'])) echo $args['description'];
418
- break;
419
- case 'hidden':
420
- echo '
421
- <input type="hidden" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" /> ';
422
- break;
423
- default:
424
- if (isset($args['description'])) echo $args['description'];
425
- }
426
- else
427
- if (isset($args['description'])) echo $args['description'];
428
- }
429
-
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
-
443
- if (substr($setting, -1) == '%') {
444
- $val = intval(substr($setting, 0, -1));
445
- $prc = '%';
446
- } else {
447
- $val = intval($setting);
448
- $prc = '';
449
- }
450
-
451
- return ( $val != 0 ) ? $val.$prc : 0;
452
- }
453
-
454
-
455
- /***********************
456
- ACTIONS & FILTERS
457
- ***********************/
458
-
459
- public static function register_scripts() {
460
-
461
- if ( !is_admin() ) {
462
- // ENQUEUE
463
- // first get rid of previously registered variants of jquery.fancybox by other plugins or theme
464
- wp_deregister_script('fancybox');
465
- wp_deregister_script('jquery.fancybox');
466
- wp_deregister_script('jquery_fancybox');
467
- wp_deregister_script('jquery-fancybox');
468
- // register main fancybox script
469
- wp_register_script('jquery-fancybox', EASY_FANCYBOX_PLUGINURL.'fancybox/jquery.fancybox-'.FANCYBOX_VERSION.'.pack.js', array('jquery'), EASY_FANCYBOX_VERSION, true);
470
-
471
- // easing in IMG settings?
472
- if ( ( '' == get_option( self::$options['IMG']['options']['easingIn']['id'], self::$options['IMG']['options']['easingIn']['default']) || 'linear' == get_option( self::$options['IMG']['options']['easingIn']['id'], self::$options['IMG']['options']['easingIn']['default']) ) && ( '' == get_option( self::$options['IMG']['options']['easingOut']['id'], self::$options['IMG']['options']['easingOut']['default']) || 'linear' == get_option( self::$options['IMG']['options']['easingOut']['id'], self::$options['IMG']['options']['easingOut']['default']) ) ) {
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
-
505
- wp_enqueue_script('jquery-fancybox');
506
- wp_enqueue_script('jquery-easing');
507
- wp_enqueue_script('jquery-mousewheel');
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
-
515
- // 'gform_post_render' for gForms content triggers an error... Why?
516
- // 'post-load' is for Infinite Scroll by JetPack
517
- echo '
518
- <script type="text/javascript">
519
- jQuery(document).on(\'ready post-load\', easy_fancybox_handler );
520
- </script>
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 ) {
545
- $html = str_replace('feature=oembed', 'feature=oembed&wmode=opaque', $html);
546
- } elseif ( strpos($html, "vimeo" ) !== false && strpos($html, 'wmode' ) == false ) {
547
- $html = str_replace('" width', '?theme=none&wmode=opaque" width', $html);
548
- } elseif ( strpos($html, "dailymotion" ) !== false && strpos($html, 'wmode' ) == false ) {
549
- $html = str_replace('" width', '?wmode=opaque" width', $html);
550
- }
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
- }
564
- }
565
- /**********************
566
- ADMIN
567
- **********************/
568
-
569
- public static function add_menu() {
570
- /* Register our plugin page */
571
- self::$pagehook = add_submenu_page( 'themes.php', __('Easy FancyBox Settings', 'easy-fancybox'), __('FancyBox', 'easy-fancybox'), 'manage_options', 'easy-fancybox', array(__CLASS__, 'admin') );
572
- /* Using registered $page handle to hook script load */
573
- add_action('load-' . self::$pagehook, array(__CLASS__, 'admin_scripts'));
574
- }
575
-
576
- public static function admin() {
577
-
578
- add_filter( 'get_user_option_closedpostboxes_'.self::$pagehook, array(__CLASS__, 'closed_meta_boxes') );
579
-
580
- add_meta_box('submitdiv', __('Sections','easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_submit'), self::$pagehook, 'side', 'high');
581
- add_meta_box('globaldiv', __('Global settings', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_global'), self::$pagehook, 'normal', 'high');
582
- add_meta_box('imgdiv', __('Images', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_img'), self::$pagehook, 'normal', 'normal');
583
- add_meta_box('inlinediv', __('Inline content', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_inline'), self::$pagehook, 'normal', 'normal');
584
- add_meta_box('pdfdiv', __('PDF', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_pdf'), self::$pagehook, 'normal', 'normal');
585
- add_meta_box('swfdiv', __('SWF', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_swf'), self::$pagehook, 'normal', 'normal');
586
- add_meta_box('youtubediv', __('YouTube', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_youtube'), self::$pagehook, 'normal', 'normal');
587
- add_meta_box('vimeodiv', __('Vimeo', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_vimeo'), self::$pagehook, 'normal', 'normal');
588
- add_meta_box('dailymotiondiv', __('Dailymotion', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_dailymotion'), self::$pagehook, 'normal', 'normal');
589
- add_meta_box('iframediv', __('iFrames', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_iframe'), self::$pagehook, 'normal', 'normal');
590
-
591
- //load admin page
592
- include(EASY_FANCYBOX_PLUGINDIR . '/easy-fancybox-admin.php');
593
- }
594
-
595
- public function closed_meta_boxes( $closed ) {
596
-
597
- if ( false === $closed )
598
- // set default closed metaboxes
599
- $closed = array( 'advanceddiv', 'supportdiv', 'creditsdiv', 'resourcesdiv' );
600
- else
601
- // remove closed setting of some metaboxes
602
- $closed = array_diff ( $closed , array ( 'submitdiv' ) );
603
-
604
- return $closed;
605
- }
606
-
607
- public static function admin_scripts($hook) {
608
-
609
- // needed javascripts to allow drag/drop, expand/collapse and hide/show of boxes
610
- wp_enqueue_script('common');
611
- wp_enqueue_script('wp-list');
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
- }
623
-
624
- /**********************
625
- RUN
626
- **********************/
627
-
628
- static function run() {
629
-
630
- // HOOKS //
631
- add_action('plugins_loaded', array(__CLASS__, 'textdomain'));
632
-
633
- add_action('admin_init', array(__CLASS__, 'admin_init'));
634
-
635
- add_action('init', array(__CLASS__, 'init'));
636
- add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_styles'), 999);
637
- add_action('wp_head', array(__CLASS__, 'main_script'), 999);
638
- add_action('wp_print_scripts', array(__CLASS__, 'register_scripts'), 999);
639
- add_action('wp_footer', array(__CLASS__, 'enqueue_footer_scripts'));
640
- add_action('wp_footer', array(__CLASS__, 'on_ready'), 999);
641
- }
642
-
643
- }
644
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/easy-fancybox-es_ES.mo → easy-fancybox-es_ES.mo RENAMED
File without changes
easy-fancybox-fr_FR.mo ADDED
Binary file
languages/easy-fancybox-hi_IN.mo → easy-fancybox-hi_IN.mo RENAMED
File without changes
easy-fancybox-id_ID.mo ADDED
Binary file
languages/easy-fancybox-lt_LT.mo → easy-fancybox-lt_LT.mo RENAMED
File without changes
languages/easy-fancybox-pl_PL.mo → easy-fancybox-pl_PL.mo RENAMED
File without changes
languages/easy-fancybox.ro_RO.mo → easy-fancybox-ro_RO.mo RENAMED
File without changes
easy-fancybox-settings.php CHANGED
@@ -1,37 +1,27 @@
1
  <?php
2
- class easyFancyBox_Options extends easyFancyBox {
3
-
4
- static function go() {
5
-
6
- parent::$options = array (
7
 
 
8
  'Global' => array(
9
  'title' => __('Global settings','easy-fancybox'),
10
  'input' => 'deep',
11
  'hide' => true,
12
  'options' => array(
 
 
 
 
13
  'Enable' => array (
14
- 'title' => __('Media','easy-fancybox'),
15
  'input' => 'multiple',
16
  'hide' => true,
17
  'options' => array(
18
- 'p1' => array (
19
- 'hide' => true,
20
- 'description' => __('Enable FancyBox for','easy-fancybox') . '<br />'
21
- ),
22
  'IMG' => array (
23
  'id' => 'fancybox_enableImg',
24
  'input' => 'checkbox',
25
  'hide' => true,
26
- 'default' => ( function_exists('is_plugin_active_for_network') && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) ? '' : '1',
27
- 'description' => '<strong>' . __('Images','easy-fancybox') . '</strong>'
28
- ),
29
- 'Inline' => array (
30
- 'id' => 'fancybox_enableInline',
31
- 'input' => 'checkbox',
32
- 'hide' => true,
33
- 'default' => '',
34
- 'description' => '<strong>' . __('Inline content','easy-fancybox') . '</strong>'
35
  ),
36
  'PDF' => array (
37
  'id' => 'fancybox_enablePDF',
@@ -47,13 +37,6 @@ class easyFancyBox_Options extends easyFancyBox {
47
  'default' => '',
48
  'description' => '<strong>' . __('SWF','easy-fancybox') . '</strong>'
49
  ),
50
- 'SVG' => array (
51
- 'id' => 'fancybox_enableSVG',
52
- 'input' => 'checkbox',
53
- 'hide' => true,
54
- 'default' => '',
55
- 'description' => '<strong>' . __('SVG','easy-fancybox') . '</strong>'
56
- ),
57
  'YouTube' => array (
58
  'id' => 'fancybox_enableYoutube',
59
  'input' => 'checkbox',
@@ -82,14 +65,17 @@ class easyFancyBox_Options extends easyFancyBox {
82
  'default' => '',
83
  'description' => '<strong>' . __('iFrames','easy-fancybox') . '</strong>'
84
  )
85
- ),
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(
 
 
 
 
93
  'attributeLimit' => array (
94
  'id' => 'fancybox_attributeLimit',
95
  'title' => __('Exclude','easy-fancybox'),
@@ -97,7 +83,7 @@ class easyFancyBox_Options extends easyFancyBox {
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
  ),
@@ -106,23 +92,24 @@ class easyFancyBox_Options extends easyFancyBox {
106
  ),
107
  'autoClick' => array (
108
  'id' => 'fancybox_autoClick',
109
- 'title' => __('Open on page load','easy-fancybox'),
110
  'label_for' => 'fancybox_autoClick',
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',
118
- 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
119
- ),
120
- 'metaData' => array (
121
- 'id' => 'fancybox_metaData',
122
- 'hide' => true,
123
- 'input' => 'checkbox',
124
- 'default' => '',
125
- 'description' => __('Include the Metadata jQuery extension script to allow passing custom parameters via link class.','easy-fancybox')
126
  )
127
  )
128
  ),
@@ -134,25 +121,21 @@ class easyFancyBox_Options extends easyFancyBox {
134
  'overlayShow' => array (
135
  'id' => 'fancybox_overlayShow',
136
  'input' => 'checkbox',
137
- 'noquotes' => true,
138
  'default' => '1',
139
  'description' => __('Show the overlay around content opened in FancyBox.','easy-fancybox')
140
  ),
141
- 'hideOnOverlayClick' => array (
142
- 'id' => 'fancybox_hideOnOverlayClick',
143
  'input' => 'checkbox',
144
- 'noquotes' => true,
145
- 'default' => '1',
146
- 'description' => __('Close FancyBox when overlay is clicked.','easy-fancybox')
147
  ),
148
  'overlayOpacity' => array (
149
  'id' => 'fancybox_overlayOpacity',
150
  'title' => __('Opacity','easy-fancybox'),
151
  'label_for' => 'fancybox_overlayOpacity',
152
- 'input' => 'number',
153
- 'step' => '0.1',
154
- 'min' => '0',
155
- 'max' => '1',
156
  'class' => 'small-text',
157
  'default' => '',
158
  'description' => __('Value between 0 and 1. ','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 0.7</em><br />'
@@ -165,17 +148,10 @@ class easyFancyBox_Options extends easyFancyBox {
165
  'class' => 'small-text',
166
  'default' => '',
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',
174
- 'default' => '',
175
- 'description' => __('Spotlight effect','easy-fancybox') //. '. <em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
176
  )
177
  )
178
  ),
 
179
  'Window' => array (
180
  'title' => __('Window','easy-fancybox'),
181
  'input' => 'multiple',
@@ -183,21 +159,44 @@ class easyFancyBox_Options extends easyFancyBox {
183
  'options' => array(
184
  'p1' => array (
185
  'hide' => true,
186
- 'description' => '<strong>' . __('Appearance','easy-fancybox') . '</strong><br />'
187
  ),
188
- 'showCloseButton' => array (
189
- 'id' => 'fancybox_showCloseButton',
190
- 'input' => 'checkbox',
191
- 'noquotes' => true,
192
- 'default' => '1',
193
- 'description' => __('Show the (X) close button','easy-fancybox')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  ),
195
  'backgroundColor' => array (
196
  'id' => 'fancybox_backgroundColor',
197
  'hide' => true,
198
- 'title' => __('Background color','easy-fancybox'),
 
199
  'input' => 'text',
200
- 'status' => 'disabled',
201
  'class' => 'small-text',
202
  'default' => '',
203
  'description' => ''
@@ -205,9 +204,9 @@ class easyFancyBox_Options extends easyFancyBox {
205
  'paddingColor' => array (
206
  'id' => 'fancybox_paddingColor',
207
  'hide' => true,
208
- 'title' => __('Border color','easy-fancybox'),
 
209
  'input' => 'text',
210
- 'status' => 'disabled',
211
  'class' => 'small-text',
212
  'default' => '',
213
  'description' => ''
@@ -215,111 +214,54 @@ class easyFancyBox_Options extends easyFancyBox {
215
  'textColor' => array (
216
  'id' => 'fancybox_textColor',
217
  'hide' => true,
218
- 'title' => __('Text color','easy-fancybox'),
 
219
  'input' => 'text',
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',
227
  'hide' => true,
228
  'title' => __('Opacity','easy-fancybox'),
229
- 'input' => 'number',
230
- 'step' => '0.1',
231
- 'min' => '0',
232
- 'max' => '1',
233
- 'status' => 'disabled',
234
- 'class' => 'small-text',
235
- 'default' => '',
236
- 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
237
- ),
238
- 'borderRadius' => array (
239
- 'id' => 'fancybox_borderRadius',
240
- 'hide' => true,
241
- 'title' => __('Border radius','easy-fancybox'),
242
- 'input' => 'number',
243
- 'step' => '1',
244
- 'min' => '0',
245
- 'max' => '99',
246
- 'status' => 'disabled',
247
- 'class' => 'small-text',
248
- 'default' => '',
249
- 'description' => __('Set a border radius to create rounded corners. Higher is rounder.','easy-fancybox') . ' <em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
250
- ),
251
-
252
- 'p11' => array (
253
- 'hide' => true,
254
- 'description' => '<br /><strong>' . __('Dimensions','easy-fancybox') . '</strong><br />'
255
- ),
256
- 'width' => array (
257
- 'id' => 'fancybox_width',
258
- 'title' => translate('Width'),
259
- 'label_for' => 'fancybox_width',
260
- 'input' => 'text',
261
- 'sanitize_callback' => 'intval',
262
- 'class' => 'small-text',
263
- 'default' => '',
264
- 'description' => ' '
265
- ),
266
- 'height' => array (
267
- 'id' => 'fancybox_height',
268
- 'title' => translate('Height'),
269
- 'label_for' => 'fancybox_height',
270
  'input' => 'text',
271
- 'sanitize_callback' => 'intval',
272
- 'class' => 'small-text',
273
- 'default' => ''
274
- ),
275
- 'padding' => array (
276
- 'id' => 'fancybox_padding',
277
- 'title' => translate('Border'),
278
- 'label_for' => 'fancybox_padding',
279
- 'input' => 'number',
280
- 'step' => '1',
281
- 'min' => '0',
282
- 'max' => '100',
283
- 'sanitize_callback' => 'intval',
284
  'class' => 'small-text',
285
  'default' => '',
286
- 'description' => '<em>' . __('Default:','easy-fancybox') . ' 560 x 340 x 10</em><br />' . __('If content size is not set or cannot be determined automatically, these default dimensions will be used.','easy-fancybox') . '<br />'
287
  ),
288
-
289
- 'p2' => array (
290
  'hide' => true,
291
  'description' => '<br /><strong>' . __('Behavior','easy-fancybox') . '</strong><br />'
292
  ),
293
  'centerOnScroll' => array (
294
  'id' => 'fancybox_centerOnScroll',
295
  'input' => 'checkbox',
296
- 'noquotes' => true,
297
  'default' => '1',
298
  'description' => __('Center while scrolling','easy-fancybox')
299
  ),
300
- 'enableEscapeButton' => array (
301
- 'id' => 'fancybox_enableEscapeButton',
302
  'input' => 'checkbox',
303
- 'noquotes' => true,
304
  'default' => '1',
305
- 'description' => __('Esc key stroke closes FancyBox','easy-fancybox')
306
  ),
307
- 'autoScale' => array (
308
- 'id' => 'fancybox_autoScale',
309
  'input' => 'checkbox',
310
- 'noquotes' => true,
311
  'default' => '1',
312
- 'description' => __('Scale large content down to fit in the browser viewport.','easy-fancybox')
 
 
 
 
313
  ),
314
  'speedIn' => array (
315
  'id' => 'fancybox_speedIn',
316
  'title' => __('Opening speed','easy-fancybox'),
317
  'label_for' => 'fancybox_speedIn',
318
- 'input' => 'number',
319
- 'step' => '1',
320
- 'min' => '0',
321
- 'max' => '6000',
322
- 'sanitize_callback' => 'intval',
323
  'class' => 'small-text',
324
  'default' => '',
325
  ),
@@ -327,100 +269,118 @@ class easyFancyBox_Options extends easyFancyBox {
327
  'id' => 'fancybox_speedOut',
328
  'title' => __('Closing speed','easy-fancybox'),
329
  'label_for' => 'fancybox_speedOut',
330
- 'input' => 'number',
331
- 'step' => '1',
332
- 'min' => '0',
333
- 'max' => '6000',
334
- 'sanitize_callback' => 'intval',
 
 
 
 
335
  'class' => 'small-text',
336
  'default' => '',
337
  'description' => '<br />' . __('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 300</em><br />'
338
  ),
339
- 'bgColor' => array (
340
- 'id' => 'fancybox_backgroundColor',
341
  'hide' => true,
342
- 'input' => 'hidden',
343
- 'default' => '#fff',
344
  ),
345
- 'pColor' => array (
346
- 'id' => 'fancybox_paddingColor',
347
- 'hide' => true,
348
- 'input' => 'hidden',
349
- 'default' => '#fff'
350
- ),
351
- 'tColor' => array (
352
- 'id' => 'fancybox_textColor',
353
- 'hide' => true,
354
- 'input' => 'hidden',
355
- 'default' => 'inherit'
 
 
 
 
 
356
  ),
357
- 'fOpacity' => array (
358
- 'id' => 'fancybox_frameOpacity',
359
- 'hide' => true,
360
- 'input' => 'hidden',
361
- 'default' => '1.0'
362
  )
363
  )
364
  )
365
 
366
  )
367
  ),
368
-
369
  'IMG' => array(
370
- 'title' => __('Images','easy-fancybox'),
371
  'input' => 'multiple',
372
  'options' => array(
373
  'intro' => array (
374
- 'hide' => true,
375
- 'description' => __('To make images open in an overlay, add their extension to the Autodetect field or use the class "fancybox" for its link. Clear field to switch off all autodetection.','easy-fancybox') . '<br />'
376
- ),
377
- 'tag' => array (
378
- 'hide' => true,
379
- 'default' => 'a.fancybox, area.fancybox, li.fancybox a:not(li.nofancybox a)'
380
  ),
381
- 'class' => array (
382
- 'hide' => true,
383
- 'default' => 'fancybox'
384
- ),
385
- /* 'type' => array (
386
- 'default' => 'image'
387
- ),*/
388
  'autoAttribute' => array (
389
- 'id' => 'fancybox_autoAttribute',
390
- 'title' => __('Autodetect','easy-fancybox'),
391
- 'label_for' => 'fancybox_autoAttribute',
392
- 'input' => 'text',
393
- 'class' => 'regular-text',
394
- 'hide' => true,
395
- 'default' => '.jpg .jpeg .png',
396
- 'selector' => 'href*=',
397
- 'description' => ' <em>' . __('Example:','easy-fancybox') . ' .jpg .jpeg .png .gif</em><br />'
398
  ),
399
  'autoAttributeLimit' => array (
400
- 'id' => 'fancybox_autoAttributeLimit',
401
- 'title' => __('Apply to','easy-fancybox'),
402
- 'label_for' => 'fancybox_autoAttributeLimit',
403
- 'hide' => true,
404
- 'input' => 'select',
405
- 'options' => array(
406
- '' => __('All image links', 'easy-fancybox')
407
- ),
408
- 'default' => '',
409
- 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
 
410
  ),
411
- 'p2' => array (
412
- 'hide' => true,
413
- 'description' => '<br /><strong>' . __('Behavior','easy-fancybox') . '</strong><br />'
 
 
 
 
 
 
 
 
 
 
414
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
  'transitionIn' => array (
416
  'id' => 'fancybox_transitionIn',
417
  'title' => __('Transition In','easy-fancybox'),
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
  ),
425
  'default' => 'elastic',
426
  'description' => ' '
@@ -433,11 +393,12 @@ class easyFancyBox_Options extends easyFancyBox {
433
  'options' => array(
434
  'linear' => __('Linear','easy-fancybox'),
435
  '' => __('Swing','easy-fancybox'),
436
- 'easeInBack' => __('easeInBack','easy-fancybox'),
437
- 'easeOutBack' => __('easeOutBack','easy-fancybox')
 
438
  ),
439
  'default' => 'easeOutBack',
440
- 'description' => ' <em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
441
  ),
442
  'transitionOut' => array (
443
  'id' => 'fancybox_transitionOut',
@@ -445,9 +406,9 @@ class easyFancyBox_Options extends easyFancyBox {
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
  ),
452
  'default' => 'elastic',
453
  'description' => ' '
@@ -460,34 +421,22 @@ class easyFancyBox_Options extends easyFancyBox {
460
  'options' => array(
461
  'linear' => __('Linear','easy-fancybox'),
462
  '' => __('Swing','easy-fancybox'),
463
- 'easeInBack' => __('easeInBack','easy-fancybox'),
464
- 'easeOutBack' => __('easeOutBack','easy-fancybox')
 
465
  ),
466
  'default' => 'easeInBack',
467
- 'description' => ' <em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
468
  ),
469
  'opacity' => array (
470
  'id' => 'fancybox_opacity',
471
  'input' => 'checkbox',
472
- 'noquotes' => true,
473
- 'default' => '',
474
- 'description' => __('Transparency fade during elastic transition. CAUTION: Use only when at least Transition In is set to Elastic!','easy-fancybox')
475
- ),
476
- 'hideOnContentClick' => array (
477
- 'id' => 'fancybox_hideOnContentClick',
478
- 'input' => 'checkbox',
479
- 'noquotes' => true,
480
  'default' => '',
481
- 'description' => __('Close FancyBox when content is clicked','easy-fancybox')
482
- ),
483
- 'p1' => array (
484
- 'hide' => true,
485
- 'description' => '<br /><strong>' . __('Appearance','easy-fancybox') . '</strong><br />'
486
  ),
487
  'titleShow' => array (
488
  'id' => 'fancybox_titleShow',
489
  'input' => 'checkbox',
490
- 'noquotes' => true,
491
  'default' => '1',
492
  'description' => __('Show title','easy-fancybox')
493
  ),
@@ -497,7 +446,7 @@ class easyFancyBox_Options extends easyFancyBox {
497
  'label_for' => 'fancybox_titlePosition',
498
  'input' => 'select',
499
  'options' => array(
500
- '' => __('Float','easy-fancybox'),
501
  'outside' => __('Outside','easy-fancybox'),
502
  'inside' => __('Inside','easy-fancybox'),
503
  'over' => __('Overlay','easy-fancybox')
@@ -508,111 +457,10 @@ class easyFancyBox_Options extends easyFancyBox {
508
  'titleFromAlt' => array (
509
  'id' => 'fancybox_titleFromAlt',
510
  'input' => 'checkbox',
511
- 'noquotes' => true,
512
  'default' => '1',
513
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
514
  ),
515
- 'onStart' => array (
516
- 'id' => '',
517
- 'title' => __('Advanced','easy-fancybox'),
518
- 'input' => 'select',
519
- 'status' => 'disabled',
520
- 'options' => array(
521
- '' => __('Hide/show title on mouse hover action','easy-fancybox')
522
- ),
523
- 'default' => '',
524
- 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
525
- ),
526
- 'p3' => array (
527
- 'hide' => true,
528
- 'description' => '<br /><strong>' . __('Gallery','easy-fancybox') . '</strong><br />'
529
- ),
530
- 'autoGallery' => array (
531
- 'id' => 'fancybox_autoGallery',
532
- 'title' => __('Autogallery','easy-fancybox'),
533
- 'label_for' => 'fancybox_autoGallery',
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
- ),
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',
546
- 'input' => 'checkbox',
547
- 'noquotes' => true,
548
- 'default' => '1',
549
- 'description' => __('Show the gallery navigation arrows','easy-fancybox')
550
- ),
551
- 'enableKeyboardNav' => array (
552
- 'id' => 'fancybox_enableKeyboardNav',
553
- 'input' => 'checkbox',
554
- 'noquotes' => true,
555
- 'default' => '1',
556
- 'description' => __('Arrow key strokes browse the gallery','easy-fancybox')
557
- ),
558
- 'mouseWheel' => array (
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 (
566
- 'id' => 'fancybox_cyclic',
567
- 'input' => 'checkbox',
568
- 'noquotes' => true,
569
- 'default' => '',
570
- 'description' => __('Make galleries cyclic, allowing you to keep pressing next/back.','easy-fancybox')
571
- ),
572
- 'changeSpeed' => array (
573
- 'id' => 'fancybox_changeSpeed',
574
- 'title' => __('Change speed','easy-fancybox'),
575
- 'label_for' => 'fancybox_changeSpeed',
576
- 'input' => 'number',
577
- 'step' => '1',
578
- 'min' => '0',
579
- 'max' => '6000',
580
- 'sanitize_callback' => 'intval',
581
- 'class' => 'small-text',
582
- 'default' => '',
583
- ),
584
- 'changeFade' => array (
585
- 'id' => 'fancybox_changeFade',
586
- 'title' => __('Fade speed','easy-fancybox'),
587
- 'label_for' => 'fancybox_changeFade',
588
- 'input' => 'number',
589
- 'step' => '1',
590
- 'min' => '0',
591
- 'max' => '6000',
592
- 'sanitize_callback' => 'intval',
593
- 'class' => 'small-text',
594
- 'default' => '',
595
- 'description' => '<br />' . __('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 300</em><br /><br />'
596
- ),
597
- 'autoSelector' => array (
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' => '',
606
- 'title' => __('Advanced','easy-fancybox'),
607
- 'input' => 'select',
608
- 'status' => 'disabled',
609
- 'options' => array(
610
- '' => __('Slideshow','easy-fancybox')
611
- ),
612
- 'default' => '',
613
- 'description' => '<em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
614
- ),
615
- /* 'titleFormat' => array (
616
  'id' => 'fancybox_titleFormat',
617
  'title' => __('Title format','easy-fancybox'),
618
  'label_for' => 'fancybox_titleFormat',
@@ -626,115 +474,13 @@ class easyFancyBox_Options extends easyFancyBox {
626
  'default' => '',
627
  'description' => '<br />' . __('To improve Lightbox2 style disable Show close button and set titleposition to Inside or Outside','easy-fancybox') . '<br />'
628
  ),*/
629
- )
630
- ),
631
-
632
- 'Inline' => array(
633
- 'title' => __('Inline content','easy-fancybox'),
634
- 'input' => 'multiple',
635
- 'options' => array(
636
- 'intro' => array (
637
- 'hide' => true,
638
- 'description' => __('To make inline content open in an overlay, wrap that content in a div with a unique ID, create a link with target "#uniqueID" and give it a class "fancybox-inline" attribute.','easy-fancybox') . '<br /><br />'
639
- ),
640
  'tag' => array (
641
- 'hide' => true,
642
- 'default' => 'a.fancybox-inline, area.fancybox-inline, li.fancybox-inline a:not(li.nofancybox-inline a)'
643
  ),
644
  'class' => array (
645
- 'hide' => true,
646
- 'default' => 'fancybox-inline'
647
- ),
648
- 'type' => array (
649
- 'default' => 'inline'
650
- ),
651
- 'autoDimensions' => array (
652
- 'id' => 'fancybox_autoDimensions',
653
- 'input' => 'checkbox',
654
- 'noquotes' => true,
655
- 'default' => '1',
656
- 'description' => __('Try to adjust size to inline/html content. If unchecked or size cannot be determined, the default dimensions will be used.','easy-fancybox') . ''
657
- ),
658
- 'scrolling' => array (
659
- 'id' => 'fancybox_InlineScrolling',
660
- 'title' => __('Scrolling','easy-fancybox'),
661
- 'label_for' => 'fancybox_InlineScrolling',
662
- 'input' => 'select',
663
- 'options' => array(
664
- 'auto' => __('Auto','easy-fancybox'),
665
- 'yes' => __('Always','easy-fancybox'),
666
- 'no' => __('Never','easy-fancybox')
667
- ),
668
- 'default' => 'no',
669
- 'description' => __('Define scrolling and scrollbar visibility.','easy-fancybox') . '<br /><br />'
670
- ),
671
- 'transitionIn' => array (
672
- 'id' => 'fancybox_transitionInInline',
673
- 'title' => __('Transition In','easy-fancybox'),
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
- ),
681
- 'default' => '',
682
- 'description' => ' '
683
- ),
684
- 'easingIn' => array (
685
- 'id' => 'fancybox_easingInInline',
686
- 'title' => __('Easing In','easy-fancybox'),
687
- 'label_for' => 'fancybox_easingInInline',
688
- 'input' => 'select',
689
- 'options' => array(
690
- 'linear' => __('Linear','easy-fancybox'),
691
- '' => __('Swing','easy-fancybox'),
692
- 'easeInBack' => __('easeInBack','easy-fancybox'),
693
- 'easeOutBack' => __('easeOutBack','easy-fancybox')
694
- ),
695
- 'default' => 'easeOutBack',
696
- 'description' => ' <em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
697
- ),
698
- 'transitionOut' => array (
699
- 'id' => 'fancybox_transitionOutInline',
700
- 'title' => __('Transition Out','easy-fancybox'),
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
- ),
708
- 'default' => '',
709
- 'description' => ' '
710
- ),
711
- 'easingOut' => array (
712
- 'id' => 'fancybox_easingOutInline',
713
- 'title' => __('Easing Out','easy-fancybox'),
714
- 'label_for' => 'fancybox_easingOutInline',
715
- 'input' => 'select',
716
- 'options' => array(
717
- 'linear' => __('Linear','easy-fancybox'),
718
- '' => __('Swing','easy-fancybox'),
719
- 'easeInBack' => __('easeInBack','easy-fancybox'),
720
- 'easeOutBack' => __('easeOutBack','easy-fancybox')
721
- ),
722
- 'default' => 'easeInBack',
723
- 'description' => ' <em><a href="http://status301.net/wordpress-plugins/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
724
- ),
725
- 'opacity' => array (
726
- 'id' => 'fancybox_opacityInline',
727
- 'input' => 'checkbox',
728
- 'noquotes' => true,
729
- 'default' => '',
730
- 'description' => __('Transparency fade during elastic transition. CAUTION: Use only when at least Transition In is set to Elastic!','easy-fancybox')
731
- ),
732
- 'hideOnContentClick' => array (
733
- 'id' => 'fancybox_hideOnContentClickInline',
734
- 'input' => 'checkbox',
735
- 'noquotes' => true,
736
- 'default' => '',
737
- 'description' => __('Close FancyBox when content is clicked','easy-fancybox')
738
  )
739
  )
740
  ),
@@ -744,122 +490,114 @@ class easyFancyBox_Options extends easyFancyBox {
744
  'input' => 'multiple',
745
  'options' => array(
746
  'intro' => array (
747
- 'hide' => true,
748
- 'description' => __('To make any PDF document file open in an overlay, switch on Autodetect or use the class "fancybox-pdf" for its link.','easy-fancybox') . '<br />'
749
  ),
750
  'autoAttribute' => array (
751
- 'id' => 'fancybox_autoAttributePDF',
752
- 'input' => 'checkbox',
753
- 'hide' => true,
754
- 'default' => '1',
755
- 'selector' => 'href*=".pdf"',
756
- 'description' => __('Autodetect','easy-fancybox') . '<br />'
757
  ),
758
  'tag' => array (
759
- 'hide' => true,
760
- 'default' => 'a.fancybox-pdf, area.fancybox-pdf, li.fancybox-pdf a:not(li.nofancybox a)'
761
  ),
762
  'class' => array (
763
- 'hide' => true,
764
- 'default' => 'fancybox-pdf'
765
  ),
766
  'type' => array (
767
- 'default' => 'html'
768
  ),
769
  'width' => array (
770
- 'id' => 'fancybox_PDFwidth',
771
- 'title' => translate('Width'),
772
- 'label_for' => 'fancybox_PDFwidth',
773
- 'input' => 'text',
774
- 'sanitize_callback' => 'intval',
775
- 'class' => 'small-text',
776
- 'default' => '90%',
777
- 'description' => ' '
778
  ),
779
  'height' => array (
780
- 'id' => 'fancybox_PDFheight',
781
- 'title' => translate('Height'),
782
- 'label_for' => 'fancybox_PDFheight',
783
- 'input' => 'text',
784
- 'sanitize_callback' => 'intval',
785
- 'class' => 'small-text',
786
- 'default' => '90%'
787
  ),
788
  'padding' => array (
789
- 'id' => 'fancybox_PDFpadding',
790
- 'title' => translate('Border'),
791
- 'label_for' => 'fancybox_PDFpadding',
792
- 'input' => 'number',
793
- 'step' => '1',
794
- 'min' => '0',
795
- 'max' => '100',
796
- 'sanitize_callback' => 'intval',
797
- 'class' => 'small-text',
798
- 'default' => '10',
799
- 'description' => '<br /><br />'
800
  ),
801
- /* 'autoScale' => array (
802
- 'noquotes' => true,
803
- 'default' => 'false'
804
- ),*/
805
  'titleShow' => array (
806
- 'id' => 'fancybox_PDFtitleShow',
807
- 'input' => 'checkbox',
808
- 'noquotes' => true,
809
- 'default' => '',
810
- 'description' => __('Show title','easy-fancybox')
811
  ),
812
  'titlePosition' => array (
813
- 'id' => 'fancybox_PDFtitlePosition',
814
- 'title' => __('Title Position','easy-fancybox'),
815
- 'label_for' => 'fancybox_PDFtitlePosition',
816
- 'input' => 'select',
817
- 'options' => array(
818
- 'float' => __('Float','easy-fancybox'),
819
- 'outside' => __('Outside','easy-fancybox'),
820
- 'inside' => __('Inside','easy-fancybox')
821
- ),
822
- 'default' => 'float',
 
823
  ),
824
  'titleFromAlt' => array (
825
- 'id' => 'fancybox_PDFtitleFromAlt',
826
- 'input' => 'checkbox',
827
- 'noquotes' => true,
828
- 'default' => '1',
829
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
830
  ),
831
  /* 'transitionOut' => array (
832
- 'id' => 'fancybox_PDFtransitionOut',
833
- 'title' => __('Transition Out','easy-fancybox'),
834
- 'label_for' => 'fancybox_PDFtransitionOut',
835
- 'input' => 'select',
836
- 'class' => '',
837
- 'options' => array(
838
- 'fade' => __('Fade','easy-fancybox'),
839
- //'elastic' => __('Elastic','easy-fancybox'),
840
- 'none' => translate('None')
841
- ),
842
- 'default' => 'fade',
843
  ),
844
  'easingIn' => array (
845
- 'default' => 'swing'
846
  ),*/
847
  'autoDimensions' => array (
848
- 'noquotes' => true,
849
- 'default' => 'false'
850
  ),
851
  'scrolling' => array (
852
- 'default' => 'no',
853
  ),
854
  'onStart' => array (
855
- 'noquotes' => true,
856
- // 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<embed src="\' + selectedArray[selectedIndex].href + \'#nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%" />\' }'
857
- // 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<object data="\' + selectedArray[selectedIndex].href + \'#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%"><param name="src" value="\' + selectedArray[selectedIndex].href + \'#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" /><embed src="\' + selectedArray[selectedIndex].href + \'#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%" /><a href="\' + selectedArray[selectedIndex].href + \'" style="display:block;font-size:18px;position:absolute;top:50%;width:100%;text-align:center">\' + jQuery(selectedArray[selectedIndex]).html() + \'</a></object>\' }'
858
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<embed src="\' + selectedArray[selectedIndex].href + \'#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%" />\' }'
859
  ),
860
  /* 'onClosed' => array (
861
- 'noquotes' => true,
862
- 'default' => 'function() { $("#fancybox-content").empty(); }'
863
  )*/
864
  )
865
  ),
@@ -869,186 +607,88 @@ class easyFancyBox_Options extends easyFancyBox {
869
  'input' => 'multiple',
870
  'options' => array(
871
  'intro' => array (
872
- 'hide' => true,
873
- 'description' => __('To make any Flash (.swf) file open in an overlay, switch on Autodetect or use the class "fancybox-swf" for its link.','easy-fancybox') . '<br />'
874
  ),
875
  'autoAttribute' => array (
876
- 'id' => 'fancybox_autoAttributeSWF',
877
- 'input' => 'checkbox',
878
- 'hide' => true,
879
- 'default' => '1',
880
- 'selector' => 'href*=".swf"',
881
- 'description' => __('Autodetect','easy-fancybox') . '<br />'
882
  ),
883
  'tag' => array (
884
- 'hide' => true,
885
- 'default' => 'a.fancybox-swf, area.fancybox-swf, li.fancybox-swf a:not(li.nofancybox a)'
886
  ),
887
  'class' => array (
888
- 'hide' => true,
889
- 'default' => 'fancybox-swf'
890
  ),
891
  'type' => array(
892
- 'default' => 'swf'
893
  ),
894
  'width' => array (
895
- 'id' => 'fancybox_SWFWidth',
896
- 'title' => translate('Width'),
897
- 'label_for' => 'fancybox_SWFWidth',
898
- 'input' => 'text',
899
- 'sanitize_callback' => 'intval',
900
- 'class' => 'small-text',
901
- 'options' => array(),
902
- 'default' => '680',
903
- 'description' => ' '
904
  ),
905
  'height' => array (
906
- 'id' => 'fancybox_SWFHeight',
907
- 'title' => translate('Height'),
908
- 'label_for' => 'fancybox_SWFHeight',
909
- 'input' => 'text',
910
- 'sanitize_callback' => 'intval',
911
- 'class' => 'small-text',
912
- 'options' => array(),
913
- 'default' => '495',
914
  ),
915
  'padding' => array (
916
- 'id' => 'fancybox_SWFpadding',
917
- 'title' => translate('Border'),
918
- 'label_for' => 'fancybox_SWFpadding',
919
- 'input' => 'number',
920
- 'step' => '1',
921
- 'min' => '0',
922
- 'max' => '100',
923
- 'sanitize_callback' => 'intval',
924
- 'class' => 'small-text',
925
- 'default' => '0',
926
- 'description' => '<br /><br />'
927
  ),
928
  'titleShow' => array (
929
- 'id' => 'fancybox_SWFtitleShow',
930
- 'input' => 'checkbox',
931
- 'noquotes' => true,
932
- 'default' => '',
933
- 'description' => __('Show title','easy-fancybox')
934
  ),
935
  'titlePosition' => array (
936
- 'id' => 'fancybox_SWFtitlePosition',
937
- 'title' => __('Title Position','easy-fancybox'),
938
- 'label_for' => 'fancybox_SWFtitlePosition',
939
- 'input' => 'select',
940
- 'options' => array(
941
- 'float' => __('Float','easy-fancybox'),
942
- 'outside' => __('Outside','easy-fancybox'),
943
- 'inside' => __('Inside','easy-fancybox')
944
- ),
945
- 'default' => 'float',
 
946
  ),
947
  'titleFromAlt' => array (
948
- 'id' => 'fancybox_SWFtitleFromAlt',
949
- 'input' => 'checkbox',
950
- 'noquotes' => true,
951
- 'default' => '1',
952
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
953
  ),
954
  'swf' => array (
955
- 'noquotes' => true,
956
- 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}'
957
- )
958
- )
959
- ),
960
-
961
- 'SVG' => array(
962
- 'title' => __('SVG','easy-fancybox'),
963
- 'input' => 'multiple',
964
- 'options' => array(
965
- 'intro' => array (
966
- 'hide' => true,
967
- 'description' => __('To make any SVG (.svg) file open in an overlay, switch on Autodetect or use the class "fancybox-svg" for its link.','easy-fancybox') . '<br />'
968
- ),
969
- 'autoAttribute' => array (
970
- 'id' => 'fancybox_autoAttributeSVG',
971
- 'input' => 'checkbox',
972
- 'hide' => true,
973
- 'default' => '1',
974
- 'selector' => 'href$=".svg"',
975
- 'description' => __('Autodetect','easy-fancybox') . '<br />'
976
- ),
977
- 'tag' => array (
978
- 'hide' => true,
979
- 'default' => 'a.fancybox-svg, area.fancybox-svg, li.fancybox-svg a:not(li.nofancybox a)'
980
- ),
981
- 'class' => array (
982
- 'hide' => true,
983
- 'default' => 'fancybox-svg'
984
- ),
985
- 'type' => array(
986
- 'default' => 'svg'
987
- ),
988
- 'width' => array (
989
- 'id' => 'fancybox_SVGWidth',
990
- 'title' => translate('Width'),
991
- 'label_for' => 'fancybox_SVGWidth',
992
- 'input' => 'text',
993
- 'sanitize_callback' => 'intval',
994
- 'class' => 'small-text',
995
- 'options' => array(),
996
- 'default' => '680',
997
- 'description' => ' '
998
- ),
999
- 'height' => array (
1000
- 'id' => 'fancybox_SVGHeight',
1001
- 'title' => translate('Height'),
1002
- 'label_for' => 'fancybox_SVGHeight',
1003
- 'input' => 'text',
1004
- 'sanitize_callback' => 'intval',
1005
- 'class' => 'small-text',
1006
- 'options' => array(),
1007
- 'default' => '495',
1008
- ),
1009
- 'padding' => array (
1010
- 'id' => 'fancybox_SVGpadding',
1011
- 'title' => translate('Border'),
1012
- 'label_for' => 'fancybox_SVGpadding',
1013
- 'input' => 'number',
1014
- 'step' => '1',
1015
- 'min' => '0',
1016
- 'max' => '100',
1017
- 'sanitize_callback' => 'intval',
1018
- 'class' => 'small-text',
1019
- 'default' => '0',
1020
- 'description' => '<br /><br />'
1021
- ),
1022
- 'titleShow' => array (
1023
- 'id' => 'fancybox_SVGtitleShow',
1024
- 'input' => 'checkbox',
1025
- 'noquotes' => true,
1026
- 'default' => '',
1027
- 'description' => __('Show title','easy-fancybox')
1028
- ),
1029
- 'titlePosition' => array (
1030
- 'id' => 'fancybox_SVGtitlePosition',
1031
- 'title' => __('Title Position','easy-fancybox'),
1032
- 'label_for' => 'fancybox_SVGtitlePosition',
1033
- 'input' => 'select',
1034
- 'options' => array(
1035
- 'float' => __('Float','easy-fancybox'),
1036
- 'outside' => __('Outside','easy-fancybox'),
1037
- 'inside' => __('Inside','easy-fancybox')
1038
- //,'over' => __('Overlay','easy-fancybox')
1039
- ),
1040
- 'default' => 'float',
1041
- ),
1042
- 'titleFromAlt' => array (
1043
- 'id' => 'fancybox_SVGtitleFromAlt',
1044
- 'input' => 'checkbox',
1045
- 'noquotes' => true,
1046
- 'default' => '1',
1047
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1048
- ),
1049
- 'svg' => array (
1050
- 'noquotes' => true,
1051
- 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}'
1052
  )
1053
  )
1054
  ),
@@ -1058,105 +698,100 @@ class easyFancyBox_Options extends easyFancyBox {
1058
  'input' => 'multiple',
1059
  'options' => array(
1060
  'intro' => array (
1061
- 'hide' => true,
1062
- 'description' => __('To make any YouTube movie open in an overlay, switch on Autodetect or use the class "fancybox-youtube" for its link.','easy-fancybox') . '<br />'
1063
  ),
1064
  'autoAttribute' => array (
1065
- 'id' => 'fancybox_autoAttributeYoutube',
1066
- 'input' => 'checkbox',
1067
- 'hide' => true,
1068
- 'default' => '1',
1069
- 'selector' => 'href*="youtube.com/watch"',
1070
- //'href-replace' => "return attr.replace(new RegExp('watch\\\?v=', 'i'), 'v/')",
1071
- 'description' => __('Autodetect','easy-fancybox')
1072
  ),
1073
  'autoAttributeAlt' => array (
1074
- 'id' => 'fancybox_autoAttributeYoutubeShortURL',
1075
- 'input' => 'checkbox',
1076
- 'hide' => true,
1077
- 'default' => '1',
1078
- 'selector' => 'href*="youtu.be/"',
1079
- //'href-replace' => "return attr.replace(new RegExp('youtu.be', 'i'), 'www.youtube.com/v')",
1080
- 'description' => __('Autodetect Short links','easy-fancybox') . '<br />'
1081
  ),
1082
  'tag' => array (
1083
- 'hide' => true,
1084
- 'default' => 'a.fancybox-youtube, area.fancybox-youtube, li.fancybox-youtube a:not(li.nofancybox a)'
1085
  ),
1086
  'class' => array (
1087
- 'hide' => true,
1088
- 'default' => 'fancybox-youtube'
1089
  ),
1090
  'type' => array(
1091
- 'default' => 'iframe'
1092
  ),
1093
  'width' => array (
1094
- 'id' => 'fancybox_YoutubeWidth',
1095
- 'title' => translate('Width'),
1096
- 'label_for' => 'fancybox_YoutubeWidth',
1097
- 'input' => 'number',
1098
- 'step' => '1',
1099
- 'min' => '420',
1100
- 'max' => '1500',
1101
- 'sanitize_callback' => 'intval',
1102
- 'class' => 'small-text',
1103
- 'default' => '640',
1104
- 'description' => ' '
1105
  ),
1106
  'height' => array (
1107
- 'id' => 'fancybox_YoutubeHeight',
1108
- 'title' => translate('Height'),
1109
- 'label_for' => 'fancybox_YoutubeHeight',
1110
- 'input' => 'number',
1111
- 'step' => '1',
1112
- 'min' => '315',
1113
- 'max' => '900',
1114
- 'sanitize_callback' => 'intval',
1115
- 'class' => 'small-text',
1116
- 'default' => '360',
1117
  ),
1118
  'padding' => array (
1119
- 'id' => 'fancybox_Youtubepadding',
1120
- 'title' => translate('Border'),
1121
- 'label_for' => 'fancybox_Youtubepadding',
1122
- 'input' => 'number',
1123
- 'step' => '1',
1124
- 'min' => '0',
1125
- 'max' => '100',
1126
- 'sanitize_callback' => 'intval',
1127
- 'class' => 'small-text',
1128
- 'default' => '0',
1129
- 'description' => '<br /><br />'
1130
  ),
1131
  'titleShow' => array (
1132
- 'id' => 'fancybox_YoutubetitleShow',
1133
- 'input' => 'checkbox',
1134
- 'noquotes' => true,
1135
- 'default' => '',
1136
- 'description' => __('Show title','easy-fancybox')
1137
  ),
1138
  'titlePosition' => array (
1139
- 'id' => 'fancybox_YoutubetitlePosition',
1140
- 'title' => __('Title Position','easy-fancybox'),
1141
- 'label_for' => 'fancybox_YoutubetitlePosition',
1142
- 'input' => 'select',
1143
- 'options' => array(
1144
- 'float' => __('Float','easy-fancybox'),
1145
- 'outside' => __('Outside','easy-fancybox'),
1146
- 'inside' => __('Inside','easy-fancybox')
1147
- ),
1148
- 'default' => 'float',
 
1149
  ),
1150
  'titleFromAlt' => array (
1151
- 'id' => 'fancybox_YoutubetitleFromAlt',
1152
- 'input' => 'checkbox',
1153
- 'noquotes' => true,
1154
- 'default' => '1',
1155
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1156
- ),
 
 
 
1157
  'onStart' => array (
1158
- 'noquotes' => true,
1159
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'youtu.be\', \'i\'), \'www.youtube.com/embed\').replace(new RegExp(\'watch\\\?(.*)v=([a-z0-9\_\-]+)(&|\\\?)?(.*)\', \'i\'), \'embed/$2?$1$4\') }'
1160
  )
1161
  )
1162
  ),
@@ -1166,96 +801,91 @@ class easyFancyBox_Options extends easyFancyBox {
1166
  'input' => 'multiple',
1167
  'options' => array(
1168
  'intro' => array (
1169
- 'hide' => true,
1170
- 'description' => __('To make any Vimeo movie open in an overlay, switch on Autodetect or use the class "fancybox-vimeo" for its link.','easy-fancybox') . '<br />'
1171
  ),
1172
  'autoAttribute' => array (
1173
- 'id' => 'fancybox_autoAttributeVimeo',
1174
- 'input' => 'checkbox',
1175
- 'hide' => true,
1176
- 'default' => '1',
1177
- 'selector' => 'href*="vimeo.com/"',
1178
- //'href-replace' => "return attr.replace(new RegExp('/([0-9])', 'i'), '/moogaloop.swf?clip_id=$1')",
1179
- 'description' => __('Autodetect','easy-fancybox') . '<br />'
1180
  ),
1181
  'tag' => array (
1182
- 'hide' => true,
1183
- 'default' => 'a.fancybox-vimeo, area.fancybox-vimeo, li.fancybox-vimeo a:not(li.nofancybox a)'
1184
  ),
1185
  'class' => array (
1186
- 'hide' => true,
1187
- 'default' => 'fancybox-vimeo'
1188
  ),
1189
  'type' => array(
1190
- 'default' => 'iframe'
1191
  ),
1192
  'width' => array (
1193
  'id' => 'fancybox_VimeoWidth',
1194
- 'title' => translate('Width'),
1195
  'label_for' => 'fancybox_VimeoWidth',
1196
- 'input' => 'number',
1197
- 'step' => '1',
1198
- 'min' => '400',
1199
- 'max' => '1500',
1200
- 'sanitize_callback' => 'intval',
1201
  'class' => 'small-text',
1202
- 'default' => '500',
1203
  'description' => ' '
1204
  ),
1205
  'height' => array (
1206
- 'id' => 'fancybox_VimeoHeight',
1207
- 'title' => translate('Height'),
1208
- 'label_for' => 'fancybox_VimeoHeight',
1209
- 'input' => 'number',
1210
- 'step' => '1',
1211
- 'min' => '225',
1212
- 'max' => '900',
1213
- 'sanitize_callback' => 'intval',
1214
- 'class' => 'small-text',
1215
- 'default' => '281'
1216
  ),
1217
  'padding' => array (
1218
- 'id' => 'fancybox_Vimeopadding',
1219
- 'title' => translate('Border'),
1220
- 'label_for' => 'fancybox_Vimeopadding',
1221
- 'input' => 'number',
1222
- 'step' => '1',
1223
- 'min' => '0',
1224
- 'max' => '100',
1225
- 'sanitize_callback' => 'intval',
1226
- 'class' => 'small-text',
1227
- 'default' => '0',
1228
- 'description' => '<br /><br />'
1229
  ),
1230
  'titleShow' => array (
1231
- 'id' => 'fancybox_VimeotitleShow',
1232
- 'input' => 'checkbox',
1233
- 'noquotes' => true,
1234
- 'default' => '',
1235
- 'description' => __('Show title','easy-fancybox')
1236
  ),
1237
  'titlePosition' => array (
1238
- 'id' => 'fancybox_VimeotitlePosition',
1239
- 'title' => __('Title Position','easy-fancybox'),
1240
- 'label_for' => 'fancybox_VimeotitlePosition',
1241
- 'input' => 'select',
1242
- 'options' => array(
1243
- 'float' => __('Float','easy-fancybox'),
1244
- 'outside' => __('Outside','easy-fancybox'),
1245
- 'inside' => __('Inside','easy-fancybox')
1246
- ),
1247
- 'default' => 'float',
 
1248
  ),
1249
  'titleFromAlt' => array (
1250
- 'id' => 'fancybox_VimeotitleFromAlt',
1251
- 'input' => 'checkbox',
1252
- 'noquotes' => true,
1253
- 'default' => '1',
1254
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1255
- ),
 
 
 
1256
  'onStart' => array (
1257
- 'noquotes' => true,
1258
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'http://(www\\.)?vimeo\\.com/([0-9]+)(&|\\\?)?(.*)\', \'i\'), \'http://player.vimeo.com/video/$2?$4\') }'
1259
  )
1260
  )
1261
  ),
@@ -1266,96 +896,91 @@ class easyFancyBox_Options extends easyFancyBox {
1266
  'input' => 'multiple',
1267
  'options' => array(
1268
  'intro' => array (
1269
- 'hide' => true,
1270
- 'description' => __('To make any Dailymotion movie open in an overlay, switch on Autodetect or use the class "fancybox-dailymotion" for its link.','easy-fancybox') . '<br />'
1271
  ),
1272
  'autoAttribute' => array (
1273
- 'id' => 'fancybox_autoAttributeDailymotion',
1274
- 'input' => 'checkbox',
1275
- 'hide' => true,
1276
- 'default' => '1',
1277
- 'selector' => 'href*="dailymotion.com/"',
1278
- //'href-replace' => "return attr.replace(new RegExp('/video/', 'i'), '/swf/')",
1279
- 'description' => __('Autodetect','easy-fancybox') . '<br />'
1280
  ),
1281
  'tag' => array (
1282
- 'hide' => true,
1283
- 'default' => 'a.fancybox-dailymotion, area.fancybox-dailymotion, li.fancybox-dailymotion a:not(li.nofancybox a)'
1284
  ),
1285
  'class' => array (
1286
- 'hide' => true,
1287
- 'default' => 'fancybox-dailymotion'
1288
  ),
1289
  'type' => array(
1290
- 'default' => 'iframe'
1291
  ),
1292
  'width' => array (
1293
  'id' => 'fancybox_DailymotionWidth',
1294
- 'title' => translate('Width'),
1295
  'label_for' => 'fancybox_DailymotionWidth',
1296
- 'input' => 'number',
1297
- 'step' => '1',
1298
- 'min' => '320',
1299
- 'max' => '1500',
1300
- 'sanitize_callback' => 'intval',
1301
  'class' => 'small-text',
1302
  'default' => '560',
1303
  'description' => ' '
1304
  ),
1305
  'height' => array (
1306
- 'id' => 'fancybox_DailymotionHeight',
1307
- 'title' => translate('Height'),
1308
- 'label_for' => 'fancybox_DailymotionHeight',
1309
- 'input' => 'number',
1310
- 'step' => '1',
1311
- 'min' => '180',
1312
- 'max' => '900',
1313
- 'sanitize_callback' => 'intval',
1314
- 'class' => 'small-text',
1315
- 'default' => '315'
1316
  ),
1317
  'padding' => array (
1318
- 'id' => 'fancybox_DailymotionPadding',
1319
- 'title' => translate('Border'),
1320
- 'label_for' => 'fancybox_DailymotionPadding',
1321
- 'input' => 'number',
1322
- 'step' => '1',
1323
- 'min' => '0',
1324
- 'max' => '100',
1325
- 'sanitize_callback' => 'intval',
1326
- 'class' => 'small-text',
1327
- 'default' => '0',
1328
- 'description' => '<br /><br />'
1329
  ),
1330
  'titleShow' => array (
1331
- 'id' => 'fancybox_DailymotiontitleShow',
1332
- 'input' => 'checkbox',
1333
- 'noquotes' => true,
1334
- 'default' => '',
1335
- 'description' => __('Show title','easy-fancybox')
1336
  ),
1337
  'titlePosition' => array (
1338
- 'id' => 'fancybox_DailymotiontitlePosition',
1339
- 'title' => __('Title Position','easy-fancybox'),
1340
- 'label_for' => 'fancybox_DailymotiontitlePosition',
1341
- 'input' => 'select',
1342
- 'options' => array(
1343
- 'float' => __('Float','easy-fancybox'),
1344
- 'outside' => __('Outside','easy-fancybox'),
1345
- 'inside' => __('Inside','easy-fancybox')
1346
- ),
1347
- 'default' => 'float',
 
1348
  ),
1349
  'titleFromAlt' => array (
1350
- 'id' => 'fancybox_DailymotiontitleFromAlt',
1351
- 'input' => 'checkbox',
1352
- 'noquotes' => true,
1353
- 'default' => '1',
1354
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1355
- ),
 
 
 
1356
  'onStart' => array (
1357
- 'noquotes' => true,
1358
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'/video/(.*)\', \'i\'), \'/embed/video/$1\') }'
1359
  )
1360
  )
1361
  ),
@@ -1392,98 +1017,80 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1392
  'input' => 'multiple',
1393
  'options' => array(
1394
  'intro' => array (
1395
- 'hide' => true,
1396
- 'description' => __('To make a website or HTML document open in an overlay, use the class "fancybox-iframe" for its link.','easy-fancybox') . '<br /><br />'
1397
  ),
1398
  'tag' => array (
1399
- 'hide' => true,
1400
- 'default' => 'a.fancybox-iframe, area.fancybox-iframe, li.fancybox-iframe a:not(li.nofancybox a)'
1401
  ),
1402
  'class' => array (
1403
- 'hide' => true,
1404
- 'default' => 'fancybox-iframe'
1405