Easy FancyBox - Version 1.5.0

Version Description

Many new options. Speed improvements: stylesheet browser caching, metadata.js compression. Security fix. Dutch, Indonesian and Polish translations.

=

Download this release

Release Info

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

Code changes from version 1.3.4.8 to 1.5.0

easy-fancybox-admin.php ADDED
File without changes
easy-fancybox-class.php ADDED
@@ -0,0 +1,628 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 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
+ foreach (self::$options['Global']['options']['Enable']['options'] as $value) {
25
+ // anything enabled?
26
+ if ( isset($value['id']) && '1' == get_option($value['id'],$value['default']) ) {
27
+ self::$add_scripts = true;
28
+ break;
29
+ }
30
+ }
31
+ // and abort when none are active
32
+ if (!self::$add_scripts) {
33
+ echo '
34
+ <!-- Nothing enabled under Settings > Media > FancyBox, please disable the plugin if you are not using it. -->
35
+
36
+ ';
37
+ return;
38
+ }
39
+
40
+ wp_print_scripts('jquery'); // using print_scripts here instead of enqueue because else the order will be wrong... TODO find a way to include jquery before the main script while leaving the fancybox.js for last...
41
+
42
+ // begin output FancyBox settings
43
+ echo '
44
+ <script type="text/javascript">
45
+ /* <![CDATA[ */
46
+ var fb_timeout = null;';
47
+
48
+ /*
49
+ * Global settings routine
50
+ */
51
+ $more=0;
52
+ echo '
53
+ var fb_opts = {';
54
+ foreach (self::$options['Global']['options'] as $globals) {
55
+ foreach ($globals['options'] as $_key => $_value) {
56
+ if ( isset($_value['id']) )
57
+ if ( isset($_value['default']) )
58
+ $parm = get_option($_value['id'], $_value['default']);
59
+ else
60
+ $parm = get_option($_value['id']);
61
+ elseif ( isset($_value['default']) )
62
+ $parm = $_value['default'];
63
+ else
64
+ $parm = '';
65
+
66
+ if ( isset($_value['input']) && 'checkbox'==$_value['input'] )
67
+ $parm = ( '1' == $parm ) ? 'true' : 'false';
68
+
69
+ if( !isset($_value['hide']) && $parm!='' ) {
70
+ $quote = (is_numeric($parm) || (isset($_value['noquotes']) && $_value['noquotes'] == true) ) ? '' : '\'';
71
+ if ($more>0)
72
+ echo ',';
73
+ echo ' \''.$_key.'\' : ';
74
+ echo $quote.$parm.$quote;
75
+ $more++;
76
+ } else {
77
+ $$_key = $parm;
78
+ }
79
+ }
80
+ }
81
+ echo ' };
82
+ var easy_fancybox_handler = function(){';
83
+
84
+ foreach (self::$options as $key => $value) {
85
+ // check if not enabled or hide=true then skip
86
+ if ( isset($value['hide']) || !get_option(self::$options['Global']['options']['Enable']['options'][$key]['id'], self::$options['Global']['options']['Enable']['options'][$key]['default']) )
87
+ continue;
88
+
89
+ echo '
90
+ /* ' . $key . ' */';
91
+ /*
92
+ * Auto-detection routines (2x)
93
+ */
94
+ $autoAttribute = (isset($value['options']['autoAttribute'])) ? get_option( $value['options']['autoAttribute']['id'], $value['options']['autoAttribute']['default'] ) : "";
95
+ // update from previous version:
96
+ if($attributeLimit == '.not(\':empty\')')
97
+ $attributeLimit = ':not(:empty)';
98
+ elseif($attributeLimit == '.has(\'img\')')
99
+ $attributeLimit = ':has(img)';
100
+
101
+ if(!empty($autoAttribute)) {
102
+ if(is_numeric($autoAttribute)) {
103
+ echo '
104
+ jQuery(\'a['.$value['options']['autoAttribute']['selector'].']:not(.nofancybox)'.$attributeLimit.', area['.$value['options']['autoAttribute']['selector'].']:not(.nofancybox)'.$attributeLimit.'\')';
105
+ //if ( isset($value['options']['autoAttribute']['href-replace']) )
106
+ // echo '.attr(\'href\', function(index, attr){'.$value['options']['autoAttribute']['href-replace'].'})';
107
+ echo '.addClass(\''.$value['options']['class']['default'].'\');';
108
+ } else {
109
+ // set selectors
110
+ $file_types = array_filter( explode( ' ', str_replace( ',', ' ', $autoAttribute ) ) );
111
+ $more=0;
112
+ echo '
113
+ var fb_'.$key.'_select = \'';
114
+ foreach ($file_types as $type) {
115
+ if ($type == "jpg" || $type == "jpeg" || $type == "png" || $type == "gif")
116
+ $type = '.'.$type;
117
+ if ($more>0)
118
+ echo ', ';
119
+ echo 'a['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)'.$attributeLimit.', area['.$value['options']['autoAttribute']['selector'].'"'.$type.'"]:not(.nofancybox)'.$attributeLimit;
120
+ $more++;
121
+ }
122
+ echo '\';';
123
+
124
+ // class and rel depending on settings
125
+ if( '1' == get_option($value['options']['autoAttributeLimit']['id'],$value['options']['autoAttributeLimit']['default']) ) {
126
+ // add class
127
+ echo '
128
+ var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
129
+ fb_'.$key.'_sections.each(function() { jQuery(this).find(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
130
+ // and set rel
131
+ switch( get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
132
+ case '':
133
+ default :
134
+ echo '; });';
135
+ break;
136
+ case '1':
137
+ echo '.attr(\'rel\', \'gallery-\' + fb_'.$key.'_sections.index(this)); });';
138
+ break;
139
+ case '2':
140
+ echo '.attr(\'rel\', \'gallery\'); });';
141
+ }
142
+ } else {
143
+ // add class
144
+ echo '
145
+ jQuery(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
146
+ // set rel
147
+ switch( get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
148
+ case '':
149
+ default :
150
+ echo ';';
151
+ break;
152
+ case '1':
153
+ echo ';
154
+ var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
155
+ fb_'.$key.'_sections.each(function() { jQuery(this).find(fb_'.$key.'_select).attr(\'rel\', \'gallery-\' + fb_'.$key.'_sections.index(this)); });';
156
+ break;
157
+ case '2':
158
+ echo '.attr(\'rel\', \'gallery\');';
159
+ }
160
+ }
161
+
162
+ }
163
+ }
164
+
165
+ $autoAttributeAlt = ( isset($value['options']['autoAttributeAlt']) ) ? get_option( $value['options']['autoAttributeAlt']['id'], $value['options']['autoAttributeAlt']['default'] ) : "";
166
+ if(!empty($autoAttributeAlt) && is_numeric($autoAttributeAlt)) {
167
+ echo '
168
+ jQuery(\'a['.$value['options']['autoAttributeAlt']['selector'].']:not(.nofancybox)'.$attributeLimit.', area['.$value['options']['autoAttributeAlt']['selector'].']:not(.nofancybox)'.$attributeLimit.'\')';
169
+ //if (!empty($value['options']['autoAttributeAlt']['href-replace']))
170
+ // echo '.attr(\'href\', function(index, attr){'.$value['options']['autoAttributeAlt']['href-replace']. '})';
171
+ echo '.addClass(\''.$value['options']['class']['default'].'\');';
172
+ }
173
+
174
+ /*
175
+ * Generate .fancybox() bind
176
+ */
177
+ $trigger='';
178
+ if( $key == $autoClick )
179
+ $trigger = '.filter(\':first\').trigger(\'click\')';
180
+
181
+ echo '
182
+ jQuery(\'' . $value['options']['tag']['default']. '\')';
183
+
184
+ // use each() to allow different metadata values per instance; fix by Elron. Thanks!
185
+ if ( '1' == get_option(self::$options['Global']['options']['Links']['options']['metaData']['id'],self::$options['Global']['options']['Links']['options']['metaData']['default']) )
186
+ echo '.each(function() { jQuery(this)';
187
+
188
+ echo '.fancybox( jQuery.extend({}, fb_opts, {';
189
+ $more=0;
190
+ foreach ($value['options'] as $_key => $_value) {
191
+ if (isset($_value['id']) || isset($_value['default']))
192
+ $parm = (isset($_value['id']))? get_option($_value['id'], $_value['default']) : $_value['default'];
193
+ else
194
+ $parm = '';
195
+
196
+ if( isset($_value['input']) && 'checkbox'==$_value['input'] )
197
+ $parm = ( '1' == $parm ) ? 'true' : 'false';
198
+
199
+ if( !isset($_value['hide']) && $parm!='' ) {
200
+ $quote = (is_numeric($parm) || (isset($_value['noquotes']) && $_value['noquotes'] == true) ) ? '' : '\'';
201
+ if ($more>0)
202
+ echo ',';
203
+ echo ' \''.$_key.'\' : ';
204
+ echo $quote.$parm.$quote;
205
+ $more++;
206
+ }
207
+ }
208
+ echo ' }) ';
209
+
210
+ // use each() to allow different metadata values per instance; fix by Elron. Thanks!
211
+ if ( '1' == get_option(self::$options['Global']['options']['Links']['options']['metaData']['id'],self::$options['Global']['options']['Links']['options']['metaData']['default']) )
212
+ echo ');} ';
213
+
214
+ echo ')'.$trigger.';';
215
+
216
+ }
217
+
218
+ switch( $autoClick ) {
219
+ case '':
220
+ default :
221
+ break;
222
+ case '1':
223
+ echo '
224
+ /* Auto-click */
225
+ jQuery(\'#fancybox-auto\').trigger(\'click\');';
226
+ break;
227
+ case '99':
228
+ echo '
229
+ /* Auto-load */
230
+ jQuery(\'a[class*="fancybox"]\').filter(\':first\').trigger(\'click\');';
231
+ break;
232
+ }
233
+ echo '
234
+ }
235
+ /* ]]> */
236
+ </script>
237
+ <style type="text/css">.fancybox-hidden{display:none}.rtl #fancybox-left{left:auto;right:0px}.rtl #fancybox-right{left:0px;right:auto}.rtl #fancybox-right-ico{background-position:-40px -30px}.rtl #fancybox-left-ico{background-position:-40px -60px}.rtl .fancybox-title-over{text-align:right}.rtl #fancybox-left-ico,.rtl #fancybox-right-ico{right:-9999px}.rtl #fancybox-right:hover span{right:auto;left:20px}.rtl #fancybox-left:hover span{right:20px}#fancybox-img{max-width:none;max-height:none}';
238
+
239
+ if ('true' == $overlaySpotlight)
240
+ echo '#fancybox-overlay{background-attachment:fixed;background-image:url("' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png");background-position:center;background-repeat:no-repeat;background-size:cover;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png",sizingMethod="scale");-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' . EASY_FANCYBOX_PLUGINURL . 'light-mask.png\',sizingMethod=\'scale\')";}';
241
+ if ( !empty($borderRadius) )
242
+ echo '#fancybox-bg-n,#fancybox-bg-ne,#fancybox-bg-e,#fancybox-bg-se,#fancybox-bg-s,#fancybox-bg-sw,#fancybox-bg-w,#fancybox-bg-nw{background-image:none}#fancybox-outer,#fancybox-content{border-radius:'.$borderRadius.'px}#fancybox-outer{-moz-box-shadow:0 0 12px #1111;-webkit-box-shadow:0 0 12px #111;box-shadow:0 0 12px #111}';
243
+ if ('' != $backgroundColor)
244
+ echo '#fancybox-outer{background-color:'.$backgroundColor.'}';
245
+ if ('' != $paddingColor)
246
+ echo '#fancybox-content{border-color:'.$paddingColor.'}';
247
+ if ('' != $textColor)
248
+ echo '#fancybox-content{color:'.$textColor.'}';
249
+ if ('' != $frameOpacity && '1' != $frameOpacity) {
250
+ $frameOpacity_percent = (int)$frameOpacity*100;
251
+ echo '#fancybox-outer{filter:alpha(opacity='.$frameOpacity_percent.');-moz-opacity:'.$frameOpacity.';opacity:'.$frameOpacity.'}';
252
+ }
253
+ echo '</style>
254
+ ';
255
+ }
256
+
257
+
258
+ /***********************
259
+ ADMIN FUNCTIONS
260
+ ***********************/
261
+
262
+ function register_settings($args = array()) {
263
+ foreach ($args as $key => $value) {
264
+ // check to see if the section is enabled, else skip to next
265
+ 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']) )
266
+ continue;
267
+
268
+ switch($value['input']) {
269
+ case 'deep':
270
+ // go deeper by looping back on itself
271
+ self::register_settings($value['options']);
272
+ break;
273
+ case 'multiple':
274
+ add_settings_field( 'fancybox_'.$key, '<a name="'.$value['title'].'"></a>'.$value['title'], array(__CLASS__, 'settings_fields'), 'media', 'fancybox_section', $value);
275
+ foreach ( $value['options'] as $_value ) {
276
+ if ( !isset($_value['sanitize_callback']) )
277
+ $sanitize_callback = '';
278
+ else
279
+ $sanitize_callback = array(__CLASS__, $_value['sanitize_callback']);
280
+ if ( isset($_value['id']) )
281
+ register_setting( 'media', $_value['id'], $sanitize_callback );
282
+ }
283
+ break;
284
+ default:
285
+ if ( !isset($value['sanitize_callback']) )
286
+ $sanitize_callback = '';
287
+ else
288
+ $sanitize_callback = array(__CLASS__, $value['sanitize_callback']);
289
+ if ( isset($value['id']) )
290
+ register_setting( 'media', 'fancybox_'.$key, $sanitize_callback );
291
+ }
292
+ }
293
+ }
294
+
295
+ // add our FancyBox Media Settings Section on Settings > Media admin page
296
+ function settings_section() {
297
+ 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>';
298
+ }
299
+
300
+ // add our FancyBox Media Settings Fields
301
+ function settings_fields($args){
302
+ $disabled = (isset($args['status']) && 'disabled' == $args['status']) ? ' disabled="disabled"' : '';
303
+ if (isset($args['input']))
304
+ switch($args['input']) {
305
+ case 'multiple':
306
+ case 'deep':
307
+ foreach ($args['options'] as $options)
308
+ self::settings_fields($options);
309
+ if (isset($args['description'])) echo $args['description'];
310
+ break;
311
+ case 'select':
312
+ if( !empty($args['label_for']) )
313
+ echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
314
+ else
315
+ echo $args['title'];
316
+ echo '
317
+ <select name="'.$args['id'].'" id="'.$args['id'].'">';
318
+ foreach ($args['options'] as $optionkey => $optionvalue) {
319
+ $selected = (get_option($args['id'], $args['default']) == $optionkey) ? ' selected="selected"' : '';
320
+ echo '
321
+ <option value="'.esc_attr($optionkey).'"'.$selected.' '.$disabled.' >'.$optionvalue.'</option>';
322
+ }
323
+ echo '
324
+ </select> ';
325
+ if( empty($args['label_for']) )
326
+ echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
327
+ else
328
+ if (isset($args['description'])) echo $args['description'];
329
+ break;
330
+ case 'checkbox':
331
+ if( !empty($args['label_for']) )
332
+ echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
333
+ else
334
+ if (isset($args['title'])) echo $args['title'];
335
+ $value = esc_attr( get_option($args['id'], $args['default']) );
336
+ if ($value == "1")
337
+ $checked = ' checked="checked"';
338
+ else
339
+ $checked = '';
340
+ if ($args['default'] == "1")
341
+ $default = __('Checked','easy-fancybox');
342
+ else
343
+ $default = __('Unchecked','easy-fancybox');
344
+ if( empty($args['label_for']) )
345
+ echo '
346
+ <label><input type="checkbox" name="'.$args['id'].'" id="'.$args['id'].'" value="1" '.$checked.' '.$disabled.' /> '.$args['description'].'</label><br />';
347
+ else
348
+ echo '
349
+ <input type="checkbox" name="'.$args['id'].'" id="'.$args['id'].'" value="1" '.$checked.' '.$disabled.' /> '.$args['description'].'<br />';
350
+ break;
351
+ case 'text':
352
+ if( !empty($args['label_for']) )
353
+ echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
354
+ else
355
+ echo $args['title'];
356
+ echo '
357
+ <input type="text" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" class="'.$args['class'].'"'.$disabled.' /> ';
358
+ if( empty($args['label_for']) )
359
+ echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
360
+ else
361
+ if (isset($args['description'])) echo $args['description'];
362
+ break;
363
+ case 'number':
364
+ if( !empty($args['label_for']) )
365
+ echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
366
+ else
367
+ echo $args['title'];
368
+ echo '
369
+ <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.' /> ';
370
+ if( empty($args['label_for']) )
371
+ echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
372
+ else
373
+ if (isset($args['description'])) echo $args['description'];
374
+ break;
375
+ case 'hidden':
376
+ echo '
377
+ <input type="hidden" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" /> ';
378
+ break;
379
+ default:
380
+ if (isset($args['description'])) echo $args['description'];
381
+ }
382
+ else
383
+ if (isset($args['description'])) echo $args['description'];
384
+ }
385
+
386
+ /**
387
+ * Adds an action link to the Plugins page
388
+ */
389
+ function add_action_link( $links ) {
390
+ $settings_link = '<a href="' . admin_url('options-media.php') . '">' . __('Settings') . '</a>';
391
+ array_unshift( $links, $settings_link );
392
+ return $links;
393
+ }
394
+
395
+ function intval($setting = '') {
396
+ if ($setting == '')
397
+ return '';
398
+
399
+ if (substr($setting, -1) == '%') {
400
+ $val = intval(substr($setting, 0, -1));
401
+ $prc = '%';
402
+ } else {
403
+ $val = intval($setting);
404
+ $prc = '';
405
+ }
406
+
407
+ return ( $val != 0 ) ? $val.$prc : 0;
408
+ }
409
+
410
+
411
+ /***********************
412
+ ACTIONS & FILTERS
413
+ ***********************/
414
+
415
+ function register_scripts() {
416
+
417
+ // ENQUEUE
418
+ // first get rid of previously registered variants of jquery.fancybox by other plugins or theme
419
+ wp_deregister_script('fancybox');
420
+ wp_deregister_script('jquery.fancybox');
421
+ wp_deregister_script('jquery_fancybox');
422
+ wp_deregister_script('jquery-fancybox');
423
+ // register main fancybox script
424
+ wp_register_script('jquery-fancybox', EASY_FANCYBOX_PLUGINURL.'fancybox/jquery.fancybox-'.FANCYBOX_VERSION.'.pack.js', array('jquery'), FANCYBOX_VERSION, true);
425
+
426
+ // easing in IMG settings?
427
+ 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']) ) ) {
428
+ // do nothing
429
+ } else {
430
+ 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']) ) {
431
+ // first get rid of previously registered variants of jquery.easing by other plugins or theme
432
+ wp_deregister_script('easing');
433
+ wp_deregister_script('jquery.easing');
434
+ wp_deregister_script('jqueryeasing');
435
+ wp_deregister_script('jquery_easing');
436
+ wp_deregister_script('jquery-easing');
437
+ // then register our version
438
+ wp_register_script('jquery-easing', EASY_FANCYBOX_PLUGINURL.'jquery.easing.pack.js', array('jquery'), EASING_VERSION, true);
439
+ }
440
+ }
441
+
442
+ // mousewheel in IMG settings?
443
+ if ( '1' == get_option( self::$options['IMG']['options']['mouseWheel']['id'], self::$options['IMG']['options']['mouseWheel']['default']) ) {
444
+ // first get rid of previously registered variants of jquery.mousewheel (by other plugins)
445
+ wp_deregister_script('mousewheel');
446
+ wp_deregister_script('jquery.mousewheel');
447
+ wp_deregister_script('jquerymousewheel');
448
+ wp_deregister_script('jquery_mousewheel');
449
+ wp_deregister_script('jquery-mousewheel');
450
+ // then register our version
451
+ wp_register_script('jquery-mousewheel', EASY_FANCYBOX_PLUGINURL.'jquery.mousewheel.pack.js', array('jquery'), MOUSEWHEEL_VERSION, true);
452
+ }
453
+
454
+ // metadata in Link settings?
455
+ if ('1' == get_option( self::$options['Global']['options']['Links']['options']['metaData']['id'], self::$options['Global']['options']['Links']['options']['metaData']['default']) ) {
456
+ // first get rid of previously registered variants of jquery.metadata (by other plugins)
457
+ wp_deregister_script('metadata');
458
+ wp_deregister_script('jquery.metadata');
459
+ wp_deregister_script('jquerymetadata');
460
+ wp_deregister_script('jquery_metadata');
461
+ wp_deregister_script('jquery-metadata');
462
+ // then register our version
463
+ wp_register_script('jquery-metadata',EASY_FANCYBOX_PLUGINURL.'jquery.metadata.pack.js', array('jquery'), METADATA_VERSION, true);
464
+ }
465
+ }
466
+
467
+ function enqueue_styles() {
468
+ // register style
469
+ wp_enqueue_style('easy-fancybox-css', EASY_FANCYBOX_PLUGINURL.'easy-fancybox.css.php', false, FANCYBOX_VERSION, 'screen');
470
+ }
471
+
472
+ static function enqueue_header_scripts() {
473
+ // TODO: google hosted jquery optional ++ safemode
474
+ //wp_deregister_script('jquery');
475
+ //wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
476
+ //wp_enqueue_script('jquery');
477
+
478
+ wp_enqueue_script('jquery-fancybox');
479
+ }
480
+
481
+ static function enqueue_footer_scripts() {
482
+ if (!self::$add_scripts) { // abort mission, there is no need for any script files
483
+ echo '<!-- no fancybox scripts needed -->';
484
+ return;
485
+ }
486
+
487
+ wp_enqueue_script('jquery-fancybox');
488
+ wp_enqueue_script('jquery-easing');
489
+ wp_enqueue_script('jquery-mousewheel');
490
+ wp_enqueue_script('jquery-metadata');
491
+ }
492
+
493
+ function on_ready() {
494
+ if (!self::$add_scripts) // abort mission, there is no need for any script files
495
+ return;
496
+ echo '
497
+ <script type="text/javascript">
498
+ jQuery(document).on(\'ready gform_post_render\', easy_fancybox_handler );
499
+ </script>
500
+ ';
501
+ }
502
+
503
+ static function admin_init(){
504
+
505
+ add_filter('plugin_action_links_' . EASY_FANCYBOX_PLUGINBASENAME, array(__CLASS__, 'add_action_link') );
506
+ // in preparation of admin page move:
507
+ //add_action('admin_menu', array(__CLASS__, 'add_menu'));
508
+
509
+ add_settings_section('fancybox_section', __('FancyBox','easy-fancybox'), array(__CLASS__, 'settings_section'), 'media');
510
+
511
+ self::register_settings( self::$options );
512
+
513
+ // test with media upload resize...
514
+ add_action( 'pre-upload-ui', 'media_upload_max_image_resize' );
515
+ }
516
+
517
+ // Hack to fix missing wmode in Youtube oEmbed code based on David C's code in the comments on
518
+ // http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html
519
+ static function add_video_wmode_opaque($html, $url, $attr) {
520
+ if (strpos($html, "<embed src=" ) !== false) {
521
+ $html = str_replace('</param><embed', '</param><param name="wmode" value="opaque"></param><embed wmode="opaque"', $html);
522
+ } elseif (strpos($html, 'youtube' ) !== false && strpos($html, 'wmode' ) == false ) {
523
+ $html = str_replace('feature=oembed', 'feature=oembed&wmode=opaque', $html);
524
+ } elseif ( strpos($html, "vimeo" ) !== false && strpos($html, 'wmode' ) == false ) {
525
+ $html = str_replace('" width', '?theme=none&wmode=opaque" width', $html);
526
+ } elseif ( strpos($html, "dailymotion" ) !== false && strpos($html, 'wmode' ) == false ) {
527
+ $html = str_replace('" width', '?wmode=opaque" width', $html);
528
+ }
529
+ return $html;
530
+ }
531
+
532
+ static function init() {
533
+
534
+ if ( is_admin() ) {
535
+ }
536
+
537
+ require_once(EASY_FANCYBOX_PLUGINDIR . 'easy-fancybox-settings.php');
538
+
539
+ add_filter('embed_oembed_html', array(__CLASS__, 'add_video_wmode_opaque'), 10, 3);
540
+ }
541
+
542
+ static function textdomain() {
543
+ if ( is_admin() ) {
544
+ load_plugin_textdomain('easy-fancybox', false, dirname( EASY_FANCYBOX_PLUGINBASENAME ) . '/languages/');
545
+ }
546
+ }
547
+ /**********************
548
+ ADMIN
549
+ **********************/
550
+
551
+ public static function add_menu() {
552
+ /* Register our plugin page */
553
+ self::$pagehook = add_submenu_page( 'themes.php', __('Easy FancyBox Settings', 'easy-fancybox'), __('FancyBox', 'easy-fancybox'), 'manage_options', 'easy-fancybox', array(__CLASS__, 'admin') );
554
+ /* Using registered $page handle to hook script load */
555
+ add_action('load-' . self::$pagehook, array(__CLASS__, 'admin_scripts'));
556
+ }
557
+
558
+ public static function admin() {
559
+
560
+ add_filter( 'get_user_option_closedpostboxes_'.self::$pagehook, array(__CLASS__, 'closed_meta_boxes') );
561
+
562
+ //add_thickbox(); // do we need that?
563
+
564
+ add_meta_box('submitdiv', __('Sections','easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_submit'), self::$pagehook, 'side', 'high');
565
+ add_meta_box('globaldiv', __('Global settings', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_global'), self::$pagehook, 'normal', 'high');
566
+ add_meta_box('imgdiv', __('Images', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_img'), self::$pagehook, 'normal', 'normal');
567
+ add_meta_box('inlinediv', __('Inline content', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_inline'), self::$pagehook, 'normal', 'normal');
568
+ add_meta_box('pdfdiv', __('PDF', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_pdf'), self::$pagehook, 'normal', 'normal');
569
+ add_meta_box('swfdiv', __('SWF', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_swf'), self::$pagehook, 'normal', 'normal');
570
+ add_meta_box('youtubediv', __('YouTube', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_youtube'), self::$pagehook, 'normal', 'normal');
571
+ add_meta_box('vimeodiv', __('Vimeo', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_vimeo'), self::$pagehook, 'normal', 'normal');
572
+ add_meta_box('dailymotiondiv', __('Dailymotion', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_dailymotion'), self::$pagehook, 'normal', 'normal');
573
+ add_meta_box('iframediv', __('iFrames', 'easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_iframe'), self::$pagehook, 'normal', 'normal');
574
+
575
+ //load admin page
576
+ include(EASY_FANCYBOX_PLUGINDIR . '/easy-fancybox-admin.php');
577
+ }
578
+
579
+ public function closed_meta_boxes( $closed ) {
580
+
581
+ if ( false === $closed )
582
+ // set default closed metaboxes
583
+ $closed = array( 'advanceddiv', 'supportdiv', 'creditsdiv', 'resourcesdiv' );
584
+ else
585
+ // remove closed setting of some metaboxes
586
+ $closed = array_diff ( $closed , array ( 'submitdiv' ) );
587
+
588
+ return $closed;
589
+ }
590
+
591
+ public static function admin_scripts($hook) {
592
+
593
+ // needed javascripts to allow drag/drop, expand/collapse and hide/show of boxes
594
+ wp_enqueue_script('common');
595
+ wp_enqueue_script('wp-list');
596
+ wp_enqueue_script('postbox');
597
+
598
+ //add several metaboxes now, all metaboxes registered during load page can be switched off/on at "Screen Options" automatically, nothing special to do therefore
599
+ //add_meta_box('advanceddiv', __('Advanced Options', 'skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_advanced'), self::$pagehook, 'normal', 'core'); // make these pro options???
600
+
601
+ add_meta_box('supportdiv', __('Support','easy-fancybox'), array(__CLASS__.'_Admin', 'meta_box_support'), self::$pagehook, 'side', 'core');
602
+ add_meta_box('resourcesdiv', __('Resources','skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_resources'), self::$pagehook, 'side', 'low');
603
+ add_meta_box('discussiondiv', __('Discussion'), array(__CLASS__.'_Admin', 'meta_box_discussion'), self::$pagehook, 'normal', 'low');
604
+ add_meta_box('creditsdiv', __('Credits','skype-online-status'), array(__CLASS__.'_Admin', 'meta_box_credits'), self::$pagehook, 'side', 'default');
605
+
606
+ }
607
+
608
+ /**********************
609
+ RUN
610
+ **********************/
611
+
612
+ static function run() {
613
+
614
+ // HOOKS //
615
+ add_action('plugins_loaded', array(__CLASS__, 'textdomain'));
616
+
617
+ add_action('admin_init', array(__CLASS__, 'admin_init'));
618
+
619
+ add_action('init', array(__CLASS__, 'init'));
620
+ add_action('wp_print_scripts', array(__CLASS__, 'register_scripts'), 999);
621
+ add_action('wp_enqueue_scripts', array(__CLASS__, 'enqueue_styles'));
622
+ add_action('wp_head', array(__CLASS__, 'main_script'), 999);
623
+ add_action('wp_footer', array(__CLASS__, 'enqueue_footer_scripts'));
624
+ add_action('wp_footer', array(__CLASS__, 'on_ready'), 999);
625
+ }
626
+
627
+ }
628
+
easy-fancybox-nl.mo DELETED
Binary file
easy-fancybox-nl_NL.mo DELETED
Binary file
easy-fancybox-settings.php CHANGED
@@ -1,360 +1,740 @@
1
  <?php
2
- function easy_fancybox_settings(){
 
 
 
 
3
 
4
- return array (
5
  'Global' => array(
6
  'title' => __('Global settings','easy-fancybox'),
7
- 'input' => 'multiple',
8
  'hide' => true,
9
  'options' => array(
10
- 'intro' => array (
11
- 'hide' => true,
12
- 'description' => __('These settings determine the global overlay appearance and behaviour controlled by FancyBox.','easy-fancybox') . '<br />'
13
- ),
14
- 'p0' => array (
15
- 'hide' => true,
16
- 'description' => '<br /><strong>' . __('Links') . '</strong><br />'
17
- ),
18
- 'attributeLimit' => array (
19
- 'id' => 'fancybox_attributeLimit',
20
- 'title' => __('Exclude','easy-fancybox'),
21
- 'label_for' => 'fancybox_attributeLimit',
22
- 'hide' => true,
23
- 'input' => 'select',
24
- 'options' => array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  '' => __('None'),
26
  ':not(:empty)' => __('Empty (hidden) links','easy-fancybox'),
27
  ':has(img)' => __('Without thumbnail image','easy-fancybox')
 
 
 
28
  ),
29
- 'default' => ':not(:empty)',
30
- 'description' => '<br />'
31
- ),
32
- 'autoClick' => array (
33
- 'id' => 'fancybox_autoClick',
34
- 'title' => __('Auto-trigger','easy-fancybox'),
35
- 'label_for' => 'fancybox_autoClick',
36
- 'hide' => true,
37
- 'input' => 'select',
38
- 'options' => array(
39
  '' => __('None'),
40
- '1' => __('Manual','easy-fancybox'),
41
- 'IMG' => __('First Image link','easy-fancybox'),
42
- 'PDF' => __('First PDF link','easy-fancybox'),
43
- 'SWF' => __('First SWF link','easy-fancybox'),
44
- 'YouTube' => __('First YouTube link ','easy-fancybox'),
45
- 'Vimeo' => __('First Vimeo link ','easy-fancybox'),
46
- 'Dailymotion' => __('First Dailymotion link ','easy-fancybox'),
47
- 'iFrame' => __('First iFrame link','easy-fancybox'),
48
- '99' => __('First of any link','easy-fancybox'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ),
50
- 'default' => '1',
51
- 'description' => '<br />' . __('If you want an image, movie or even hidden content to pop up when a visitor opens the page, select one of these options. "Manual" means you have to create a link with class="fancybox" and id="fancybox-auto" in your content or a text widget.','easy-fancybox')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  ),
53
- 'p1' => array (
54
- 'hide' => true,
55
- 'description' => '<br /><br /><strong>' . __('Overlay','easy-fancybox') . '</strong><br />'
56
- ),
57
- 'overlayShow' => array (
58
- 'id' => 'fancybox_overlayShow',
59
- 'input' => 'checkbox',
60
- 'default' => '1',
61
- 'description' => __('Show the overlay around content opened in FancyBox.','easy-fancybox')
62
- ),
63
- 'overlaySpotlight' => array (
64
- 'id' => 'fancybox_overlaySpotlight',
65
- 'input' => 'checkbox',
66
- 'hide' => true,
67
- 'default' => '',
68
- 'description' => __('Spotlight effect.','easy-fancybox')
69
- ),
70
- 'overlayOpacity' => array (
71
- 'id' => 'fancybox_overlayOpacity',
72
- 'title' => __('Overlay opacity','easy-fancybox'),
73
- 'label_for' => 'fancybox_overlayOpacity',
74
- 'input' => 'text',
75
- 'class' => 'small-text',
76
- 'default' => '',
77
- 'description' => __('Value between 0 and 1. ','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 0.7</em><br />'
78
- ),
79
- 'overlayColor' => array (
80
- 'id' => 'fancybox_overlayColor',
81
- 'title' => __('Overlay color','easy-fancybox'),
82
- 'label_for' => 'fancybox_overlayColor',
83
- 'input' => 'text',
84
- 'class' => 'small-text',
85
- 'default' => '',
86
- 'description' => __('Enter a HTML color value.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' #777</em><br />'
87
  ),
88
  'p2' => array (
89
- 'hide' => true,
90
- 'description' => '<br /><strong>' . __('Overlay window','easy-fancybox') . '</strong><br />'
91
  ),
92
- 'width' => array (
93
- 'id' => 'fancybox_width',
94
- 'title' => __('Width'),
95
- 'label_for' => 'fancybox_width',
96
- 'input' => 'text',
97
- 'class' => 'small-text',
98
- 'default' => '',
99
- 'description' => ' '
 
 
 
 
100
  ),
101
- 'height' => array (
102
- 'id' => 'fancybox_height',
103
- 'title' => __('Height'),
104
- 'label_for' => 'fancybox_height',
105
- 'input' => 'text',
106
- 'class' => 'small-text',
107
- 'default' => ''
 
 
 
 
 
 
108
  ),
109
- 'padding' => array (
110
- 'id' => 'fancybox_padding',
111
- 'title' => __('Border'),
112
- 'label_for' => 'fancybox_padding',
113
- 'input' => 'text',
114
- 'class' => 'small-text',
115
- 'default' => '',
116
- 'description' => '<br />' . __('Change default width, heigth and border of the overlay window.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 560 x 340 x 10</em><br />'
117
- ),
118
- 'centerOnScroll' => array (
119
- 'id' => 'fancybox_centerOnScroll',
120
- 'input' => 'checkbox',
121
- 'default' => '1',
122
- 'description' => __('Center while scrolling','easy-fancybox')
123
- ),
124
- 'showCloseButton' => array (
125
- 'id' => 'fancybox_showCloseButton',
126
- 'input' => 'checkbox',
127
- 'default' => '1',
128
- 'description' => __('Show the (X) close button','easy-fancybox')
129
  ),
130
- 'showNavArrows' => array (
131
- 'id' => 'fancybox_showNavArrows',
132
- 'input' => 'checkbox',
133
- 'default' => '1',
134
- 'description' => __('Show the gallery navigation arrows','easy-fancybox')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
135
  ),
136
  'titleShow' => array (
137
- 'id' => 'fancybox_titleShow',
138
- 'input' => 'checkbox',
139
- 'default' => '1',
140
- 'description' => __('Show title','easy-fancybox')
 
141
  ),
142
  'titlePosition' => array (
143
- 'id' => 'fancybox_titlePosition',
144
- 'title' => __('Title Position','easy-fancybox'),
145
- 'label_for' => 'fancybox_titlePosition',
146
- 'input' => 'select',
147
- 'options' => array(
148
- '' => __('Float','easy-fancybox'), // same as 'float'
149
- 'outside' => __('Outside','easy-fancybox'),
150
- 'inside' => __('Inside','easy-fancybox'),
151
- 'over' => __('Overlay','easy-fancybox')
152
- ),
153
- 'default' => 'over',
154
- 'description' => ' '
155
  ),
156
  'titleFromAlt' => array (
157
- 'id' => 'fancybox_titleFromAlt',
158
- 'input' => 'checkbox',
159
- 'default' => '1',
160
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
161
- ),
162
- /* 'titleFormat' => array (
163
- 'id' => 'fancybox_titleFormat',
164
- 'title' => __('Title format','easy-fancybox'),
165
- 'label_for' => 'fancybox_titleFormat',
166
- 'input' => 'select',
167
- 'options' => array(
168
- '' => __('Default FancyBox style','easy-fancybox'),
169
- 'function(title, currentArray, currentIndex, currentOpts) { return \'<div style="font-face:Arial,sans-serif;text-align:left"><span style="float:right;font-size:large"><a href="javascript:;" onclick="$.fancybox.close();">' . __('Close','easy-fancybox') . ' <img src="' . plugins_url(FANCYBOX_SUBDIR, __FILE__) . '/fancybox/fancy_close.png" /></a></span>\' + (title && title.length ? \'<b style="display:block;margin-right:80px">\' + title + \'</b>\' : \'\' ) + \'' . __('Image','easy-fancybox') . '\' + (currentIndex + 1) + \' ' . __('of','easy-fancybox') . ' \' + currentArray.length + \'</div>\';
170
- }' => __('Mimic Lightbox2 style','easy-fancybox'),
171
- ),
172
- 'noquotes' => true,
173
- 'default' => '',
174
- 'description' => '<br />' . __('To improve Lightbox2 style disable Show close button and set titleposition to Inside or Outside','easy-fancybox') . '<br />'
175
- ),*/
176
- 'onComplete' => array (
177
- 'id' => 'fancybox_onComplete',
178
- 'title' => __('Advanced','easy-fancybox'),
179
- 'label_for' => 'fancybox_onComplete',
180
- 'input' => 'select',
181
- 'options' => array(
182
- '' => __('None','easy-fancybox'), // no extra's
183
- 'function() { $(\'#fancybox-title\').hide(); $(\'#fancybox-wrap\').hover(function() { $(\'#fancybox-title\').show(); }, function() { $(\'#fancybox-title\').hide(); }); }' => __('Hide/show title on mouse hover action','easy-fancybox'),
184
- 'function() { fb_timeout = setTimeout(function(){jQuery.fancybox.next();}, 5000); $(\'#fancybox-wrap\').hover(function() { if(fb_timeout) clearTimeout(fb_timeout); }, function() { if(!fb_timeout) var fb_timeout = setTimeout(function(){jQuery.fancybox.next();}, 5000); }); }' => __('Gallery Auto-rotation','easy-fancybox')
185
- ), // \'jQuery("#fancybox-right").trigger("click")\'
186
- // \'jQuery.event.trigger("fancybox-next")\'
187
- // \'jQuery.fancybox.next()\'
188
- // function(){jQuery.fancybox.next();}
189
- 'noquotes' => true,
190
- 'default' => '',
191
- 'description' => '<br />' . __('Note: Hide/show title on mouse hover action works best with Overlay title position. Auto-rotation uses a fixed 5 second pause per image.','easy-fancybox') . '<br />'
192
- ),
193
- 'onCleanup' => array (
194
- 'noquotes' => true,
195
- 'default' => 'function() { if(fb_timeout) { window.clearTimeout(fb_timeout); fb_timeout = null; } }'
196
  ),
197
-
198
  'p3' => array (
199
- 'hide' => true,
200
- 'description' => '<br /><strong>' . __('Transition','easy-fancybox') . '</strong><br />'
201
  ),
202
- 'transitionIn' => array (
203
- 'id' => 'fancybox_transitionIn',
204
- 'title' => __('Transition In','easy-fancybox'),
205
- 'label_for' => 'fancybox_transitionIn',
206
- 'input' => 'select',
207
- 'options' => array(
208
- '' => __('Fade','easy-fancybox'),
209
- 'elastic' => __('Elastic','easy-fancybox'),
210
- 'none' => __('None','easy-fancybox')
211
- ),
212
- 'default' => 'elastic',
213
- 'description' => ' '
 
214
  ),
215
- 'easingIn' => array (
216
- 'id' => 'fancybox_easingIn',
217
- 'title' => __('Easing In','easy-fancybox'),
218
- 'label_for' => 'fancybox_easingIn',
219
- 'input' => 'select',
220
- 'options' => array(
221
- '' => __('Swing','easy-fancybox'),
222
- 'easeOutBack' => __('Back','easy-fancybox'),
223
- 'easeOutQuad' => __('Quad','easy-fancybox'),
224
- 'easeOutExpo' => __('Expo','easy-fancybox'),
225
- ),
226
- 'default' => 'easeOutBack',
227
- 'description' => '<br />'
228
  ),
229
- 'transitionOut' => array (
230
- 'id' => 'fancybox_transitionOut',
231
- 'title' => __('Transition Out','easy-fancybox'),
232
- 'label_for' => 'fancybox_transitionOut',
233
- 'input' => 'select',
234
- 'options' => array(
235
- '' => __('Fade','easy-fancybox'),
236
- 'elastic' => __('Elastic','easy-fancybox'),
237
- 'none' => __('None','easy-fancybox')
238
- ),
239
- 'default' => 'elastic',
240
- 'description' => ' '
241
  ),
242
- 'easingOut' => array (
243
- 'id' => 'fancybox_easingOut',
244
- 'title' => __('Easing Out','easy-fancybox'),
245
- 'label_for' => 'fancybox_easingOut',
246
- 'input' => 'select',
247
- 'options' => array(
248
- '' => __('Swing','easy-fancybox'),
249
- 'easeInBack' => __('Back','easy-fancybox'),
250
- 'easeInQuad' => __('Quad','easy-fancybox'),
251
- 'easeInExpo' => __('Expo','easy-fancybox'),
252
- ),
253
- 'default' => 'easeInBack',
254
- 'description' => '<br />' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
255
  ),
256
- 'opacity' => array (
257
- 'id' => 'fancybox_opacity',
258
- 'input' => 'checkbox',
259
- 'default' => '',
260
- 'description' => __('Transparency fade during elastic transition.','easy-fancybox')
261
- ),
262
- 'speedIn' => array (
263
- 'id' => 'fancybox_speedIn',
264
- 'title' => __('Opening speed','easy-fancybox'),
265
- 'label_for' => 'fancybox_speedIn',
266
- 'input' => 'text',
267
- 'class' => 'small-text',
268
- 'default' => '',
269
- ),
270
- 'speedOut' => array (
271
- 'id' => 'fancybox_speedIn',
272
- 'title' => __('Closing speed','easy-fancybox'),
273
- 'label_for' => 'fancybox_speedOut',
274
- 'input' => 'text',
275
- 'class' => 'small-text',
276
- 'default' => '',
277
  ),
278
  'changeFade' => array (
279
- 'id' => 'fancybox_changeFade',
280
- 'title' => __('Fade speed','easy-fancybox'),
281
- 'label_for' => 'fancybox_changeFade',
282
- 'input' => 'text',
283
- 'class' => 'small-text',
284
- 'default' => '',
285
- 'description' => '<br />' . __('Duration in milliseconds. Higher is slower.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 300</em><br />'
286
- ) )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  ),
288
- 'IMG' => array(
289
- 'title' => __('Images','easy-fancybox'),
 
290
  'input' => 'multiple',
291
  'options' => array(
292
- 'enable' => array (
293
- 'id' => 'fancybox_enableImg',
294
- 'input' => 'checkbox',
295
- 'hide' => true,
296
- 'default' => ( function_exists('is_plugin_active_for_network') && is_plugin_active_for_network(plugin_basename( __FILE__ )) ) ? '' : '1',
297
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('Images','easy-fancybox') . '</strong>'
298
- ),
299
  'intro' => array (
300
- 'hide' => true,
301
- 'description' => __('To make any image file open in an overlay, add its extension to the auto-detect field or use the tag class="fancybox" for its link. Clear field to switch off auto-enabling.','easy-fancybox') . '<br />'
302
  ),
303
- 'autoAttribute' => array (
304
- 'id' => 'fancybox_autoAttribute',
305
- 'title' => __('Auto-detect','easy-fancybox'),
306
- 'label_for' => 'fancybox_autoAttribute',
307
- 'input' => 'text',
308
- 'class' => 'regular-text',
309
- 'hide' => true,
310
- 'default' => 'jpg gif png',
311
- 'selector' => 'href$=',
312
- 'description' => ' <em>' . __('Default:','easy-fancybox') . ' jpg gif png</em><br />' . __('Change option "Advanced" below to further tweak auto-detection and gallery behaviour.','easy-fancybox') . '<br />'
313
  ),
314
- 'autoAttributeLimit' => array (
315
- 'id' => 'fancybox_autoAttributeLimit',
316
- 'title' => __('Apply to','easy-fancybox'),
317
- 'label_for' => 'fancybox_autoAttributeLimit',
318
- 'hide' => true,
319
- 'input' => 'select',
320
- 'options' => array(
321
- '' => __('All image links', 'easy-fancybox'),
322
- '1' => __('Grouped images only','easy-fancybox')
323
- ),
324
- 'default' => '',
325
- 'description' => '<em>' . __('Default:','easy-fancybox') . ' ' . 'All image links' . '</em><br />' . __('Note: The options "Grouped images only" might need adjusting the setting "Group selector(s)" below to make it compatible with your theme.','easy-fancybox') . '<br />'
326
  ),
327
- 'autoGallery' => array (
328
- 'id' => 'fancybox_autoGallery',
329
- 'title' => __('Auto-gallery','easy-fancybox'),
330
- 'label_for' => 'fancybox_autoGallery',
331
- 'hide' => true,
332
- 'input' => 'select',
333
- 'options' => array(
334
- '' => __('Disabled'),
335
- '1' => __('One gallery per group','easy-fancybox'),
336
- '2' => __('One gallery for all','easy-fancybox')
337
- ),
338
- 'default' => '1',
339
- 'description' => '<em>' . __('Default:','easy-fancybox') . ' ' . 'One gallery per group' . '</em><br />' . __('When disabled, you can use the rel attribute to manually group images together. Example: < a href="..." rel="gallery">...< /a>','easy-fancybox') . '<br />' . __('Note: You might need to adjust the setting "Group selector(s)" below to make grouping compatible with your theme.','easy-fancybox') . '<br />'
340
  ),
341
- 'autoSelector' => array (
342
- 'id' => 'fancybox_autoGallerySelector',
343
- 'title' => __('Group selector(s)','easy-fancybox'),
344
- 'label_for' => 'fancybox_autoGallerySelector',
345
- 'hide' => true,
346
- 'input' => 'text',
347
- 'class' => 'regular-text',
348
- 'default' => 'article, div.hentry',
349
- 'description' => __('Seperate with a comma.', 'easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' ' . 'article, div.hentry' . '</em><br />' . __('Examples: If your theme wraps post content in a div with class post, change this value to "div.post". If you want to include images in a sidebar with ID primary, add ", div#primary" or "aside#primary" for html5 themes.','easy-fancybox')
350
- ),
351
- /* 'onStart' => array (
352
- 'noquotes' => true,
353
- 'default' => 'function() { window.clearTimeout(fb_timeout); }'
354
- ),*/
355
- 'class' => array (
356
- 'hide' => true,
357
- 'default' => 'fancybox'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
358
  )
359
  )
360
  ),
@@ -363,227 +743,312 @@ function easy_fancybox_settings(){
363
  'title' => __('PDF','easy-fancybox'),
364
  'input' => 'multiple',
365
  'options' => array(
366
- 'enable' => array (
367
- 'id' => 'fancybox_enablePDF',
368
- 'input' => 'checkbox',
369
- 'hide' => true,
370
- 'default' => '',
371
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('PDF','easy-fancybox') . '</strong>'
372
  ),
373
  'autoAttribute' => array (
374
- 'id' => 'fancybox_autoAttributePDF',
375
- 'input' => 'checkbox',
376
- 'hide' => true,
377
- 'default' => '',
378
- 'selector' => 'href$=".pdf"',
379
- 'description' => __('Auto-detect','easy-fancybox')
380
  ),
381
- 'class' => array (
382
- 'hide' => true,
383
- 'default' => 'fancybox-pdf'
384
  ),
385
- 'intro' => array (
386
- 'hide' => true,
387
- 'description' => __('To make any PDF document file open in an overlay, switch on auto-detect or use the tag class="fancybox-pdf" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '<br /><br />'
388
  ),
389
  'type' => array (
390
- 'default' => 'html'
391
  ),
392
  'width' => array (
393
- 'id' => 'fancybox_PDFwidth',
394
- 'title' => __('Width'),
395
- 'label_for' => 'fancybox_PDFwidth',
396
- 'input' => 'text',
397
- 'class' => 'small-text',
398
- 'default' => '90%',
399
- 'description' => ' '
 
400
  ),
401
  'height' => array (
402
- 'id' => 'fancybox_PDFheight',
403
- 'title' => __('Height'),
404
- 'label_for' => 'fancybox_PDFheight',
405
- 'input' => 'text',
406
- 'class' => 'small-text',
407
- 'default' => '90%'
408
- ),
409
- 'margin' => array (
410
- 'default' => '0'
411
  ),
412
  'padding' => array (
413
- 'id' => 'fancybox_PDFpadding',
414
- 'title' => __('Border'),
415
- 'label_for' => 'fancybox_PDFpadding',
416
- 'input' => 'text',
417
- 'class' => 'small-text',
418
- 'default' => '0',
419
- 'description' => '<br />' . __('Width and height can be relative (%) or absolute sizes.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . '<br />'
420
- ),
421
- 'autoScale' => array (
422
- 'noquotes' => true,
423
- 'default' => 'false'
424
  ),
 
 
 
 
425
  'titleShow' => array (
426
- 'id' => 'fancybox_PDFtitleShow',
427
- 'input' => 'checkbox',
428
- 'default' => '',
429
- 'description' => __('Show title','easy-fancybox')
 
430
  ),
431
  'titlePosition' => array (
432
- 'id' => 'fancybox_PDFtitlePosition',
433
- 'title' => __('Title Position','easy-fancybox'),
434
- 'label_for' => 'fancybox_PDFtitlePosition',
435
- 'input' => 'select',
436
- 'options' => array(
437
- 'float' => __('Float','easy-fancybox'), // same as 'float'
438
- 'outside' => __('Outside','easy-fancybox'),
439
- 'inside' => __('Inside','easy-fancybox')
440
- //,'over' => __('Overlay','easy-fancybox')
441
- ),
442
- 'default' => 'float',
443
  ),
444
  'titleFromAlt' => array (
445
- 'id' => 'fancybox_PDFtitleFromAlt',
446
- 'input' => 'checkbox',
447
- 'default' => '',
448
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
 
449
  ),
450
- 'transitionOut' => array (
451
- 'id' => 'fancybox_PDFtransitionOut',
452
- 'title' => __('Transition Out','easy-fancybox'),
453
- 'label_for' => 'fancybox_PDFtransitionOut',
454
- 'input' => 'select',
455
- 'class' => '',
456
- 'options' => array(
457
- 'fade' => __('Fade','easy-fancybox'),
458
- //'elastic' => __('Elastic','easy-fancybox'),
459
- 'none' => __('None','easy-fancybox')
460
- ),
461
- 'default' => 'fade',
462
  ),
463
  'easingIn' => array (
464
- 'default' => 'swing'
465
- ),
466
  'autoDimensions' => array (
467
- 'noquotes' => true,
468
- 'default' => 'false'
469
  ),
470
  'scrolling' => array (
471
- 'default' => 'no',
472
  ),
473
  'onStart' => array (
474
- 'noquotes' => true,
475
- // '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%" />\' }'
476
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<object data="\' + selectedArray[selectedIndex].href + \'#toolbar=1&amp;navpanes=0&amp;nameddest=self&amp;page=1&amp;view=FitH,0&amp;zoom=80,0,0" type="application/pdf" height="100%" width="100%"><param name="src" value="\' + selectedArray[selectedIndex].href + \'#toolbar=1&amp;navpanes=0&amp;nameddest=self&amp;page=1&amp;view=FitH,0&amp;zoom=80,0,0" /><a href="\' + selectedArray[selectedIndex].href + \'" style="display:block;font-size:18px;height:20px;position:absolute;top:50%;margin:-10px auto 0 auto">\' + $(selectedArray[selectedIndex]).html() + \'</a></object>\' }'
477
- )
478
- )
 
 
 
 
 
479
  ),
480
 
481
  'SWF' => array(
482
  'title' => __('SWF','easy-fancybox'),
483
  'input' => 'multiple',
484
  'options' => array(
485
- 'enable' => array (
486
- 'id' => 'fancybox_enableSWF',
487
- 'input' => 'checkbox',
488
- 'hide' => true,
489
- 'default' => '',
490
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('SWF','easy-fancybox') . '</strong>'
491
  ),
492
  'autoAttribute' => array (
493
- 'id' => 'fancybox_autoAttributeSWF',
494
- 'input' => 'checkbox',
495
- 'hide' => true,
496
- 'default' => '',
497
- 'selector' => 'href$=".swf"',
498
- 'description' => __('Auto-detect','easy-fancybox')
499
  ),
500
- 'class' => array (
501
- 'hide' => true,
502
- 'default' => 'fancybox-swf'
503
  ),
504
- 'intro' => array (
505
- 'hide' => true,
506
- 'description' => __('To make any Flash (.swf) file open in an overlay, switch on auto-detect or use the tag class="fancybox-swf" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '<br /><br />'
507
  ),
508
  'type' => array(
509
- 'default' => 'swf'
510
  ),
511
  'width' => array (
512
- 'id' => 'fancybox_SWFWidth',
513
- 'title' => __('Width'),
514
- 'label_for' => 'fancybox_SWFWidth',
515
- 'input' => 'text',
516
- 'class' => 'small-text',
517
- 'options' => array(),
518
- 'default' => '680',
519
- 'description' => ' '
 
520
  ),
521
  'height' => array (
522
- 'id' => 'fancybox_SWFHeight',
523
- 'title' => __('Height'),
524
- 'label_for' => 'fancybox_SWFHeight',
525
- 'input' => 'text',
526
- 'class' => 'small-text',
527
- 'options' => array(),
528
- 'default' => '495',
 
529
  ),
530
  'padding' => array (
531
- 'id' => 'fancybox_SWFpadding',
532
- 'title' => __('Border'),
533
- 'label_for' => 'fancybox_SWFpadding',
534
- 'input' => 'text',
535
- 'class' => 'small-text',
536
- 'default' => '0',
537
- 'description' => '<br />' . __('Width and height can be relative (%) or absolute sizes.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . '<br />'
538
- ),
539
- 'autoScale' => array (
540
- 'noquotes' => true,
541
- 'default' => 'false'
542
  ),
543
  'titleShow' => array (
544
- 'id' => 'fancybox_SWFtitleShow',
545
- 'input' => 'checkbox',
546
- 'default' => '',
547
- 'description' => __('Show title','easy-fancybox')
 
548
  ),
549
  'titlePosition' => array (
550
- 'id' => 'fancybox_SWFtitlePosition',
551
- 'title' => __('Title Position','easy-fancybox'),
552
- 'label_for' => 'fancybox_SWFtitlePosition',
553
- 'input' => 'select',
554
- 'options' => array(
555
- 'float' => __('Float','easy-fancybox'), // same as 'float'
556
- 'outside' => __('Outside','easy-fancybox'),
557
- 'inside' => __('Inside','easy-fancybox')
558
- //,'over' => __('Overlay','easy-fancybox')
559
- ),
560
- 'default' => 'float',
561
  ),
562
  'titleFromAlt' => array (
563
- 'id' => 'fancybox_SWFtitleFromAlt',
564
- 'input' => 'checkbox',
565
- 'default' => '',
566
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
 
567
  ),
568
- 'transitionOut' => array (
569
- 'id' => 'fancybox_SWFtransitionOut',
570
- 'title' => __('Transition Out','easy-fancybox'),
571
- 'label_for' => 'fancybox_SWFtransitionOut',
572
- 'input' => 'select',
573
- 'class' => '',
574
- 'options' => array(
575
- 'fade' => __('Fade','easy-fancybox'),
576
- //'elastic' => __('Elastic','easy-fancybox'),
577
- 'none' => __('None','easy-fancybox')
578
- ),
579
- 'default' => 'fade',
 
 
580
  ),
581
- 'easingIn' => array (
582
- 'default' => 'swing'
 
 
 
 
 
583
  ),
584
- 'swf' => array (
585
- 'noquotes' => true,
586
- 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
  )
588
  )
589
  ),
@@ -592,119 +1057,106 @@ function easy_fancybox_settings(){
592
  'title' => __('YouTube','easy-fancybox'),
593
  'input' => 'multiple',
594
  'options' => array(
595
- 'enable' => array (
596
- 'id' => 'fancybox_enableYoutube',
597
- 'input' => 'checkbox',
598
- 'hide' => true,
599
- 'default' => '',
600
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('YouTube','easy-fancybox') . '</strong>'
601
  ),
602
  'autoAttribute' => array (
603
- 'id' => 'fancybox_autoAttributeYoutube',
604
- 'input' => 'checkbox',
605
- 'hide' => true,
606
- 'default' => '',
607
- 'selector' => 'href*="youtube.com/"',
608
- //'href-replace' => "return attr.replace(new RegExp('watch\\\?v=', 'i'), 'v/')",
609
- 'description' => __('Auto-detect','easy-fancybox')
610
  ),
611
  'autoAttributeAlt' => array (
612
- 'id' => 'fancybox_autoAttributeYoutubeShortURL',
613
- 'input' => 'checkbox',
614
- 'hide' => true,
615
- 'default' => '',
616
- 'selector' => 'href*="youtu.be/"',
617
- //'href-replace' => "return attr.replace(new RegExp('youtu.be', 'i'), 'www.youtube.com/v')",
618
- 'description' => __('Auto-detect Short links','easy-fancybox')
619
  ),
620
- 'class' => array (
621
- 'hide' => true,
622
- 'default' => 'fancybox-youtube'
623
  ),
624
- 'intro' => array (
625
- 'hide' => true,
626
- 'description' => __('To make any YouTube movie open in an overlay, switch on auto-detect or use the tag class="fancybox-youtube" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '<br /><br />'
627
  ),
628
  'type' => array(
629
- 'default' => 'swf'
630
  ),
631
  'width' => array (
632
- 'id' => 'fancybox_YoutubeWidth',
633
- 'title' => __('Width'),
634
- 'label_for' => 'fancybox_YoutubeWidth',
635
- 'input' => 'text',
636
- 'class' => 'small-text',
637
- 'default' => '640',
638
- 'description' => ' '
 
 
 
 
639
  ),
640
  'height' => array (
641
- 'id' => 'fancybox_YoutubeHeight',
642
- 'title' => __('Height'),
643
- 'label_for' => 'fancybox_YoutubeHeight',
644
- 'input' => 'text',
645
- 'class' => 'small-text',
646
- 'default' => '385',
 
 
 
 
647
  ),
648
  'padding' => array (
649
- 'id' => 'fancybox_Youtubepadding',
650
- 'title' => __('Border'),
651
- 'label_for' => 'fancybox_Youtubepadding',
652
- 'input' => 'text',
653
- 'class' => 'small-text',
654
- 'default' => '0',
655
- 'description' => '<br />' . __('Width and height can be relative (%) or absolute sizes.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . '<br />'
656
- ),
657
- 'autoScale' => array (
658
- 'noquotes' => true,
659
- 'default' => 'false'
660
  ),
661
  'titleShow' => array (
662
- 'id' => 'fancybox_YoutubetitleShow',
663
- 'input' => 'checkbox',
664
- 'default' => '',
665
- 'description' => __('Show title','easy-fancybox')
 
666
  ),
667
  'titlePosition' => array (
668
- 'id' => 'fancybox_YoutubetitlePosition',
669
- 'title' => __('Title Position','easy-fancybox'),
670
- 'label_for' => 'fancybox_YoutubetitlePosition',
671
- 'input' => 'select',
672
- 'options' => array(
673
- 'float' => __('Float','easy-fancybox'), // same as 'float'
674
- 'outside' => __('Outside','easy-fancybox'),
675
- 'inside' => __('Inside','easy-fancybox')
676
- //,'over' => __('Overlay','easy-fancybox')
677
- ),
678
- 'default' => 'float',
679
  ),
680
  'titleFromAlt' => array (
681
- 'id' => 'fancybox_YoutubetitleFromAlt',
682
- 'input' => 'checkbox',
683
- 'default' => '',
684
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
685
- ),
686
- 'transitionOut' => array (
687
- 'id' => 'fancybox_YoutubetransitionOut',
688
- 'title' => __('Transition Out','easy-fancybox'),
689
- 'label_for' => 'fancybox_YoutubetransitionOut',
690
- 'input' => 'select',
691
- 'options' => array(
692
- 'fade' => __('Fade','easy-fancybox'),
693
- //'elastic' => __('Elastic','easy-fancybox'),
694
- 'none' => __('None','easy-fancybox')
695
- ),
696
- 'default' => 'fade'
697
- ),
698
- 'easingIn' => array (
699
- 'default' => 'swing'
700
- ),
701
- 'swf' => array (
702
- 'noquotes' => true,
703
- 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}'
704
  ),
705
  'onStart' => array (
706
- 'noquotes' => true,
707
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'youtu.be\', \'i\'), \'www.youtube.com/v\').replace(new RegExp(\'watch\\\?v=\', \'i\'), \'v/\') }'
708
  )
709
  )
710
  ),
@@ -713,127 +1165,97 @@ function easy_fancybox_settings(){
713
  'title' => __('Vimeo','easy-fancybox'),
714
  'input' => 'multiple',
715
  'options' => array(
716
- 'enable' => array (
717
- 'id' => 'fancybox_enableVimeo',
718
- 'input' => 'checkbox',
719
- 'hide' => true,
720
- 'default' => '',
721
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('Vimeo','easy-fancybox') . '</strong>'
722
  ),
723
  'autoAttribute' => array (
724
- 'id' => 'fancybox_autoAttributeVimeo',
725
- 'input' => 'checkbox',
726
- 'hide' => true,
727
- 'default' => '',
728
- 'selector' => 'href*="vimeo.com/"',
729
- //'href-replace' => "return attr.replace(new RegExp('/([0-9])', 'i'), '/moogaloop.swf?clip_id=$1')",
730
- 'description' => __('Auto-detect','easy-fancybox')
731
  ),
732
- 'class' => array (
733
- 'hide' => true,
734
- 'default' => 'fancybox-vimeo'
735
  ),
736
- 'intro' => array (
737
- 'hide' => true,
738
- 'description' => __('To make any Vimeo movie open in an overlay, switch on auto-detect or use the tag class="fancybox-vimeo" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '<br /><br />'
739
  ),
740
  'type' => array(
741
- 'default' => 'swf'
742
  ),
743
  'width' => array (
744
  'id' => 'fancybox_VimeoWidth',
745
  'title' => __('Width'),
746
  'label_for' => 'fancybox_VimeoWidth',
747
- 'input' => 'text',
 
 
 
 
748
  'class' => 'small-text',
749
- 'default' => '640',
750
  'description' => ' '
751
  ),
752
  'height' => array (
753
- 'id' => 'fancybox_VimeoHeight',
754
- 'title' => __('Height'),
755
- 'label_for' => 'fancybox_VimeoHeight',
756
- 'input' => 'text',
757
- 'class' => 'small-text',
758
- 'default' => '360'
 
 
 
 
759
  ),
760
  'padding' => array (
761
- 'id' => 'fancybox_Vimeopadding',
762
- 'title' => __('Border'),
763
- 'label_for' => 'fancybox_Vimeopadding',
764
- 'input' => 'text',
765
- 'class' => 'small-text',
766
- 'default' => '0',
767
- 'description' => '<br />' . __('Width and height can be relative (%) or absolute sizes.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . '<br />'
768
- ),
769
- 'autoScale' => array (
770
- 'noquotes' => true,
771
- 'default' => 'false'
772
- ),
773
- 'transitionOut' => array (
774
- 'id' => 'fancybox_VimeotransitionOut',
775
- 'title' => __('Transition Out','easy-fancybox'),
776
- 'label_for' => 'fancybox_VimeotransitionOut',
777
- 'input' => 'select',
778
- 'options' => array(
779
- 'fade' => __('Fade','easy-fancybox'),
780
- //'elastic' => __('Elastic','easy-fancybox'),
781
- 'none' => __('None','easy-fancybox')
782
- ),
783
- 'default' => 'fade',
784
- 'description' => __('Transition effect when closing the overlay.','easy-fancybox')
785
- ),
786
- 'easingIn' => array (
787
- 'default' => 'swing'
788
  ),
789
  'titleShow' => array (
790
- 'id' => 'fancybox_VimeotitleShow',
791
- 'input' => 'checkbox',
792
- 'default' => '',
793
- 'description' => __('Show title','easy-fancybox')
 
794
  ),
795
  'titlePosition' => array (
796
- 'id' => 'fancybox_VimeotitlePosition',
797
- 'title' => __('Title Position','easy-fancybox'),
798
- 'label_for' => 'fancybox_VimeotitlePosition',
799
- 'input' => 'select',
800
- 'options' => array(
801
- 'float' => __('Float','easy-fancybox'), // same as 'float'
802
- 'outside' => __('Outside','easy-fancybox'),
803
- 'inside' => __('Inside','easy-fancybox')
804
- //,'over' => __('Overlay','easy-fancybox')
805
- ),
806
- 'default' => 'float',
807
  ),
808
  'titleFromAlt' => array (
809
- 'id' => 'fancybox_VimeotitleFromAlt',
810
- 'input' => 'checkbox',
811
- 'default' => '',
812
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
813
- ),
814
- 'transitionOut' => array (
815
- 'id' => 'fancybox_VimeotransitionOut',
816
- 'title' => __('Transition Out','easy-fancybox'),
817
- 'label_for' => 'fancybox_VimeotransitionOut',
818
- 'input' => 'select',
819
- 'options' => array(
820
- 'fade' => __('Fade','easy-fancybox'),
821
- //'elastic' => __('Elastic','easy-fancybox'),
822
- 'none' => __('None','easy-fancybox')
823
- ),
824
- 'default' => 'fade',
825
- 'description' => __('Transition effect when closing the overlay.','easy-fancybox')
826
- ),
827
- 'easingIn' => array (
828
- 'default' => 'swing'
829
- ),
830
- 'swf' => array (
831
- 'noquotes' => true,
832
- 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}'
833
  ),
834
  'onStart' => array (
835
- 'noquotes' => true,
836
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'/([0-9])\', \'i\'), \'/moogaloop.swf?clip_id=$1\') }'
837
  )
838
  )
839
  ),
@@ -843,127 +1265,97 @@ function easy_fancybox_settings(){
843
  'title' => __('Dailymotion','easy-fancybox'),
844
  'input' => 'multiple',
845
  'options' => array(
846
- 'enable' => array (
847
- 'id' => 'fancybox_enableDailymotion',
848
- 'input' => 'checkbox',
849
- 'hide' => true,
850
- 'default' => '',
851
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('Dailymotion','easy-fancybox') . '</strong>'
852
  ),
853
  'autoAttribute' => array (
854
- 'id' => 'fancybox_autoAttributeDailymotion',
855
- 'input' => 'checkbox',
856
- 'hide' => true,
857
- 'default' => '',
858
- 'selector' => 'href*="dailymotion.com/"',
859
- //'href-replace' => "return attr.replace(new RegExp('/video/', 'i'), '/swf/')",
860
- 'description' => __('Auto-detect','easy-fancybox')
861
  ),
862
- 'class' => array (
863
- 'hide' => true,
864
- 'default' => 'fancybox-dailymotion'
865
  ),
866
- 'intro' => array (
867
- 'hide' => true,
868
- 'description' => __('To make any Dailymotion movie open in an overlay, switch on auto-detect or use the tag class="fancybox-dailymotion" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '<br /><br />'
869
  ),
870
  'type' => array(
871
- 'default' => 'swf'
872
  ),
873
  'width' => array (
874
  'id' => 'fancybox_DailymotionWidth',
875
  'title' => __('Width'),
876
  'label_for' => 'fancybox_DailymotionWidth',
877
- 'input' => 'text',
 
 
 
 
878
  'class' => 'small-text',
879
- 'default' => '480',
880
  'description' => ' '
881
  ),
882
  'height' => array (
883
- 'id' => 'fancybox_DailymotionHeight',
884
- 'title' => __('Height'),
885
- 'label_for' => 'fancybox_DailymotionHeight',
886
- 'input' => 'text',
887
- 'class' => 'small-text',
888
- 'default' => '485'
 
 
 
 
889
  ),
890
  'padding' => array (
891
- 'id' => 'fancybox_DailymotionPadding',
892
- 'title' => __('Border'),
893
- 'label_for' => 'fancybox_DailymotionPadding',
894
- 'input' => 'text',
895
- 'class' => 'small-text',
896
- 'default' => '0',
897
- 'description' => '<br />' . __('Width and height can be relative (%) or absolute sizes.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . '<br />'
898
- ),
899
- 'autoScale' => array (
900
- 'noquotes' => true,
901
- 'default' => 'false'
902
- ),
903
- 'transitionOut' => array (
904
- 'id' => 'fancybox_DailymotiontransitionOut',
905
- 'title' => __('Transition Out','easy-fancybox'),
906
- 'label_for' => 'fancybox_DailymotiontransitionOut',
907
- 'input' => 'select',
908
- 'options' => array(
909
- 'fade' => __('Fade','easy-fancybox'),
910
- //'elastic' => __('Elastic','easy-fancybox'),
911
- 'none' => __('None','easy-fancybox')
912
- ),
913
- 'default' => 'fade',
914
- 'description' => __('Transition effect when closing the overlay.','easy-fancybox')
915
- ),
916
- 'easingIn' => array (
917
- 'default' => 'swing'
918
  ),
919
  'titleShow' => array (
920
- 'id' => 'fancybox_DailymotiontitleShow',
921
- 'input' => 'checkbox',
922
- 'default' => '',
923
- 'description' => __('Show title','easy-fancybox')
 
924
  ),
925
  'titlePosition' => array (
926
- 'id' => 'fancybox_DailymotiontitlePosition',
927
- 'title' => __('Title Position','easy-fancybox'),
928
- 'label_for' => 'fancybox_DailymotiontitlePosition',
929
- 'input' => 'select',
930
- 'options' => array(
931
- 'float' => __('Float','easy-fancybox'), // same as 'float'
932
- 'outside' => __('Outside','easy-fancybox'),
933
- 'inside' => __('Inside','easy-fancybox')
934
- //,'over' => __('Overlay','easy-fancybox')
935
- ),
936
- 'default' => 'float',
937
  ),
938
  'titleFromAlt' => array (
939
- 'id' => 'fancybox_DailymotiontitleFromAlt',
940
- 'input' => 'checkbox',
941
- 'default' => '',
942
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
943
- ),
944
- 'transitionOut' => array (
945
- 'id' => 'fancybox_DailymotiontransitionOut',
946
- 'title' => __('Transition Out','easy-fancybox'),
947
- 'label_for' => 'fancybox_DailymotiontransitionOut',
948
- 'input' => 'select',
949
- 'options' => array(
950
- 'fade' => __('Fade','easy-fancybox'),
951
- //'elastic' => __('Elastic','easy-fancybox'),
952
- 'none' => __('None','easy-fancybox')
953
- ),
954
- 'default' => 'fade',
955
- 'description' => __('Transition effect when closing the overlay.','easy-fancybox')
956
- ),
957
- 'easingIn' => array (
958
- 'default' => 'swing'
959
- ),
960
- 'swf' => array (
961
- 'noquotes' => true,
962
- 'default' => '{\'wmode\':\'opaque\',\'allowfullscreen\':true}'
963
  ),
964
  'onStart' => array (
965
- 'noquotes' => true,
966
- 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'/video/\', \'i\'), \'/swf/\') }'
967
  )
968
  )
969
  ),
@@ -999,99 +1391,99 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
999
  'title' => __('iFrames','easy-fancybox'),
1000
  'input' => 'multiple',
1001
  'options' => array(
1002
- 'enable' => array (
1003
- 'id' => 'fancybox_enableiFrame',
1004
- 'input' => 'checkbox',
1005
- 'hide' => true,
1006
- 'default' => '',
1007
- 'description' => '<strong>' . __('Enable FancyBox for','easy-fancybox') . ' ' . __('iFrames','easy-fancybox') . '</strong>'
1008
  ),
1009
- 'class' => array (
1010
- 'hide' => true,
1011
- 'default' => 'fancybox-iframe, li.fancybox-iframe a'
1012
  ),
1013
- 'intro' => array (
1014
- 'hide' => true,
1015
- 'description' => __('To make a website or HTML document open in an overlay, use the tag class="fancybox-iframe" or class="fancybox iframe" for its link.','easy-fancybox') . ' ' . __('Adjust its specific settings below.','easy-fancybox') . '<br /><br />'
1016
  ),
1017
  'type' => array (
1018
- 'default' => 'iframe'
 
 
 
 
 
 
 
 
 
 
 
 
 
1019
  ),
1020
  'width' => array (
1021
- 'id' => 'fancybox_iFramewidth',
1022
- 'title' => __('Width'),
1023
- 'label_for' => 'fancybox_iFramewidth',
1024
- 'input' => 'text',
1025
- 'class' => 'small-text',
1026
- 'default' => '70%',
1027
- 'description' => ' '
 
1028
  ),
1029
  'height' => array (
1030
- 'id' => 'fancybox_iFrameheight',
1031
- 'title' => __('Height'),
1032
- 'label_for' => 'fancybox_iFrameheight',
1033
- 'input' => 'text',
1034
- 'class' => 'small-text',
1035
- 'default' => '90%',
 
1036
  ),
1037
  'padding' => array (
1038
- 'id' => 'fancybox_iFramepadding',
1039
- 'title' => __('Border'),
1040
- 'label_for' => 'fancybox_iFramepadding',
1041
- 'input' => 'text',
1042
- 'class' => 'small-text',
1043
- 'default' => '0',
1044
- 'description' => '<br />' . __('Width and height can be relative (%) or absolute sizes.','easy-fancybox') . ' ' . __('Set Border 0 to remove it.','easy-fancybox') . '<br />'
1045
- ),
1046
- 'scrolling' => array (
1047
- 'default' => 'auto'
1048
- ),
1049
- 'autoScale' => array (
1050
- 'noquotes' => true,
1051
- 'default' => 'false'
1052
  ),
1053
  'titleShow' => array (
1054
- 'id' => 'fancybox_iFrametitleShow',
1055
- 'input' => 'checkbox',
1056
- 'default' => '',
1057
- 'description' => __('Show title','easy-fancybox')
 
1058
  ),
1059
  'titlePosition' => array (
1060
- 'id' => 'fancybox_iFrametitlePosition',
1061
- 'title' => __('Title Position','easy-fancybox'),
1062
- 'label_for' => 'fancybox_iFrametitlePosition',
1063
- 'input' => 'select',
1064
- 'options' => array(
1065
- 'float' => __('Float','easy-fancybox'), // same as 'float'
1066
- 'outside' => __('Outside','easy-fancybox'),
1067
- 'inside' => __('Inside','easy-fancybox')
1068
- //,'over' => __('Overlay','easy-fancybox')
1069
- ),
1070
- 'default' => 'float',
1071
  ),
1072
  'titleFromAlt' => array (
1073
- 'id' => 'fancybox_iFrametitleFromAlt',
1074
- 'input' => 'checkbox',
1075
- 'default' => '',
1076
- 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1077
- ),
1078
- 'transitionOut' => array (
1079
- 'id' => 'fancybox_iFrametransitionOut',
1080
- 'title' => __('Transition Out','easy-fancybox'),
1081
- 'label_for' => 'fancybox_iFrametransitionOut',
1082
- 'input' => 'select',
1083
- 'options' => array(
1084
- 'fade' => __('Fade','easy-fancybox'),
1085
- //'elastic' => __('Elastic','easy-fancybox'),
1086
- 'none' => __('None','easy-fancybox')
1087
- ),
1088
- 'default' => 'fade'
1089
- ),
1090
- 'easingIn' => array (
1091
- 'default' => 'swing'
1092
  )
1093
  )
1094
  )
1095
 
1096
  );
 
 
 
1097
  }
 
 
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',
38
+ 'input' => 'checkbox',
39
+ 'hide' => true,
40
+ 'default' => '',
41
+ 'description' => '<strong>' . __('PDF','easy-fancybox') . '</strong>'
42
+ ),
43
+ 'SWF' => array (
44
+ 'id' => 'fancybox_enableSWF',
45
+ 'input' => 'checkbox',
46
+ 'hide' => true,
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',
60
+ 'hide' => true,
61
+ 'default' => '',
62
+ 'description' => '<strong>' . __('YouTube','easy-fancybox') . '</strong>'
63
+ ),
64
+ 'Vimeo' => array (
65
+ 'id' => 'fancybox_enableVimeo',
66
+ 'input' => 'checkbox',
67
+ 'hide' => true,
68
+ 'default' => '',
69
+ 'description' => '<strong>' . __('Vimeo','easy-fancybox') . '</strong>'
70
+ ),
71
+ 'Dailymotion' => array (
72
+ 'id' => 'fancybox_enableDailymotion',
73
+ 'input' => 'checkbox',
74
+ 'hide' => true,
75
+ 'default' => '',
76
+ 'description' => '<strong>' . __('Dailymotion','easy-fancybox') . '</strong>'
77
+ ),
78
+ 'iFrame' => array (
79
+ 'id' => 'fancybox_enableiFrame',
80
+ 'input' => 'checkbox',
81
+ 'hide' => true,
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' => __('Links'),
90
+ 'input' => 'multiple',
91
+ 'hide' => true,
92
+ 'options' => array(
93
+ 'attributeLimit' => array (
94
+ 'id' => 'fancybox_attributeLimit',
95
+ 'title' => __('Exclude','easy-fancybox'),
96
+ 'label_for' => 'fancybox_attributeLimit',
97
+ 'hide' => true,
98
+ 'input' => 'select',
99
+ 'options' => array(
100
  '' => __('None'),
101
  ':not(:empty)' => __('Empty (hidden) links','easy-fancybox'),
102
  ':has(img)' => __('Without thumbnail image','easy-fancybox')
103
+ ),
104
+ 'default' => '',
105
+ 'description' => '<br />'
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
  '' => __('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
+ ),
129
+ 'Overlay' => array (
130
+ 'title' => __('Overlay','easy-fancybox'),
131
+ 'input' => 'multiple',
132
+ 'hide' => true,
133
+ 'options' => array(
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 />'
159
+ ),
160
+ 'overlayColor' => array (
161
+ 'id' => 'fancybox_overlayColor',
162
+ 'title' => __('Color','easy-fancybox'),
163
+ 'label_for' => 'fancybox_overlayColor',
164
+ 'input' => 'text',
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' => '',
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',
182
+ 'hide' => true,
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' => ''
204
+ ),
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' => ''
214
  ),
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' => '<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' => __('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' => __('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' => __('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
+ ),
326
+ 'speedOut' => array (
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' => __('None','easy-fancybox'),
422
+ '' => __('Fade','easy-fancybox'),
423
+ 'elastic' => __('Elastic','easy-fancybox'),
424
+ ),
425
+ 'default' => 'elastic',
426
+ 'description' => ' '
427
  ),
428
+ 'easingIn' => array (
429
+ 'id' => 'fancybox_easingIn',
430
+ 'title' => __('Easing In','easy-fancybox'),
431
+ 'label_for' => 'fancybox_easingIn',
432
+ 'input' => 'select',
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',
444
+ 'title' => __('Transition Out','easy-fancybox'),
445
+ 'label_for' => 'fancybox_transitionOut',
446
+ 'input' => 'select',
447
+ 'options' => array(
448
+ 'none' => __('None','easy-fancybox'),
449
+ '' => __('Fade','easy-fancybox'),
450
+ 'elastic' => __('Elastic','easy-fancybox'),
451
+ ),
452
+ 'default' => 'elastic',
453
+ 'description' => ' '
 
 
 
 
 
 
 
 
454
  ),
455
+ 'easingOut' => array (
456
+ 'id' => 'fancybox_easingOut',
457
+ 'title' => __('Easing Out','easy-fancybox'),
458
+ 'label_for' => 'fancybox_easingOut',
459
+ 'input' => 'select',
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
  ),
494
  'titlePosition' => array (
495
+ 'id' => 'fancybox_titlePosition',
496
+ 'title' => __('Title Position','easy-fancybox'),
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')
504
+ ),
505
+ 'default' => 'over',
506
+ 'description' => ' '
507
  ),
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
+ '' => __('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') . ' ' . __('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',
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' => '',
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',
602
+ 'translations' => __('Galleries per Section (below)','easy-fancybox') . __('This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> and/or <em>Autogallery</em> is set to <em>Galleries per Section</em>. Adapt it to conform with your theme.','easy-fancybox') . __('Examples: If your theme wraps post content in a div with class post, change this value to "div.post". If you only want to group images in a WordPress gallery together, use "div.gallery". If you want to include images in a sidebar with ID primary, add ", #primary".','easy-fancybox') . __('Hide/show title on mouse hover action works best with Overlay title position.','easy-fancybox') . __('The slideshow uses a fixed 6, 8 or 12 second pause per image.','easy-fancybox') . __('(6 seconds)','easy-fancybox') . __('(8 seconds)','easy-fancybox') . __('(12 seconds)','easy-fancybox')
603
+ ),
604
+ 'onComplete' => array (
605
+ 'id' => '',
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',
619
+ 'input' => 'select',
620
+ 'options' => array(
621
+ '' => __('Default FancyBox style','easy-fancybox'),
622
+ 'function(title, currentArray, currentIndex, currentOpts) { return \'<div style="font-face:Arial,sans-serif;text-align:left"><span style="float:right;font-size:large"><a href="javascript:;" onclick="$.fancybox.close();">' . __('Close','easy-fancybox') . ' <img src="' . plugins_url(FANCYBOX_SUBDIR, __FILE__) . '/fancybox/fancy_close.png" /></a></span>\' + (title && title.length ? \'<b style="display:block;margin-right:80px">\' + title + \'</b>\' : \'\' ) + \'' . __('Image','easy-fancybox') . '\' + (currentIndex + 1) + \' ' . __('of','easy-fancybox') . ' \' + currentArray.length + \'</div>\';
623
+ }' => __('Mimic Lightbox2 style','easy-fancybox'),
624
+ ),
625
+ 'noquotes' => true,
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' => __('None','easy-fancybox'),
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' => __('None','easy-fancybox'),
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
  ),
743
  'title' => __('PDF','easy-fancybox'),
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' => __('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' => __('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' => __('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' => __('None','easy-fancybox')
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
  ),
866
 
867
  'SWF' => array(
868
  'title' => __('SWF','easy-fancybox'),
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' => __('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' => __('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' => __('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' => __('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' => __('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' => __('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
  ),
1057
  'title' => __('YouTube','easy-fancybox'),
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' => __('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' => __('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' => __('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
  ),
1165
  'title' => __('Vimeo','easy-fancybox'),
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' => __('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' => __('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' => __('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
  ),
1265
  'title' => __('Dailymotion','easy-fancybox'),
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' => __('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' => __('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' => __('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
  ),
1391
  'title' => __('iFrames','easy-fancybox'),
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
  ),
1406
  'type' => array (
1407
+ 'default' => 'iframe'
1408
+ ),
1409
+ 'scrolling' => array (
1410
+ 'id' => 'fancybox_iFrameScrolling',
1411
+ 'title' => __('Scrolling','easy-fancybox'),
1412
+ 'label_for' => 'fancybox_iFrameScrolling',
1413
+ 'input' => 'select',
1414
+ 'options' => array(
1415
+ 'auto' => __('Auto','easy-fancybox'),
1416
+ 'yes' => __('Always','easy-fancybox'),
1417
+ 'no' => __('Never','easy-fancybox')
1418
+ ),
1419
+ 'default' => 'auto',
1420
+ 'description' => __('Define scrolling and scrollbar visibility.','easy-fancybox') . '<br />'
1421
  ),
1422
  'width' => array (
1423
+ 'id' => 'fancybox_iFramewidth',
1424
+ 'title' => __('Width'),
1425
+ 'label_for' => 'fancybox_iFramewidth',
1426
+ 'input' => 'text',
1427
+ 'sanitize_callback' => 'intval',
1428
+ 'class' => 'small-text',
1429
+ 'default' => '70%',
1430
+ 'description' => ' '
1431
  ),
1432
  'height' => array (
1433
+ 'id' => 'fancybox_iFrameheight',
1434
+ 'title' => __('Height'),
1435
+ 'label_for' => 'fancybox_iFrameheight',
1436
+ 'input' => 'text',
1437
+ 'sanitize_callback' => 'intval',
1438
+ 'class' => 'small-text',
1439
+ 'default' => '90%',
1440
  ),
1441
  'padding' => array (
1442
+ 'id' => 'fancybox_iFramepadding',
1443
+ 'title' => __('Border'),
1444
+ 'label_for' => 'fancybox_iFramepadding',
1445
+ 'input' => 'number',
1446
+ 'step' => '1',
1447
+ 'min' => '0',
1448
+ 'max' => '100',
1449
+ 'sanitize_callback' => 'intval',
1450
+ 'class' => 'small-text',
1451
+ 'default' => '0',
1452
+ 'description' => '<br /><br />'
 
 
 
1453
  ),
1454
  'titleShow' => array (
1455
+ 'id' => 'fancybox_iFrametitleShow',
1456
+ 'input' => 'checkbox',
1457
+ 'noquotes' => true,
1458
+ 'default' => '',
1459
+ 'description' => __('Show title','easy-fancybox')
1460
  ),
1461
  'titlePosition' => array (
1462
+ 'id' => 'fancybox_iFrametitlePosition',
1463
+ 'title' => __('Title Position','easy-fancybox'),
1464
+ 'label_for' => 'fancybox_iFrametitlePosition',
1465
+ 'input' => 'select',
1466
+ 'options' => array(
1467
+ 'float' => __('Float','easy-fancybox'),
1468
+ 'outside' => __('Outside','easy-fancybox'),
1469
+ 'inside' => __('Inside','easy-fancybox')
1470
+ ),
1471
+ 'default' => 'float',
 
1472
  ),
1473
  'titleFromAlt' => array (
1474
+ 'id' => 'fancybox_iFrametitleFromAlt',
1475
+ 'input' => 'checkbox',
1476
+ 'noquotes' => true,
1477
+ 'default' => '1',
1478
+ 'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1479
  )
1480
  )
1481
  )
1482
 
1483
  );
1484
+
1485
+ }
1486
+
1487
  }
1488
+
1489
+ easyFancyBox_Options::go();
easy-fancybox.css.php CHANGED
@@ -3,31 +3,66 @@
3
  Easy Fancybox Styleheet Conversion
4
  ------------------------------------- */
5
 
6
- header('Content-type: text/css; charset=utf-8', true);
7
- ob_start("iepathfix_compress");
8
-
9
- function iepathfix_compress($buffer) {
10
- global $url;
11
- /* Relative path fix : add 'fancybox/'
12
- * IE6 path fix : replace relative with full path */
13
- $buffer = str_replace(array("url('", "AlphaImageLoader(src='fancybox/"), array("url('fancybox/", "AlphaImageLoader(src='" . $url . "/fancybox/" ), $buffer);
14
- /* remove comments */
15
- $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
16
- /* remove tabs and newlines */
17
- $buffer = str_replace(array("\r", "\n", "\t"), '', $buffer);
18
- /* and squeeze some more */
19
- $buffer = str_replace(array(", ", ": ", " {", "{ ", " }", "} ", "; ", " 0;"), array(",", ":", "{", "{", "}", "}", ";", ";"), $buffer);
20
- return $buffer;
21
- }
 
 
 
 
22
 
23
- $url = ( ( isset($_SERVER['HTTPS']) ) ? "https://" : "http://" ) . htmlspecialchars( $_SERVER['SERVER_NAME'] . dirname($_SERVER['SCRIPT_NAME']), ENT_QUOTES);
 
24
 
25
- /* the css file */
26
- $version = preg_match( '`^\d{1,2}\.\d{1,2}(\.\d{1,2})?$`' , $_GET['ver'] ) ? $_GET['ver'] : '';
27
- include( './fancybox/jquery.fancybox-' . htmlspecialchars( $version , ENT_QUOTES) . '.css' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- /* extra styles */
30
- echo '.fancybox-hidden{display:none}';
31
 
32
- ob_end_flush();
33
- ?>
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
+ $version = preg_match( '`^\d{1,2}\.\d{1,2}(\.\d{1,2})?$`' , $_GET['ver'] ) ? $_GET['ver'] : '1.3.4';
32
+ $file = dirname(__FILE__) . '/fancybox/jquery.fancybox-' . htmlspecialchars( $version , ENT_QUOTES) . '.css'; */
33
+ $file = dirname(__FILE__) . '/fancybox/jquery.fancybox-1.3.5.css';
34
+
35
+ /* set up response headers, allowing browser caching */
36
+ $expires = 60*60*24*30; // seconds, minutes, hours, days
37
+ $last_modified_time = ( filemtime($file) < filemtime(__FILE__) ) ? filemtime(__FILE__) : filemtime($file);
38
+ $etag = md5_file($file);
39
+
40
+ header('Content-type: text/css; charset=utf-8', true);
41
+ header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $last_modified_time) . ' GMT');
42
+ header('Etag: ' . $etag);
43
+
44
+ if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time || @trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
45
+ // if we've got an etag match, answer not modified header and hang up
46
+ header('HTTP/1.1 304 Not Modified');
47
+ exit;
48
+ }
49
+ header('Accept-Ranges: bytes');
50
+ header('Pragma: public');
51
+ header('Cache-Control: maxage=' . $expires);
52
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
53
+
54
+ /* generate content */
55
+ ob_start("iepathfix_compress");
56
+
57
+ if (!file_exists($file)) {
58
+ echo '/* stylesheet not found */';
59
+ } else {
60
+ /* the css file */
61
+ include( $file );
62
+ }
63
+
64
+ /* extras */
65
+ //echo '.fancybox-hidden{display:none}';
66
 
67
+ ob_end_flush();
 
68
 
 
 
easy-fancybox.php CHANGED
@@ -1,392 +1,67 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy FancyBox
4
- Plugin URI: http://4visions.nl/en/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. Happy with it? Please leave me a small <strong><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&amp;item_number=1%2e3%2e4&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us">TIP</a></strong> for development and support on this plugin and please consider a <strong><a href="http://fancybox.net/">DONATION to the FancyBox project</a></strong>.
6
- Version: 1.3.4.8
 
 
7
  Author: RavanH
8
- Author URI: http://4visions.nl/
9
  */
10
 
11
- // DEF
12
 
13
- define( 'FANCYBOX_VERSION', '1.3.4' );
14
- define( 'MOUSEWHEEL_VERSION', '3.0.4' );
15
- define( 'EASING_VERSION', '1.3' );
16
- // check if easy-fancybox.php is moved one dir up like in WPMU's /mu-plugins/
17
- // NOTE: don't use WP_PLUGIN_URL to avoid problems when installed in /mu-plugins/
18
- if(file_exists(dirname(__FILE__).'/easy-fancybox'))
19
- define( 'FANCYBOX_SUBDIR', '/easy-fancybox' );
20
- else
21
- define( 'FANCYBOX_SUBDIR', '' );
22
-
23
- /* CHECK FOR NETWORK ACTIVATION
24
- if (function_exists('is_plugin_active_for_network') && is_plugin_active_for_network(plugin_basename( __FILE__ )))
25
- $no_network_activate = '';
26
- else
27
- $no_network_activate = '1';
28
- */
29
-
30
- require_once(dirname(__FILE__) . FANCYBOX_SUBDIR . '/easy-fancybox-settings.php');
31
-
32
-
33
- // FUNCTIONS //
34
-
35
- function easy_fancybox() {
36
- $easy_fancybox_array = easy_fancybox_settings();
37
-
38
- echo '
39
- <!-- Easy FancyBox plugin for WordPress using FancyBox ' . FANCYBOX_VERSION . ' - RavanH (http://4visions.nl/en/wordpress-plugins/easy-fancybox/) -->';
40
-
41
- // check for any enabled sections
42
- $do_fancybox = false;
43
- foreach ($easy_fancybox_array as $value) {
44
- if ( '1' == get_option($value['options']['enable']['id'],$value['options']['enable']['default']) ) {
45
- $do_fancybox = true;
46
- break;
47
- }
48
- }
49
- // and break off when none are active
50
- if (!$do_fancybox) {
51
- echo '
52
- <!-- No sections enabled under Settings > Media > FancyBox -->
53
-
54
- ';
55
- return;
56
- }
57
-
58
- // begin output FancyBox settings
59
- echo '
60
- <script type="text/javascript">
61
- /* <![CDATA[ */
62
- jQuery(document).ready(function($){
63
- var fb_timeout = null;';
64
-
65
- /*
66
- * Global settings routine
67
- */
68
- $more=0;
69
- echo '
70
- var fb_opts = {';
71
- foreach ($easy_fancybox_array['Global']['options'] as $_key => $_values) {
72
- $parm = ($_values['id']) ? get_option($_values['id'], $_values['default']) : $_values['default'];
73
- $parm = ('checkbox'==$_values['input'] && ''==$parm) ? '0' : $parm;
74
- if(!$_values['hide'] && $parm!='') {
75
- $quote = (is_numeric($parm) || $_values['noquotes']) ? '' : '\'';
76
- if ($more>0)
77
- echo ',';
78
- echo ' \''.$_key.'\' : ';
79
- if ('checkbox'==$_values['input'])
80
- echo ( '1' == $parm ) ? 'true' : 'false';
81
- else
82
- echo $quote.$parm.$quote;
83
- $more++;
84
- } else {
85
- $$_key = $parm;
86
- }
87
- }
88
- echo ' };';
89
-
90
- foreach ($easy_fancybox_array as $key => $value) {
91
- // check if not enabled or hide=true then skip
92
- if ( !get_option($value['options']['enable']['id'], $value['options']['enable']['default']) || $value['hide'] )
93
- continue;
94
-
95
- echo '
96
- /* ' . $key . ' */';
97
- /*
98
- * Auto-detection routines (2x)
99
- */
100
- $autoAttribute = get_option( $value['options']['autoAttribute']['id'], $value['options']['autoAttribute']['default'] );
101
- // update from previous version:
102
- if($attributeLimit == '.not(\':empty\')')
103
- $attributeLimit = ':not(:empty)';
104
- elseif($attributeLimit == '.has(\'img\')')
105
- $attributeLimit = ':has(img)';
106
-
107
- if(!empty($autoAttribute)) {
108
- if(is_numeric($autoAttribute)) {
109
- echo '
110
- $(\'a['.$value['options']['autoAttribute']['selector'].']:not(.nofancybox)'.$attributeLimit.'\')';
111
- if ($value['options']['autoAttribute']['href-replace'])
112
- echo '.attr(\'href\', function(index, attr){'.$value['options']['autoAttribute']['href-replace'].'})';
113
- echo '.addClass(\''.$value['options']['class']['default'].'\');';
114
- } else {
115
- // set selectors
116
- $file_types = array_filter( explode( ' ', str_replace( ',', ' ', $autoAttribute ) ) );
117
- $more=0;
118
- echo '
119
- var fb_'.$key.'_select = \'';
120
- foreach ($file_types as $type) {
121
- if ($more>0)
122
- echo ',';
123
- echo 'a['.$value['options']['autoAttribute']['selector'].'".'.$type.'"]:not(.nofancybox)'.$attributeLimit.',a['.$value['options']['autoAttribute']['selector'].'".'.strtoupper($type).'"]:not(.nofancybox)'.$attributeLimit;
124
- $more++;
125
- }
126
- echo '\';';
127
-
128
- // class and rel depending on settings
129
- if( '1' == get_option($value['options']['autoAttributeLimit']['id'],$value['options']['autoAttributeLimit']['default']) ) {
130
- // add class
131
- echo '
132
- var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
133
- fb_'.$key.'_sections.each(function() { jQuery(this).find(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
134
- // and set rel
135
- switch( get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
136
- case '':
137
- default :
138
- echo '; });';
139
- break;
140
- case '1':
141
- echo '.attr(\'rel\', \'gallery-\' + fb_'.$key.'_sections.index(this)); });';
142
- break;
143
- case '2':
144
- echo '.attr(\'rel\', \'gallery\'); });';
145
- }
146
- } else {
147
- // add class
148
- echo '
149
- $(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\')';
150
- // set rel
151
- switch( get_option($value['options']['autoGallery']['id'],$value['options']['autoGallery']['default']) ) {
152
- case '':
153
- default :
154
- echo ';';
155
- break;
156
- case '1':
157
- echo ';
158
- var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
159
- fb_'.$key.'_sections.each(function() { jQuery(this).find(fb_'.$key.'_select).attr(\'rel\', \'gallery-\' + fb_'.$key.'_sections.index(this)); });';
160
- break;
161
- case '2':
162
- echo '.attr(\'rel\', \'gallery\');';
163
- }
164
- }
165
-
166
- }
167
- }
168
-
169
- $autoAttributeAlt = get_option( $value['options']['autoAttributeAlt']['id'], $value['options']['autoAttributeAlt']['default'] );
170
- if(!empty($autoAttributeAlt) && is_numeric($autoAttributeAlt)) {
171
- echo '
172
- $(\'a['.$value['options']['autoAttributeAlt']['selector'].']\')';
173
- if ($value['options']['autoAttributeAlt']['href-replace'])
174
- echo '.attr(\'href\', function(index, attr){'.$value['options']['autoAttributeAlt']['href-replace']. '})';
175
- echo '.addClass(\''.$value['options']['class']['default'].'\');';
176
- }
177
-
178
- /*
179
- * Append .fancybox() routine
180
- */
181
- $more=0;
182
- $trigger='';
183
- if( $key == $autoClick )
184
- $trigger = '.filter(\':first\').trigger(\'click\')';
185
-
186
- echo '
187
- $(\'a.'.$value['options']['class']['default'].'\').fancybox( $.extend({}, fb_opts, {';
188
- foreach ($value['options'] as $_key => $_values) {
189
- $parm = ($_values['id']) ? get_option($_values['id'], $_values['default']) : $_values['default'];
190
- $parm = ('checkbox'==$_values['input'] && ''==$parm) ? '0' : $parm;
191
- if(!$_values['hide'] && $parm!='') {
192
- $quote = (is_numeric($parm) || $_values['noquotes']) ? '' : '\'';
193
- if ($more>0)
194
- echo ',';
195
- echo ' \''.$_key.'\' : ';
196
- if ('checkbox'==$_values['input'])
197
- echo ( '1' == $parm ) ? 'true' : 'false';
198
- else
199
- echo $quote.$parm.$quote;
200
- $more++;
201
- }
202
- }
203
- echo ' }) )'.$trigger.';';
204
 
205
- }
 
 
 
206
 
207
- switch( $autoClick ) {
208
- case '':
209
- default :
210
- break;
211
- case '1':
212
- echo '
213
- /* Auto-click */
214
- $(\'#fancybox-auto\').trigger(\'click\');';
215
- break;
216
- case '99':
217
- echo '
218
- /* Auto-load */
219
- $(\'a[class*="fancybox"]\').filter(\':first\').trigger(\'click\');';
220
- break;
221
- }
222
- echo '
223
- });
224
- /* ]]> */
225
- </script>
226
- ';
227
-
228
- if ('1' == $overlaySpotlight)
229
- echo '<style type="text/css">#fancybox-overlay{background-image:url("'. plugins_url(FANCYBOX_SUBDIR.'/light-mask.png', __FILE__) . '");background-position:50% -3%;background-repeat:no-repeat;-o-background-size:100%;-webkit-background-size:100%;-moz-background-size:100%;-khtml-background-size:100%;background-size:100%;position:fixed}</style>
230
- ';
231
-
232
- }
233
-
234
- // FancyBox Media Settings Section on Settings > Media admin page
235
- function easy_fancybox_settings_section() {
236
- echo '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us" title="'.__('Donate to Easy FancyBox plugin development with PayPal - it\'s fast, free and secure!','easy-fancybox').'"><img src="https://www.paypal.com/en_US/i/btn/x-click-but7.gif" style="border:none;float:right;margin:0 0 10px 10px" alt="'.__('Donate to Easy FancyBox plugin development with PayPal - it\'s fast, free and secure!','easy-fancybox').'" width="72" height="29" /></a><p>'.__('The options in this section are provided by the plugin <strong><a href="http://4visions.nl/en/wordpress-plugins/easy-fancybox/">Easy FancyBox</a></strong> and determine the <strong>Media Lightbox</strong> overlay appearance and behaviour controlled by <strong><a href="http://fancybox.net/">FancyBox</a></strong>.','easy-fancybox').' '.__('First adjust the <strong>Global settings</strong>, then enable each of the other sub-sections that you need and adjust its specific settings.','easy-fancybox').'</p><p>'.__('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 for Title Position and Transition are unavailable for swf, video, pdf and iframe content to ensure browser compatibility and readability.','easy-fancybox').'</p>';
237
- }
238
-
239
- // FancyBox Media Settings Fields
240
- function easy_fancybox_settings_fields($args){
241
- switch($args['input']) {
242
- case 'multiple':
243
- foreach ($args['options'] as $options)
244
- easy_fancybox_settings_fields($options);
245
- echo $args['description'];
246
- break;
247
- case 'select':
248
- if( !empty($args['label_for']) )
249
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
250
- else
251
- echo $args['title'];
252
- echo '
253
- <select name="'.$args['id'].'" id="'.$args['id'].'">';
254
- foreach ($args['options'] as $optionkey => $optionvalue) {
255
- $selected = (get_option($args['id'], $args['default']) == $optionkey) ? ' selected="selected"' : '';
256
- echo '
257
- <option value="'.esc_attr($optionkey).'"'.$selected.'>'.$optionvalue.'</option>';
258
- }
259
- echo '
260
- </select> ';
261
- if( empty($args['label_for']) )
262
- echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
263
- else
264
- echo $args['description'];
265
- break;
266
- case 'checkbox':
267
- if( !empty($args['label_for']) )
268
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
269
- else
270
- echo $args['title'];
271
- $value = esc_attr( get_option($args['id'], $args['default']) );
272
- if ($value == "1")
273
- $checked = ' checked="checked"';
274
- else
275
- $checked = '';
276
- if ($args['default'] == "1")
277
- $default = __('Checked','easy-fancybox');
278
- else
279
- $default = __('Unchecked','easy-fancybox');
280
- if( empty($args['label_for']) )
281
- echo '
282
- <label><input type="checkbox" name="'.$args['id'].'" id="'.$args['id'].'" value="1" '.$checked.'/> '.$args['description'].'</label><br />';
283
- else
284
- echo '
285
- <input type="checkbox" name="'.$args['id'].'" id="'.$args['id'].'" value="1" '.$checked.'/> '.$args['description'].'<br />';
286
- break;
287
- case 'text':
288
- if( !empty($args['label_for']) )
289
- echo '<label for="'.$args['label_for'].'">'.$args['title'].'</label> ';
290
- else
291
- echo $args['title'];
292
- echo '
293
- <input type="text" name="'.$args['id'].'" id="'.$args['id'].'" value="'.esc_attr( get_option($args['id'], $args['default']) ).'" class="'.$args['class'].'"/> ';
294
- if( empty($args['label_for']) )
295
- echo '<label for="'.$args['id'].'">'.$args['description'].'</label> ';
296
- else
297
- echo $args['description'];
298
- break;
299
- default:
300
- echo $args['description'];
301
- }
302
- }
303
-
304
-
305
- function easy_fancybox_admin_init(){
306
- load_plugin_textdomain('easy-fancybox', false, dirname(plugin_basename( __FILE__ )));
307
-
308
- add_settings_section('fancybox_section', __('FancyBox','easy-fancybox'), 'easy_fancybox_settings_section', 'media');
309
-
310
- $easy_fancybox_array = easy_fancybox_settings();
311
- foreach ($easy_fancybox_array as $key => $value) {
312
- add_settings_field( 'fancybox_'.$key, $value['title'], 'easy_fancybox_settings_fields', 'media', 'fancybox_section', $value);
313
- if ($value['input']=='multiple')
314
- foreach ($value['options'] as $_value)
315
- if ($_value['id']) register_setting( 'media', $_value['id'] );
316
- else
317
- if ($value['id']) register_setting( 'media', 'fancybox_'.$key );
318
- }
319
- }
320
-
321
- function easy_fancybox_enqueue() {
322
- $easy_fancybox_array = easy_fancybox_settings();
323
-
324
- // check for any enabled sections plus the need for easing script
325
- $do_fancybox = false;
326
- $easing = false;
327
- foreach ($easy_fancybox_array as $value) {
328
- // anything enabled?
329
- if ( '1' == get_option($value['options']['enable']['id'],$value['options']['enable']['default']) )
330
- $do_fancybox = true;
331
- // easing anyone?
332
- if ( ( 'elastic' == get_option($value['options']['transitionIn']['id'],$value['options']['transitionIn']['default']) || 'elastic' == get_option($value['options']['transitionOut']['id'],$value['options']['transitionOut']['default']) ) && ( '' != get_option($value['options']['easingIn']['id'],$value['options']['easingIn']['default']) || '' != get_option($value['options']['easingOut']['id'],$value['options']['easingOut']['default']) ) )
333
- $easing = true;
334
- }
335
- if (!$do_fancybox)
336
- return;
337
 
338
- // ENQUEUE
339
- // register main fancybox script
340
- wp_enqueue_script('jquery.fancybox', plugins_url(FANCYBOX_SUBDIR.'/fancybox/jquery.fancybox-'.FANCYBOX_VERSION.'.pack.js', __FILE__), array('jquery'), FANCYBOX_VERSION);
341
-
342
- foreach ($easy_fancybox_array as $value) {
343
- if( ( 'elastic' == get_option($value['options']['transitionIn']['id'],$value['options']['transitionIn']['default']) || 'elastic' == get_option($value['options']['transitionOut']['id'],$value['options']['transitionOut']['default']) ) && ( '' != get_option($value['options']['easingIn']['id'],$value['options']['easingIn']['default']) || '' != get_option($value['options']['easingOut']['id'],$value['options']['easingOut']['default']) ) ) {
344
- $easing = true;
345
- break;
346
- }
347
- }
348
- if ( $easing ) {
349
- // first get rid of previously registered variants of jquery.easing (by other plugins)
350
- wp_deregister_script('jquery.easing');
351
- wp_deregister_script('jqueryeasing');
352
- wp_deregister_script('jquery-easing');
353
- wp_deregister_script('easing');
354
- // then register our version
355
- wp_enqueue_script('jquery.easing', plugins_url(FANCYBOX_SUBDIR.'/fancybox/jquery.easing-'.EASING_VERSION.'.pack.js', __FILE__), array('jquery'), EASING_VERSION);
356
- }
357
-
358
- // first get rid of previously registered variants of jquery.mousewheel (by other plugins)
359
- wp_deregister_script('jquery.mousewheel');
360
- wp_deregister_script('jquerymousewheel');
361
- wp_deregister_script('jquery-mousewheel');
362
- wp_deregister_script('mousewheel');
363
- // then register our version
364
- wp_enqueue_script('jquery.mousewheel', plugins_url(FANCYBOX_SUBDIR.'/fancybox/jquery.mousewheel-'.MOUSEWHEEL_VERSION.'.pack.js', __FILE__), array('jquery'), MOUSEWHEEL_VERSION);
365
-
366
- // register style
367
- wp_enqueue_style('easy-fancybox.css', plugins_url(FANCYBOX_SUBDIR.'/easy-fancybox.css.php', __FILE__), false, FANCYBOX_VERSION, 'screen');
368
 
369
- }
 
 
 
370
 
371
- // Hack to fix missing wmode in (auto)embed code based on Crantea Mihaita's work-around on
372
- // http://www.mehigh.biz/wordpress/adding-wmode-transparent-to-wordpress-3-media-embeds.html
373
- if(!function_exists('add_video_wmode_opaque')) {
374
- function add_video_wmode_opaque($html, $url, $attr) {
375
- if (strpos($html, "<embed src=" ) !== false) {
376
- $html = str_replace('</param><embed', '</param><param name="wmode" value="opaque"></param><embed wmode="opaque" ', $html);
377
- return $html;
378
- } else {
379
- return $html;
380
- }
381
- }
382
- }
 
 
 
 
 
383
 
384
- // HOOKS //
 
385
 
386
- add_filter('embed_oembed_html', 'add_video_wmode_opaque', 10, 3);
387
 
388
- add_action('wp_enqueue_scripts', 'easy_fancybox_enqueue', 999);
389
- add_action('wp_head', 'easy_fancybox');
 
 
390
 
391
- add_action('admin_init','easy_fancybox_admin_init');
392
 
1
  <?php
2
  /*
3
  Plugin Name: Easy FancyBox
4
+ 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.0
9
  Author: RavanH
10
+ Author URI: http://status301.net/
11
  */
12
 
13
+ /* Copyright 2013 RavanH (email : ravanhagen@gmail.com)
14
 
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License as published by
17
+ the Free Software Foundation; either version 2 of the License, or
18
+ (at your option) any later version.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
 
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
+ /*
31
+ For Installation instructions, usage, revision history and other info: see readme.txt included in this package
32
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
+
35
+ /**************
36
+ * CONSTANTS
37
+ **************/
38
 
39
+ define( 'EASY_FANCYBOX_VERSION', '1.5.0' );
40
+ define( 'FANCYBOX_VERSION', '1.3.5' );
41
+ //define( 'FANCYBOX2_VERSION', '2.0.6' );
42
+ define( 'MOUSEWHEEL_VERSION', '3.1.3' );
43
+ define( 'EASING_VERSION', '1.3' );
44
+ define( 'METADATA_VERSION', '2.1' );
45
+ define( 'EASY_FANCYBOX_PLUGINBASENAME', plugin_basename(__FILE__) );
46
+ define( 'EASY_FANCYBOX_PLUGINFILE', basename(__FILE__) );
47
+
48
+ // Check if easy-fancybox.php is moved one dir up like in WPMU's /mu-plugins/
49
+ // or if plugins_url() returns the main plugins dir location as it does on
50
+ // a Debian repository install.
51
+ // NOTE: WP_PLUGIN_URL causes problems when installed in /mu-plugins/
52
+ if( !stristr( plugins_url( '', __FILE__ ), '/easy-fancybox' ) )
53
+ define( 'EASY_FANCYBOX_SUBDIR', 'easy-fancybox/' );
54
+ else
55
+ define( 'EASY_FANCYBOX_SUBDIR', '' );
56
 
57
+ define( 'EASY_FANCYBOX_PLUGINDIR', dirname(__FILE__) . '/' . EASY_FANCYBOX_SUBDIR );
58
+ define( 'EASY_FANCYBOX_PLUGINURL', plugins_url( '/' . EASY_FANCYBOX_SUBDIR, __FILE__ ) );
59
 
 
60
 
61
+ /**************
62
+ * CLASS
63
+ **************/
64
+ require_once(EASY_FANCYBOX_PLUGINDIR . 'easy-fancybox-class.php');
65
 
66
+ easyFancyBox::run();
67
 
easy-fancybox.pot DELETED
@@ -1,176 +0,0 @@
1
- # Translation of the WordPress plugin Easy FancyBox 1.3.3-4 by RavanH.
2
- # Copyright (C) 2010 RavanH
3
- # This file is distributed under the same license as the Easy FancyBox package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
5
- #
6
- #, fuzzy
7
- msgid ""
8
- msgstr ""
9
- "Project-Id-Version: Easy FancyBox 1.3.3-4\n"
10
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/easy-fancybox\n"
11
- "POT-Creation-Date: 2010-11-05 00:01+0000\n"
12
- "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "MIME-Version: 1.0\n"
16
- "Content-Type: text/plain; charset=utf-8\n"
17
- "Content-Transfer-Encoding: 8bit\n"
18
-
19
- #: easy-fancybox.php:17
20
- msgid "Auto-enable"
21
- msgstr ""
22
-
23
- #: easy-fancybox.php:24
24
- msgid ""
25
- "Enter file types FancyBox should be automatically enabled for. Clear field "
26
- "to switch off auto-enabling."
27
- msgstr ""
28
-
29
- #: easy-fancybox.php:28
30
- msgid "Auto-detect"
31
- msgstr ""
32
-
33
- #: easy-fancybox.php:41
34
- msgid "YouTube links."
35
- msgstr ""
36
-
37
- #: easy-fancybox.php:51
38
- msgid "Short URL YouTube links."
39
- msgstr ""
40
-
41
- #: easy-fancybox.php:62
42
- msgid "Vimeo links."
43
- msgstr ""
44
-
45
- #: easy-fancybox.php:65
46
- msgid ""
47
- "Select which external video content sites links should automatically be "
48
- "detected and FancyBox enabled."
49
- msgstr ""
50
-
51
- #: easy-fancybox.php:69
52
- msgid "Title Position"
53
- msgstr ""
54
-
55
- #: easy-fancybox.php:74
56
- msgid "Overlay"
57
- msgstr ""
58
-
59
- #: easy-fancybox.php:75
60
- msgid "Inside"
61
- msgstr ""
62
-
63
- #: easy-fancybox.php:76
64
- msgid "Outside"
65
- msgstr ""
66
-
67
- #: easy-fancybox.php:79
68
- msgid "Position of the overlay content title."
69
- msgstr ""
70
-
71
- #: easy-fancybox.php:83
72
- msgid "Transition In"
73
- msgstr ""
74
-
75
- #: easy-fancybox.php:88 easy-fancybox.php:102
76
- msgid "Elastic"
77
- msgstr ""
78
-
79
- #: easy-fancybox.php:89
80
- msgid "Fade in"
81
- msgstr ""
82
-
83
- #: easy-fancybox.php:90 easy-fancybox.php:104
84
- msgid "None"
85
- msgstr ""
86
-
87
- #: easy-fancybox.php:93
88
- msgid "Transition effect when opening the overlay."
89
- msgstr ""
90
-
91
- #: easy-fancybox.php:97
92
- msgid "Transition Out"
93
- msgstr ""
94
-
95
- #: easy-fancybox.php:103
96
- msgid "Fade out"
97
- msgstr ""
98
-
99
- #: easy-fancybox.php:107
100
- msgid "Transition effect when closing the overlay."
101
- msgstr ""
102
-
103
- #: easy-fancybox.php:224
104
- msgid ""
105
- "Donate to Easy FancyBox plugin development with PayPal - it's fast, free and "
106
- "secure!"
107
- msgstr ""
108
-
109
- #: easy-fancybox.php:224
110
- msgid ""
111
- "To manualy enable FancyBox for a link to an attached image or swf movie "
112
- "file, you can use the tags class=\"fancybox\" or class=\"fancybox-swf\". To "
113
- "make a link to any web page show in a FancyBox overlay, use class=\"fancybox-"
114
- "iframe\". Use the tags class=\"fancybox-youtube\" on a YouTube link and "
115
- "class=\"fancybox-vimeo\" on a Vimeo link to manually enable FancyBox for it. "
116
- "Read more on <a href=\"http://4visions.nl/en/wordpress-plugins/easy-fancybox/"
117
- "\">Easy FancyBox for WordPress</a>."
118
- msgstr ""
119
-
120
- #: easy-fancybox.php:224
121
- msgid ""
122
- "The settings listed below determine the image overlay behaviour controlled "
123
- "by FancyBox."
124
- msgstr ""
125
-
126
- #: easy-fancybox.php:224
127
- msgid ""
128
- "Some setting like Title Position and Transition are ignored for swf video "
129
- "and iframe content overlays to improve browser compatibility and readability."
130
- msgstr ""
131
-
132
- #: easy-fancybox.php:245 easy-fancybox.php:247 easy-fancybox.php:260
133
- #: easy-fancybox.php:266 easy-fancybox.php:268
134
- msgid "Default:"
135
- msgstr ""
136
-
137
- #: easy-fancybox.php:256
138
- msgid "Checked"
139
- msgstr ""
140
-
141
- #: easy-fancybox.php:258
142
- msgid "Unchecked"
143
- msgstr ""
144
-
145
- #: easy-fancybox.php:279
146
- msgid "FancyBox"
147
- msgstr ""
148
-
149
- #. Plugin Name of the plugin/theme
150
- msgid "Easy FancyBox"
151
- msgstr ""
152
-
153
- #. Plugin URI of the plugin/theme
154
- msgid "http://4visions.nl/en/wordpress-plugins/easy-fancybox/"
155
- msgstr ""
156
-
157
- #. Description of the plugin/theme
158
- msgid ""
159
- "Easily enable the <a href=\"http://fancybox.net/\">FancyBox 1.3.3 jQuery "
160
- "extension</a> on all image, SWF, YouTube and Vimeo links. Multi-Site "
161
- "compatible and supports iFrame and Flash movies in overlay viewport. Happy "
162
- "with it? Please leave me a small <a href="
163
- "\"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%"
164
- "40gmail%2ecom&item_name=Easy%20FancyBox&amp;item_number=1%2e3%"
165
- "2e3&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us\">TIP</a> "
166
- "for development and support on this plugin and please consider a DONATION to "
167
- "the <a href=\"http://fancybox.net/\">FancyBox project</a>."
168
- msgstr ""
169
-
170
- #. Author of the plugin/theme
171
- msgid "RavanH"
172
- msgstr ""
173
-
174
- #. Author URI of the plugin/theme
175
- msgid "http://4visions.nl/"
176
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox/jquery.easing-1.3.pack.js DELETED
@@ -1,72 +0,0 @@
1
- /*
2
- * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
- *
4
- * Uses the built in easing capabilities added In jQuery 1.1
5
- * to offer multiple easing options
6
- *
7
- * TERMS OF USE - jQuery Easing
8
- *
9
- * Open source under the BSD License.
10
- *
11
- * Copyright © 2008 George McGinley Smith
12
- * All rights reserved.
13
- *
14
- * Redistribution and use in source and binary forms, with or without modification,
15
- * are permitted provided that the following conditions are met:
16
- *
17
- * Redistributions of source code must retain the above copyright notice, this list of
18
- * conditions and the following disclaimer.
19
- * Redistributions in binary form must reproduce the above copyright notice, this list
20
- * of conditions and the following disclaimer in the documentation and/or other materials
21
- * provided with the distribution.
22
- *
23
- * Neither the name of the author nor the names of contributors may be used to endorse
24
- * or promote products derived from this software without specific prior written permission.
25
- *
26
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
27
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
32
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
34
- * OF THE POSSIBILITY OF SUCH DAMAGE.
35
- *
36
- */
37
-
38
- // t: current time, b: begInnIng value, c: change In value, d: duration
39
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
40
-
41
- /*
42
- *
43
- * TERMS OF USE - EASING EQUATIONS
44
- *
45
- * Open source under the BSD License.
46
- *
47
- * Copyright © 2001 Robert Penner
48
- * All rights reserved.
49
- *
50
- * Redistribution and use in source and binary forms, with or without modification,
51
- * are permitted provided that the following conditions are met:
52
- *
53
- * Redistributions of source code must retain the above copyright notice, this list of
54
- * conditions and the following disclaimer.
55
- * Redistributions in binary form must reproduce the above copyright notice, this list
56
- * of conditions and the following disclaimer in the documentation and/or other materials
57
- * provided with the distribution.
58
- *
59
- * Neither the name of the author nor the names of contributors may be used to endorse
60
- * or promote products derived from this software without specific prior written permission.
61
- *
62
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
63
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
64
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
65
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
66
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
67
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
68
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
70
- * OF THE POSSIBILITY OF SUCH DAMAGE.
71
- *
72
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox/jquery.fancybox-1.3.4.pack.js DELETED
@@ -1,46 +0,0 @@
1
- /*
2
- * FancyBox - jQuery Plugin
3
- * Simple and fancy lightbox alternative
4
- *
5
- * Examples and documentation at: http://fancybox.net
6
- *
7
- * Copyright (c) 2008 - 2010 Janis Skarnelis
8
- * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
- *
10
- * Version: 1.3.4 (11/11/2010)
11
- * Requires: jQuery v1.3+
12
- *
13
- * Dual licensed under the MIT and GPL licenses:
14
- * http://www.opensource.org/licenses/mit-license.php
15
- * http://www.gnu.org/licenses/gpl.html
16
- */
17
-
18
- ;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
19
- F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
20
- c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
21
- false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
22
- function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
23
- '"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
24
- "function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
25
- ";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
26
- opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
27
- d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
28
- y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
29
- i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
30
- f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
31
- 37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
32
- s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
33
- f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
34
- j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
35
- "image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
36
- 10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
37
- b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
38
- 0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
39
- 1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
40
- true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
41
- b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
42
- d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<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(f);
43
- D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
44
- b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<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(D)}}};
45
- b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
46
- easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox/{jquery.fancybox-1.3.4.css → jquery.fancybox-1.3.5.css} RENAMED
@@ -7,7 +7,7 @@
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
- * Version: 1.3.4 (11/11/2010)
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
@@ -27,6 +27,7 @@
27
  overflow: hidden;
28
  z-index: 1104;
29
  display: none;
 
30
  }
31
 
32
  #fancybox-loading div {
@@ -36,6 +37,7 @@
36
  width: 40px;
37
  height: 480px;
38
  background-image: url('fancybox.png');
 
39
  }
40
 
41
  #fancybox-overlay {
@@ -45,6 +47,7 @@
45
  width: 100%;
46
  z-index: 1100;
47
  display: none;
 
48
  }
49
 
50
  #fancybox-tmp {
@@ -63,6 +66,11 @@
63
  z-index: 1101;
64
  outline: none;
65
  display: none;
 
 
 
 
 
66
  }
67
 
68
  #fancybox-outer {
@@ -356,4 +364,4 @@
356
  .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
357
  .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
358
  .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
359
- .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
+ * Version: 1.3.4 (11/11/2010) patched : box-sizing: content-box;
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
27
  overflow: hidden;
28
  z-index: 1104;
29
  display: none;
30
+ box-sizing: content-box;
31
  }
32
 
33
  #fancybox-loading div {
37
  width: 40px;
38
  height: 480px;
39
  background-image: url('fancybox.png');
40
+ box-sizing: content-box;
41
  }
42
 
43
  #fancybox-overlay {
47
  width: 100%;
48
  z-index: 1100;
49
  display: none;
50
+ box-sizing: content-box;
51
  }
52
 
53
  #fancybox-tmp {
66
  z-index: 1101;
67
  outline: none;
68
  display: none;
69
+ box-sizing: content-box;
70
+ }
71
+
72
+ #fancybox-wrap div {
73
+ box-sizing: content-box;
74
  }
75
 
76
  #fancybox-outer {
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'); }
fancybox/{jquery.fancybox-1.3.4.js → jquery.fancybox-1.3.5.js} RENAMED
@@ -7,26 +7,36 @@
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
- * Version: 1.3.4 (11/11/2010)
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
15
  * http://www.gnu.org/licenses/gpl.html
 
 
 
 
 
 
 
 
16
  */
17
-
18
  ;(function($) {
19
  var tmp, loading, overlay, wrap, outer, content, close, title, nav_left, nav_right,
20
 
21
  selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
22
 
23
- ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
24
 
25
  loadingTimer, loadingFrame = 1,
26
 
27
  titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
28
 
29
- isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
 
 
 
30
 
31
  /*
32
  * Private methods
@@ -116,6 +126,9 @@
116
  } else if (href.match(swfRegExp)) {
117
  type = 'swf';
118
 
 
 
 
119
  } else if ($(obj).hasClass("iframe")) {
120
  type = 'iframe';
121
 
@@ -233,6 +246,16 @@
233
  _process_inline();
234
  break;
235
 
 
 
 
 
 
 
 
 
 
 
236
  case 'ajax':
237
  busy = false;
238
 
@@ -605,14 +628,16 @@
605
  overlay.bind('click', $.fancybox.close);
606
  }
607
 
608
- $(window).bind("resize.fb", $.fancybox.resize);
 
 
609
 
610
  if (currentOpts.centerOnScroll) {
611
  $(window).bind("scroll.fb", $.fancybox.center);
612
  }
613
 
614
  if (currentOpts.type == 'iframe') {
615
- $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + currentOpts.href + '"></iframe>').appendTo(content);
616
  }
617
 
618
  wrap.show();
@@ -699,7 +724,7 @@
699
  }
700
 
701
  if (resize && (to.width > view[0] || to.height > view[1])) {
702
- if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
703
  ratio = (currentOpts.width ) / (currentOpts.height );
704
 
705
  if ((to.width ) > view[0]) {
@@ -812,7 +837,7 @@
812
  selectedArray.push(this);
813
 
814
  } else {
815
- selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
816
  selectedIndex = selectedArray.index( this );
817
  }
818
 
@@ -943,7 +968,7 @@
943
  $(window).unbind("resize.fb scroll.fb");
944
  $(document).unbind('keydown.fb');
945
 
946
- content.find('iframe').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
947
 
948
  if (currentOpts.titlePosition !== 'inside') {
949
  title.empty();
@@ -1107,10 +1132,12 @@
1107
 
1108
  autoScale : true,
1109
  autoDimensions : true,
1110
- centerOnScroll : false,
 
1111
 
1112
  ajax : {},
1113
  swf : { wmode: 'transparent' },
 
1114
 
1115
  hideOnOverlayClick : true,
1116
  hideOnContentClick : false,
@@ -1153,4 +1180,5 @@
1153
  $.fancybox.init();
1154
  });
1155
 
1156
- })(jQuery);
 
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
  *
10
+ * Version: 1.3.4 (11/11/2010) patched and appended
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
15
  * http://www.gnu.org/licenses/gpl.html
16
+ *
17
+ * Patches applied:
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 37: patched for jQuery 1.9+ compat, JFK on http://stackoverflow.com/questions/14344289/
22
+ *
23
+ * Added SVG support. Patch by Simon Maillard simon@ogesta.fr
24
  */
 
25
  ;(function($) {
26
  var tmp, loading, overlay, wrap, outer, content, close, title, nav_left, nav_right,
27
 
28
  selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
29
 
30
+ ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i, svgRegExp = /[^\.]\.(svg)\s*$/i,
31
 
32
  loadingTimer, loadingFrame = 1,
33
 
34
  titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
35
 
36
+ /* patched for jQuery 1.9+ according to JFK's method on http://stackoverflow.com/questions/14344289/ */
37
+ isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest,
38
+
39
+ isTouch = document.createTouch !== undefined,
40
 
41
  /*
42
  * Private methods
126
  } else if (href.match(swfRegExp)) {
127
  type = 'swf';
128
 
129
+ } else if (href.match(svgRegExp)) {
130
+ type = 'svg';
131
+
132
  } else if ($(obj).hasClass("iframe")) {
133
  type = 'iframe';
134
 
246
  _process_inline();
247
  break;
248
 
249
+ case 'svg':
250
+ selectedOpts.scrolling = 'no';
251
+
252
+ str = '<object width="' + selectedOpts.width + '" height="' + selectedOpts.height + '" data="' + href + '"></object>';
253
+
254
+ tmp.html(str);
255
+
256
+ _process_inline();
257
+ break;
258
+
259
  case 'ajax':
260
  busy = false;
261
 
628
  overlay.bind('click', $.fancybox.close);
629
  }
630
 
631
+ if(currentOpts.autoResize) {
632
+ $(window).bind("resize.fb", $.fancybox.resize);
633
+ }
634
 
635
  if (currentOpts.centerOnScroll) {
636
  $(window).bind("scroll.fb", $.fancybox.center);
637
  }
638
 
639
  if (currentOpts.type == 'iframe') {
640
+ $('<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);
641
  }
642
 
643
  wrap.show();
724
  }
725
 
726
  if (resize && (to.width > view[0] || to.height > view[1])) {
727
+ if (selectedOpts.type == 'image' || selectedOpts.type == 'svg'|| selectedOpts.type == 'swf') {
728
  ratio = (currentOpts.width ) / (currentOpts.height );
729
 
730
  if ((to.width ) > view[0]) {
837
  selectedArray.push(this);
838
 
839
  } else {
840
+ selectedArray = $('a[rel="' + rel + '"], area[rel="' + rel + '"]');
841
  selectedIndex = selectedArray.index( this );
842
  }
843
 
968
  $(window).unbind("resize.fb scroll.fb");
969
  $(document).unbind('keydown.fb');
970
 
971
+ content.find('iframe#fancybox-frame').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
972
 
973
  if (currentOpts.titlePosition !== 'inside') {
974
  title.empty();
1132
 
1133
  autoScale : true,
1134
  autoDimensions : true,
1135
+ centerOnScroll : !isTouch,
1136
+ autoResize : !isTouch,
1137
 
1138
  ajax : {},
1139
  swf : { wmode: 'transparent' },
1140
+ svg : { wmode: 'transparent' },
1141
 
1142
  hideOnOverlayClick : true,
1143
  hideOnContentClick : false,
1180
  $.fancybox.init();
1181
  });
1182
 
1183
+ })(jQuery);
1184
+
fancybox/jquery.fancybox-1.3.5.pack.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * FancyBox - jQuery Plugin
3
+ * Simple and fancy lightbox alternative
4
+ *
5
+ * Examples and documentation at: http://fancybox.net
6
+ *
7
+ * Copyright (c) 2008 - 2010 Janis Skarnelis
8
+ * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
+ *
10
+ * Version: 1.3.4 (11/11/2010)
11
+ * Requires: jQuery v1.3+
12
+ *
13
+ * Dual licensed under the MIT and GPL licenses:
14
+ * http://www.opensource.org/licenses/mit-license.php
15
+ * http://www.gnu.org/licenses/gpl.html
16
+ *
17
+ * Patches applied for Easy FancyBox WordPress plugin integration:
18
+ * Quoted attribute selector, RavanH ravanhagen@gmail.com
19
+ * Added isTouch variable and autoResize parameter, RavanH ravanhagen@gmail.com
20
+ * jQuery 1.9+ compat, JFK http://stackoverflow.com/questions/14344289/
21
+ * Added SVG support. Patch 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.event.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.event.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.event.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.event.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);
fancybox/jquery.mousewheel-3.0.4.pack.js DELETED
@@ -1,14 +0,0 @@
1
- /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
- * Licensed under the MIT License (LICENSE.txt).
3
- *
4
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
- * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
- *
8
- * Version: 3.0.4
9
- *
10
- * Requires: 1.2.2+
11
- */
12
-
13
- (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
14
- f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
jquery.easing.js ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
+ *
4
+ * Uses the built in easing capabilities added In jQuery 1.1
5
+ * to offer multiple easing options
6
+ *
7
+ * TERMS OF USE - jQuery Easing
8
+ *
9
+ * Open source under the BSD License.
10
+ *
11
+ * Copyright © 2008 George McGinley Smith
12
+ * All rights reserved.
13
+ *
14
+ * Redistribution and use in source and binary forms, with or without modification,
15
+ * are permitted provided that the following conditions are met:
16
+ *
17
+ * Redistributions of source code must retain the above copyright notice, this list of
18
+ * conditions and the following disclaimer.
19
+ * Redistributions in binary form must reproduce the above copyright notice, this list
20
+ * of conditions and the following disclaimer in the documentation and/or other materials
21
+ * provided with the distribution.
22
+ *
23
+ * Neither the name of the author nor the names of contributors may be used to endorse
24
+ * or promote products derived from this software without specific prior written permission.
25
+ *
26
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
27
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
32
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
34
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
35
+ *
36
+ */
37
+
38
+ // t: current time, b: begInnIng value, c: change In value, d: duration
39
+ jQuery.easing['jswing'] = jQuery.easing['swing'];
40
+
41
+ jQuery.extend( jQuery.easing,
42
+ {
43
+ def: 'easeOutQuad',
44
+ swing: function (x, t, b, c, d) {
45
+ //alert(jQuery.easing.default);
46
+ return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
47
+ },
48
+ easeInQuad: function (x, t, b, c, d) {
49
+ return c*(t/=d)*t + b;
50
+ },
51
+ easeOutQuad: function (x, t, b, c, d) {
52
+ return -c *(t/=d)*(t-2) + b;
53
+ },
54
+ easeInOutQuad: function (x, t, b, c, d) {
55
+ if ((t/=d/2) < 1) return c/2*t*t + b;
56
+ return -c/2 * ((--t)*(t-2) - 1) + b;
57
+ },
58
+ easeInCubic: function (x, t, b, c, d) {
59
+ return c*(t/=d)*t*t + b;
60
+ },
61
+ easeOutCubic: function (x, t, b, c, d) {
62
+ return c*((t=t/d-1)*t*t + 1) + b;
63
+ },
64
+ easeInOutCubic: function (x, t, b, c, d) {
65
+ if ((t/=d/2) < 1) return c/2*t*t*t + b;
66
+ return c/2*((t-=2)*t*t + 2) + b;
67
+ },
68
+ easeInQuart: function (x, t, b, c, d) {
69
+ return c*(t/=d)*t*t*t + b;
70
+ },
71
+ easeOutQuart: function (x, t, b, c, d) {
72
+ return -c * ((t=t/d-1)*t*t*t - 1) + b;
73
+ },
74
+ easeInOutQuart: function (x, t, b, c, d) {
75
+ if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
76
+ return -c/2 * ((t-=2)*t*t*t - 2) + b;
77
+ },
78
+ easeInQuint: function (x, t, b, c, d) {
79
+ return c*(t/=d)*t*t*t*t + b;
80
+ },
81
+ easeOutQuint: function (x, t, b, c, d) {
82
+ return c*((t=t/d-1)*t*t*t*t + 1) + b;
83
+ },
84
+ easeInOutQuint: function (x, t, b, c, d) {
85
+ if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
86
+ return c/2*((t-=2)*t*t*t*t + 2) + b;
87
+ },
88
+ easeInSine: function (x, t, b, c, d) {
89
+ return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
90
+ },
91
+ easeOutSine: function (x, t, b, c, d) {
92
+ return c * Math.sin(t/d * (Math.PI/2)) + b;
93
+ },
94
+ easeInOutSine: function (x, t, b, c, d) {
95
+ return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
96
+ },
97
+ easeInExpo: function (x, t, b, c, d) {
98
+ return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
99
+ },
100
+ easeOutExpo: function (x, t, b, c, d) {
101
+ return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
102
+ },
103
+ easeInOutExpo: function (x, t, b, c, d) {
104
+ if (t==0) return b;
105
+ if (t==d) return b+c;
106
+ if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
107
+ return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
108
+ },
109
+ easeInCirc: function (x, t, b, c, d) {
110
+ return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
111
+ },
112
+ easeOutCirc: function (x, t, b, c, d) {
113
+ return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
114
+ },
115
+ easeInOutCirc: function (x, t, b, c, d) {
116
+ if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
117
+ return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
118
+ },
119
+ easeInElastic: function (x, t, b, c, d) {
120
+ var s=1.70158;var p=0;var a=c;
121
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
122
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
123
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
124
+ return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
125
+ },
126
+ easeOutElastic: function (x, t, b, c, d) {
127
+ var s=1.70158;var p=0;var a=c;
128
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
129
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
130
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
131
+ return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
132
+ },
133
+ easeInOutElastic: function (x, t, b, c, d) {
134
+ var s=1.70158;var p=0;var a=c;
135
+ if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
136
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
137
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
138
+ if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
139
+ return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
140
+ },
141
+ easeInBack: function (x, t, b, c, d, s) {
142
+ if (s == undefined) s = 1.70158;
143
+ return c*(t/=d)*t*((s+1)*t - s) + b;
144
+ },
145
+ easeOutBack: function (x, t, b, c, d, s) {
146
+ if (s == undefined) s = 1.70158;
147
+ return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
148
+ },
149
+ easeInOutBack: function (x, t, b, c, d, s) {
150
+ if (s == undefined) s = 1.70158;
151
+ if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
152
+ return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
153
+ },
154
+ easeInBounce: function (x, t, b, c, d) {
155
+ return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
156
+ },
157
+ easeOutBounce: function (x, t, b, c, d) {
158
+ if ((t/=d) < (1/2.75)) {
159
+ return c*(7.5625*t*t) + b;
160
+ } else if (t < (2/2.75)) {
161
+ return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
162
+ } else if (t < (2.5/2.75)) {
163
+ return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
164
+ } else {
165
+ return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
166
+ }
167
+ },
168
+ easeInOutBounce: function (x, t, b, c, d) {
169
+ if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
170
+ return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
171
+ }
172
+ });
173
+
174
+ /*
175
+ *
176
+ * TERMS OF USE - EASING EQUATIONS
177
+ *
178
+ * Open source under the BSD License.
179
+ *
180
+ * Copyright © 2001 Robert Penner
181
+ * All rights reserved.
182
+ *
183
+ * Redistribution and use in source and binary forms, with or without modification,
184
+ * are permitted provided that the following conditions are met:
185
+ *
186
+ * Redistributions of source code must retain the above copyright notice, this list of
187
+ * conditions and the following disclaimer.
188
+ * Redistributions in binary form must reproduce the above copyright notice, this list
189
+ * of conditions and the following disclaimer in the documentation and/or other materials
190
+ * provided with the distribution.
191
+ *
192
+ * Neither the name of the author nor the names of contributors may be used to endorse
193
+ * or promote products derived from this software without specific prior written permission.
194
+ *
195
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
196
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
197
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
198
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
199
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
200
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
201
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
202
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
203
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
204
+ *
205
+ */
jquery.easing.pack.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
+ *
4
+ * Uses the built in easing capabilities added In jQuery 1.1
5
+ * to offer multiple easing options
6
+ *
7
+ * TERMS OF USE - jQuery Easing
8
+ *
9
+ * Open source under the BSD License.
10
+ *
11
+ * Copyright © 2008 George McGinley Smith
12
+ * All rights reserved.
13
+ */
14
+ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:1>(b/=e/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),Math.abs(d)>h){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),Math.abs(d)>h){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=e*.3*1.5),Math.abs(d)>h){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return 1>b?-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:.5*h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),1>(b/=e/2)?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return 1/2.75>(b/=e)?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}});
jquery.metadata.js ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Metadata - jQuery plugin for parsing metadata from elements
3
+ *
4
+ * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
5
+ *
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ *
10
+ * Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
11
+ *
12
+ */
13
+
14
+ /**
15
+ * Sets the type of metadata to use. Metadata is encoded in JSON, and each property
16
+ * in the JSON will become a property of the element itself.
17
+ *
18
+ * There are four supported types of metadata storage:
19
+ *
20
+ * attr: Inside an attribute. The name parameter indicates *which* attribute.
21
+ *
22
+ * class: Inside the class attribute, wrapped in curly braces: { }
23
+ *
24
+ * elem: Inside a child element (e.g. a script tag). The
25
+ * name parameter indicates *which* element.
26
+ * html5: Values are stored in data-* attributes.
27
+ *
28
+ * The metadata for an element is loaded the first time the element is accessed via jQuery.
29
+ *
30
+ * As a result, you can define the metadata type, use $(expr) to load the metadata into the elements
31
+ * matched by expr, then redefine the metadata type and run another $(expr) for other elements.
32
+ *
33
+ * @name $.metadata.setType
34
+ *
35
+ * @example <p id="one" class="some_class {item_id: 1, item_label: 'Label'}">This is a p</p>
36
+ * @before $.metadata.setType("class")
37
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
38
+ * @desc Reads metadata from the class attribute
39
+ *
40
+ * @example <p id="one" class="some_class" data="{item_id: 1, item_label: 'Label'}">This is a p</p>
41
+ * @before $.metadata.setType("attr", "data")
42
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
43
+ * @desc Reads metadata from a "data" attribute
44
+ *
45
+ * @example <p id="one" class="some_class"><script>{item_id: 1, item_label: 'Label'}</script>This is a p</p>
46
+ * @before $.metadata.setType("elem", "script")
47
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
48
+ * @desc Reads metadata from a nested script element
49
+ *
50
+ * @example <p id="one" class="some_class" data-item_id="1" data-item_label="Label">This is a p</p>
51
+ * @before $.metadata.setType("html5")
52
+ * @after $("#one").metadata().item_id == 1; $("#one").metadata().item_label == "Label"
53
+ * @desc Reads metadata from a series of data-* attributes
54
+ *
55
+ * @param String type The encoding type
56
+ * @param String name The name of the attribute to be used to get metadata (optional)
57
+ * @cat Plugins/Metadata
58
+ * @descr Sets the type of encoding to be used when loading metadata for the first time
59
+ * @type undefined
60
+ * @see metadata()
61
+ */
62
+
63
+ (function($) {
64
+
65
+ $.extend({
66
+ metadata : {
67
+ defaults : {
68
+ type: 'class',
69
+ name: 'metadata',
70
+ cre: /({.*})/,
71
+ single: 'metadata'
72
+ },
73
+ setType: function( type, name ){
74
+ this.defaults.type = type;
75
+ this.defaults.name = name;
76
+ },
77
+ get: function( elem, opts ){
78
+ var settings = $.extend({},this.defaults,opts);
79
+ // check for empty string in single property
80
+ if ( !settings.single.length ) settings.single = 'metadata';
81
+
82
+ var data = $.data(elem, settings.single);
83
+ // returned cached data if it already exists
84
+ if ( data ) return data;
85
+
86
+ data = "{}";
87
+
88
+ var getData = function(data) {
89
+ if(typeof data != "string") return data;
90
+
91
+ if( data.indexOf('{') < 0 ) {
92
+ data = eval("(" + data + ")");
93
+ }
94
+ }
95
+
96
+ var getObject = function(data) {
97
+ if(typeof data != "string") return data;
98
+
99
+ data = eval("(" + data + ")");
100
+ return data;
101
+ }
102
+
103
+ if ( settings.type == "html5" ) {
104
+ var object = {};
105
+ $( elem.attributes ).each(function() {
106
+ var name = this.nodeName;
107
+ if(name.match(/^data-/)) name = name.replace(/^data-/, '');
108
+ else return true;
109
+ object[name] = getObject(this.nodeValue);
110
+ });
111
+ } else {
112
+ if ( settings.type == "class" ) {
113
+ var m = settings.cre.exec( elem.className );
114
+ if ( m )
115
+ data = m[1];
116
+ } else if ( settings.type == "elem" ) {
117
+ if( !elem.getElementsByTagName ) return;
118
+ var e = elem.getElementsByTagName(settings.name);
119
+ if ( e.length )
120
+ data = $.trim(e[0].innerHTML);
121
+ } else if ( elem.getAttribute != undefined ) {
122
+ var attr = elem.getAttribute( settings.name );
123
+ if ( attr )
124
+ data = attr;
125
+ }
126
+ object = getObject(data.indexOf("{") < 0 ? "{" + data + "}" : data);
127
+ }
128
+
129
+ $.data( elem, settings.single, object );
130
+ return object;
131
+ }
132
+ }
133
+ });
134
+
135
+ /**
136
+ * Returns the metadata object for the first member of the jQuery object.
137
+ *
138
+ * @name metadata
139
+ * @descr Returns element's metadata object
140
+ * @param Object opts An object contianing settings to override the defaults
141
+ * @type jQuery
142
+ * @cat Plugins/Metadata
143
+ */
144
+ $.fn.metadata = function( opts ){
145
+ return $.metadata.get( this[0], opts );
146
+ };
147
+
148
+ })(jQuery);
jquery.metadata.pack.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Metadata - jQuery plugin for parsing metadata from elements
3
+ *
4
+ * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
5
+ *
6
+ * Dual licensed under the MIT and GPL licenses:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ * http://www.gnu.org/licenses/gpl.html
9
+ *
10
+ * Revision: $Id: jquery.metadata.js 3640 2007-10-11 18:34:38Z pmclanahan $
11
+ *
12
+ */
13
+
14
+ (function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";var getData=function(data){if(typeof data!="string")return data;if(data.indexOf('{')<0){data=eval("("+data+")");}}
15
+ var getObject=function(data){if(typeof data!="string")return data;data=eval("("+data+")");return data;}
16
+ if(settings.type=="html5"){var object={};$(elem.attributes).each(function(){var name=this.nodeName;if(name.match(/^data-/))name=name.replace(/^data-/,'');else return true;object[name]=getObject(this.nodeValue);});}else{if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)
17
+ data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length)
18
+ data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)
19
+ data=attr;}
20
+ object=getObject(data.indexOf("{")<0?"{"+data+"}":data);}
21
+ $.data(elem,settings.single,object);return object;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);
jquery.mousewheel.js ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.1.3
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function (factory) {
14
+ if ( typeof define === 'function' && define.amd ) {
15
+ // AMD. Register as an anonymous module.
16
+ define(['jquery'], factory);
17
+ } else if (typeof exports === 'object') {
18
+ // Node/CommonJS style for Browserify
19
+ module.exports = factory;
20
+ } else {
21
+ // Browser globals
22
+ factory(jQuery);
23
+ }
24
+ }(function ($) {
25
+
26
+ var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'];
27
+ var toBind = 'onwheel' in document || document.documentMode >= 9 ? ['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'];
28
+ var lowestDelta, lowestDeltaXY;
29
+
30
+ if ( $.event.fixHooks ) {
31
+ for ( var i = toFix.length; i; ) {
32
+ $.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
33
+ }
34
+ }
35
+
36
+ $.event.special.mousewheel = {
37
+ setup: function() {
38
+ if ( this.addEventListener ) {
39
+ for ( var i = toBind.length; i; ) {
40
+ this.addEventListener( toBind[--i], handler, false );
41
+ }
42
+ } else {
43
+ this.onmousewheel = handler;
44
+ }
45
+ },
46
+
47
+ teardown: function() {
48
+ if ( this.removeEventListener ) {
49
+ for ( var i = toBind.length; i; ) {
50
+ this.removeEventListener( toBind[--i], handler, false );
51
+ }
52
+ } else {
53
+ this.onmousewheel = null;
54
+ }
55
+ }
56
+ };
57
+
58
+ $.fn.extend({
59
+ mousewheel: function(fn) {
60
+ return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
61
+ },
62
+
63
+ unmousewheel: function(fn) {
64
+ return this.unbind("mousewheel", fn);
65
+ }
66
+ });
67
+
68
+
69
+ function handler(event) {
70
+ var orgEvent = event || window.event,
71
+ args = [].slice.call(arguments, 1),
72
+ delta = 0,
73
+ deltaX = 0,
74
+ deltaY = 0,
75
+ absDelta = 0,
76
+ absDeltaXY = 0,
77
+ fn;
78
+ event = $.event.fix(orgEvent);
79
+ event.type = "mousewheel";
80
+
81
+ // Old school scrollwheel delta
82
+ if ( orgEvent.wheelDelta ) { delta = orgEvent.wheelDelta; }
83
+ if ( orgEvent.detail ) { delta = orgEvent.detail * -1; }
84
+
85
+ // New school wheel delta (wheel event)
86
+ if ( orgEvent.deltaY ) {
87
+ deltaY = orgEvent.deltaY * -1;
88
+ delta = deltaY;
89
+ }
90
+ if ( orgEvent.deltaX ) {
91
+ deltaX = orgEvent.deltaX;
92
+ delta = deltaX * -1;
93
+ }
94
+
95
+ // Webkit
96
+ if ( orgEvent.wheelDeltaY !== undefined ) { deltaY = orgEvent.wheelDeltaY; }
97
+ if ( orgEvent.wheelDeltaX !== undefined ) { deltaX = orgEvent.wheelDeltaX * -1; }
98
+
99
+ // Look for lowest delta to normalize the delta values
100
+ absDelta = Math.abs(delta);
101
+ if ( !lowestDelta || absDelta < lowestDelta ) { lowestDelta = absDelta; }
102
+ absDeltaXY = Math.max(Math.abs(deltaY), Math.abs(deltaX));
103
+ if ( !lowestDeltaXY || absDeltaXY < lowestDeltaXY ) { lowestDeltaXY = absDeltaXY; }
104
+
105
+ // Get a whole value for the deltas
106
+ fn = delta > 0 ? 'floor' : 'ceil';
107
+ delta = Math[fn](delta / lowestDelta);
108
+ deltaX = Math[fn](deltaX / lowestDeltaXY);
109
+ deltaY = Math[fn](deltaY / lowestDeltaXY);
110
+
111
+ // Add event and delta to the front of the arguments
112
+ args.unshift(event, delta, deltaX, deltaY);
113
+
114
+ return ($.event.dispatch || $.event.handle).apply(this, args);
115
+ }
116
+
117
+ }));
jquery.mousewheel.pack.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
4
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
5
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
6
+ * Version: 3.1.3
7
+ */
8
+ (function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)})(function(a){function g(b){var l,c=b||window.event,f=[].slice.call(arguments,1),g=0,h=0,i=0,j=0,k=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(g=c.wheelDelta),c.detail&&(g=-1*c.detail),c.deltaY&&(i=-1*c.deltaY,g=i),c.deltaX&&(h=c.deltaX,g=-1*h),void 0!==c.wheelDeltaY&&(i=c.wheelDeltaY),void 0!==c.wheelDeltaX&&(h=-1*c.wheelDeltaX),j=Math.abs(g),(!d||d>j)&&(d=j),k=Math.max(Math.abs(i),Math.abs(h)),(!e||e>k)&&(e=k),l=g>0?"floor":"ceil",g=Math[l](g/d),h=Math[l](h/e),i=Math[l](i/e),f.unshift(b,g,h,i),(a.event.dispatch||a.event.handle).apply(this,f)}var d,e,b=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],c="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(a.event.fixHooks)for(var f=b.length;f;)a.event.fixHooks[b[--f]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=c.length;a;)this.addEventListener(c[--a],g,!1);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=c.length;a;)this.removeEventListener(c[--a],g,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
languages/easy-fancybox-es_ES.mo ADDED
Binary file
languages/easy-fancybox-fr_FR.mo ADDED
Binary file
languages/easy-fancybox-hi_IN.mo ADDED
Binary file
languages/easy-fancybox-id_ID.mo ADDED
Binary file
languages/easy-fancybox-lt_LT.mo ADDED
Binary file
languages/easy-fancybox-nl_NL.mo ADDED
Binary file
languages/easy-fancybox-pl_PL.mo ADDED
Binary file
languages/easy-fancybox-tr_TR.mo ADDED
Binary file
languages/easy-fancybox-ua_UA.mo ADDED
Binary file
languages/easy-fancybox-xx_XX.po ADDED
@@ -0,0 +1,955 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Easy FancyBox
2
+ # This file is distributed under the same license as the Easy FancyBox package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Easy FancyBox/1.5\n"
6
+ "Report-Msgid-Bugs-To: \n"
7
+ "POT-Creation-Date: 2013-06-14 00:53+0100\n"
8
+ "PO-Revision-Date: 2013-06-14 00:54+0100\n"
9
+ "Last-Translator: RavanH <ravanhagen@gmail.com>\n"
10
+ "Language-Team: \n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
+
18
+ #: ../easy-fancybox-settings.php:9 ../easy-fancybox-class.php:566
19
+ msgid "Global settings"
20
+ msgstr ""
21
+
22
+ #: ../easy-fancybox-settings.php:14
23
+ msgid "Media"
24
+ msgstr ""
25
+
26
+ #: ../easy-fancybox-settings.php:20
27
+ msgid "Enable FancyBox for"
28
+ msgstr ""
29
+
30
+ #: ../easy-fancybox-settings.php:27 ../easy-fancybox-settings.php:370
31
+ #: ../easy-fancybox-class.php:567
32
+ msgid "Images"
33
+ msgstr ""
34
+
35
+ #: ../easy-fancybox-settings.php:34 ../easy-fancybox-settings.php:633
36
+ #: ../easy-fancybox-class.php:568
37
+ msgid "Inline content"
38
+ msgstr ""
39
+
40
+ #: ../easy-fancybox-settings.php:41 ../easy-fancybox-settings.php:743
41
+ #: ../easy-fancybox-class.php:569
42
+ msgid "PDF"
43
+ msgstr ""
44
+
45
+ #: ../easy-fancybox-settings.php:48 ../easy-fancybox-settings.php:868
46
+ #: ../easy-fancybox-class.php:570
47
+ msgid "SWF"
48
+ msgstr ""
49
+
50
+ #: ../easy-fancybox-settings.php:55 ../easy-fancybox-settings.php:962
51
+ msgid "SVG"
52
+ msgstr ""
53
+
54
+ #: ../easy-fancybox-settings.php:62 ../easy-fancybox-settings.php:1057
55
+ #: ../easy-fancybox-class.php:571
56
+ msgid "YouTube"
57
+ msgstr ""
58
+
59
+ #: ../easy-fancybox-settings.php:69 ../easy-fancybox-settings.php:1165
60
+ #: ../easy-fancybox-class.php:572
61
+ msgid "Vimeo"
62
+ msgstr ""
63
+
64
+ #: ../easy-fancybox-settings.php:76 ../easy-fancybox-settings.php:1265
65
+ #: ../easy-fancybox-class.php:573
66
+ msgid "Dailymotion"
67
+ msgstr ""
68
+
69
+ #: ../easy-fancybox-settings.php:83 ../easy-fancybox-settings.php:1391
70
+ #: ../easy-fancybox-class.php:574
71
+ msgid "iFrames"
72
+ msgstr ""
73
+
74
+ #: ../easy-fancybox-settings.php:86
75
+ msgid ""
76
+ "For advanced options and support, please get the Easy FancyBox - Pro "
77
+ "extension."
78
+ msgstr ""
79
+
80
+ #: ../easy-fancybox-settings.php:89
81
+ msgid "Links"
82
+ msgstr ""
83
+
84
+ #: ../easy-fancybox-settings.php:95
85
+ msgid "Exclude"
86
+ msgstr ""
87
+
88
+ #: ../easy-fancybox-settings.php:100 ../easy-fancybox-settings.php:114
89
+ #: ../easy-fancybox-settings.php:421 ../easy-fancybox-settings.php:448
90
+ #: ../easy-fancybox-settings.php:677 ../easy-fancybox-settings.php:704
91
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:227
92
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:252
93
+ msgid "None"
94
+ msgstr ""
95
+
96
+ #: ../easy-fancybox-settings.php:101
97
+ msgid "Empty (hidden) links"
98
+ msgstr ""
99
+
100
+ #: ../easy-fancybox-settings.php:102
101
+ msgid "Without thumbnail image"
102
+ msgstr ""
103
+
104
+ #: ../easy-fancybox-settings.php:109
105
+ msgid "Open on page load"
106
+ msgstr ""
107
+
108
+ #: ../easy-fancybox-settings.php:115
109
+ msgid "Link with ID \"fancybox-auto\""
110
+ msgstr ""
111
+
112
+ #: ../easy-fancybox-settings.php:118 ../easy-fancybox-settings.php:409
113
+ #: ../easy-fancybox-settings.php:440 ../easy-fancybox-settings.php:467
114
+ #: ../easy-fancybox-settings.php:542 ../easy-fancybox-settings.php:696
115
+ #: ../easy-fancybox-settings.php:723
116
+ msgid "More options &raquo;"
117
+ msgstr ""
118
+
119
+ #: ../easy-fancybox-settings.php:125
120
+ msgid ""
121
+ "Include the Metadata jQuery extension script to allow passing custom "
122
+ "parameters via link class."
123
+ msgstr ""
124
+
125
+ #: ../easy-fancybox-settings.php:130 ../easy-fancybox-settings.php:503
126
+ msgid "Overlay"
127
+ msgstr ""
128
+
129
+ #: ../easy-fancybox-settings.php:139
130
+ msgid "Show the overlay around content opened in FancyBox."
131
+ msgstr ""
132
+
133
+ #: ../easy-fancybox-settings.php:146
134
+ msgid "Close FancyBox when overlay is clicked."
135
+ msgstr ""
136
+
137
+ #: ../easy-fancybox-settings.php:150 ../easy-fancybox-settings.php:228
138
+ msgid "Opacity"
139
+ msgstr ""
140
+
141
+ #: ../easy-fancybox-settings.php:158
142
+ msgid "Value between 0 and 1. "
143
+ msgstr ""
144
+
145
+ #: ../easy-fancybox-settings.php:158 ../easy-fancybox-settings.php:167
146
+ #: ../easy-fancybox-settings.php:286 ../easy-fancybox-settings.php:337
147
+ #: ../easy-fancybox-settings.php:595
148
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:103
149
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:108
150
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:147
151
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:244
152
+ msgid "Default:"
153
+ msgstr ""
154
+
155
+ #: ../easy-fancybox-settings.php:162
156
+ msgid "Color"
157
+ msgstr ""
158
+
159
+ #: ../easy-fancybox-settings.php:167
160
+ msgid "Enter an HTML color value."
161
+ msgstr ""
162
+
163
+ #: ../easy-fancybox-settings.php:175
164
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:71
165
+ msgid "Spotlight effect"
166
+ msgstr ""
167
+
168
+ #: ../easy-fancybox-settings.php:175 ../easy-fancybox-settings.php:236
169
+ #: ../easy-fancybox-settings.php:249 ../easy-fancybox-settings.php:524
170
+ #: ../easy-fancybox-settings.php:613
171
+ msgid "Make available &raquo;"
172
+ msgstr ""
173
+
174
+ #: ../easy-fancybox-settings.php:180
175
+ msgid "Window"
176
+ msgstr ""
177
+
178
+ #: ../easy-fancybox-settings.php:186 ../easy-fancybox-settings.php:485
179
+ msgid "Appearance"
180
+ msgstr ""
181
+
182
+ #: ../easy-fancybox-settings.php:193
183
+ msgid "Show the (X) close button"
184
+ msgstr ""
185
+
186
+ #: ../easy-fancybox-settings.php:198
187
+ msgid "Background color"
188
+ msgstr ""
189
+
190
+ #: ../easy-fancybox-settings.php:208
191
+ msgid "Border color"
192
+ msgstr ""
193
+
194
+ #: ../easy-fancybox-settings.php:218
195
+ msgid "Text color"
196
+ msgstr ""
197
+
198
+ #: ../easy-fancybox-settings.php:241
199
+ msgid "Border radius"
200
+ msgstr ""
201
+
202
+ #: ../easy-fancybox-settings.php:249
203
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:114
204
+ msgid "Set a border radius to create rounded corners. Higher is rounder."
205
+ msgstr ""
206
+
207
+ #: ../easy-fancybox-settings.php:254
208
+ msgid "Dimensions"
209
+ msgstr ""
210
+
211
+ #: ../easy-fancybox-settings.php:258 ../easy-fancybox-settings.php:771
212
+ #: ../easy-fancybox-settings.php:896 ../easy-fancybox-settings.php:990
213
+ #: ../easy-fancybox-settings.php:1095 ../easy-fancybox-settings.php:1194
214
+ #: ../easy-fancybox-settings.php:1294 ../easy-fancybox-settings.php:1424
215
+ msgid "Width"
216
+ msgstr ""
217
+
218
+ #: ../easy-fancybox-settings.php:268 ../easy-fancybox-settings.php:781
219
+ #: ../easy-fancybox-settings.php:907 ../easy-fancybox-settings.php:1001
220
+ #: ../easy-fancybox-settings.php:1108 ../easy-fancybox-settings.php:1207
221
+ #: ../easy-fancybox-settings.php:1307 ../easy-fancybox-settings.php:1434
222
+ msgid "Height"
223
+ msgstr ""
224
+
225
+ #: ../easy-fancybox-settings.php:277 ../easy-fancybox-settings.php:790
226
+ #: ../easy-fancybox-settings.php:917 ../easy-fancybox-settings.php:1011
227
+ #: ../easy-fancybox-settings.php:1120 ../easy-fancybox-settings.php:1219
228
+ #: ../easy-fancybox-settings.php:1319 ../easy-fancybox-settings.php:1443
229
+ msgid "Border"
230
+ msgstr ""
231
+
232
+ #: ../easy-fancybox-settings.php:286
233
+ msgid ""
234
+ "If content size is not set or cannot be determined automatically, these "
235
+ "default dimensions will be used."
236
+ msgstr ""
237
+
238
+ #: ../easy-fancybox-settings.php:291 ../easy-fancybox-settings.php:413
239
+ msgid "Behavior"
240
+ msgstr ""
241
+
242
+ #: ../easy-fancybox-settings.php:298
243
+ msgid "Center while scrolling"
244
+ msgstr ""
245
+
246
+ #: ../easy-fancybox-settings.php:305
247
+ msgid "Esc key stroke closes FancyBox"
248
+ msgstr ""
249
+
250
+ #: ../easy-fancybox-settings.php:312
251
+ msgid "Scale large content down to fit in the browser viewport."
252
+ msgstr ""
253
+
254
+ #: ../easy-fancybox-settings.php:316
255
+ msgid "Opening speed"
256
+ msgstr ""
257
+
258
+ #: ../easy-fancybox-settings.php:328
259
+ msgid "Closing speed"
260
+ msgstr ""
261
+
262
+ #: ../easy-fancybox-settings.php:337 ../easy-fancybox-settings.php:595
263
+ msgid "Duration in milliseconds. Higher is slower."
264
+ msgstr ""
265
+
266
+ #: ../easy-fancybox-settings.php:375
267
+ msgid ""
268
+ "To make images open in an overlay, add their extension to the Autodetect "
269
+ "field or use the class \"fancybox\" for its link. Clear field to switch off "
270
+ "all autodetection."
271
+ msgstr ""
272
+
273
+ #: ../easy-fancybox-settings.php:390 ../easy-fancybox-settings.php:756
274
+ #: ../easy-fancybox-settings.php:881 ../easy-fancybox-settings.php:975
275
+ #: ../easy-fancybox-settings.php:1071 ../easy-fancybox-settings.php:1179
276
+ #: ../easy-fancybox-settings.php:1279
277
+ msgid "Autodetect"
278
+ msgstr ""
279
+
280
+ #: ../easy-fancybox-settings.php:397
281
+ msgid "Example:"
282
+ msgstr ""
283
+
284
+ #: ../easy-fancybox-settings.php:401
285
+ msgid "Apply to"
286
+ msgstr ""
287
+
288
+ #: ../easy-fancybox-settings.php:406
289
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:147
290
+ msgid "All image links"
291
+ msgstr ""
292
+
293
+ #: ../easy-fancybox-settings.php:417 ../easy-fancybox-settings.php:673
294
+ msgid "Transition In"
295
+ msgstr ""
296
+
297
+ #: ../easy-fancybox-settings.php:422 ../easy-fancybox-settings.php:449
298
+ #: ../easy-fancybox-settings.php:678 ../easy-fancybox-settings.php:705
299
+ msgid "Fade"
300
+ msgstr ""
301
+
302
+ #: ../easy-fancybox-settings.php:423 ../easy-fancybox-settings.php:450
303
+ #: ../easy-fancybox-settings.php:679 ../easy-fancybox-settings.php:706
304
+ msgid "Elastic"
305
+ msgstr ""
306
+
307
+ #: ../easy-fancybox-settings.php:430 ../easy-fancybox-settings.php:686
308
+ msgid "Easing In"
309
+ msgstr ""
310
+
311
+ #: ../easy-fancybox-settings.php:434 ../easy-fancybox-settings.php:461
312
+ #: ../easy-fancybox-settings.php:690 ../easy-fancybox-settings.php:717
313
+ msgid "Linear"
314
+ msgstr ""
315
+
316
+ #: ../easy-fancybox-settings.php:435 ../easy-fancybox-settings.php:462
317
+ #: ../easy-fancybox-settings.php:691 ../easy-fancybox-settings.php:718
318
+ msgid "Swing"
319
+ msgstr ""
320
+
321
+ #: ../easy-fancybox-settings.php:436 ../easy-fancybox-settings.php:463
322
+ #: ../easy-fancybox-settings.php:692 ../easy-fancybox-settings.php:719
323
+ msgid "easeInBack"
324
+ msgstr ""
325
+
326
+ #: ../easy-fancybox-settings.php:437 ../easy-fancybox-settings.php:464
327
+ #: ../easy-fancybox-settings.php:693 ../easy-fancybox-settings.php:720
328
+ msgid "easeOutBack"
329
+ msgstr ""
330
+
331
+ #: ../easy-fancybox-settings.php:444 ../easy-fancybox-settings.php:700
332
+ msgid "Transition Out"
333
+ msgstr ""
334
+
335
+ #: ../easy-fancybox-settings.php:457 ../easy-fancybox-settings.php:713
336
+ msgid "Easing Out"
337
+ msgstr ""
338
+
339
+ #: ../easy-fancybox-settings.php:467 ../easy-fancybox-settings.php:542
340
+ #: ../easy-fancybox-settings.php:723
341
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:213
342
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:219
343
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:230
344
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:257
345
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:331
346
+ msgid "Note:"
347
+ msgstr ""
348
+
349
+ #: ../easy-fancybox-settings.php:467 ../easy-fancybox-settings.php:723
350
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:213
351
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:331
352
+ msgid "Easing effects only apply when Transition is set to Elastic. "
353
+ msgstr ""
354
+
355
+ #: ../easy-fancybox-settings.php:474 ../easy-fancybox-settings.php:730
356
+ msgid ""
357
+ "Transparency fade during elastic transition. CAUTION: Use only when at least "
358
+ "Transition In is set to Elastic!"
359
+ msgstr ""
360
+
361
+ #: ../easy-fancybox-settings.php:481 ../easy-fancybox-settings.php:737
362
+ msgid "Close FancyBox when content is clicked"
363
+ msgstr ""
364
+
365
+ #: ../easy-fancybox-settings.php:492 ../easy-fancybox-settings.php:810
366
+ #: ../easy-fancybox-settings.php:933 ../easy-fancybox-settings.php:1027
367
+ #: ../easy-fancybox-settings.php:1136 ../easy-fancybox-settings.php:1235
368
+ #: ../easy-fancybox-settings.php:1335 ../easy-fancybox-settings.php:1459
369
+ msgid "Show title"
370
+ msgstr ""
371
+
372
+ #: ../easy-fancybox-settings.php:496 ../easy-fancybox-settings.php:814
373
+ #: ../easy-fancybox-settings.php:937 ../easy-fancybox-settings.php:1031
374
+ #: ../easy-fancybox-settings.php:1140 ../easy-fancybox-settings.php:1239
375
+ #: ../easy-fancybox-settings.php:1339 ../easy-fancybox-settings.php:1463
376
+ msgid "Title Position"
377
+ msgstr ""
378
+
379
+ #: ../easy-fancybox-settings.php:500 ../easy-fancybox-settings.php:818
380
+ #: ../easy-fancybox-settings.php:941 ../easy-fancybox-settings.php:1035
381
+ #: ../easy-fancybox-settings.php:1144 ../easy-fancybox-settings.php:1243
382
+ #: ../easy-fancybox-settings.php:1343 ../easy-fancybox-settings.php:1467
383
+ msgid "Float"
384
+ msgstr ""
385
+
386
+ #: ../easy-fancybox-settings.php:501 ../easy-fancybox-settings.php:819
387
+ #: ../easy-fancybox-settings.php:942 ../easy-fancybox-settings.php:1036
388
+ #: ../easy-fancybox-settings.php:1145 ../easy-fancybox-settings.php:1244
389
+ #: ../easy-fancybox-settings.php:1344 ../easy-fancybox-settings.php:1468
390
+ msgid "Outside"
391
+ msgstr ""
392
+
393
+ #: ../easy-fancybox-settings.php:502 ../easy-fancybox-settings.php:820
394
+ #: ../easy-fancybox-settings.php:943 ../easy-fancybox-settings.php:1037
395
+ #: ../easy-fancybox-settings.php:1146 ../easy-fancybox-settings.php:1245
396
+ #: ../easy-fancybox-settings.php:1345 ../easy-fancybox-settings.php:1469
397
+ msgid "Inside"
398
+ msgstr ""
399
+
400
+ #: ../easy-fancybox-settings.php:513 ../easy-fancybox-settings.php:829
401
+ #: ../easy-fancybox-settings.php:952 ../easy-fancybox-settings.php:1047
402
+ #: ../easy-fancybox-settings.php:1155 ../easy-fancybox-settings.php:1254
403
+ #: ../easy-fancybox-settings.php:1354 ../easy-fancybox-settings.php:1478
404
+ msgid "Allow title from thumbnail alt tag"
405
+ msgstr ""
406
+
407
+ #: ../easy-fancybox-settings.php:517 ../easy-fancybox-settings.php:606
408
+ msgid "Advanced"
409
+ msgstr ""
410
+
411
+ #: ../easy-fancybox-settings.php:521
412
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:228
413
+ msgid "Hide/show title on mouse hover action"
414
+ msgstr ""
415
+
416
+ #: ../easy-fancybox-settings.php:528
417
+ msgid "Gallery"
418
+ msgstr ""
419
+
420
+ #: ../easy-fancybox-settings.php:532
421
+ msgid "Autogallery"
422
+ msgstr ""
423
+
424
+ #: ../easy-fancybox-settings.php:537
425
+ msgid "Disabled"
426
+ msgstr ""
427
+
428
+ #: ../easy-fancybox-settings.php:538
429
+ msgid "WordPress galleries only"
430
+ msgstr ""
431
+
432
+ #: ../easy-fancybox-settings.php:539
433
+ msgid "All in one gallery"
434
+ msgstr ""
435
+
436
+ #: ../easy-fancybox-settings.php:542
437
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:219
438
+ msgid ""
439
+ "When disabled, you can use the rel attribute to manually group image links "
440
+ "together."
441
+ msgstr ""
442
+
443
+ #: ../easy-fancybox-settings.php:542
444
+ msgid ""
445
+ "Leave the mousewheel option (below) unchecked when you do not use FancyBox "
446
+ "for galleries on your site."
447
+ msgstr ""
448
+
449
+ #: ../easy-fancybox-settings.php:549
450
+ msgid "Show the gallery navigation arrows"
451
+ msgstr ""
452
+
453
+ #: ../easy-fancybox-settings.php:556
454
+ msgid "Arrow key strokes browse the gallery"
455
+ msgstr ""
456
+
457
+ #: ../easy-fancybox-settings.php:563
458
+ msgid ""
459
+ "Include the Mousewheel jQuery extension script to allow gallery browsing by "
460
+ "mousewheel action."
461
+ msgstr ""
462
+
463
+ #: ../easy-fancybox-settings.php:570
464
+ msgid "Make galleries cyclic, allowing you to keep pressing next/back."
465
+ msgstr ""
466
+
467
+ #: ../easy-fancybox-settings.php:574
468
+ msgid "Change speed"
469
+ msgstr ""
470
+
471
+ #: ../easy-fancybox-settings.php:586
472
+ msgid "Fade speed"
473
+ msgstr ""
474
+
475
+ #: ../easy-fancybox-settings.php:602
476
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:217
477
+ msgid "Galleries per Section (below)"
478
+ msgstr ""
479
+
480
+ #: ../easy-fancybox-settings.php:602
481
+ msgid ""
482
+ "This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> "
483
+ "and/or <em>Autogallery</em> is set to <em>Galleries per Section</em>. Adapt "
484
+ "it to conform with your theme."
485
+ msgstr ""
486
+
487
+ #: ../easy-fancybox-settings.php:602
488
+ msgid ""
489
+ "Examples: If your theme wraps post content in a div with class post, change "
490
+ "this value to \"div.post\". If you only want to group images in a WordPress "
491
+ "gallery together, use \"div.gallery\". If you want to include images in a "
492
+ "sidebar with ID primary, add \", #primary\"."
493
+ msgstr ""
494
+
495
+ #: ../easy-fancybox-settings.php:602
496
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:230
497
+ msgid ""
498
+ "Hide/show title on mouse hover action works best with Overlay title position."
499
+ msgstr ""
500
+
501
+ #: ../easy-fancybox-settings.php:602
502
+ msgid "The slideshow uses a fixed 6, 8 or 12 second pause per image."
503
+ msgstr ""
504
+
505
+ #: ../easy-fancybox-settings.php:602
506
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:253
507
+ msgid "(6 seconds)"
508
+ msgstr ""
509
+
510
+ #: ../easy-fancybox-settings.php:602
511
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:254
512
+ msgid "(8 seconds)"
513
+ msgstr ""
514
+
515
+ #: ../easy-fancybox-settings.php:602
516
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:255
517
+ msgid "(12 seconds)"
518
+ msgstr ""
519
+
520
+ #: ../easy-fancybox-settings.php:610
521
+ msgid "Slideshow"
522
+ msgstr ""
523
+
524
+ #: ../easy-fancybox-settings.php:638
525
+ msgid ""
526
+ "To make inline content open in an overlay, wrap that content in a div with a "
527
+ "unique ID, create a link with target \"#uniqueID\" and give it a class "
528
+ "\"fancybox-inline\" attribute."
529
+ msgstr ""
530
+
531
+ #: ../easy-fancybox-settings.php:656
532
+ msgid ""
533
+ "Try to adjust size to inline/html content. If unchecked or size cannot be "
534
+ "determined, the default dimensions will be used."
535
+ msgstr ""
536
+
537
+ #: ../easy-fancybox-settings.php:660 ../easy-fancybox-settings.php:1411
538
+ msgid "Scrolling"
539
+ msgstr ""
540
+
541
+ #: ../easy-fancybox-settings.php:664 ../easy-fancybox-settings.php:1415
542
+ msgid "Auto"
543
+ msgstr ""
544
+
545
+ #: ../easy-fancybox-settings.php:665 ../easy-fancybox-settings.php:1416
546
+ msgid "Always"
547
+ msgstr ""
548
+
549
+ #: ../easy-fancybox-settings.php:666 ../easy-fancybox-settings.php:1417
550
+ msgid "Never"
551
+ msgstr ""
552
+
553
+ #: ../easy-fancybox-settings.php:669 ../easy-fancybox-settings.php:1420
554
+ msgid "Define scrolling and scrollbar visibility."
555
+ msgstr ""
556
+
557
+ #: ../easy-fancybox-settings.php:748
558
+ msgid ""
559
+ "To make any PDF document file open in an overlay, switch on Autodetect or "
560
+ "use the class \"fancybox-pdf\" for its link."
561
+ msgstr ""
562
+
563
+ #: ../easy-fancybox-settings.php:873
564
+ msgid ""
565
+ "To make any Flash (.swf) file open in an overlay, switch on Autodetect or "
566
+ "use the class \"fancybox-swf\" for its link."
567
+ msgstr ""
568
+
569
+ #: ../easy-fancybox-settings.php:967
570
+ msgid ""
571
+ "To make any SVG (.svg) file open in an overlay, switch on Autodetect or use "
572
+ "the class \"fancybox-svg\" for its link."
573
+ msgstr ""
574
+
575
+ #: ../easy-fancybox-settings.php:1062
576
+ msgid ""
577
+ "To make any YouTube movie open in an overlay, switch on Autodetect or use "
578
+ "the class \"fancybox-youtube\" for its link."
579
+ msgstr ""
580
+
581
+ #: ../easy-fancybox-settings.php:1080
582
+ msgid "Autodetect Short links"
583
+ msgstr ""
584
+
585
+ #: ../easy-fancybox-settings.php:1170
586
+ msgid ""
587
+ "To make any Vimeo movie open in an overlay, switch on Autodetect or use the "
588
+ "class \"fancybox-vimeo\" for its link."
589
+ msgstr ""
590
+
591
+ #: ../easy-fancybox-settings.php:1270
592
+ msgid ""
593
+ "To make any Dailymotion movie open in an overlay, switch on Autodetect or "
594
+ "use the class \"fancybox-dailymotion\" for its link."
595
+ msgstr ""
596
+
597
+ #: ../easy-fancybox-settings.php:1396
598
+ msgid ""
599
+ "To make a website or HTML document open in an overlay, use the class "
600
+ "\"fancybox-iframe\" for its link."
601
+ msgstr ""
602
+
603
+ #: ../easy-fancybox-class.php:298
604
+ msgid "Donate to keep the Easy FancyBox plugin development going!"
605
+ msgstr ""
606
+
607
+ #: ../easy-fancybox-class.php:298
608
+ #, php-format
609
+ msgid ""
610
+ "The options in this section are provided by the plugin %s and determine the "
611
+ "<strong>Media Lightbox</strong> overlay appearance and behaviour controlled "
612
+ "by %s."
613
+ msgstr ""
614
+
615
+ #: ../easy-fancybox-class.php:298
616
+ msgid "Easy FancyBox"
617
+ msgstr ""
618
+
619
+ #: ../easy-fancybox-class.php:298 ../easy-fancybox-class.php:510
620
+ #: ../easy-fancybox-class.php:554
621
+ msgid "FancyBox"
622
+ msgstr ""
623
+
624
+ #: ../easy-fancybox-class.php:298
625
+ msgid ""
626
+ "First enable each sub-section that you need. Then save and come back to "
627
+ "adjust its specific settings."
628
+ msgstr ""
629
+
630
+ #: ../easy-fancybox-class.php:298
631
+ msgid ""
632
+ "Note: Each additional sub-section and features like <em>Auto-detection</em>, "
633
+ "<em>Elastic transitions</em> and all <em>Easing effects</em> (except Swing) "
634
+ "will have some extra impact on client-side page speed. Enable only those sub-"
635
+ "sections and options that you actually need on your site."
636
+ msgstr ""
637
+
638
+ #: ../easy-fancybox-class.php:298
639
+ msgid ""
640
+ "Some setting like Transition options are unavailable for SWF video, PDF and "
641
+ "iFrame content to ensure browser compatibility and readability."
642
+ msgstr ""
643
+
644
+ #: ../easy-fancybox-class.php:342
645
+ msgid "Checked"
646
+ msgstr ""
647
+
648
+ #: ../easy-fancybox-class.php:344
649
+ msgid "Unchecked"
650
+ msgstr ""
651
+
652
+ #: ../easy-fancybox-class.php:391
653
+ msgid "Settings"
654
+ msgstr ""
655
+
656
+ #: ../easy-fancybox-class.php:554
657
+ msgid "Easy FancyBox Settings"
658
+ msgstr ""
659
+
660
+ #: ../easy-fancybox-class.php:565
661
+ msgid "Sections"
662
+ msgstr ""
663
+
664
+ #: ../easy-fancybox-class.php:602
665
+ msgid "Support"
666
+ msgstr ""
667
+
668
+ #: ../easy-fancybox-class.php:603
669
+ msgid "Resources"
670
+ msgstr ""
671
+
672
+ #: ../easy-fancybox-class.php:604
673
+ msgid "Discussion"
674
+ msgstr ""
675
+
676
+ #: ../easy-fancybox-class.php:605
677
+ msgid "Credits"
678
+ msgstr ""
679
+
680
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:46
681
+ msgid ""
682
+ "Thank you for purchasing the Easy FancyBox - Pro extension. New options are "
683
+ "available."
684
+ msgstr ""
685
+
686
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:46
687
+ msgid "Get support here."
688
+ msgstr ""
689
+
690
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:52
691
+ msgid "First Image link"
692
+ msgstr ""
693
+
694
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:53
695
+ msgid "First PDF link"
696
+ msgstr ""
697
+
698
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:54
699
+ msgid "First SWF link"
700
+ msgstr ""
701
+
702
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:55
703
+ msgid "First SVG link"
704
+ msgstr ""
705
+
706
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:56
707
+ msgid "First YouTube link "
708
+ msgstr ""
709
+
710
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:57
711
+ msgid "First Vimeo link "
712
+ msgstr ""
713
+
714
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:58
715
+ msgid "First Dailymotion link "
716
+ msgstr ""
717
+
718
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:59
719
+ msgid "First iFrame link"
720
+ msgstr ""
721
+
722
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:60
723
+ msgid "First of any link"
724
+ msgstr ""
725
+
726
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:145
727
+ msgid "Links inside Section(s) only (below)"
728
+ msgstr ""
729
+
730
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:151
731
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:184
732
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:269
733
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:302
734
+ msgid "easeInQuad"
735
+ msgstr ""
736
+
737
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:152
738
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:185
739
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:270
740
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:303
741
+ msgid "easeOutQuad"
742
+ msgstr ""
743
+
744
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:153
745
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:186
746
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:271
747
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:304
748
+ msgid "easeInOutQuad"
749
+ msgstr ""
750
+
751
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:154
752
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:187
753
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:272
754
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:305
755
+ msgid "easeInCubic"
756
+ msgstr ""
757
+
758
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:155
759
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:188
760
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:273
761
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:306
762
+ msgid "easeOutCubic"
763
+ msgstr ""
764
+
765
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:156
766
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:189
767
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:274
768
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:307
769
+ msgid "easeInOutCubic"
770
+ msgstr ""
771
+
772
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:157
773
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:190
774
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:275
775
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:308
776
+ msgid "easeInQuart"
777
+ msgstr ""
778
+
779
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:158
780
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:191
781
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:276
782
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:309
783
+ msgid "easeOutQuart"
784
+ msgstr ""
785
+
786
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:159
787
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:192
788
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:277
789
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:310
790
+ msgid "easeInOutQuart"
791
+ msgstr ""
792
+
793
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:160
794
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:193
795
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:278
796
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:311
797
+ msgid "easeInQuint"
798
+ msgstr ""
799
+
800
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:161
801
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:194
802
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:279
803
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:312
804
+ msgid "easeOutQuint"
805
+ msgstr ""
806
+
807
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:162
808
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:195
809
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:280
810
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:313
811
+ msgid "easeInOutQuint"
812
+ msgstr ""
813
+
814
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:163
815
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:196
816
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:281
817
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:314
818
+ msgid "easeInSine"
819
+ msgstr ""
820
+
821
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:164
822
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:197
823
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:282
824
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:315
825
+ msgid "easeOutSine"
826
+ msgstr ""
827
+
828
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:165
829
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:198
830
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:283
831
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:316
832
+ msgid "easeInOutSine"
833
+ msgstr ""
834
+
835
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:166
836
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:199
837
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:284
838
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:317
839
+ msgid "easeInExpo"
840
+ msgstr ""
841
+
842
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:167
843
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:200
844
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:285
845
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:318
846
+ msgid "easeOutExpo"
847
+ msgstr ""
848
+
849
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:168
850
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:201
851
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:286
852
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:319
853
+ msgid "easeInOutExpo"
854
+ msgstr ""
855
+
856
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:169
857
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:202
858
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:287
859
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:320
860
+ msgid "easeInCirc"
861
+ msgstr ""
862
+
863
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:170
864
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:203
865
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:288
866
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:321
867
+ msgid "easeOutCirc"
868
+ msgstr ""
869
+
870
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:171
871
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:204
872
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:289
873
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:322
874
+ msgid "easeInOutCirc"
875
+ msgstr ""
876
+
877
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:172
878
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:205
879
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:290
880
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:323
881
+ msgid "easeInElastic"
882
+ msgstr ""
883
+
884
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:173
885
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:206
886
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:291
887
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:324
888
+ msgid "easeOutElastic"
889
+ msgstr ""
890
+
891
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:174
892
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:207
893
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:292
894
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:325
895
+ msgid "easeInOutElastic"
896
+ msgstr ""
897
+
898
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:175
899
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:208
900
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:293
901
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:326
902
+ msgid "easeInOutBack"
903
+ msgstr ""
904
+
905
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:176
906
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:209
907
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:294
908
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:327
909
+ msgid "easeInBounce"
910
+ msgstr ""
911
+
912
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:177
913
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:210
914
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:295
915
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:328
916
+ msgid "easeOutBounce"
917
+ msgstr ""
918
+
919
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:178
920
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:211
921
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:296
922
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:329
923
+ msgid "easeInOutBounce"
924
+ msgstr ""
925
+
926
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:238
927
+ msgid "Section(s)"
928
+ msgstr ""
929
+
930
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:244
931
+ msgid ""
932
+ "This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> "
933
+ "and/or <em>Auto-gallery</em> is set to <em>Galleries per Section</em>. Adapt "
934
+ "it to conform with your theme."
935
+ msgstr ""
936
+
937
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:244
938
+ msgid ""
939
+ "Examples: If your theme wraps post content in a div with class post, change "
940
+ "this value to \"div.post\". If you want to include images in a sidebar with "
941
+ "ID primary, add \", div#primary\" or \"aside#primary\" for html5 themes. If "
942
+ "you only want to group images in a WordPress gallery together, use \"div."
943
+ "gallery\". If you want to include images in a sidebar with ID primary, add "
944
+ "\", #primary\"."
945
+ msgstr ""
946
+
947
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:253
948
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:254
949
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:255
950
+ msgid "Gallery Auto-rotation"
951
+ msgstr ""
952
+
953
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:257
954
+ msgid "Auto-rotation uses a fixed 6, 8 or 12 second pause per image."
955
+ msgstr ""
languages/easy-fancybox.pot ADDED
@@ -0,0 +1,957 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Easy FancyBox
2
+ # This file is distributed under the same license as the Easy FancyBox package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Easy FancyBox/1.5\n"
6
+ "Report-Msgid-Bugs-To: \n"
7
+ "POT-Creation-Date: 2013-06-14 00:53+0100\n"
8
+ "PO-Revision-Date: 2013-06-14 00:53+0100\n"
9
+ "Last-Translator: RavanH <ravanhagen@gmail.com>\n"
10
+ "Language-Team: Easy FancyBox Languages <ravanhagen@gmail.com>\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Poedit-KeywordsList: __;_e;_n\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+ "X-Poedit-SearchPath-1: ../../easy-fancybox-pro\n"
19
+
20
+ #: ../easy-fancybox-settings.php:9 ../easy-fancybox-class.php:566
21
+ msgid "Global settings"
22
+ msgstr ""
23
+
24
+ #: ../easy-fancybox-settings.php:14
25
+ msgid "Media"
26
+ msgstr ""
27
+
28
+ #: ../easy-fancybox-settings.php:20
29
+ msgid "Enable FancyBox for"
30
+ msgstr ""
31
+
32
+ #: ../easy-fancybox-settings.php:27 ../easy-fancybox-settings.php:370
33
+ #: ../easy-fancybox-class.php:567
34
+ msgid "Images"
35
+ msgstr ""
36
+
37
+ #: ../easy-fancybox-settings.php:34 ../easy-fancybox-settings.php:633
38
+ #: ../easy-fancybox-class.php:568
39
+ msgid "Inline content"
40
+ msgstr ""
41
+
42
+ #: ../easy-fancybox-settings.php:41 ../easy-fancybox-settings.php:743
43
+ #: ../easy-fancybox-class.php:569
44
+ msgid "PDF"
45
+ msgstr ""
46
+
47
+ #: ../easy-fancybox-settings.php:48 ../easy-fancybox-settings.php:868
48
+ #: ../easy-fancybox-class.php:570
49
+ msgid "SWF"
50
+ msgstr ""
51
+
52
+ #: ../easy-fancybox-settings.php:55 ../easy-fancybox-settings.php:962
53
+ msgid "SVG"
54
+ msgstr ""
55
+
56
+ #: ../easy-fancybox-settings.php:62 ../easy-fancybox-settings.php:1057
57
+ #: ../easy-fancybox-class.php:571
58
+ msgid "YouTube"
59
+ msgstr ""
60
+
61
+ #: ../easy-fancybox-settings.php:69 ../easy-fancybox-settings.php:1165
62
+ #: ../easy-fancybox-class.php:572
63
+ msgid "Vimeo"
64
+ msgstr ""
65
+
66
+ #: ../easy-fancybox-settings.php:76 ../easy-fancybox-settings.php:1265
67
+ #: ../easy-fancybox-class.php:573
68
+ msgid "Dailymotion"
69
+ msgstr ""
70
+
71
+ #: ../easy-fancybox-settings.php:83 ../easy-fancybox-settings.php:1391
72
+ #: ../easy-fancybox-class.php:574
73
+ msgid "iFrames"
74
+ msgstr ""
75
+
76
+ #: ../easy-fancybox-settings.php:86
77
+ msgid ""
78
+ "For advanced options and support, please get the Easy FancyBox - Pro "
79
+ "extension."
80
+ msgstr ""
81
+
82
+ #: ../easy-fancybox-settings.php:89
83
+ msgid "Links"
84
+ msgstr ""
85
+
86
+ #: ../easy-fancybox-settings.php:95
87
+ msgid "Exclude"
88
+ msgstr ""
89
+
90
+ #: ../easy-fancybox-settings.php:100 ../easy-fancybox-settings.php:114
91
+ #: ../easy-fancybox-settings.php:421 ../easy-fancybox-settings.php:448
92
+ #: ../easy-fancybox-settings.php:677 ../easy-fancybox-settings.php:704
93
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:227
94
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:252
95
+ msgid "None"
96
+ msgstr ""
97
+
98
+ #: ../easy-fancybox-settings.php:101
99
+ msgid "Empty (hidden) links"
100
+ msgstr ""
101
+
102
+ #: ../easy-fancybox-settings.php:102
103
+ msgid "Without thumbnail image"
104
+ msgstr ""
105
+
106
+ #: ../easy-fancybox-settings.php:109
107
+ msgid "Open on page load"
108
+ msgstr ""
109
+
110
+ #: ../easy-fancybox-settings.php:115
111
+ msgid "Link with ID \"fancybox-auto\""
112
+ msgstr ""
113
+
114
+ #: ../easy-fancybox-settings.php:118 ../easy-fancybox-settings.php:409
115
+ #: ../easy-fancybox-settings.php:440 ../easy-fancybox-settings.php:467
116
+ #: ../easy-fancybox-settings.php:542 ../easy-fancybox-settings.php:696
117
+ #: ../easy-fancybox-settings.php:723
118
+ msgid "More options &raquo;"
119
+ msgstr ""
120
+
121
+ #: ../easy-fancybox-settings.php:125
122
+ msgid ""
123
+ "Include the Metadata jQuery extension script to allow passing custom "
124
+ "parameters via link class."
125
+ msgstr ""
126
+
127
+ #: ../easy-fancybox-settings.php:130 ../easy-fancybox-settings.php:503
128
+ msgid "Overlay"
129
+ msgstr ""
130
+
131
+ #: ../easy-fancybox-settings.php:139
132
+ msgid "Show the overlay around content opened in FancyBox."
133
+ msgstr ""
134
+
135
+ #: ../easy-fancybox-settings.php:146
136
+ msgid "Close FancyBox when overlay is clicked."
137
+ msgstr ""
138
+
139
+ #: ../easy-fancybox-settings.php:150 ../easy-fancybox-settings.php:228
140
+ msgid "Opacity"
141
+ msgstr ""
142
+
143
+ #: ../easy-fancybox-settings.php:158
144
+ msgid "Value between 0 and 1. "
145
+ msgstr ""
146
+
147
+ #: ../easy-fancybox-settings.php:158 ../easy-fancybox-settings.php:167
148
+ #: ../easy-fancybox-settings.php:286 ../easy-fancybox-settings.php:337
149
+ #: ../easy-fancybox-settings.php:595
150
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:103
151
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:108
152
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:147
153
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:244
154
+ msgid "Default:"
155
+ msgstr ""
156
+
157
+ #: ../easy-fancybox-settings.php:162
158
+ msgid "Color"
159
+ msgstr ""
160
+
161
+ #: ../easy-fancybox-settings.php:167
162
+ msgid "Enter an HTML color value."
163
+ msgstr ""
164
+
165
+ #: ../easy-fancybox-settings.php:175
166
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:71
167
+ msgid "Spotlight effect"
168
+ msgstr ""
169
+
170
+ #: ../easy-fancybox-settings.php:175 ../easy-fancybox-settings.php:236
171
+ #: ../easy-fancybox-settings.php:249 ../easy-fancybox-settings.php:524
172
+ #: ../easy-fancybox-settings.php:613
173
+ msgid "Make available &raquo;"
174
+ msgstr ""
175
+
176
+ #: ../easy-fancybox-settings.php:180
177
+ msgid "Window"
178
+ msgstr ""
179
+
180
+ #: ../easy-fancybox-settings.php:186 ../easy-fancybox-settings.php:485
181
+ msgid "Appearance"
182
+ msgstr ""
183
+
184
+ #: ../easy-fancybox-settings.php:193
185
+ msgid "Show the (X) close button"
186
+ msgstr ""
187
+
188
+ #: ../easy-fancybox-settings.php:198
189
+ msgid "Background color"
190
+ msgstr ""
191
+
192
+ #: ../easy-fancybox-settings.php:208
193
+ msgid "Border color"
194
+ msgstr ""
195
+
196
+ #: ../easy-fancybox-settings.php:218
197
+ msgid "Text color"
198
+ msgstr ""
199
+
200
+ #: ../easy-fancybox-settings.php:241
201
+ msgid "Border radius"
202
+ msgstr ""
203
+
204
+ #: ../easy-fancybox-settings.php:249
205
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:114
206
+ msgid "Set a border radius to create rounded corners. Higher is rounder."
207
+ msgstr ""
208
+
209
+ #: ../easy-fancybox-settings.php:254
210
+ msgid "Dimensions"
211
+ msgstr ""
212
+
213
+ #: ../easy-fancybox-settings.php:258 ../easy-fancybox-settings.php:771
214
+ #: ../easy-fancybox-settings.php:896 ../easy-fancybox-settings.php:990
215
+ #: ../easy-fancybox-settings.php:1095 ../easy-fancybox-settings.php:1194
216
+ #: ../easy-fancybox-settings.php:1294 ../easy-fancybox-settings.php:1424
217
+ msgid "Width"
218
+ msgstr ""
219
+
220
+ #: ../easy-fancybox-settings.php:268 ../easy-fancybox-settings.php:781
221
+ #: ../easy-fancybox-settings.php:907 ../easy-fancybox-settings.php:1001
222
+ #: ../easy-fancybox-settings.php:1108 ../easy-fancybox-settings.php:1207
223
+ #: ../easy-fancybox-settings.php:1307 ../easy-fancybox-settings.php:1434
224
+ msgid "Height"
225
+ msgstr ""
226
+
227
+ #: ../easy-fancybox-settings.php:277 ../easy-fancybox-settings.php:790
228
+ #: ../easy-fancybox-settings.php:917 ../easy-fancybox-settings.php:1011
229
+ #: ../easy-fancybox-settings.php:1120 ../easy-fancybox-settings.php:1219
230
+ #: ../easy-fancybox-settings.php:1319 ../easy-fancybox-settings.php:1443
231
+ msgid "Border"
232
+ msgstr ""
233
+
234
+ #: ../easy-fancybox-settings.php:286
235
+ msgid ""
236
+ "If content size is not set or cannot be determined automatically, these "
237
+ "default dimensions will be used."
238
+ msgstr ""
239
+
240
+ #: ../easy-fancybox-settings.php:291 ../easy-fancybox-settings.php:413
241
+ msgid "Behavior"
242
+ msgstr ""
243
+
244
+ #: ../easy-fancybox-settings.php:298
245
+ msgid "Center while scrolling"
246
+ msgstr ""
247
+
248
+ #: ../easy-fancybox-settings.php:305
249
+ msgid "Esc key stroke closes FancyBox"
250
+ msgstr ""
251
+
252
+ #: ../easy-fancybox-settings.php:312
253
+ msgid "Scale large content down to fit in the browser viewport."
254
+ msgstr ""
255
+
256
+ #: ../easy-fancybox-settings.php:316
257
+ msgid "Opening speed"
258
+ msgstr ""
259
+
260
+ #: ../easy-fancybox-settings.php:328
261
+ msgid "Closing speed"
262
+ msgstr ""
263
+
264
+ #: ../easy-fancybox-settings.php:337 ../easy-fancybox-settings.php:595
265
+ msgid "Duration in milliseconds. Higher is slower."
266
+ msgstr ""
267
+
268
+ #: ../easy-fancybox-settings.php:375
269
+ msgid ""
270
+ "To make images open in an overlay, add their extension to the Autodetect "
271
+ "field or use the class \"fancybox\" for its link. Clear field to switch off "
272
+ "all autodetection."
273
+ msgstr ""
274
+
275
+ #: ../easy-fancybox-settings.php:390 ../easy-fancybox-settings.php:756
276
+ #: ../easy-fancybox-settings.php:881 ../easy-fancybox-settings.php:975
277
+ #: ../easy-fancybox-settings.php:1071 ../easy-fancybox-settings.php:1179
278
+ #: ../easy-fancybox-settings.php:1279
279
+ msgid "Autodetect"
280
+ msgstr ""
281
+
282
+ #: ../easy-fancybox-settings.php:397
283
+ msgid "Example:"
284
+ msgstr ""
285
+
286
+ #: ../easy-fancybox-settings.php:401
287
+ msgid "Apply to"
288
+ msgstr ""
289
+
290
+ #: ../easy-fancybox-settings.php:406
291
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:147
292
+ msgid "All image links"
293
+ msgstr ""
294
+
295
+ #: ../easy-fancybox-settings.php:417 ../easy-fancybox-settings.php:673
296
+ msgid "Transition In"
297
+ msgstr ""
298
+
299
+ #: ../easy-fancybox-settings.php:422 ../easy-fancybox-settings.php:449
300
+ #: ../easy-fancybox-settings.php:678 ../easy-fancybox-settings.php:705
301
+ msgid "Fade"
302
+ msgstr ""
303
+
304
+ #: ../easy-fancybox-settings.php:423 ../easy-fancybox-settings.php:450
305
+ #: ../easy-fancybox-settings.php:679 ../easy-fancybox-settings.php:706
306
+ msgid "Elastic"
307
+ msgstr ""
308
+
309
+ #: ../easy-fancybox-settings.php:430 ../easy-fancybox-settings.php:686
310
+ msgid "Easing In"
311
+ msgstr ""
312
+
313
+ #: ../easy-fancybox-settings.php:434 ../easy-fancybox-settings.php:461
314
+ #: ../easy-fancybox-settings.php:690 ../easy-fancybox-settings.php:717
315
+ msgid "Linear"
316
+ msgstr ""
317
+
318
+ #: ../easy-fancybox-settings.php:435 ../easy-fancybox-settings.php:462
319
+ #: ../easy-fancybox-settings.php:691 ../easy-fancybox-settings.php:718
320
+ msgid "Swing"
321
+ msgstr ""
322
+
323
+ #: ../easy-fancybox-settings.php:436 ../easy-fancybox-settings.php:463
324
+ #: ../easy-fancybox-settings.php:692 ../easy-fancybox-settings.php:719
325
+ msgid "easeInBack"
326
+ msgstr ""
327
+
328
+ #: ../easy-fancybox-settings.php:437 ../easy-fancybox-settings.php:464
329
+ #: ../easy-fancybox-settings.php:693 ../easy-fancybox-settings.php:720
330
+ msgid "easeOutBack"
331
+ msgstr ""
332
+
333
+ #: ../easy-fancybox-settings.php:444 ../easy-fancybox-settings.php:700
334
+ msgid "Transition Out"
335
+ msgstr ""
336
+
337
+ #: ../easy-fancybox-settings.php:457 ../easy-fancybox-settings.php:713
338
+ msgid "Easing Out"
339
+ msgstr ""
340
+
341
+ #: ../easy-fancybox-settings.php:467 ../easy-fancybox-settings.php:542
342
+ #: ../easy-fancybox-settings.php:723
343
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:213
344
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:219
345
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:230
346
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:257
347
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:331
348
+ msgid "Note:"
349
+ msgstr ""
350
+
351
+ #: ../easy-fancybox-settings.php:467 ../easy-fancybox-settings.php:723
352
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:213
353
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:331
354
+ msgid "Easing effects only apply when Transition is set to Elastic. "
355
+ msgstr ""
356
+
357
+ #: ../easy-fancybox-settings.php:474 ../easy-fancybox-settings.php:730
358
+ msgid ""
359
+ "Transparency fade during elastic transition. CAUTION: Use only when at least "
360
+ "Transition In is set to Elastic!"
361
+ msgstr ""
362
+
363
+ #: ../easy-fancybox-settings.php:481 ../easy-fancybox-settings.php:737
364
+ msgid "Close FancyBox when content is clicked"
365
+ msgstr ""
366
+
367
+ #: ../easy-fancybox-settings.php:492 ../easy-fancybox-settings.php:810
368
+ #: ../easy-fancybox-settings.php:933 ../easy-fancybox-settings.php:1027
369
+ #: ../easy-fancybox-settings.php:1136 ../easy-fancybox-settings.php:1235
370
+ #: ../easy-fancybox-settings.php:1335 ../easy-fancybox-settings.php:1459
371
+ msgid "Show title"
372
+ msgstr ""
373
+
374
+ #: ../easy-fancybox-settings.php:496 ../easy-fancybox-settings.php:814
375
+ #: ../easy-fancybox-settings.php:937 ../easy-fancybox-settings.php:1031
376
+ #: ../easy-fancybox-settings.php:1140 ../easy-fancybox-settings.php:1239
377
+ #: ../easy-fancybox-settings.php:1339 ../easy-fancybox-settings.php:1463
378
+ msgid "Title Position"
379
+ msgstr ""
380
+
381
+ #: ../easy-fancybox-settings.php:500 ../easy-fancybox-settings.php:818
382
+ #: ../easy-fancybox-settings.php:941 ../easy-fancybox-settings.php:1035
383
+ #: ../easy-fancybox-settings.php:1144 ../easy-fancybox-settings.php:1243
384
+ #: ../easy-fancybox-settings.php:1343 ../easy-fancybox-settings.php:1467
385
+ msgid "Float"
386
+ msgstr ""
387
+
388
+ #: ../easy-fancybox-settings.php:501 ../easy-fancybox-settings.php:819
389
+ #: ../easy-fancybox-settings.php:942 ../easy-fancybox-settings.php:1036
390
+ #: ../easy-fancybox-settings.php:1145 ../easy-fancybox-settings.php:1244
391
+ #: ../easy-fancybox-settings.php:1344 ../easy-fancybox-settings.php:1468
392
+ msgid "Outside"
393
+ msgstr ""
394
+
395
+ #: ../easy-fancybox-settings.php:502 ../easy-fancybox-settings.php:820
396
+ #: ../easy-fancybox-settings.php:943 ../easy-fancybox-settings.php:1037
397
+ #: ../easy-fancybox-settings.php:1146 ../easy-fancybox-settings.php:1245
398
+ #: ../easy-fancybox-settings.php:1345 ../easy-fancybox-settings.php:1469
399
+ msgid "Inside"
400
+ msgstr ""
401
+
402
+ #: ../easy-fancybox-settings.php:513 ../easy-fancybox-settings.php:829
403
+ #: ../easy-fancybox-settings.php:952 ../easy-fancybox-settings.php:1047
404
+ #: ../easy-fancybox-settings.php:1155 ../easy-fancybox-settings.php:1254
405
+ #: ../easy-fancybox-settings.php:1354 ../easy-fancybox-settings.php:1478
406
+ msgid "Allow title from thumbnail alt tag"
407
+ msgstr ""
408
+
409
+ #: ../easy-fancybox-settings.php:517 ../easy-fancybox-settings.php:606
410
+ msgid "Advanced"
411
+ msgstr ""
412
+
413
+ #: ../easy-fancybox-settings.php:521
414
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:228
415
+ msgid "Hide/show title on mouse hover action"
416
+ msgstr ""
417
+
418
+ #: ../easy-fancybox-settings.php:528
419
+ msgid "Gallery"
420
+ msgstr ""
421
+
422
+ #: ../easy-fancybox-settings.php:532
423
+ msgid "Autogallery"
424
+ msgstr ""
425
+
426
+ #: ../easy-fancybox-settings.php:537
427
+ msgid "Disabled"
428
+ msgstr ""
429
+
430
+ #: ../easy-fancybox-settings.php:538
431
+ msgid "WordPress galleries only"
432
+ msgstr ""
433
+
434
+ #: ../easy-fancybox-settings.php:539
435
+ msgid "All in one gallery"
436
+ msgstr ""
437
+
438
+ #: ../easy-fancybox-settings.php:542
439
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:219
440
+ msgid ""
441
+ "When disabled, you can use the rel attribute to manually group image links "
442
+ "together."
443
+ msgstr ""
444
+
445
+ #: ../easy-fancybox-settings.php:542
446
+ msgid ""
447
+ "Leave the mousewheel option (below) unchecked when you do not use FancyBox "
448
+ "for galleries on your site."
449
+ msgstr ""
450
+
451
+ #: ../easy-fancybox-settings.php:549
452
+ msgid "Show the gallery navigation arrows"
453
+ msgstr ""
454
+
455
+ #: ../easy-fancybox-settings.php:556
456
+ msgid "Arrow key strokes browse the gallery"
457
+ msgstr ""
458
+
459
+ #: ../easy-fancybox-settings.php:563
460
+ msgid ""
461
+ "Include the Mousewheel jQuery extension script to allow gallery browsing by "
462
+ "mousewheel action."
463
+ msgstr ""
464
+
465
+ #: ../easy-fancybox-settings.php:570
466
+ msgid "Make galleries cyclic, allowing you to keep pressing next/back."
467
+ msgstr ""
468
+
469
+ #: ../easy-fancybox-settings.php:574
470
+ msgid "Change speed"
471
+ msgstr ""
472
+
473
+ #: ../easy-fancybox-settings.php:586
474
+ msgid "Fade speed"
475
+ msgstr ""
476
+
477
+ #: ../easy-fancybox-settings.php:602
478
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:217
479
+ msgid "Galleries per Section (below)"
480
+ msgstr ""
481
+
482
+ #: ../easy-fancybox-settings.php:602
483
+ msgid ""
484
+ "This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> "
485
+ "and/or <em>Autogallery</em> is set to <em>Galleries per Section</em>. Adapt "
486
+ "it to conform with your theme."
487
+ msgstr ""
488
+
489
+ #: ../easy-fancybox-settings.php:602
490
+ msgid ""
491
+ "Examples: If your theme wraps post content in a div with class post, change "
492
+ "this value to \"div.post\". If you only want to group images in a WordPress "
493
+ "gallery together, use \"div.gallery\". If you want to include images in a "
494
+ "sidebar with ID primary, add \", #primary\"."
495
+ msgstr ""
496
+
497
+ #: ../easy-fancybox-settings.php:602
498
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:230
499
+ msgid ""
500
+ "Hide/show title on mouse hover action works best with Overlay title position."
501
+ msgstr ""
502
+
503
+ #: ../easy-fancybox-settings.php:602
504
+ msgid "The slideshow uses a fixed 6, 8 or 12 second pause per image."
505
+ msgstr ""
506
+
507
+ #: ../easy-fancybox-settings.php:602
508
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:253
509
+ msgid "(6 seconds)"
510
+ msgstr ""
511
+
512
+ #: ../easy-fancybox-settings.php:602
513
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:254
514
+ msgid "(8 seconds)"
515
+ msgstr ""
516
+
517
+ #: ../easy-fancybox-settings.php:602
518
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:255
519
+ msgid "(12 seconds)"
520
+ msgstr ""
521
+
522
+ #: ../easy-fancybox-settings.php:610
523
+ msgid "Slideshow"
524
+ msgstr ""
525
+
526
+ #: ../easy-fancybox-settings.php:638
527
+ msgid ""
528
+ "To make inline content open in an overlay, wrap that content in a div with a "
529
+ "unique ID, create a link with target \"#uniqueID\" and give it a class "
530
+ "\"fancybox-inline\" attribute."
531
+ msgstr ""
532
+
533
+ #: ../easy-fancybox-settings.php:656
534
+ msgid ""
535
+ "Try to adjust size to inline/html content. If unchecked or size cannot be "
536
+ "determined, the default dimensions will be used."
537
+ msgstr ""
538
+
539
+ #: ../easy-fancybox-settings.php:660 ../easy-fancybox-settings.php:1411
540
+ msgid "Scrolling"
541
+ msgstr ""
542
+
543
+ #: ../easy-fancybox-settings.php:664 ../easy-fancybox-settings.php:1415
544
+ msgid "Auto"
545
+ msgstr ""
546
+
547
+ #: ../easy-fancybox-settings.php:665 ../easy-fancybox-settings.php:1416
548
+ msgid "Always"
549
+ msgstr ""
550
+
551
+ #: ../easy-fancybox-settings.php:666 ../easy-fancybox-settings.php:1417
552
+ msgid "Never"
553
+ msgstr ""
554
+
555
+ #: ../easy-fancybox-settings.php:669 ../easy-fancybox-settings.php:1420
556
+ msgid "Define scrolling and scrollbar visibility."
557
+ msgstr ""
558
+
559
+ #: ../easy-fancybox-settings.php:748
560
+ msgid ""
561
+ "To make any PDF document file open in an overlay, switch on Autodetect or "
562
+ "use the class \"fancybox-pdf\" for its link."
563
+ msgstr ""
564
+
565
+ #: ../easy-fancybox-settings.php:873
566
+ msgid ""
567
+ "To make any Flash (.swf) file open in an overlay, switch on Autodetect or "
568
+ "use the class \"fancybox-swf\" for its link."
569
+ msgstr ""
570
+
571
+ #: ../easy-fancybox-settings.php:967
572
+ msgid ""
573
+ "To make any SVG (.svg) file open in an overlay, switch on Autodetect or use "
574
+ "the class \"fancybox-svg\" for its link."
575
+ msgstr ""
576
+
577
+ #: ../easy-fancybox-settings.php:1062
578
+ msgid ""
579
+ "To make any YouTube movie open in an overlay, switch on Autodetect or use "
580
+ "the class \"fancybox-youtube\" for its link."
581
+ msgstr ""
582
+
583
+ #: ../easy-fancybox-settings.php:1080
584
+ msgid "Autodetect Short links"
585
+ msgstr ""
586
+
587
+ #: ../easy-fancybox-settings.php:1170
588
+ msgid ""
589
+ "To make any Vimeo movie open in an overlay, switch on Autodetect or use the "
590
+ "class \"fancybox-vimeo\" for its link."
591
+ msgstr ""
592
+
593
+ #: ../easy-fancybox-settings.php:1270
594
+ msgid ""
595
+ "To make any Dailymotion movie open in an overlay, switch on Autodetect or "
596
+ "use the class \"fancybox-dailymotion\" for its link."
597
+ msgstr ""
598
+
599
+ #: ../easy-fancybox-settings.php:1396
600
+ msgid ""
601
+ "To make a website or HTML document open in an overlay, use the class "
602
+ "\"fancybox-iframe\" for its link."
603
+ msgstr ""
604
+
605
+ #: ../easy-fancybox-class.php:298
606
+ msgid "Donate to keep the Easy FancyBox plugin development going!"
607
+ msgstr ""
608
+
609
+ #: ../easy-fancybox-class.php:298
610
+ #, php-format
611
+ msgid ""
612
+ "The options in this section are provided by the plugin %s and determine the "
613
+ "<strong>Media Lightbox</strong> overlay appearance and behaviour controlled "
614
+ "by %s."
615
+ msgstr ""
616
+
617
+ #: ../easy-fancybox-class.php:298
618
+ msgid "Easy FancyBox"
619
+ msgstr ""
620
+
621
+ #: ../easy-fancybox-class.php:298 ../easy-fancybox-class.php:510
622
+ #: ../easy-fancybox-class.php:554
623
+ msgid "FancyBox"
624
+ msgstr ""
625
+
626
+ #: ../easy-fancybox-class.php:298
627
+ msgid ""
628
+ "First enable each sub-section that you need. Then save and come back to "
629
+ "adjust its specific settings."
630
+ msgstr ""
631
+
632
+ #: ../easy-fancybox-class.php:298
633
+ msgid ""
634
+ "Note: Each additional sub-section and features like <em>Auto-detection</em>, "
635
+ "<em>Elastic transitions</em> and all <em>Easing effects</em> (except Swing) "
636
+ "will have some extra impact on client-side page speed. Enable only those sub-"
637
+ "sections and options that you actually need on your site."
638
+ msgstr ""
639
+
640
+ #: ../easy-fancybox-class.php:298
641
+ msgid ""
642
+ "Some setting like Transition options are unavailable for SWF video, PDF and "
643
+ "iFrame content to ensure browser compatibility and readability."
644
+ msgstr ""
645
+
646
+ #: ../easy-fancybox-class.php:342
647
+ msgid "Checked"
648
+ msgstr ""
649
+
650
+ #: ../easy-fancybox-class.php:344
651
+ msgid "Unchecked"
652
+ msgstr ""
653
+
654
+ #: ../easy-fancybox-class.php:391
655
+ msgid "Settings"
656
+ msgstr ""
657
+
658
+ #: ../easy-fancybox-class.php:554
659
+ msgid "Easy FancyBox Settings"
660
+ msgstr ""
661
+
662
+ #: ../easy-fancybox-class.php:565
663
+ msgid "Sections"
664
+ msgstr ""
665
+
666
+ #: ../easy-fancybox-class.php:602
667
+ msgid "Support"
668
+ msgstr ""
669
+
670
+ #: ../easy-fancybox-class.php:603
671
+ msgid "Resources"
672
+ msgstr ""
673
+
674
+ #: ../easy-fancybox-class.php:604
675
+ msgid "Discussion"
676
+ msgstr ""
677
+
678
+ #: ../easy-fancybox-class.php:605
679
+ msgid "Credits"
680
+ msgstr ""
681
+
682
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:46
683
+ msgid ""
684
+ "Thank you for purchasing the Easy FancyBox - Pro extension. New options are "
685
+ "available."
686
+ msgstr ""
687
+
688
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:46
689
+ msgid "Get support here."
690
+ msgstr ""
691
+
692
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:52
693
+ msgid "First Image link"
694
+ msgstr ""
695
+
696
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:53
697
+ msgid "First PDF link"
698
+ msgstr ""
699
+
700
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:54
701
+ msgid "First SWF link"
702
+ msgstr ""
703
+
704
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:55
705
+ msgid "First SVG link"
706
+ msgstr ""
707
+
708
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:56
709
+ msgid "First YouTube link "
710
+ msgstr ""
711
+
712
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:57
713
+ msgid "First Vimeo link "
714
+ msgstr ""
715
+
716
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:58
717
+ msgid "First Dailymotion link "
718
+ msgstr ""
719
+
720
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:59
721
+ msgid "First iFrame link"
722
+ msgstr ""
723
+
724
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:60
725
+ msgid "First of any link"
726
+ msgstr ""
727
+
728
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:145
729
+ msgid "Links inside Section(s) only (below)"
730
+ msgstr ""
731
+
732
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:151
733
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:184
734
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:269
735
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:302
736
+ msgid "easeInQuad"
737
+ msgstr ""
738
+
739
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:152
740
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:185
741
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:270
742
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:303
743
+ msgid "easeOutQuad"
744
+ msgstr ""
745
+
746
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:153
747
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:186
748
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:271
749
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:304
750
+ msgid "easeInOutQuad"
751
+ msgstr ""
752
+
753
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:154
754
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:187
755
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:272
756
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:305
757
+ msgid "easeInCubic"
758
+ msgstr ""
759
+
760
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:155
761
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:188
762
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:273
763
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:306
764
+ msgid "easeOutCubic"
765
+ msgstr ""
766
+
767
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:156
768
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:189
769
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:274
770
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:307
771
+ msgid "easeInOutCubic"
772
+ msgstr ""
773
+
774
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:157
775
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:190
776
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:275
777
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:308
778
+ msgid "easeInQuart"
779
+ msgstr ""
780
+
781
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:158
782
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:191
783
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:276
784
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:309
785
+ msgid "easeOutQuart"
786
+ msgstr ""
787
+
788
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:159
789
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:192
790
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:277
791
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:310
792
+ msgid "easeInOutQuart"
793
+ msgstr ""
794
+
795
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:160
796
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:193
797
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:278
798
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:311
799
+ msgid "easeInQuint"
800
+ msgstr ""
801
+
802
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:161
803
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:194
804
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:279
805
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:312
806
+ msgid "easeOutQuint"
807
+ msgstr ""
808
+
809
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:162
810
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:195
811
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:280
812
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:313
813
+ msgid "easeInOutQuint"
814
+ msgstr ""
815
+
816
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:163
817
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:196
818
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:281
819
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:314
820
+ msgid "easeInSine"
821
+ msgstr ""
822
+
823
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:164
824
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:197
825
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:282
826
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:315
827
+ msgid "easeOutSine"
828
+ msgstr ""
829
+
830
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:165
831
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:198
832
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:283
833
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:316
834
+ msgid "easeInOutSine"
835
+ msgstr ""
836
+
837
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:166
838
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:199
839
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:284
840
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:317
841
+ msgid "easeInExpo"
842
+ msgstr ""
843
+
844
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:167
845
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:200
846
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:285
847
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:318
848
+ msgid "easeOutExpo"
849
+ msgstr ""
850
+
851
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:168
852
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:201
853
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:286
854
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:319
855
+ msgid "easeInOutExpo"
856
+ msgstr ""
857
+
858
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:169
859
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:202
860
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:287
861
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:320
862
+ msgid "easeInCirc"
863
+ msgstr ""
864
+
865
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:170
866
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:203
867
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:288
868
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:321
869
+ msgid "easeOutCirc"
870
+ msgstr ""
871
+
872
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:171
873
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:204
874
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:289
875
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:322
876
+ msgid "easeInOutCirc"
877
+ msgstr ""
878
+
879
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:172
880
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:205
881
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:290
882
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:323
883
+ msgid "easeInElastic"
884
+ msgstr ""
885
+
886
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:173
887
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:206
888
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:291
889
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:324
890
+ msgid "easeOutElastic"
891
+ msgstr ""
892
+
893
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:174
894
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:207
895
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:292
896
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:325
897
+ msgid "easeInOutElastic"
898
+ msgstr ""
899
+
900
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:175
901
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:208
902
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:293
903
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:326
904
+ msgid "easeInOutBack"
905
+ msgstr ""
906
+
907
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:176
908
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:209
909
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:294
910
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:327
911
+ msgid "easeInBounce"
912
+ msgstr ""
913
+
914
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:177
915
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:210
916
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:295
917
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:328
918
+ msgid "easeOutBounce"
919
+ msgstr ""
920
+
921
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:178
922
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:211
923
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:296
924
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:329
925
+ msgid "easeInOutBounce"
926
+ msgstr ""
927
+
928
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:238
929
+ msgid "Section(s)"
930
+ msgstr ""
931
+
932
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:244
933
+ msgid ""
934
+ "This applies when <em>Apply to</em> is set to <em>Limited to Sections</em> "
935
+ "and/or <em>Auto-gallery</em> is set to <em>Galleries per Section</em>. Adapt "
936
+ "it to conform with your theme."
937
+ msgstr ""
938
+
939
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:244
940
+ msgid ""
941
+ "Examples: If your theme wraps post content in a div with class post, change "
942
+ "this value to \"div.post\". If you want to include images in a sidebar with "
943
+ "ID primary, add \", div#primary\" or \"aside#primary\" for html5 themes. If "
944
+ "you only want to group images in a WordPress gallery together, use \"div."
945
+ "gallery\". If you want to include images in a sidebar with ID primary, add "
946
+ "\", #primary\"."
947
+ msgstr ""
948
+
949
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:253
950
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:254
951
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:255
952
+ msgid "Gallery Auto-rotation"
953
+ msgstr ""
954
+
955
+ #: ../../easy-fancybox-pro/easy-fancybox-pro.php:257
956
+ msgid "Auto-rotation uses a fixed 6, 8 or 12 second pause per image."
957
+ msgstr ""
languages/easy-fancybox.ro_RO.mo ADDED
Binary file
languages/easy-fancybox_Gu_IN.mo ADDED
Binary file
languages/easy-fancybox_sk_SK.mo ADDED
Binary file
languages/instructions.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Easy FancyBox ===
2
+
3
+ == Translation ==
4
+
5
+ 1. Install PoEdit on your computer.
6
+
7
+ 2. Go to this plugins /languages/ directory.
8
+
9
+ 3. If there is no .po file that corresponds with your language yet, rename the template translation database easy-fancybox-xx_XX.po by replacing the xx with your language code and XX with your country code.
10
+
11
+ 4. Open the .po file of your language with PoEdit.
12
+
13
+ 5. Go to Edit > Preferences and on the tab Editor check the option to compile a .mo database on save automatically. Close with OK.
14
+
15
+ 6. Go to Catalog > Settings and set your name, e-mail address, language and country. Close with OK.
16
+
17
+ 7. Go to Catalog > Update from POT-file and select the main easy-fancybox.pot file. Then accept all new and removed translation strings with OK.
18
+
19
+ 8. Now go ahead and start translating all the texts listed in PoEdit.
20
+
21
+ 9. When done, go to File > Save to Save.
22
+
23
+ 10. Upload the automatically created easy-fancybox-xx_XX.mo database file (where xx_XX should now be your language and country code) to the plugins /languages/ directory on your WordPress site.
24
+
25
+ 11. After verifying the translations work on your site, send the .mo file and, if you're willing to share it, your original .po file to ravanhagen@gmail.com and don't forget to tell me how and with what link you would like to be mentioned in the credits!
26
+
27
+
28
+ Thanks for sharing your translation :)
readme.txt CHANGED
@@ -1,35 +1,59 @@
1
  === Easy FancyBox ===
2
  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%2e1&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us
4
- Tags: fancybox, lightbox, gallery, image, photo, flash, nextgen, overlay, youtube, vimeo, dailymotion, pdf, iframe, swf, jquery
5
- Requires at least: 2.7
6
- Tested up to: 3.1
7
- Stable tag: 1.3.4.8
8
 
9
- Easily enable the FancyBox 1.3.4 jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
11
  == Description ==
12
 
13
- Easy FancyBox-in-a-Box for just about all media links gives you a flexible and aesthetic media lightbox solution for your website. Easy FancyBox uses the packed FancyBox jQuery extension and is WP 3.0 Multi-Site compatible. After activation you can find a new section **FancyBox** on your **Settings > Media** admin page where you can manage the plugins options.
14
 
15
- It supports:
16
 
17
- - images (.jpg/.gif/.png and others) _and_ WordPress Galleries
18
- - PDF and SWF (Flash) files
19
- - movie sites like **Youtube**, **Vimeo** _and_ **Dailmotion**
20
- - hidden inline content
21
- - iframes
22
- - popup (auto-activate) on page load
 
 
 
 
 
 
 
 
23
 
24
  See [Screenshots](http://wordpress.org/extend/plugins/easy-fancybox/screenshots/) for an impression on how images and YouTube movies will be presented on your site as soon as you have installed and (network) activated this simple plugin.
25
 
26
- See [FAQ's](http://wordpress.org/extend/plugins/easy-fancybox/faq/) for instructions to manage YouTube, Dailymotion and Vimeo movies (and similar services) and tips to make inline content display in a FancyBox overlay. Subscribe to [4Visions](http://4visions.nl/rss/) for tips on how to get a high degree of control over what will be shown in a FancyBox overlay on your website.
 
 
27
 
28
  Visit [FancyBox](http://fancybox.net/) for more information, examples and the FancyBox Support Forum. Please consider a DONATION for continued development of the FancyBox project.
29
 
30
- = Translations =
 
31
 
32
- - **Dutch** * Author: [R.A. van Hagen](http://4visions.nl)
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  == Installation ==
35
 
@@ -51,48 +75,42 @@ Follow these steps:
51
 
52
  3. Activate the plugin on the Plug-ins page.
53
 
54
- By default, any images that are linked to directly (not to a WordPress page) from within your posts and pages, should now be opening in a FancyBox overlay :)
55
 
56
  Not happy with the default settings? Check out the new options under **Settings > Media**.
57
 
58
- = WordPress 3+ in Multi Site mode =
59
-
60
- Same as above but do a **Network Activate** to activate FancyBox image overlays on each site on your network.
61
 
62
- = Wordpress MU =
63
 
64
- The plugin works best from the **/mu-plugins/** folder where it runs quietly in the background without bothering any blog owner with new options or the need for special knowledge about FancyBox. Just upload the complete package content to /mu-plugins/ and move the file fancybox.php from the new /mu-plugins/easy-fancybox/ to /mu-plugins/.
65
 
66
  == Frequently Asked Questions ==
67
 
68
-
69
  = BASIC =
70
-
71
  = What's FancyBox? =
72
 
73
- Basically, it is a fancy way of presenting images, movies, portable documents and inline content on your website. For example, if you have scaled-down images in your posts which are linked to the original large version, instead of opening them on a blanc page, FancyBox opens those in a smooth overlay. Visit [FancyBox](http://fancybox.net/) for more information and examples.
 
74
 
75
  = Which version of FancyBox does this plugin use? =
76
 
77
  The same version as this plugin has. I aim to keep close pace to FancyBox upgrades and always move to the latest and greates version. Please, let me know if I'm lagging behind and missed an upgrade!
78
 
79
- = Where is the settings page? =
80
-
81
- There is no new settings page but there are a few options you can change. You will find a new **FancyBox** section on **Settings > Media**. To see the default, check out the example under [Screenshots](http://wordpress.org/extend/plugins/easy-fancybox/) ...
82
 
 
83
 
84
- = TROUBLE SHOOTING =
85
 
86
- = Help! It does not work... =
87
 
88
- If, after activation, your images do not open in a FancyBox overlay, there are several possible reasons. Some are easily solved, others are more difficult. Follow these basic checks to make sure everything is in place:
89
 
90
- 1. Make sure that thumbnail images are linked *directly* to their larger counterpart, not to a dynamic WordPress page that includes the larger image. This means when you insert an image in your posts or pages, you need to select `File URL` at the **Link** option instead of `Page URL`. You'll have to manually edit your old posts if you have always inserted images with `Page URL` before, FancyBox cannot do this for you.
91
- 1. Make sure you have all the needed media and their *Auto-detect* options activated on your **Settings > Media** admin page. If you are using images in other formats that JPG, GIF or PNG, you need to add the extensions to the Auto-detect field for Images. Please note: The image file names must actaully *end* with that extension! This means that if you have an image file that (for example) has *no* extension (does not end with .jpg or any other) even if is in JPEG compressed format, the FancyBox will not be able to detect is as an image. You will need to manually give those links the class `fancybox` to trigger FancyBox.
92
- 1. Make sure your theme is capable of placing the needed javascript and css in the page header. Open any page on your site and view the source code by right-clicking on an empty section and selecting 'View source...' (or similar) to see the page source. There you will need to check of there are any references to javascript files like `jquery.fancybox-x.x.x.pack.js?ver=x.x.x` in the `<head>` section. There should also be a `easy-fancybox.css.php?ver=x.x.x` and some javascript that starts with `<!-- Easy FancyBox 1.3.4.9 using FancyBox 1.3.4 - RavanH (http://4visions.nl/en/wordpress-plugins/easy-fancybox/) -->`... If it's not there, your theme is really out of date. Consider switching to a new theme fast!
93
- 1. Check if your theme wraps post/page content in a div with class `hentry`. If it doesn't, you might need to edit the option `Section(s)` on **Settings > Media** to reflect the class (or ID) name of the div that holds post/page content.
94
 
95
- If you still do not get to see your images in FancyBox, ask on the [Easy FancyBox WordPress forum](http://wordpress.org/tags/easy-fancybox) or go to the [development site](http://4visions.nl/en/wordpress-plugins/easy-fancybox/)
 
96
 
97
 
98
  = ADVANCED =
@@ -101,48 +119,67 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
101
 
102
  Yes, but _only_ if you used the option **Link thumbnails to: Image File** when inserting the gallery! The gallery quicktag/shortcode should look something like `[gallery link="file"]`.
103
 
104
- = Can I make gallery images automatically rotate? =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
- Yes. There is an Advanced option called "Gallery Auto-rotation" for that.
107
 
108
  = Can I exclude images or other links from auto-attribution? =
109
 
110
  Yes. All links with class **nofancybox** that would normally get auto-enabled, will be excluded from opening in a FancyBox overlay.
111
 
112
  `<a href="url/to/fullimg.jpg" class="nofancybox"><img src="url/to/thumbnail.jpg" /></a>`
113
-
114
 
115
  = Will a NextGen gallery be displayed in a FancyBox overlay ? =
116
 
117
- It *can* be. Switch off any gallery overlay scripts in NextGen and either use the FancyBox Auto-detect feature (turned ON by default for jpg, gif and png files) or set the NextGen option "Effects" to "Custom" and fill the code line field with
 
 
 
 
118
  `
119
  class="fancybox" rel="%GALLERY_NAME%"
120
  `
121
-
122
 
123
  = Can I use ONE thumbnail to open a complete gallery ? =
124
 
125
- It can be done manually (using the internal WordPress gallery feature, or not) _or_ in combination with NextGen Gallery.
126
 
127
  **Manual**
128
 
129
- **A.** Open your post for editing in HTML mode and insert the first image thumbnail in your post content (linking to the images file, not page) to serve as the gallery thumbnail.
130
 
131
  **B.** Place the following code to start a hidden div containing all the other images that should only be visible in FancyBox:
132
  `
133
  <div class="fancybox-hidden">
134
  `
135
-
136
  **C.** Right after that starting on a new line, insert all other images you want to show in your gallery. You can even use the WordPress internal gallery feature with the shortcode `[gallery link="file"]`. NOTE: if the gallery thumbnail is attached to the post, it will be show a second time when flipping through the gallery in FancyBox. If you do not want that, use an image that is not attached to the post as gallery thumbail.
137
 
138
  **D.** Close the hidden div with the following code on a new line:
139
  `
140
  </div>
141
  `
142
-
143
  **With NextGEN Gallery**
144
 
145
- You can choose between two shortcodes to show a gallery that (1) limits images per gallery using the shortcode `[nggallery id=x]` or (2) per tag name (accross galleries; you need to set tag name manually => more work but more control) using the shortcode `[nggtags gallery=YourTagName,AnotherTagName]`.
146
 
147
  General steps:
148
 
@@ -156,51 +193,82 @@ General steps:
156
  1. Show ImageBrowser: unchecked
157
  1. Add hidden images: checked
158
 
159
- **C.** Optional: add a new CSS rule to your theme stylesheet to hide the page browsing links below the gallery thumbnail:
160
  `
161
- .ngg-navigation{display:none}
 
 
162
  `
163
-
164
-
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  = Can I display web pages or HTML files in a FancyBox overlay? =
166
 
167
- Yes. Place a link with either `class="fancybox-iframe"` or `class="fancybox iframe"` (notice the space instead of the hyphen) to any web page or .htm(l) file in your content.
168
 
169
  NOTE: The difference between these two classes ('-' or space) is in size of the overlay window. Try it out and use the one that works best for you :)
170
 
 
171
  = Can I show PDF files in a FancyBox overlay? =
172
 
173
  Yes. Just place a link _with the URL ending in .pdf_ to your Portable Document file in the page content.
174
 
175
  If you do'nt have *Auto-detect* checked under **PDF** on Settings > Media admin page, you will need to add `class="fancybox-pdf"` (to force pdf content recognition) to the link to enable FancyBox for it.
176
 
 
177
  = Can I play SWF files in a FancyBox overlay? =
178
 
179
  Yes. Just place a link _with the URL ending in .swf_ to your Flash file in the page content.
180
 
181
  If you do'nt have *Auto-detect* checked under **SWF** on Settings > Media admin page, you will need to add either `class="fancybox"` or `class="fancybox-swf"` (to force swf content recognition) to the link to enable FancyBox for it.
182
 
183
- = Can I play YouTube, Dailymotion and Vimeo movies in a FancyBox overlay? =
184
 
185
- Yes. These are actually a special case of SWF files. The URL for these movies do not end in .swf so the FancyBox script will not be able to auto-detect the Flash content. This can be forced with `class="fancybox-youtube"`, `class="fancybox-swf"` or alternatively `class="fancybox-iframe"`. The difference between the three is mainly in size of the overlay window. Just choose the one that works best for you or... Just let the plugin auto-detect and auto-enable it for you! :)
186
 
187
- For **YouTube**, place the Share URL (the plain Page URL, the Short URL or even with the HD option) to the YouTube page in your content. Add `&fs=1` to the URL so show the 'Full screen' button. If you have disabled Auto-detection, use it with `class="fancybox-youtube"` to manually enable FancyBox for it. (Note: For shortened YouTube URLs, the class does not work. Auto auto-detection needs to be enabled seperately.)
188
 
189
- For **Vimeo**, just place a link to the Vimeo page in your content. If you have disabled Auto-detection, use it with `class="fancybox-vimeo"` to manually enable FancyBox for it.
 
 
190
 
191
- Both YouTube and Vimeo movies can be made to auto-start when they are opened by adding the paramer `autoplay=1` to the URL. For example, a short-url YouTube link that should play in HD mode, have the full screen button and auto-start on open, would look like:
 
 
 
 
 
 
 
192
  `
193
- <a href="http://youtu.be/N_tONWXYviM?hd=1&fs=1&autoplay=1">text/thumbnail</a>
194
  `
195
-
196
 
197
  = I want that 'Show in full-screen' button on my YouTube movies =
198
 
199
  Append `&fs=1` to your YouTube share URL.
200
 
 
 
 
 
 
 
201
  = The flash movie in the overlay shows BELOW some other flash content that is on the same page! =
202
 
203
- Make sure the OTHER flash content as a **wmode** set, preferably to 'opaque' or else 'transparent' but not 'window' or missing. For example, if your embedded object looks something like:
204
  `
205
  <object type="application/x-shockwave-flash" width="200" height="300" data="...url...">
206
  <param name="allowfullscreen" value="true" />
@@ -217,36 +285,57 @@ just add `<param name="wmode" value="opaque" />` among the other parameters. Or
217
  <embed src="...url..." type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true" wmode="window"></embed>
218
  </object>
219
  `
220
- just change that `wmode="window"` to `wmode="opaque"` or add the tag if it is missing.
 
221
 
 
222
 
223
- = Can I display INLINE content in a FancyBox overlay ? =
224
 
225
- Yes. Wrap the inline content in
226
  `
227
- <div style="display:none" class="fancybox-hidden"><div id="fancyboxID-1">
228
  ...inline content here...
229
  </div></div>
230
  `
231
-
232
- Then place a FancyBox link anywhere else in the post/page content to the inline content. Something like
233
  `
234
- <a href="#fancyboxID-1" class="fancybox">Read my inline content</a>
235
  `
236
-
237
  NOTE: The wrapping divs ID *must* be unique and it must correspond with the links HREF with a # in front of it. When using the above example for more FancyBox inline content (hidden div + opening link) combinations on one page, give the second one the ID fancyboxID-2 and so on...
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  = Can I make an image or hidden content to pop up in FancyBox on page load? =
240
 
241
  Yes. A link that has the ID **fancybox-auto** (Note: there can be only ONE link like that on a page!) will be triggered automatically on page load.
242
 
243
- Use the instructions above but this time give the link also `id="fancybox-auto"` and remove the anchor text to hide it. Now the hidden div content will pop up automatically when a visitor opens the page.
244
 
245
  Same can be done with an image, flash movie, PDF or iframe link! But please remember there can be only **one** item using the ID fancybox-auto per page...
246
 
 
247
  = Can I make a menu item open in a FancyBox overlay ? =
248
 
249
- Yes. But it depends on you theme what you need to do to make it work. If you are on WordPress 3+ and your theme supports the new internal Custom Menu feature or if you are using a custom menu in a sidebar widget, it's easy:
250
 
251
  1. Go to Settings > Media and enable FancyBox iFrame support.
252
  2. Go to Appearance > Menus and open the little tab "Screen Options" in the top-right corner.
@@ -255,21 +344,101 @@ Yes. But it depends on you theme what you need to do to make it work. If you are
255
 
256
  If you are on an older version of WordPress or if you cannot use WP's Menus, you will need to do some heavy theme hacking to get it to work. Basically, what you need to achieve is that the menu item you want opened in a lightbox overlay, should get a class="fancybox-iframe" tag.
257
 
 
258
  = Is Easy FancyBox multi-site compatible? =
259
 
260
  Yes. Designed to work with **Network Activate** and does not require manual activation on each site in your network. You can even install it in mu-plugins: upload the complete /easy-fancybox/ directory to /wp-content/mu-plugins/ and move the file easy-fancybox.php one dir up.
261
 
262
 
 
263
  == Known Issues ==
264
 
265
- - There is a conflict between the WP Slimstat plugin and the Easy FancyBox script for YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
266
- - In FancyBox 1.3.3 there is a problem with image stretching in the Google Chrome browser. This is worked around in Easy FancyBox 1.3.3.4.2 by disabling the autoDimensions feature. Since version 1.3.4, this has been resolved.
267
- - Embedded flash content that has no wmode or wmode 'window', is displayed above the overlay and other javascript rendered content like dropdown menus. WordPress does NOT check for missing wmode in oEmbed generated Auto-embeds. Since version 1.3.4.5, the missing wmode is added by this plugin for WP (auto-)embeds but not for other user-embedded content. Please make sure you set the wmode parameter to 'opaque' (best) or 'transparent' (only when you need transparency) for your embedded content.
268
- - When using WP-Minify, the javascript files like `fancybox/jquery.fancybox-X.X.X.pack.js` and others need to be excluded from minification.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
 
270
  == Trouble Shooting ==
271
 
272
- See the FAQ section on trouble shooting.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
 
274
 
275
  == Screenshots ==
@@ -280,17 +449,60 @@ See the FAQ section on trouble shooting.
280
 
281
  == Upgrade Notice ==
282
 
283
- = 1.3.4.8 =
284
- PDF bugfix. Improved auto-enable and auto-gallery settings and a Spotlight effect!
285
 
286
  == Changelog ==
287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  = 1.3.4.8 =
289
- * Advanced option: Gallery auto-rotation
290
- * Spotlight effect
291
  * Improved auto-enable and auto-gallery settings
292
  * BIGFIX: CSS IE6 hack
293
- * BIGFIX: PDF object in IE
294
 
295
  = 1.3.4.6 =
296
  * PDF embed compatibility improvement
@@ -313,7 +525,7 @@ PDF bugfix. Improved auto-enable and auto-gallery settings and a Spotlight effec
313
  = 1.3.3.4.2 =
314
  * BIGFIX: iframe width
315
  * BIGFIX: image overlay size in Google Chrome browser issue (FancyBox 1.3.3)
316
- * BIGFIX: fancybox-swf
317
 
318
  = 1.3.3.4 =
319
  * FancyBox script version 1.3.3 (2010/11/4 - http://fancybox.net/changelog/)
1
  === Easy FancyBox ===
2
  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.0
8
 
9
+ Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
11
  == Description ==
12
 
13
+ Easy FancyBox plugin for WordPress websites gives you a flexible and aesthetic lightbox solution for just about all media links on your website. Easy FancyBox uses the packed FancyBox jQuery extension and is WP 3+ Multi-Site compatible. After activation you can find a new section **FancyBox** on your **Settings > Media** admin page where you can manage the plugins options.
14
 
15
+ After activation, all links to **JPG, GIF and PNG images** are automatically opened in the [FancyBox](http://fancybox.net/) Mac-style lightbox that floats over the web page. Most options available can be managed with this plugin along with some extra features.
16
 
17
+ **Also supports:**
18
+
19
+ - All other image types _and_ image maps
20
+ - WordPress Galleries
21
+ - NextGEN galleries (see FAQs for instructions)
22
+ - Youtube galleries via Youtube Simple Gallery plugin (see FAQs for instructions)
23
+ - SWF (Flash) movies
24
+ - SVG media images (thanks to Simon Maillard)
25
+ - Links to **Youtube**, **Vimeo** _and_ **Dailmotion**
26
+ - Hidden inline content
27
+ - iFrames
28
+ - PDF files
29
+ - Auto-popup on page load
30
+ - links inside Gravity Forms in ajax mode
31
 
32
  See [Screenshots](http://wordpress.org/extend/plugins/easy-fancybox/screenshots/) for an impression on how images and YouTube movies will be presented on your site as soon as you have installed and (network) activated this simple plugin.
33
 
34
+ See [FAQ's](http://wordpress.org/extend/plugins/easy-fancybox/faq/) for instructions to manage YouTube, Dailymotion and Vimeo movies (and similar services) and tips to make inline content display in a FancyBox overlay. Subscribe to [Status301](http://status301.net/tag/easy-fancybox/feed/) for tips on how to get a high degree of control over what will be shown in a FancyBox overlay on your website.
35
+
36
+ Get support on the [Easy FancyBox web page](http://status301.net/wordpress-plugins/easy-fancybox/) or [WordPress forum](http://wordpress.org/tags/easy-fancybox?forum_id=10).
37
 
38
  Visit [FancyBox](http://fancybox.net/) for more information, examples and the FancyBox Support Forum. Please consider a DONATION for continued development of the FancyBox project.
39
 
40
+ **Recommended:**
41
+ - For increased site performance, simply install and activate the plugin [Use Google Libraries](http://wordpress.org/extend/plugins/use-google-libraries/) to load jQuery from Googles CDN.
42
 
43
+ = Translators =
44
+
45
+ - **Dutch** * Author: [R.A. van Hagen](http://status301.net) (version 1.5.0)
46
+ - **French** * Author: Emmanuel Maillard (version 1.3.4.9)
47
+ - **Gujarati** * Author: [Apoto Team](http://www.apoto.com) (version 1.5.0)
48
+ - **Hindi** * Author: [Outshine Solutions](http://outshinesolutions.com) (version 1.3.4.9)
49
+ - **Indonesian** * Author: [Nasrulhaq Muiz](http://al-badar.net) (version 1.3.4.9)
50
+ - **Lithuanian** * Author: [Vincent G](http://www.host1free.com) (version 1.3.4.9)
51
+ - **Polish** * Author: Kamil Szymański (version 1.3.4.9)
52
+ - **Romanian** * Author: [Web Geek Sciense](http://webhostinggeeks.com/) (version 1.3.4.9)
53
+ - **Slovak** Author: [Branco Radenovich (WebHostingGeeks.com)](http://webhostinggeeks.com/blog/) (version: 1.3.4.9)
54
+ - **Spanish** * Author: [David Pérez](http://www.closemarketing.es) (version 1.3.4.9)
55
+ - **Turkish** * Author: [Hakan Er](http://hakanertr.wordpress.com/) (version: 1.5.0)
56
+ - **Ukrainian** * Author: [Cmd Software](http://www.cmd-soft.com) (version: 1.3.4.9)
57
 
58
  == Installation ==
59
 
75
 
76
  3. Activate the plugin on the Plug-ins page.
77
 
78
+ Done! By default, any images that are linked to directly (not to a WordPress page) from within your posts and pages, should now be opening in a FancyBox overlay :)
79
 
80
  Not happy with the default settings? Check out the new options under **Settings > Media**.
81
 
82
+ = Wordpress MU / WordPress 3+ in Multi Site mode =
 
 
83
 
84
+ Same as above but do a **Network Activate** to activate FancyBox image overlays on each site on your network. No database tables are created or manipulated and no activation hook needs to be run for it to function with default settings. The plugin can also work from the **/mu-plugins/** folder where it runs quietly in the background without bothering any blog owner with new options pages or the need for special knowledge about FancyBox. Just upload the complete package content to /mu-plugins/ and move the file fancybox.php from the new /mu-plugins/easy-fancybox/ to /mu-plugins/.
85
 
 
86
 
87
  == Frequently Asked Questions ==
88
 
 
89
  = BASIC =
90
+
91
  = What's FancyBox? =
92
 
93
+ Basically, it is a fancy way of presenting images, movies, portable documents and inline content on your website. For example, if you have scaled-down images in your posts which are linked to the original large version, instead of opening them on a blank page, FancyBox opens those in a smooth overlay. Visit [FancyBox](http://fancybox.net/) for more information and examples.
94
+
95
 
96
  = Which version of FancyBox does this plugin use? =
97
 
98
  The same version as this plugin has. I aim to keep close pace to FancyBox upgrades and always move to the latest and greates version. Please, let me know if I'm lagging behind and missed an upgrade!
99
 
100
+ = I installed the plugin. What now? =
 
 
101
 
102
+ First, make sure that image thumbnails in your posts and pages are linked to their full size counterpart directly. Open any post with thumbnail images in it for editing and select the first thumbnail. Click the **Edit Image** button that appears and choose **Link to Image**. From now on, clicking that thumbnail should open the full size version in FancyBox.
103
 
104
+ The same thing goes for WordPress Galleries. Choose **Link to: File** when inserting a gallery tag.
105
 
106
+ = I want to change something. Where is the settings page? =
107
 
108
+ There is no new settings page but there are a few options you can change. You will find a new **FancyBox** section on **Settings > Media**. To see the default, check out the example under [Screenshots](http://wordpress.org/extend/plugins/easy-fancybox/screenshots/) ...
109
 
110
+ = Help! It does not work... =
 
 
 
111
 
112
+ Please follow the trouble shooting steps on [Other Notes](http://wordpress.org/extend/plugins/easy-fancybox/other_notes/) to determine the cause. If that fails, ask for support on the [Easy FancyBox WordPress forum](http://wordpress.org/tags/easy-fancybox) or go to the [development site](http://status301.net/wordpress-plugins/easy-fancybox/)
113
+ &nbsp;
114
 
115
 
116
  = ADVANCED =
119
 
120
  Yes, but _only_ if you used the option **Link thumbnails to: Image File** when inserting the gallery! The gallery quicktag/shortcode should look something like `[gallery link="file"]`.
121
 
122
+ = The lightbox does not look good on mobile devices. What can I do about that? =
123
+
124
+ 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.
125
+
126
+ `
127
+ <script type="text/javascript">
128
+ if(window.innerWidth < 500 || window.innerHeight < 500 || window.outerWidth < 500 || window.outerHeight < 500 ) {
129
+ jQuery(document).off('ready gform_post_render', easy_fancybox_handler);
130
+ };
131
+ </script>
132
+ `
133
+
134
+ Tweak the value 500 to target other screen sizes.
135
+
136
+ = Can I make a slideshow from my gallery? =
137
+
138
+ In the Pro version, there is an Advanced option called "Gallery Auto-rotation" for that.
139
 
 
140
 
141
  = Can I exclude images or other links from auto-attribution? =
142
 
143
  Yes. All links with class **nofancybox** that would normally get auto-enabled, will be excluded from opening in a FancyBox overlay.
144
 
145
  `<a href="url/to/fullimg.jpg" class="nofancybox"><img src="url/to/thumbnail.jpg" /></a>`
146
+
147
 
148
  = Will a NextGen gallery be displayed in a FancyBox overlay ? =
149
 
150
+ It *can* be.
151
+
152
+ 1. Switch OFF the FancyBox Auto-gallery option; and
153
+ 1. set the NextGen option "JavaScript Thumbnail effect" to "Custom"; and
154
+ 1. fill the code line field with
155
  `
156
  class="fancybox" rel="%GALLERY_NAME%"
157
  `
158
+
159
 
160
  = Can I use ONE thumbnail to open a complete gallery ? =
161
 
162
+ It can be done manually (using the internal WordPress gallery feature, or not) _or_ in combination with NextGen Gallery.
163
 
164
  **Manual**
165
 
166
+ **A.** Open your post for editing in HTML mode and insert the first image thumbnail in your post content (linking to the images file, not page) to serve as the gallery thumbnail.
167
 
168
  **B.** Place the following code to start a hidden div containing all the other images that should only be visible in FancyBox:
169
  `
170
  <div class="fancybox-hidden">
171
  `
172
+
173
  **C.** Right after that starting on a new line, insert all other images you want to show in your gallery. You can even use the WordPress internal gallery feature with the shortcode `[gallery link="file"]`. NOTE: if the gallery thumbnail is attached to the post, it will be show a second time when flipping through the gallery in FancyBox. If you do not want that, use an image that is not attached to the post as gallery thumbail.
174
 
175
  **D.** Close the hidden div with the following code on a new line:
176
  `
177
  </div>
178
  `
179
+
180
  **With NextGEN Gallery**
181
 
182
+ You can choose between two shortcodes to show a gallery that (1) limits images per gallery using the shortcode `[nggallery id=x]` or (2) per tag name (accross galleries; you need to set tag name manually => more work but more control) using the shortcode `[nggtags gallery=YourTagName,AnotherTagName]`.
183
 
184
  General steps:
185
 
193
  1. Show ImageBrowser: unchecked
194
  1. Add hidden images: checked
195
 
196
+ **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.
197
  `
198
+ .ngg-navigation {
199
+ display:none;
200
+ }
201
  `
202
+
203
+ = Can I create a gallery of Youtube thumbnails which open in FancyBox? =
204
+
205
+ You could do this manually by uploading individual thumbnails that you can retrieve by using the unique movie ID in these URLs for three different sizes:
206
+ `
207
+ http://i4.ytimg.com/vi/UNIQUE-MOVIE-ID/default.jpg
208
+ http://i4.ytimg.com/vi/UNIQUE-MOVIE-ID/mqdefault.jpg
209
+ http://i4.ytimg.com/vi/UNIQUE-MOVIE-ID/hqdefault.jpg
210
+ `
211
+
212
+ But an easier method is this one, shared by Shashank Shekhar (thanks!) :
213
+
214
+ To create Youtube thumbnail galleries, install http://wordpress.org/extend/plugins/youtube-simplegallery/ and set the 'Effect' option to fancybox. Then disable Youtube autodetection on Settings > Media.
215
+
216
+
217
  = Can I display web pages or HTML files in a FancyBox overlay? =
218
 
219
+ Yes. Place a link with either `class="fancybox-iframe"` or `class="fancybox iframe"` (notice the space instead of the hyphen) to any web page or .htm(l) file in your content.
220
 
221
  NOTE: The difference between these two classes ('-' or space) is in size of the overlay window. Try it out and use the one that works best for you :)
222
 
223
+
224
  = Can I show PDF files in a FancyBox overlay? =
225
 
226
  Yes. Just place a link _with the URL ending in .pdf_ to your Portable Document file in the page content.
227
 
228
  If you do'nt have *Auto-detect* checked under **PDF** on Settings > Media admin page, you will need to add `class="fancybox-pdf"` (to force pdf content recognition) to the link to enable FancyBox for it.
229
 
230
+
231
  = Can I play SWF files in a FancyBox overlay? =
232
 
233
  Yes. Just place a link _with the URL ending in .swf_ to your Flash file in the page content.
234
 
235
  If you do'nt have *Auto-detect* checked under **SWF** on Settings > Media admin page, you will need to add either `class="fancybox"` or `class="fancybox-swf"` (to force swf content recognition) to the link to enable FancyBox for it.
236
 
 
237
 
238
+ = How do I show content with different sizes? =
239
 
240
+ 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:
241
 
242
+ `
243
+ <a class="fancybox-swf {width:1024,height:675}" href="link-to-your-swf"></a>
244
+ `
245
 
246
+
247
+ = Can I play YouTube, Dailymotion and Vimeo movies in a FancyBox overlay? =
248
+
249
+ Yes. Simply create a link using the Share URL (the full Page URL, the Short URL with or without options like HD etc.) to the YouTube/Vimeo/Dailymotion page in your post content. If you have Auto-detect enabled, the plugin will take care of the rest for you! :)
250
+
251
+ If you have disabled Auto-detection, give the link a class attribute like `class="fancybox-youtube"` for Youtube, `class="fancybox-vimeo"` for Vimeo and `class="fancybox-dailymotion"` for Dailymotion, to manually enable FancyBox for it.
252
+
253
+ Both YouTube and Vimeo movies can be made to play immediately after opening by adding the paramer `autoplay=1` to the URL. For example, a short-url YouTube link that should play in HD mode, have the full screen button and auto-start on open, would look like:
254
  `
255
+ <a href="http://youtu.be/N_tONWXYviM?hd=1&fs=1&autoplay=1">text or thumbnail</a>
256
  `
257
+
258
 
259
  = I want that 'Show in full-screen' button on my YouTube movies =
260
 
261
  Append `&fs=1` to your YouTube share URL.
262
 
263
+
264
+ = Can I show a Youtube playlist in FancyBox? =
265
+
266
+ Yes, just go to Youtube page of any movie that's in the playlist and use the Share button to get the share URL just like with single movies, but this time place a checkmark at the 'Share with playlist' option.
267
+
268
+
269
  = The flash movie in the overlay shows BELOW some other flash content that is on the same page! =
270
 
271
+ Make sure the OTHER flash content as a **wmode** set, preferably to 'opaque' or else 'transparent' but never 'window' or missing. For example, if your embedded object looks something like:
272
  `
273
  <object type="application/x-shockwave-flash" width="200" height="300" data="...url...">
274
  <param name="allowfullscreen" value="true" />
285
  <embed src="...url..." type="application/x-shockwave-flash" width="640" height="385" allowscriptaccess="always" allowfullscreen="true" wmode="window"></embed>
286
  </object>
287
  `
288
+ just change that `wmode="window"` to `wmode="opaque"` or add the attribute if it is missing.
289
+
290
 
291
+ = How can I display INLINE content in a FancyBox overlay ? =
292
 
293
+ First go to your **Settings > Media** admin page and activate the **Inline** option under the FancyBox settings. After saving, the amin page will show a new section called Inline where you can tweak its parameters.
294
 
295
+ Next, open your page/post for editing in the HTML tab and wrap the inline content in
296
  `
297
+ <div style="display:none" class="fancybox-hidden"><div id="fancyboxID-1" class="hentry" style="width:460px;height:380px;">
298
  ...inline content here...
299
  </div></div>
300
  `
301
+
302
+ Then place a FancyBox link tag with class attribute "fancybox-inline" anywhere else in the post/page content that will point to the inline content like
303
  `
304
+ <a href="#fancyboxID-1" class="fancybox-inline">Read my inline content</a>
305
  `
306
+
307
  NOTE: The wrapping divs ID *must* be unique and it must correspond with the links HREF with a # in front of it. When using the above example for more FancyBox inline content (hidden div + opening link) combinations on one page, give the second one the ID fancyboxID-2 and so on...
308
 
309
+ NOTE 2: If you find that the inline contect shown in FancyBox is styled very different than the rests of the page content, then you might want to change the div tag attribute `class="hentry"` to something else that matches your theme. Find out what class name is used for the main content on your site and re-use that.
310
+
311
+
312
+ = Can I display a contact form in FancyBox? =
313
+
314
+ Yes. There are several methods imaginable but the easiest would be to use the Inline method. The inline content can be a shortcode like in this example using Contact Forms 7 and Easy FancyBox:
315
+
316
+ `
317
+ <a href="#contact_form_pop" class="fancybox">Contact Us</a>
318
+
319
+ <div style="display:none" class="fancybox-hidden">
320
+ <div id="contact_form_pop" class="hentry" style="width:460px;height:380px;">
321
+ [contact-form-7 id="87" title="Contact form 1"]
322
+ </div>
323
+ </div>
324
+ `
325
+ Where you replace the shortcode (between the [ and ] characters) with the one given by the plugin. It can also work with shortcode by other plugins like Jetpack's Contact Form module. Change the class attribute to reflect the class used for the div that wraps your post content to have any form CSS style rules that are limited to post content, be applied to the inline content inside FancyBox.
326
+
327
  = Can I make an image or hidden content to pop up in FancyBox on page load? =
328
 
329
  Yes. A link that has the ID **fancybox-auto** (Note: there can be only ONE link like that on a page!) will be triggered automatically on page load.
330
 
331
+ Use the instructions above for inline content but this time give the link also `id="fancybox-auto"` (leave the class too) and remove the anchor text to hide it. Now the hidden div content will pop up automatically when a visitor opens the page.
332
 
333
  Same can be done with an image, flash movie, PDF or iframe link! But please remember there can be only **one** item using the ID fancybox-auto per page...
334
 
335
+
336
  = Can I make a menu item open in a FancyBox overlay ? =
337
 
338
+ Yes. But it depends on you theme what you need to do to make it work. If you are on WordPress 3+ and your theme supports the new internal Custom Menu feature or if you are using a custom menu in a sidebar widget, it's easy:
339
 
340
  1. Go to Settings > Media and enable FancyBox iFrame support.
341
  2. Go to Appearance > Menus and open the little tab "Screen Options" in the top-right corner.
344
 
345
  If you are on an older version of WordPress or if you cannot use WP's Menus, you will need to do some heavy theme hacking to get it to work. Basically, what you need to achieve is that the menu item you want opened in a lightbox overlay, should get a class="fancybox-iframe" tag.
346
 
347
+
348
  = Is Easy FancyBox multi-site compatible? =
349
 
350
  Yes. Designed to work with **Network Activate** and does not require manual activation on each site in your network. You can even install it in mu-plugins: upload the complete /easy-fancybox/ directory to /wp-content/mu-plugins/ and move the file easy-fancybox.php one dir up.
351
 
352
 
353
+
354
  == Known Issues ==
355
 
356
+ = General =
357
+
358
+ - **Outbound links or Downloads tracking** in some of the stats plugins can interfere with FancyBox.
359
+ - All plugins and themes that do not use `wp-enqueue-script` properly to include script libraries or extension files. Continue reading to see if you are using one of the know ones or follow the troubleshooting steps to find out what is conflicting on your site.
360
+ - All themes that are missing one or both of the obligatory `<?php wp_head(); ?>` in the header.php and `<?php wp_footer(); ?>` call just before the closing `</body>` tag in their footer.php template or elsewhere.
361
+
362
+ = Plugin conflicts =
363
+
364
+ - **All in One SEO Pack** with outbound link tracking enabled. Disable that feature.
365
+ - **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.
366
+ - By default **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
367
+ - **Wordpress Firewall 2** blocks access to image files needed for porper display of the FancyBox overlay in older IE and other non-css3 browsers.
368
+ - **WordPress Amazon Associate**: A script provided by Amazon and the FancyBox script are incompatible. Disabling _Product Preview_ in the **WP - Amazon > Settings** page should work around the issue.
369
+ - **WP Slimstat** plugin interferes with the Easy FancyBox script for YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
370
+ - When using **WP-Minify**, the javascript files like `fancybox/jquery.fancybox-X.X.X.pack.js` and others need to be excluded from minification.
371
+ - When using **W3 Total Cache**, minification needs to be switched off. You can try to run **WP-Minify** alongside W3TC to be able to exclude fancybox files (as suggested above) ans still have page speed benefit from minification.
372
+ - Both the **uBillBoard** and **Camera slideshow** have their own easing script hard-coded which conflicts with the one in Easy FancyBox. The only way around the conflict is to set both the Easing In and Easing Out options on your Settings > Media page to **Swing**.
373
+ - **WP Supersized** uses the Animate Enhanced jQuery extension which causes a conflict with the Easing extension used by FancyBox resulting in a 0px sized lightbox frame. Plus some kind of positioning issue with auto-centering. Sridhar Katakam wrote about a work-around on http://websitesetuppro.com/getting-easy-fancybox-to-work-properly-when-wp-supersized-is-active/.
374
+
375
+ = Theme conflicts =
376
+
377
+ - **Twenty Eleven** uses a very high stacking order (z-index: 9999) for the top image and menu div, resulting in FancyBox content being partially hidden under the page header. Work-around: Use the plugin [Custom CSS](http://wordpress.org/extend/plugins/safecss/) and add on the new Appearance > Edit CSS admin page the rule:
378
+ `
379
+ #branding {
380
+ z-index:999;
381
+ }
382
+ `
383
+ - Most if not all **Elegant Themes** have FancyBox already integrated in a hard-coded way, making them incompatible with Easy FancyBox.
384
+ - 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.
385
+ - **Imbalance** and other themes that uses the Photo Galleria jQuery extension: turn of the JSGallery option.
386
+ - 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...
387
+ - Themes based on the **Thesis** framework might see issues in IE 8, for which [a hack has been proposed](http://voidzonemedia.com/solutions/thesis-ie8-remove-ie7-emulation/)
388
+
389
+
390
+ = Other =
391
+
392
+ - When using multiple links on the same page to similar content, automatically or manually using the same class (for example `fancybox-youtube`), metadata on the second and following links (for example `{width:200,height:300}` in the class or data attribute) will be ignored.
393
+ - When showing an iframe as inline content in FancyBox, the iframe will become blank after opening and closing it. The solution is to link directly to the iframe source and use `class="fancybox-iframe"` instead.
394
+ - Embedded flash content that has no wmode or wmode 'window', is displayed above the overlay and other javascript rendered content like dropdown menus. WordPress does NOT check for missing wmode in oEmbed generated embed code. Since version 1.3.4.5, the missing wmode is added by this plugin for WP (auto-)embeds but not for other user-embedded content. Please make sure you set the wmode parameter to 'opaque' (best performance) or 'transparent' (only when you need transparency) for your embedded content.
395
+
396
 
397
  == Trouble Shooting ==
398
 
399
+ If, after activation, your images do not open in a FancyBox overlay, there are several possible reasons. Some are easily solved, others are more difficult. Follow these basic checks to make sure everything is in place:
400
+
401
+ = Basic checks =
402
+
403
+ 1. Make sure that thumbnail images are linked *directly* to their larger counterpart, not to a dynamic WordPress page that includes the larger image. This means when you insert an image in your posts or pages, you need to select `File URL` at the **Link** option instead of `Page URL`. You'll have to manually edit your old posts if you have always inserted images with `Page URL` before, FancyBox cannot do this for you.
404
+ 1. Make sure you have all the needed media and their *Auto-detect* options activated on your **Settings > Media** admin page. If you are using images in other formats that JPG, GIF or PNG, you need to add the extensions to the Auto-detect field for Images. Please note: The image file names must actaully *end* with that extension! This means that if you have an image file that (for example) has *no* extension (does not end with .jpg or any other) even if is in JPEG compressed format, the FancyBox will not be able to detect is as an image. You will need to manually give those links the class `fancybox` to trigger FancyBox.
405
+
406
+ = General trouble shooting steps =
407
+
408
+ 1. Switch off all other plugins and switch your sites appearance to the default Twenty Eleven theme. FancyBox should work now. If so, continue with the next step. If not, re-install the plugin and verify the basic steps above. Then open any page on your site and view the source code by right-clicking on an empty section and selecting 'View source...' (or similar). Find in the `<head>` section a referenced stylesheet `easy-fancybox.css.php?ver=x.x.x` and copy the full URL. Paste that URL in the address bar of a new browser tab to open the stylesheet directly. It should open without any errors and show a lot of stylesheet rules on a single line. If not, there is some incompatibility with your servers PHP setup. Please ask on the [Easy FancyBox WordPress forum](http://wordpress.org/tags/easy-fancybox) or go to the [development site](http://status301.net/wordpress-plugins/easy-fancybox/).
409
+ 1. Switch back to your original theme and check if FancyBox is still working. If so, continue with the next step. If not, See the Theme Incompatibility checks below.
410
+ 1. One by one, switch each plugin that you had running before back ON. Keep checking to see at which point FancyBox starts failing and you will hve found the conflicting plugin.
411
+
412
+ = Theme Incompatibility checks =
413
+
414
+ 1. See known theme conflicts above first, then continue with these following steps.
415
+ 1. Make sure your theme is capable of placing the needed javascript and css in the page header. Open any page on your site and view the source code by right-clicking on an empty section and selecting 'View source...' (or similar). There you will need to check of there are any references to javascript files like `jquery.fancybox-x.x.x.pack.js?ver=x.x.x` in the `<head>` section. There should also be a `easy-fancybox.css.php?ver=x.x.x` and some javascript that starts with `<!-- Easy FancyBox 1.3.4.9 using FancyBox 1.3.4 - RavanH (http://status301.net/wordpress-plugins/easy-fancybox/) -->`... If it's not there, your theme is really out of date. Consider switching to a new theme fast!
416
+ 1. Check if your theme wraps post/page content in a div with class `hentry`. If it doesn't, you might need to edit the option `Section(s)` on **Settings > Media** to reflect the class (or ID) name of the div that holds post/page content.
417
+ 1. Make sure that your theme does not load the main jQuery library file more than once. Look for references to javascript files like `jquery.js?ver=x.x.x` or `jquery.min.js` in the page source code. If you find more than one, try to find out in which theme template file that second reference is hard-coded and remove that line. Usually in header.php or footer.php
418
+ 1. Check if your theme loads another or the same lightbox script. Look for references to Thickbox, Prettyphoto, Lightbox2, Colorbox or FancyBox script files or code. These are very likely to cause the incompatibility and you will either have to remove these by hacking your theme or switch to another theme.
419
+
420
+ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBox WordPress forum](http://wordpress.org/tags/easy-fancybox) or go to the [development site](http://status301.net/wordpress-plugins/easy-fancybox/)
421
+
422
+ = Plugin Incompatibility checks =
423
+
424
+ 1. If you followed the general trouble shooting steps above, you should now be aware of which plugin is conflicting whith Easy FancyBox. See known plugin conflicts above first. If the plugin and its solution are not mentioned there, continue with the following steps.
425
+ 1. Make sure that the plugins do not make the main jQuery library file load more than once. Look for references to javascript files like `jquery.js?ver=x.x.x` or `jquery.min.js` in the page source code. If you find more than one, try to find out where that comes from.
426
+ 1. Check if your theme loads another or the same lightbox script or any other of the needed jQuery extensions like jquery.easing or jquery.mousewheel. Look for references to Thickbox, Prettyphoto, Lightbox2, Colorbox or FancyBox script files or code. These are very likely to cause the incompatibility and you will have to either find a setting in the other plugin to switch OFF the use of the conflicting script (possible in NextGEN for example, see under Advanced below) or choose between the two conflicting plugins.
427
+
428
+
429
+ == Translation ==
430
+
431
+ 1. Install PoEdit on your computer.
432
+ 1. Go to this plugins /languages/ directory.
433
+ 1. If there is no .po file that corresponds with your language yet, rename the template translation database easy-fancybox-xx_XX.po by replacing the xx with your language code and XX with your country code.
434
+ 1. Open the .po file of your language with PoEdit.
435
+ 1. Go to Edit > Preferences and on the tab Editor check the option to compile a .mo database on save automatically. Close with OK.
436
+ 1. Go to Catalog > Settings and set your name, e-mail address, language and country. Close with OK.
437
+ 1. Go to Catalog > Update from POT-file and select the main easy-fancybox.pot file. Then accept all new and removed translation strings with OK.
438
+ 1. Now go ahead and start translating all the texts listed in PoEdit.
439
+ 1. When done, go to File > Save to Save.
440
+ 1. Upload the automatically created easy-fancybox-xx_XX.mo database file (where xx_XX should now be your language and country code) to the plugins /languages/ directory on your WordPress site.
441
+ 1. After verifying the translations work on your site, send the .mo file and, if you're willing to share it, your original .po file to ravanhagen@gmail.com and don't forget to tell me how and with what link you would like to be mentioned in the credits!
442
 
443
 
444
  == Screenshots ==
449
 
450
  == Upgrade Notice ==
451
 
452
+ = 1.5.0 =
453
+ Many new options. Speed improvements: stylesheet browser caching, metadata.js compression. Security fix. Dutch, Indonesian and Polish translations.
454
 
455
  == Changelog ==
456
 
457
+ = 1.5.0 =
458
+ * FIX: CSS3 box-sizing issue (Twenty Thirteen) misplacing close button
459
+ * NEW: Added SVG support. Thanks to Simon Maillard.
460
+ * Pre WP 3.6: jQuery 1.9+ compatibility
461
+ * JQuery Mousewheel extension update to 3.1.3
462
+ * NEW: Elegant Themes compatibility
463
+ * Some small Touch device compatibility improvement hacks to the 1.3.4 script
464
+ * Major plugin overhaul: Class implementation
465
+ * NEW: Disable hide on overlay click
466
+ * NEW: Allow automatic resizing to large image size set on Settings > Media during media upload via the hidden WordPress function media_upload_max_image_resize() TODO test more!
467
+ * NEW Options: iFrame scrolling, autoScale, key navigation/close, cyclic galleries
468
+ * Metadata custom parameters and Mousewheel gallery scrolling scripts optional
469
+ * Basic RTL languages/text direction support (gallery navigation inversion, title position)
470
+ * BUGFIX: https in stylesheet on Windows IIS
471
+ * Improved W3TC compatibility: query string issue
472
+ * Gravity Forms in ajax mode compatibility
473
+ * Use jQuery's bind('ready') for better ajax content compatibility
474
+ * Dynamic stylesheet response headers to allow browser caching
475
+ * Minified version of jquery.metadata.js
476
+ * Auto-detect on image map areas
477
+ * nofancybox class for menu items
478
+ * SECURITY: Settings sanitization
479
+ * BUGFIX: load_textdomain firing after the main settings array is loaded, leaving text strings in it untranslated.
480
+ * BUGFIX: missing signs in Youtube url regular expression
481
+ * BUGFIX: unquoted rel attribute selectors in jquery.fancybox-1.3.4.js
482
+ * BUGFIX: broken url path in IE stylesheet when missing $_SERVER['SERVER_NAME']
483
+ * BUGFIX: easing extension not needed on linear easing
484
+
485
+ = 1.3.4.9 =
486
+ * NEW: Lithuanian translation
487
+ * NEW: Hindi translation
488
+ * NEW: Indonasian translation
489
+ * NEW: Romanian translation
490
+ * NEW: Polish translation
491
+ * NEW: Spanish translation
492
+ * NEW: jQuery Metadata support
493
+ * NEW: Image map AREA support for all content types
494
+ * NEW: new iFrame/HTML5 embed code for YouTube, Vimeo and Dailymotion
495
+ * NEW: fix WordPress Dailymotion auto-embed code missing wmode
496
+ * Some changes to default settings
497
+ * Updated Dutch translation
498
+ * BUGFIX: Opening speed
499
+
500
  = 1.3.4.8 =
501
+ * NEW: Advanced option: Gallery auto-rotation
502
+ * NEW: Spotlight effect
503
  * Improved auto-enable and auto-gallery settings
504
  * BIGFIX: CSS IE6 hack
505
+ * BIGFIX: PDF object in IE7
506
 
507
  = 1.3.4.6 =
508
  * PDF embed compatibility improvement
525
  = 1.3.3.4.2 =
526
  * BIGFIX: iframe width
527
  * BIGFIX: image overlay size in Google Chrome browser issue (FancyBox 1.3.3)
528
+ * BIGFIX: fancybox-swf
529
 
530
  = 1.3.3.4 =
531
  * FancyBox script version 1.3.3 (2010/11/4 - http://fancybox.net/changelog/)