FancyBox for WordPress - Version 2.2

Version Description

Download this release

Release Info

Developer moskis
Plugin Icon wp plugin FancyBox for WordPress
Version 2.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.2

admin.php CHANGED
@@ -6,12 +6,18 @@ function mfbfw_options() {
6
  $options=array(
7
  'autoApply' => get_option('mfbfw_autoApply'),
8
  'imageScale' => get_option('mfbfw_imageScale'),
 
 
9
  'zoomOpacity' => get_option('mfbfw_zoomOpacity'),
10
  'zoomSpeedIn' => get_option('mfbfw_zoomSpeedIn'),
11
  'zoomSpeedOut' => get_option('mfbfw_zoomSpeedOut'),
12
  'overlayShow' => get_option('mfbfw_overlayShow'),
13
  'overlayColor' => get_option('mfbfw_overlayColor'),
14
  'overlayOpacity' => get_option('mfbfw_overlayOpacity'),
 
 
 
 
15
  'hideOnContentClick' => get_option('mfbfw_hideOnContentClick'),
16
  'centerOnScroll' => get_option('mfbfw_centerOnScroll'),
17
  'nojQuery' => get_option('mfbfw_nojQuery'),
@@ -21,6 +27,10 @@ function mfbfw_options() {
21
  // Make selects data
22
  $overlayArray = array(0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1);
23
  $msArray = array(0,100,200,300,400,500,600,700,800,900,1000,1500);
 
 
 
 
24
 
25
  // Start the Options Page
26
  ?>
@@ -80,9 +90,12 @@ function mfbfw_options() {
80
 
81
  <p><?php _e('<a href="http://fancy.klade.lv/home">FancyBox</a> developed by <a href="http://kac.klade.lv/">Janis Skarnelis</a>, ported to WordPress by <a href="http://moskis.net/">Jos&eacute; Pardilla</a>. Licensed under the <a target="_blank" href="http://en.wikipedia.org/wiki/MIT_License">MIT License</a>.', 'mfbfw'); ?></p><br />
82
 
83
- <h3><?php _e('General Settings', 'mfbfw'); ?></h3>
84
 
85
- <p><?php _e('Note: Having a cache plugin may prevent changes from taking effect inmidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></p><br />
 
 
 
86
 
87
  <form method="post" action="options.php" id="options">
88
 
@@ -92,28 +105,61 @@ function mfbfw_options() {
92
  <tbody>
93
 
94
  <tr valign="top">
95
- <th scope="row"><?php _e('Auto Apply', 'mfbfw'); ?></th>
96
  <td>
97
  <fieldset>
98
 
99
- <label for="mfbfw_autoApply">
100
- <input type="checkbox" name="mfbfw_autoApply" id="mfbfw_autoApply"<?php if (get_option('mfbfw_autoApply') == 'on') echo ' checked="yes"';?> />
101
- <?php _e('Apply FancyBox automatically to all links pointing to .jpg, .jpeg, .png or .gif images (default: on)', 'mfbfw'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  </label><br />
103
- <small><em><?php _e('(The link itself must the an image as well, text links will not be affected by this option!)', 'mfbfw'); ?></em></small><br /><br />
 
104
 
105
  </fieldset>
106
  </td>
107
  </tr>
108
 
109
  <tr valign="top">
110
- <th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
111
  <td>
112
  <fieldset>
113
 
114
- <label for="mfbfw_imageScale">
115
- <input type="checkbox" name="mfbfw_imageScale" id="mfbfw_imageScale"<?php if (get_option('mfbfw_imageScale') == 'on') echo ' checked="yes"';?> />
116
- <?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  </label><br /><br />
118
 
119
  </fieldset>
@@ -158,38 +204,60 @@ function mfbfw_options() {
158
  </td>
159
  </tr>
160
 
 
 
 
 
 
 
 
 
 
 
161
  <tr valign="top">
162
- <th scope="row"><?php _e('Overlay Options', 'mfbfw'); ?></th>
163
  <td>
164
  <fieldset>
165
 
166
- <label for="mfbfw_overlayShow">
167
- <input type="checkbox" name="mfbfw_overlayShow" id="mfbfw_overlayShow"<?php if (get_option('mfbfw_overlayShow') == 'on') echo ' checked="yes"';?> />
168
- <?php _e('Add overlay (default: on)', 'mfbfw'); ?>
169
- </label><br /><br />
170
 
171
- <label for="mfbfw_overlayColor">
172
- <input type="text" name="mfbfw_overlayColor" id="mfbfw_overlayColor" value="<?php echo get_option('mfbfw_overlayColor'); ?>" size="7" maxlength="7" />
173
- <?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
174
- </label><br /><br />
175
 
176
- <label for="mfbfw_overlayOpacity">
177
- <select name="mfbfw_overlayOpacity" id="mfbfw_overlayOpacity">
178
- <?php
179
- foreach($overlayArray as $key=> $opacity) {
180
- if($options['overlayOpacity'] != $opacity) $selected = '';
181
- else $selected = ' selected';
182
- echo "<option value='$opacity'$selected>$opacity</option>\n";
183
- }
184
- ?>
185
- </select>
186
- <?php _e('Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)', 'mfbfw'); ?>
 
187
  </label><br /><br />
188
 
189
  </fieldset>
190
  </td>
191
  </tr>
192
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  <tr valign="top">
194
  <th scope="row"><?php _e('Close on Click', 'mfbfw'); ?></th>
195
  <td>
@@ -199,6 +267,7 @@ function mfbfw_options() {
199
  <input type="checkbox" name="mfbfw_hideOnContentClick" id="mfbfw_hideOnContentClick"<?php if (get_option('mfbfw_hideOnContentClick') == 'on') echo ' checked="yes"';?> />
200
  <?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
201
  </label><br />
 
202
  <small><em><?php _e('(This does NOT conflict with the previous and next image links on FancyBox galleries.)', 'mfbfw'); ?></em></small><br /><br />
203
 
204
  </fieldset>
@@ -206,14 +275,55 @@ function mfbfw_options() {
206
  </tr>
207
 
208
  <tr valign="top">
209
- <th scope="row"><?php _e('Center on Scroll', 'mfbfw'); ?></th>
210
  <td>
211
  <fieldset>
212
 
213
- <label for="mfbfw_centerOnScroll">
214
- <input type="checkbox" name="mfbfw_centerOnScroll" id="mfbfw_centerOnScroll"<?php if (get_option('mfbfw_centerOnScroll') == 'on') echo ' checked="yes"';?> />
215
- <?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
216
- </label><br /><br /><br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
 
218
  </fieldset>
219
  </td>
@@ -224,7 +334,9 @@ function mfbfw_options() {
224
 
225
  <h3><?php _e('Troubleshooting Settings', 'mfbfw'); ?></h3>
226
 
227
- <p><?php _e('The following settings should only be changed if you are having problems with the plugin!', 'mfbfw'); ?></p>
 
 
228
 
229
  <p><?php _e('Change them one at a time and test to see if they help. Remember that having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></p><br />
230
 
@@ -254,6 +366,7 @@ function mfbfw_options() {
254
  <input type="checkbox" name="mfbfw_jQnoConflict" id="mfbfw_jQnoConflict"<?php if (get_option('mfbfw_jQnoConflict') == 'on') echo ' checked="yes"';?> />
255
  <?php _e('Use jQuery noConflict mode (default: on)', 'mfbfw'); ?>
256
  </label><br />
 
257
  <small><em><?php _e('(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)', 'mfbfw'); ?></em></small><br /><br />
258
 
259
  </fieldset>
@@ -265,7 +378,7 @@ function mfbfw_options() {
265
 
266
 
267
  <input type="hidden" name="action" value="update" />
268
- <input type="hidden" name="page_options" value="mfbfw_autoApply,mfbfw_imageScale,mfbfw_zoomOpacity,mfbfw_zoomSpeedIn,mfbfw_zoomSpeedOut,mfbfw_overlayShow,mfbfw_overlayColor,mfbfw_overlayOpacity,mfbfw_hideOnContentClick,mfbfw_centerOnScroll,mfbfw_nojQuery,mfbfw_jQnoConflict" />
269
 
270
  <p class="submit">
271
  <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','mfbfw'); ?>" />
6
  $options=array(
7
  'autoApply' => get_option('mfbfw_autoApply'),
8
  'imageScale' => get_option('mfbfw_imageScale'),
9
+ 'borderColor' => get_option('mfbfw_borderColor'),
10
+ 'padding' => get_option('mfbfw_padding'),
11
  'zoomOpacity' => get_option('mfbfw_zoomOpacity'),
12
  'zoomSpeedIn' => get_option('mfbfw_zoomSpeedIn'),
13
  'zoomSpeedOut' => get_option('mfbfw_zoomSpeedOut'),
14
  'overlayShow' => get_option('mfbfw_overlayShow'),
15
  'overlayColor' => get_option('mfbfw_overlayColor'),
16
  'overlayOpacity' => get_option('mfbfw_overlayOpacity'),
17
+ 'easing' => get_option('mfbfw_easing'),
18
+ 'easingIn' => get_option('mfbfw_easingIn'),
19
+ 'easingOut' => get_option('mfbfw_easingOut'),
20
+ 'easingChange' => get_option('mfbfw_easingChange'),
21
  'hideOnContentClick' => get_option('mfbfw_hideOnContentClick'),
22
  'centerOnScroll' => get_option('mfbfw_centerOnScroll'),
23
  'nojQuery' => get_option('mfbfw_nojQuery'),
27
  // Make selects data
28
  $overlayArray = array(0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1);
29
  $msArray = array(0,100,200,300,400,500,600,700,800,900,1000,1500);
30
+ $easingArray = array('easeInQuad','easeOutQuad','easeInOutQuad','easeInCubic','easeOutCubic','easeInOutCubic','easeInQuart','easeOutQuart',
31
+ 'easeInOutQuart','easeInQuint','easeOutQuint','easeInOutQuint','easeInSine','easeOutSine','easeInOutSine','easeInExpo',
32
+ 'easeOutExpo','easeInOutExpo','easeInCirc','easeOutCirc','easeInOutCirc','easeInElastic','easeOutElastic','easeInOutElastic',
33
+ 'easeInBack','easeOutBack','easeInOutBack','easeInBounce','easeOutBounce','easeInOutBounce');
34
 
35
  // Start the Options Page
36
  ?>
90
 
91
  <p><?php _e('<a href="http://fancy.klade.lv/home">FancyBox</a> developed by <a href="http://kac.klade.lv/">Janis Skarnelis</a>, ported to WordPress by <a href="http://moskis.net/">Jos&eacute; Pardilla</a>. Licensed under the <a target="_blank" href="http://en.wikipedia.org/wiki/MIT_License">MIT License</a>.', 'mfbfw'); ?></p><br />
92
 
93
+ <p><?php _e('<strong>Note:</strong> Having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></p><br />
94
 
95
+
96
+ <h3><?php _e('Appearance Settings', 'mfbfw'); ?></h3>
97
+
98
+ <p><?php _e('These are the main settings, which let you tweak color, borders and basic animation.', 'mfbfw'); ?></p><br />
99
 
100
  <form method="post" action="options.php" id="options">
101
 
105
  <tbody>
106
 
107
  <tr valign="top">
108
+ <th scope="row"><?php _e('Border Color', 'mfbfw'); ?></th>
109
  <td>
110
  <fieldset>
111
 
112
+ <label for="mfbfw_borderColor">
113
+ <input type="text" name="mfbfw_borderColor" id="mfbfw_borderColor" value="<?php echo get_option('mfbfw_borderColor'); ?>" size="7" maxlength="7" />
114
+ <?php _e('HTML color of the border (default: #BBBBBB)', 'mfbfw'); ?>
115
+ </label><br /><br />
116
+
117
+ </fieldset>
118
+ </td>
119
+ </tr>
120
+
121
+ <tr valign="top">
122
+ <th scope="row"><?php _e('Padding Size', 'mfbfw'); ?></th>
123
+ <td>
124
+ <fieldset>
125
+
126
+ <label for="mfbfw_padding">
127
+ <input type="text" name="mfbfw_padding" id="mfbfw_padding" value="<?php echo get_option('mfbfw_padding'); ?>" size="7" maxlength="7" />
128
+ <?php _e('Padding size in pixels (default: 10)', 'mfbfw'); ?>
129
  </label><br />
130
+
131
+ <small><em><?php _e('(Set <strong>Border Color</strong> to "#000000" and <strong>Padding</strong> to "0" for the classic FancyBox look)', 'mfbfw'); ?></em></small><br /><br />
132
 
133
  </fieldset>
134
  </td>
135
  </tr>
136
 
137
  <tr valign="top">
138
+ <th scope="row"><?php _e('Overlay Options', 'mfbfw'); ?></th>
139
  <td>
140
  <fieldset>
141
 
142
+ <label for="mfbfw_overlayShow">
143
+ <input type="checkbox" name="mfbfw_overlayShow" id="mfbfw_overlayShow"<?php if (get_option('mfbfw_overlayShow') == 'on') echo ' checked="yes"';?> />
144
+ <?php _e('Add overlay (default: on)', 'mfbfw'); ?>
145
+ </label><br /><br />
146
+
147
+ <label for="mfbfw_overlayColor">
148
+ <input type="text" name="mfbfw_overlayColor" id="mfbfw_overlayColor" value="<?php echo get_option('mfbfw_overlayColor'); ?>" size="7" maxlength="7" />
149
+ <?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
150
+ </label><br /><br />
151
+
152
+ <label for="mfbfw_overlayOpacity">
153
+ <select name="mfbfw_overlayOpacity" id="mfbfw_overlayOpacity">
154
+ <?php
155
+ foreach($overlayArray as $key=> $opacity) {
156
+ if($options['overlayOpacity'] != $opacity) $selected = '';
157
+ else $selected = ' selected';
158
+ echo "<option value='$opacity'$selected>$opacity</option>\n";
159
+ }
160
+ ?>
161
+ </select>
162
+ <?php _e('Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)', 'mfbfw'); ?>
163
  </label><br /><br />
164
 
165
  </fieldset>
204
  </td>
205
  </tr>
206
 
207
+ </tbody>
208
+ </table>
209
+
210
+ <h3><?php _e('Behavior Settings', 'mfbfw'); ?></h3>
211
+
212
+ <p><?php _e('Settings in this section may be a bit more tricky to configure, or just recommended to be left on default. If you want fancier animations you can just activate "Easing".', 'mfbfw'); ?></p>
213
+
214
+ <table class="form-table" style="clear:none;">
215
+ <tbody>
216
+
217
  <tr valign="top">
218
+ <th scope="row"><?php _e('Auto Apply', 'mfbfw'); ?></th>
219
  <td>
220
  <fieldset>
221
 
222
+ <label for="mfbfw_autoApply">
223
+ <input type="checkbox" name="mfbfw_autoApply" id="mfbfw_autoApply"<?php if (get_option('mfbfw_autoApply') == 'on') echo ' checked="yes"';?> />
224
+ <?php _e('Apply FancyBox automatically to all links pointing to .jpg, .jpeg, .png or .gif images (default: on)', 'mfbfw'); ?>
225
+ </label><br />
226
 
227
+ <small><em><?php _e('(The link itself must the an image as well, text links will not be affected by this option!)', 'mfbfw'); ?></em></small><br /><br />
 
 
 
228
 
229
+ </fieldset>
230
+ </td>
231
+ </tr>
232
+
233
+ <tr valign="top">
234
+ <th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
235
+ <td>
236
+ <fieldset>
237
+
238
+ <label for="mfbfw_imageScale">
239
+ <input type="checkbox" name="mfbfw_imageScale" id="mfbfw_imageScale"<?php if (get_option('mfbfw_imageScale') == 'on') echo ' checked="yes"';?> />
240
+ <?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
241
  </label><br /><br />
242
 
243
  </fieldset>
244
  </td>
245
  </tr>
246
 
247
+ <tr valign="top">
248
+ <th scope="row"><?php _e('Center on Scroll', 'mfbfw'); ?></th>
249
+ <td>
250
+ <fieldset>
251
+
252
+ <label for="mfbfw_centerOnScroll">
253
+ <input type="checkbox" name="mfbfw_centerOnScroll" id="mfbfw_centerOnScroll"<?php if (get_option('mfbfw_centerOnScroll') == 'on') echo ' checked="yes"';?> />
254
+ <?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
255
+ </label><br /><br /><br />
256
+
257
+ </fieldset>
258
+ </td>
259
+ </tr>
260
+
261
  <tr valign="top">
262
  <th scope="row"><?php _e('Close on Click', 'mfbfw'); ?></th>
263
  <td>
267
  <input type="checkbox" name="mfbfw_hideOnContentClick" id="mfbfw_hideOnContentClick"<?php if (get_option('mfbfw_hideOnContentClick') == 'on') echo ' checked="yes"';?> />
268
  <?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
269
  </label><br />
270
+
271
  <small><em><?php _e('(This does NOT conflict with the previous and next image links on FancyBox galleries.)', 'mfbfw'); ?></em></small><br /><br />
272
 
273
  </fieldset>
275
  </tr>
276
 
277
  <tr valign="top">
278
+ <th scope="row"><?php _e('Easing', 'mfbfw'); ?></th>
279
  <td>
280
  <fieldset>
281
 
282
+ <label for="mfbfw_easing">
283
+ <input type="checkbox" name="mfbfw_easing" id="mfbfw_easing"<?php if (get_option('mfbfw_easing') == 'on') echo ' checked="yes"';?> />
284
+ <?php _e('Activate easing (default: off)', 'mfbfw'); ?>
285
+ </label><br /><br />
286
+
287
+ <label for="mfbfw_easingIn">
288
+ <select name="mfbfw_easingIn" id="mfbfw_easingIn">
289
+ <?php
290
+ foreach($easingArray as $key=> $easingIn) {
291
+ if($options['easingIn'] != $easingIn) $selected = '';
292
+ else $selected = ' selected';
293
+ echo "<option value='$easingIn'$selected>$easingIn</option>\n";
294
+ }
295
+ ?>
296
+ </select>
297
+ <?php _e('Easing method when opening FancyBox. (default: easeOutBack)', 'mfbfw'); ?>
298
+ </label><br /><br />
299
+
300
+ <label for="mfbfw_easingOut">
301
+ <select name="mfbfw_easingOut" id="mfbfw_easingOut">
302
+ <?php
303
+ foreach($easingArray as $key=> $easingOut) {
304
+ if($options['easingOut'] != $easingOut) $selected = '';
305
+ else $selected = ' selected';
306
+ echo "<option value='$easingOut'$selected>$easingOut</option>\n";
307
+ }
308
+ ?>
309
+ </select>
310
+ <?php _e('Easing method when closing FancyBox. (default: easeInBack)', 'mfbfw'); ?>
311
+ </label><br /><br />
312
+
313
+ <label for="mfbfw_easingChange">
314
+ <select name="mfbfw_easingChange" id="mfbfw_easingChange">
315
+ <?php
316
+ foreach($easingArray as $key=> $easingChange) {
317
+ if($options['easingChange'] != $easingChange) $selected = '';
318
+ else $selected = ' selected';
319
+ echo "<option value='$easingChange'$selected>$easingChange</option>\n";
320
+ }
321
+ ?>
322
+ </select>
323
+ <?php _e('Easing method when navigating through gallery items. (default: easeInOutBack)', 'mfbfw'); ?>
324
+ </label><br />
325
+
326
+ <small><em><?php _e('(There are 30 different easing methods, the first ones are the most boring. <a href="http://commadot.com/jquery/easing.php" target="_blank">Test them here</a> clicking on the boxes)', 'mfbfw'); ?></em></small><br /><br />
327
 
328
  </fieldset>
329
  </td>
334
 
335
  <h3><?php _e('Troubleshooting Settings', 'mfbfw'); ?></h3>
336
 
337
+ <p><?php _e('If the plugin doesn\'t seem to work, first you should check for other plugins that may be conflicting with this one, especially other Lightbox, Slimbox, etc. Make sure all your plugins and WordPress itself are up to date (this plugin has only been tested in WordPress 2.7 and above).', 'mfbfw'); ?></p>
338
+
339
+ <p><?php _e('<span style="color:red;">The following settings should only be changed if you are having problems with the plugin!</span>', 'mfbfw'); ?></p>
340
 
341
  <p><?php _e('Change them one at a time and test to see if they help. Remember that having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></p><br />
342
 
366
  <input type="checkbox" name="mfbfw_jQnoConflict" id="mfbfw_jQnoConflict"<?php if (get_option('mfbfw_jQnoConflict') == 'on') echo ' checked="yes"';?> />
367
  <?php _e('Use jQuery noConflict mode (default: on)', 'mfbfw'); ?>
368
  </label><br />
369
+
370
  <small><em><?php _e('(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)', 'mfbfw'); ?></em></small><br /><br />
371
 
372
  </fieldset>
378
 
379
 
380
  <input type="hidden" name="action" value="update" />
381
+ <input type="hidden" name="page_options" value="mfbfw_autoApply,mfbfw_imageScale,mfbfw_borderColor,mfbfw_padding,mfbfw_zoomOpacity,mfbfw_zoomSpeedIn,mfbfw_zoomSpeedOut,mfbfw_overlayShow,mfbfw_overlayColor,mfbfw_overlayOpacity,mfbfw_easing,mfbfw_easingIn,mfbfw_easingOut,mfbfw_easingChange,mfbfw_hideOnContentClick,mfbfw_centerOnScroll,mfbfw_nojQuery,mfbfw_jQnoConflict" />
382
 
383
  <p class="submit">
384
  <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','mfbfw'); ?>" />
fancybox.css CHANGED
@@ -2,6 +2,10 @@ html, body {
2
  height: 100%;
3
  }
4
 
 
 
 
 
5
  div#fancy_overlay {
6
  position: fixed;
7
  top: 0;
@@ -18,6 +22,10 @@ div#fancy_overlay {
18
  height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
19
  }
20
 
 
 
 
 
21
  div#fancy_loading {
22
  position: absolute;
23
  height: 40px;
@@ -57,7 +65,7 @@ div#fancy_outer {
57
  top: 0;
58
  left: 0;
59
  z-index: 90;
60
- padding: 18px 18px 32px 18px;
61
  margin: 0;
62
  overflow: hidden;
63
  background: transparent;
@@ -68,16 +76,14 @@ div#fancy_inner {
68
  position: relative;
69
  width:100%;
70
  height:100%;
71
- border: 1px solid #444;
72
  background: #FFF;
73
  }
74
 
75
  div#fancy_content {
76
- position: relative;
77
  margin: 0;
78
  z-index: 100;
79
- width: 100%;
80
- height: 100%;
81
  }
82
 
83
  div#fancy_div {
@@ -120,16 +126,9 @@ div#fancy_close {
120
  }
121
 
122
  #fancy_ajax {
123
- position: absolute;
 
124
  overflow: auto;
125
- top: 15px;
126
- left: 15px;
127
- bottom: 15px;
128
- right: 15px;
129
- }
130
-
131
- * html div#fancy_ajax {
132
- height: expression((this.parentNode.clientHeight - 30) + "px");
133
  }
134
 
135
  a#fancy_left, a#fancy_right {
@@ -279,7 +278,7 @@ div.fancy_bg_nw {
279
 
280
  div#fancy_title {
281
  position: absolute;
282
- bottom: -32px;
283
  left: 0;
284
  width: 100%;
285
  z-index: 100;
2
  height: 100%;
3
  }
4
 
5
+ div#fancy_wrap a {
6
+ outline:none;
7
+ }
8
+
9
  div#fancy_overlay {
10
  position: fixed;
11
  top: 0;
22
  height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
23
  }
24
 
25
+ div#fancy_wrap {
26
+ text-align: left;
27
+ }
28
+
29
  div#fancy_loading {
30
  position: absolute;
31
  height: 40px;
65
  top: 0;
66
  left: 0;
67
  z-index: 90;
68
+ padding: 18px 18px 33px 18px;
69
  margin: 0;
70
  overflow: hidden;
71
  background: transparent;
76
  position: relative;
77
  width:100%;
78
  height:100%;
79
+ border: 1px solid #BBB;
80
  background: #FFF;
81
  }
82
 
83
  div#fancy_content {
 
84
  margin: 0;
85
  z-index: 100;
86
+ position: absolute;
 
87
  }
88
 
89
  div#fancy_div {
126
  }
127
 
128
  #fancy_ajax {
129
+ width: 100%;
130
+ height: 100%;
131
  overflow: auto;
 
 
 
 
 
 
 
 
132
  }
133
 
134
  a#fancy_left, a#fancy_right {
278
 
279
  div#fancy_title {
280
  position: absolute;
281
+ bottom: -33px;
282
  left: 0;
283
  width: 100%;
284
  z-index: 100;
fancybox.php CHANGED
@@ -3,15 +3,17 @@
3
  Plugin Name: FancyBox for WordPress
4
  Plugin URI: http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/
5
  Description: Integrates <a href="http://fancy.klade.lv/">FancyBox</a> by <a href="http://klade.lv/">Janis Skarnelis</a> into WordPress. All images on a page are treated as a gallery allowing visitors to use Next and Previous buttons on the FancyBox frontend.
6
- Version: 2.1.1
7
  Author: Jose Pardilla
8
  Author URI: http://moskis.net/
9
  */
10
 
11
  // If no options set, load defaults
12
- if (get_option('mfbfw_active_version') !== '2.1.1') {
13
- update_option('mfbfw_active_version', '2.1.1');
14
  add_option('mfbfw_autoApply', 'on');
 
 
15
  add_option('mfbfw_imageScale', 'on');
16
  add_option('mfbfw_zoomOpacity', 'on');
17
  add_option('mfbfw_zoomSpeedIn', '500');
@@ -19,6 +21,10 @@ if (get_option('mfbfw_active_version') !== '2.1.1') {
19
  add_option('mfbfw_overlayShow', 'on');
20
  add_option('mfbfw_overlayColor', '#666666');
21
  add_option('mfbfw_overlayOpacity', '0.3');
 
 
 
 
22
  add_option('mfbfw_hideOnContentClick', '');
23
  add_option('mfbfw_centerOnScroll', 'on');
24
  add_option('mfbfw_jQnoConflict', 'on');
@@ -27,13 +33,19 @@ if (get_option('mfbfw_active_version') !== '2.1.1') {
27
 
28
  function mfbfw_init() {
29
 
30
- if (get_option('mfbfw_nojQuery') == 'on') {
31
 
32
- wp_enqueue_script('fancybox', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.fancybox-1.2.0.pack.js'); // Load fancybox without jQuery (for troubleshooting)
33
 
34
  } else {
35
 
36
- wp_enqueue_script('fancybox', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.fancybox-1.2.0.pack.js', array('jquery'), '1.3.2'); // Load fancybox with jQuery
 
 
 
 
 
 
37
 
38
  }
39
 
@@ -43,7 +55,15 @@ function mfbfw_init() {
43
  function mfbfw_css() {
44
 
45
  echo "\n"."<!-- Fancybox for WordPress -->"."\n".'<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/fancybox-for-wordpress/fancybox.css" type="text/css" media="screen" />'."\n";
46
- ?><style type="text/css">div#fancy_overlay {background-color:<?php echo get_option('mfbfw_overlayColor'); ?>}</style><?php
 
 
 
 
 
 
 
 
47
 
48
  }
49
 
@@ -69,13 +89,19 @@ function mfbfw_do() { ?>
69
  // This applies fancybox to the links we have just edited and applies the options set by the user on the admin panel.
70
  jQuery("a[rel='fancybox']").fancybox({
71
  'imageScale': <?php if (get_option('mfbfw_imageScale') == 'on') { echo "true"; } else { echo "false"; } ?>,
 
72
  'zoomOpacity': <?php if (get_option('mfbfw_zoomOpacity') == 'on') { echo "true"; } else { echo "false"; } ?>,
73
  'zoomSpeedIn': <?php echo get_option('mfbfw_zoomSpeedIn'); ?>,
74
  'zoomSpeedOut': <?php echo get_option('mfbfw_zoomSpeedOut'); ?>,
75
  'overlayShow': <?php if (get_option('mfbfw_overlayShow') == 'on') { echo "true"; } else { echo "false"; } ?>,
76
  'overlayOpacity': <?php echo get_option('mfbfw_overlayOpacity'); ?>,
77
  'hideOnContentClick': <?php if (get_option('mfbfw_hideOnContentClick') == 'on') { echo "true"; } else { echo "false"; } ?>,
78
- 'centerOnScroll': <?php if (get_option('mfbfw_centerOnScroll') == 'on') { echo "true"; } else { echo "false"; } ?>
 
 
 
 
 
79
  });
80
 
81
  });
3
  Plugin Name: FancyBox for WordPress
4
  Plugin URI: http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/
5
  Description: Integrates <a href="http://fancy.klade.lv/">FancyBox</a> by <a href="http://klade.lv/">Janis Skarnelis</a> into WordPress. All images on a page are treated as a gallery allowing visitors to use Next and Previous buttons on the FancyBox frontend.
6
+ Version: 2.2
7
  Author: Jose Pardilla
8
  Author URI: http://moskis.net/
9
  */
10
 
11
  // If no options set, load defaults
12
+ if (get_option('mfbfw_active_version') !== '2.2') {
13
+ update_option('mfbfw_active_version', '2.2');
14
  add_option('mfbfw_autoApply', 'on');
15
+ add_option('mfbfw_borderColor', '#BBBBBB');
16
+ add_option('mfbfw_padding', '10');
17
  add_option('mfbfw_imageScale', 'on');
18
  add_option('mfbfw_zoomOpacity', 'on');
19
  add_option('mfbfw_zoomSpeedIn', '500');
21
  add_option('mfbfw_overlayShow', 'on');
22
  add_option('mfbfw_overlayColor', '#666666');
23
  add_option('mfbfw_overlayOpacity', '0.3');
24
+ add_option('mfbfw_easing', '');
25
+ add_option('mfbfw_easingIn', 'easeOutBack');
26
+ add_option('mfbfw_easingOut', 'easeInBack');
27
+ add_option('mfbfw_easingChange', 'easeInOutQuart');
28
  add_option('mfbfw_hideOnContentClick', '');
29
  add_option('mfbfw_centerOnScroll', 'on');
30
  add_option('mfbfw_jQnoConflict', 'on');
33
 
34
  function mfbfw_init() {
35
 
36
+ if (get_option('mfbfw_nojQuery') == 'on') { // default off
37
 
38
+ wp_enqueue_script('fancybox', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.fancybox-1.2.1.pack.js'); // Load fancybox without jQuery (for troubleshooting)
39
 
40
  } else {
41
 
42
+ wp_enqueue_script('fancybox', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.fancybox-1.2.1.pack.js', array('jquery'), '1.3.2'); // Load fancybox with jQuery
43
+
44
+ }
45
+
46
+ if (get_option('mfbfw_easing') == 'on') {
47
+
48
+ wp_enqueue_script('jqueryeasing', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.easing.1.3.js', array('jquery'), '1.3.2'); // Load easing javascript file if required
49
 
50
  }
51
 
55
  function mfbfw_css() {
56
 
57
  echo "\n"."<!-- Fancybox for WordPress -->"."\n".'<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/fancybox-for-wordpress/fancybox.css" type="text/css" media="screen" />'."\n";
58
+
59
+ ?>
60
+
61
+ <style type="text/css">
62
+ div#fancy_overlay {background-color:<?php echo get_option('mfbfw_overlayColor'); ?>}
63
+ div#fancy_inner {border-color:<?php echo get_option('mfbfw_borderColor'); ?>}
64
+ </style>
65
+
66
+ <?php
67
 
68
  }
69
 
89
  // This applies fancybox to the links we have just edited and applies the options set by the user on the admin panel.
90
  jQuery("a[rel='fancybox']").fancybox({
91
  'imageScale': <?php if (get_option('mfbfw_imageScale') == 'on') { echo "true"; } else { echo "false"; } ?>,
92
+ 'padding': <?php echo get_option('mfbfw_padding'); ?>,
93
  'zoomOpacity': <?php if (get_option('mfbfw_zoomOpacity') == 'on') { echo "true"; } else { echo "false"; } ?>,
94
  'zoomSpeedIn': <?php echo get_option('mfbfw_zoomSpeedIn'); ?>,
95
  'zoomSpeedOut': <?php echo get_option('mfbfw_zoomSpeedOut'); ?>,
96
  'overlayShow': <?php if (get_option('mfbfw_overlayShow') == 'on') { echo "true"; } else { echo "false"; } ?>,
97
  'overlayOpacity': <?php echo get_option('mfbfw_overlayOpacity'); ?>,
98
  'hideOnContentClick': <?php if (get_option('mfbfw_hideOnContentClick') == 'on') { echo "true"; } else { echo "false"; } ?>,
99
+ 'centerOnScroll': <?php if (get_option('mfbfw_centerOnScroll') == 'on') { echo "true"; } else { echo "false"; } ?><?php if (get_option('mfbfw_easing') == 'on') { ?>,
100
+ 'easingIn': <?php echo '"' . get_option('mfbfw_easingIn') . '"'; ?>,
101
+ 'easingOut': <?php echo '"' . get_option('mfbfw_easingOut') . '"'; ?>,
102
+ 'easingChange': <?php echo '"' . get_option('mfbfw_easingChange') . '"'; ?>
103
+ <?php } ?>
104
+
105
  });
106
 
107
  });
jquery.easing.1.3.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.fancybox-1.2.0.pack.js DELETED
@@ -1,9 +0,0 @@
1
- /*
2
- * FancyBox - simple jQuery plugin for fancy image zooming
3
- * Examples and documentation at: http://fancy.klade.lv/
4
- * Version: 1.2.0 (27/02/2009)
5
- * Copyright (c) 2009 Janis Skarnelis
6
- * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License
7
- * Requires: jQuery v1.3+
8
- */
9
- eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(';(7($){$.9.29=7(){v G.2u(7(){c 1i=$(G).o(\'2C\');6(1i.W(/^3d\\(["\']?(.*\\.2i)["\']?\\)$/i)){1i=3f.$1;$(G).o({\'2C\':\'3h\',\'3w\':"3v:3r.3u.3L(3M=D, 41="+($(G).o(\'3Z\')==\'23-3W\'?\'3T\':\'35\')+", O=\'"+1i+"\')"}).2u(7(){c 10=$(G).o(\'10\');6(10!=\'2s\'&&10!=\'2h\')$(G).o(\'10\',\'2h\')})}})};c 1W,4,L=C,q=1r 1s,1v,1p=1,1u=/\\.(31|2N|2i|30|3j)(.*)?$/i;c 1c=($.2g.3m&&22($.2g.3a.38(0,1))<8);$.9.b=7(V){V=$.3k({},$.9.b.26,V);c S=G;7 24(){1W=G;4=V;2f();v C};7 2f(){6(L)v;6($.2E(4.1U)){4.1U()}4.l=[];4.f=0;6(V.l.Q>0){4.l=V.l}s{c 1h={};3c(c i=0;i<S.Q;i++){1h={d:S[i].d,19:S[i].19};6($(S[i]).2d("1G:2e").Q){1h.11=$(S[i]).2d("1G:2e")}4.l.3g(1h)}}3o(4.l[4.f].d!=1W.d){4.f++}6(4.1Y){6(1c){$(\'1L, 1M, 1O\').o(\'1N\',\'3l\')}$("#1z").o(\'1V\',4.2c).I()}X()};7 X(){$("#16, #1g, #Y, #y").U();c d=4.l[4.f].d;6(d.W(/#/)){c 1j=1m.3i.d.34(\'#\')[0];1j=d.3p(1j,\'\');17(\'<5 j="2Q">\'+$(1j).n()+\'</5>\',4.1w,4.1x)}s 6(d.W(1u)){q=1r 1s;q.O=d;6(q.2P){1P()}s{$.9.b.2G();$(q).F().Z(\'2O\',7(){$(".z").U();1P()})}}s 6(d.W("15")){17(\'<15 j="2B" 2L="$.9.b.2n()" 2M="2S\'+t.N(t.33()*2U)+\'" 1Z="0" 32="0" O="\'+d+\'"></15>\',4.1w,4.1x)}s{$.2Z(d,7(2j){17(\'<5 j="2Y">\'+2j+\'</5>\',4.1w,4.1x)})}};7 1P(){6(4.28){c w=$.9.b.1a();c r=t.1Q(t.1Q(w[0]-36,q.g)/q.g,t.1Q(w[1]-47,q.h)/q.h);c g=t.N(r*q.g);c h=t.N(r*q.h)}s{c g=q.g;c h=q.h}17(\'<1G 3U="" j="3V" O="\'+q.O+\'" />\',g,h);2k()};7 2k(){6((4.l.Q-1)>4.f){c d=4.l[4.f+1].d;6(d.W(1u)){1t=1r 1s();1t.O=d}}6(4.f>0){c d=4.l[4.f-1].d;6(d.W(1u)){1t=1r 1s();1t.O=d}}};7 17(1f,g,h){c w=$.9.b.1a();c 2b=(g+36)>w[0]?w[2]:(w[2]+t.N((w[0]-g-36)/2));c 2l=(h+1o)>w[1]?w[3]:(w[3]+t.N((w[1]-h-1o)/2));c H={\'E\':2b,\'A\':2l,\'g\':g+\'K\',\'h\':h+\'K\'};6($("#m").1H(":13")){6(g==$("#u").g()&&h==$("#u").h()){$("#u").1R("1b",7(){$("#u").1l().1q($(1f)).1K("1b",7(){1e()})})}s{$("#u").1R("1b",7(){$("#u").1l();$("#m").1S(H,4.2m,4.2p,7(){$("#u").1q($(1f)).1K("1b",7(){1e()})})})}}s{6(4.1F>0&&4.l[4.f].11!==1B){$("#u").1l().1q($(1f));c J=4.l[4.f].11;c T=$.9.b.1D(J);$("#m").o({\'E\':(T.E-18)+\'K\',\'A\':(T.A-18)+\'K\',\'g\':$(J).g(),\'h\':$(J).h()});L=D;6(4.1C){H.1V=\'I\'}$("#m").1S(H,4.1F,4.2o,7(){1e()})}s{$("#u").1l().1q($(1f));L=D;$("#m").o(H).1K("43",7(){1e()})}}};7 21(){6(4.f!=0){$("#1g, #2v").F().Z("P",7(e){e.2r();4.f--;X();v C});$("#1g").I()}6(4.f!=(4.l.Q-1)){$("#16, #2z").F().Z("P",7(e){e.2r();4.f++;X();v C});$("#16").I()}};7 1e(){21();$(M).1n(7(e){6(e.1I==27){$.9.b.14();$(M).F("1n")}s 6(e.1I==37&&4.f!=0){4.f--;X();$(M).F("1n")}s 6(e.1I==39&&4.f!=(4.l.Q-1)){4.f++;X();$(M).F("1n")}});6(4.2J){$(1m).Z("3y 3z",$.9.b.2a)}s{$("5#m").o("10","2s")}6(4.2K){$("#1A").P($.9.b.14)}s{$("#1A").F()}$("#Y").I();6(4.l[4.f].19!==1B&&4.l[4.f].19.Q>0){$(\'#y 5\').n(4.l[4.f].19);$(\'#y\').I()}6(4.1Y&&1c){$(\'#u\').3t(\'1L, 1M, 1O\').o(\'1N\',\'13\')}L=C};v G.F(\'P\').P(24)};$.9.b.2a=7(){c k=$.9.b.1a();$("#m").o(\'E\',(($("#m").g()+36)>k[0]?k[2]:k[2]+t.N((k[0]-$("#m").g()-36)/2)));$("#m").o(\'A\',(($("#m").h()+1o)>k[1]?k[3]:k[3]+t.N((k[1]-$("#m").h()-1o)/2)))};$.9.b.1d=7(x,20){v 22($.3I(x.3J?x[0]:x,20,D))||0};$.9.b.1D=7(x){c k=x.3K();k.A+=$.9.b.1d(x,\'3H\');k.A+=$.9.b.1d(x,\'3G\');k.E+=$.9.b.1d(x,\'3C\');k.E+=$.9.b.1d(x,\'3F\');v k};$.9.b.2n=7(){$(".z").U();$("#2B").I()};$.9.b.1a=7(){v[$(1m).g(),$(1m).h(),$(M).3B(),$(M).3A()]};$.9.b.2A=7(){6(!$("#z").1H(\':13\')){2x(1v);v}$("#z > 5").o(\'A\',(1p*-40)+\'K\');1p=(1p+1)%12};$.9.b.2G=7(){2x(1v);c k=$.9.b.1a();$("#z").o({\'E\':((k[0]-40)/2+k[2]),\'A\':((k[1]-40)/2+k[3])}).I();$("#z").Z(\'P\',$.9.b.14);1v=3Y($.9.b.2A,42)};$.9.b.14=7(){$(q).F();$("#Y, .z, #1g, #16, #y").U();1k=7(){$("#1z, #m").U();6(1c){$(\'1L, 1M, 1O\').o(\'1N\',\'13\')}6($.2E(4.1X)){4.1X()}L=C};6($("#m").1H(":13")!==C){L=D;6(4.1J>0&&4.l[4.f].11!==1B){c J=4.l[4.f].11;c T=$.9.b.1D(J);c H={\'E\':(T.E-18)+\'K\',\'A\':(T.A-18)+\'K\',\'g\':$(J).g(),\'h\':$(J).h()};6(4.1C){H.1V=\'U\'}$("#m").1S(H,4.1J,4.2q,1k)}s{$("#m").3b().1R("1b",1k)}}s{1k()}v C};$.9.b.2D=7(){c n=\'\';n+=\'<5 j="1z"></5>\';n+=\'<5 j="1A">\';n+=\'<5 p="z" j="z"><5></5></5>\';n+=\'<5 j="m">\';n+=\'<5 j="2I">\';n+=\'<5 j="Y"></5>\';n+=\'<5 j="B"><5 p="B 3N"></5><5 p="B 3R"></5><5 p="B 3s"></5><5 p="B 2X"></5><5 p="B 2W"></5><5 p="B 2T"></5><5 p="B 3n"></5><5 p="B 3e"></5></5>\';n+=\'<a d="2t:;" j="1g"><1y p="1T" j="2v"></1y></a><a d="2t:;" j="16"><1y p="1T" j="2z"></1y></a>\';n+=\'<5 j="u"></5>\';n+=\'<5 j="y"></5>\';n+=\'</5>\';n+=\'</5>\';n+=\'</5>\';$(n).2y("3S");$(\'<2H 3O="0" 3P="0" 3Q="0"><2F><R p="y" j="3X"></R><R p="y" j="45"><5></5></R><R p="y" j="46"></R></2F></2H>\').2y(\'#y\');6(1c){$("#2I").3E(\'<15 p="25" 3D="23" 1Z="0"></15>\');$("#Y, .B, .y, .1T").29()}$("#1z, #25, #z, #Y").Z("P",$.9.b.14)};$.9.b.26={28:D,1C:C,1F:0,1J:0,2m:44,2o:\'1E\',2q:\'1E\',2p:\'1E\',1w:3q,1x:2R,1Y:D,2c:0.3,2K:D,2J:D,l:[],1U:2w,1X:2w};$(M).2V(7(){$.9.b.2D()})})(3x);',62,256,'||||opts|div|if|function||fn||fancybox|var|href||itemCurrent|width|height||id|pos|itemArray|fancy_outer|html|css|class|imagePreloader||else|Math|fancy_content|return||el|fancy_title|fancy_loading|top|fancy_bg|false|true|left|unbind|this|itemOpts|show|orig_item|px|busy|document|round|src|click|length|td|matchedGroup|orig_pos|hide|settings|match|_change_item|fancy_close|bind|position|orig||visible|close|iframe|fancy_right|_set_content||title|getViewport|fast|isIE|getNumeric|_finish|value|fancy_left|item|image|target|__cleanup|empty|window|keydown|50|loadingFrame|append|new|Image|objNext|imageRegExp|loadingTimer|frameWidth|frameHeight|span|fancy_overlay|fancy_wrap|undefined|zoomOpacity|getPosition|swing|zoomSpeedIn|img|is|keyCode|zoomSpeedOut|fadeIn|embed|object|visibility|select|_proceed_image|min|fadeOut|animate|fancy_ico|callbackOnStart|opacity|elem|callbackOnClose|overlayShow|frameborder|prop|_set_navigation|parseInt|no|_initialize|fancy_bigIframe|defaults||imageScale|fixPNG|scrollBox|itemLeft|overlayOpacity|children|first|_start|browser|relative|png|data|_preload_neighbor_images|itemTop|zoomSpeedChange|showIframe|easingIn|easingChange|easingOut|stopPropagation|absolute|javascript|each|fancy_left_ico|null|clearInterval|appendTo|fancy_right_ico|animateLoading|fancy_frame|backgroundImage|build|isFunction|tr|showLoading|table|fancy_inner|centerOnScroll|hideOnContentClick|onload|name|gif|load|complete|fancy_div|355|fancy_iframe|fancy_bg_sw|1000|ready|fancy_bg_s|fancy_bg_se|fancy_ajax|get|bmp|jpg|hspace|random|split|scale|||substr||version|stop|for|url|fancy_bg_nw|RegExp|push|none|location|jpeg|extend|hidden|msie|fancy_bg_w|while|replace|425|DXImageTransform|fancy_bg_e|find|Microsoft|progid|filter|jQuery|resize|scroll|scrollTop|scrollLeft|paddingLeft|scrolling|prepend|borderLeftWidth|borderTopWidth|paddingTop|curCSS|jquery|offset|AlphaImageLoader|enabled|fancy_bg_n|cellspacing|cellpadding|border|fancy_bg_ne|body|crop|alt|fancy_img|repeat|fancy_title_left|setInterval|backgroundRepeat||sizingMethod|66|normal|300|fancy_title_main|fancy_title_right|60'.split('|'),0,{}))
 
 
 
 
 
 
 
 
 
jquery.fancybox-1.2.1.pack.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * FancyBox - simple and fancy jQuery plugin
3
+ * Examples and documentation at: http://fancy.klade.lv/
4
+ * Version: 1.2.1 (13/03/2009)
5
+ * Copyright (c) 2009 Janis Skarnelis
6
+ * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License
7
+ * Requires: jQuery v1.3+
8
+ */
9
+ eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(';(7($){$.b.2Q=7(){u B.2t(7(){9 1J=$(B).n(\'2Z\');5(1J.1c(/^3w\\(["\']?(.*\\.2p)["\']?\\)$/i)){1J=3t.$1;$(B).n({\'2Z\':\'45\',\'2o\':"3W:3R.4m.4d(3h=F, 3T="+($(B).n(\'41\')==\'2J-3Z\'?\'4c\':\'3N\')+", Q=\'"+1J+"\')"}).2t(7(){9 1b=$(B).n(\'1b\');5(1b!=\'2e\'&&1b!=\'2n\')$(B).n(\'1b\',\'2n\')})}})};9 A,4,16=D,s=1t 1o,1w,1v=1,1y=/\\.(3A|3Y|2p|3c|3d)(.*)?$/i;9 P=($.2q.3K&&2f($.2q.3z.2k(0,1))<8);$.b.c=7(Y){Y=$.3x({},$.b.c.2R,Y);9 2s=B;7 2h(){A=B;4=Y;2r();u D};7 2r(){5(16)u;5($.1O(4.2c)){4.2c()}4.j=[];4.h=0;5(Y.j.N>0){4.j=Y.j}t{9 O={};5(!A.1H||A.1H==\'\'){9 O={d:A.d,X:A.X};5($(A).1G("1m:1D").N){O.1a=$(A).1G("1m:1D")}4.j.2j(O)}t{9 Z=$(2s).2o("a[1H="+A.1H+"]");9 O={};3C(9 i=0;i<Z.N;i++){O={d:Z[i].d,X:Z[i].X};5($(Z[i]).1G("1m:1D").N){O.1a=$(Z[i]).1G("1m:1D")}4.j.2j(O)}3F(4.j[4.h].d!=A.d){4.h++}}}5(4.23){5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'3s\')}$("#1i").n(\'25\',4.2U).J()}1d()};7 1d(){$("#1f, #1e, #V, #G").S();9 d=4.j[4.h].d;5(d.1c(/#/)){9 U=11.3r.d.3f(\'#\')[0];U=d.3g(U,\'\');U=U.2k(U.2l(\'#\'));1k(\'<6 l="3e">\'+$(U).o()+\'</6>\',4.1I,4.1x)}t 5(d.1c(1y)){s=1t 1o;s.Q=d;5(s.3a){1K()}t{$.b.c.34();$(s).x().14(\'3b\',7(){$(".I").S();1K()})}}t 5(d.1c("17")||A.3j.2l("17")>=0){1k(\'<17 l="35" 3q="$.b.c.38()" 3o="3n\'+C.T(C.3l()*3m)+\'" 2K="0" 3E="0" Q="\'+d+\'"></17>\',4.1I,4.1x)}t{$.4p(d,7(2m){1k(\'<6 l="3L">\'+2m+\'</6>\',4.1I,4.1x)})}};7 1K(){5(4.30){9 w=$.b.c.1n();9 r=C.1M(C.1M(w[0]-36,s.g)/s.g,C.1M(w[1]-4b,s.f)/s.f);9 g=C.T(r*s.g);9 f=C.T(r*s.f)}t{9 g=s.g;9 f=s.f}1k(\'<1m 48="" l="49" Q="\'+s.Q+\'" />\',g,f)};7 2F(){5((4.j.N-1)>4.h){9 d=4.j[4.h+1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}5(4.h>0){9 d=4.j[4.h-1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}};7 1k(1j,g,f){16=F;9 L=4.2Y;5(P){$("#q")[0].1E.2u("f");$("#q")[0].1E.2u("g")}5(L>0){g+=L*2;f+=L*2;$("#q").n({\'v\':L+\'z\',\'2E\':L+\'z\',\'2i\':L+\'z\',\'y\':L+\'z\',\'g\':\'2B\',\'f\':\'2B\'});5(P){$("#q")[0].1E.2C(\'f\',\'(B.2D.4j - 20)\');$("#q")[0].1E.2C(\'g\',\'(B.2D.3S - 20)\')}}t{$("#q").n({\'v\':0,\'2E\':0,\'2i\':0,\'y\':0,\'g\':\'2z%\',\'f\':\'2z%\'})}5($("#k").1u(":19")&&g==$("#k").g()&&f==$("#k").f()){$("#q").1Z("2N",7(){$("#q").1C().1F($(1j)).21("1s",7(){1g()})});u}9 w=$.b.c.1n();9 2v=(g+36)>w[0]?w[2]:(w[2]+C.T((w[0]-g-36)/2));9 2w=(f+1z)>w[1]?w[3]:(w[3]+C.T((w[1]-f-1z)/2));9 K={\'y\':2v,\'v\':2w,\'g\':g+\'z\',\'f\':f+\'z\'};5($("#k").1u(":19")){$("#q").1Z("1s",7(){$("#q").1C();$("#k").24(K,4.2X,4.2T,7(){$("#q").1F($(1j)).21("1s",7(){1g()})})})}t{5(4.1W>0&&4.j[4.h].1a!==1L){$("#q").1C().1F($(1j));9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);$("#k").n({\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()});5(4.1X){K.25=\'J\'}$("#k").24(K,4.1W,4.2W,7(){1g()})}t{$("#q").S().1C().1F($(1j)).J();$("#k").n(K).21("1s",7(){1g()})}}};7 2y(){5(4.h!=0){$("#1e, #2O").x().14("R",7(e){e.2x();4.h--;1d();u D});$("#1e").J()}5(4.h!=(4.j.N-1)){$("#1f, #2M").x().14("R",7(e){e.2x();4.h++;1d();u D});$("#1f").J()}};7 1g(){2y();2F();$(W).1B(7(e){5(e.29==27){$.b.c.1l();$(W).x("1B")}t 5(e.29==37&&4.h!=0){4.h--;1d();$(W).x("1B")}t 5(e.29==39&&4.h!=(4.j.N-1)){4.h++;1d();$(W).x("1B")}});5(4.1r){$(11).14("1N 1T",$.b.c.2g)}t{$("6#k").n("1b","2e")}5(4.2b){$("#22").R($.b.c.1l)}$("#1i, #V").14("R",$.b.c.1l);$("#V").J();5(4.j[4.h].X!==1L&&4.j[4.h].X.N>0){$(\'#G 6\').o(4.j[4.h].X);$(\'#G\').J()}5(4.23&&P){$(\'1U, 1Q, 1P\',$(\'#q\')).n(\'1S\',\'19\')}5($.1O(4.2a)){4.2a()}16=D};u B.x(\'R\').R(2h)};$.b.c.2g=7(){9 m=$.b.c.1n();$("#k").n(\'y\',(($("#k").g()+36)>m[0]?m[2]:m[2]+C.T((m[0]-$("#k").g()-36)/2)));$("#k").n(\'v\',(($("#k").f()+1z)>m[1]?m[3]:m[3]+C.T((m[1]-$("#k").f()-1z)/2)))};$.b.c.1h=7(H,2A){u 2f($.3I(H.3u?H[0]:H,2A,F))||0};$.b.c.1R=7(H){9 m=H.4g();m.v+=$.b.c.1h(H,\'3k\');m.v+=$.b.c.1h(H,\'3J\');m.y+=$.b.c.1h(H,\'3H\');m.y+=$.b.c.1h(H,\'3D\');u m};$.b.c.38=7(){$(".I").S();$("#35").J()};$.b.c.1n=7(){u[$(11).g(),$(11).f(),$(W).3i(),$(W).3p()]};$.b.c.2G=7(){5(!$("#I").1u(\':19\')){33(1w);u}$("#I > 6").n(\'v\',(1v*-40)+\'z\');1v=(1v+1)%12};$.b.c.34=7(){33(1w);9 m=$.b.c.1n();$("#I").n({\'y\':((m[0]-40)/2+m[2]),\'v\':((m[1]-40)/2+m[3])}).J();$("#I").14(\'R\',$.b.c.1l);1w=3Q($.b.c.2G,3X)};$.b.c.1l=7(){16=F;$(s).x();$("#1i, #V").x();5(4.2b){$("#22").x()}$("#V, .I, #1e, #1f, #G").S();5(4.1r){$(11).x("1N 1T")}1q=7(){$("#1i, #k").S();5(4.1r){$(11).x("1N 1T")}5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'19\')}5($.1O(4.1V)){4.1V()}16=D};5($("#k").1u(":19")!==D){5(4.26>0&&4.j[4.h].1a!==1L){9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);9 K={\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()};5(4.1X){K.25=\'S\'}$("#k").31(D,F).24(K,4.26,4.2S,1q)}t{$("#k").31(D,F).1Z("2N",1q)}}t{1q()}u D};$.b.c.2V=7(){9 o=\'\';o+=\'<6 l="1i"></6>\';o+=\'<6 l="22">\';o+=\'<6 p="I" l="I"><6></6></6>\';o+=\'<6 l="k">\';o+=\'<6 l="2I">\';o+=\'<6 l="V"></6>\';o+=\'<6 l="E"><6 p="E 44"></6><6 p="E 43"></6><6 p="E 42"></6><6 p="E 3V"></6><6 p="E 3U"></6><6 p="E 3O"></6><6 p="E 3M"></6><6 p="E 3P"></6></6>\';o+=\'<a d="2P:;" l="1e"><1p p="1Y" l="2O"></1p></a><a d="2P:;" l="1f"><1p p="1Y" l="2M"></1p></a>\';o+=\'<6 l="q"></6>\';o+=\'<6 l="G"></6>\';o+=\'</6>\';o+=\'</6>\';o+=\'</6>\';$(o).2H("46");$(\'<32 4i="0" 4h="0" 4k="0"><2L><13 p="G" l="4l"></13><13 p="G" l="4o"><6></6></13><13 p="G" l="4n"></13></2L></32>\').2H(\'#G\');5(P){$("#2I").47(\'<17 p="4a" 4e="2J" 2K="0"></17>\');$("#V, .E, .G, .1Y").2Q()}};$.b.c.2R={2Y:10,30:F,1X:D,1W:0,26:0,2X:3G,2W:\'28\',2S:\'28\',2T:\'28\',1I:3B,1x:3v,23:F,2U:0.3,2b:F,1r:F,j:[],2c:2d,2a:2d,1V:2d};$(W).3y(7(){$.b.c.2V()})})(4f);',62,274,'||||opts|if|div|function||var||fn|fancybox|href||height|width|itemCurrent||itemArray|fancy_outer|id|pos|css|html|class|fancy_content||imagePreloader|else|return|top||unbind|left|px|elem|this|Math|false|fancy_bg|true|fancy_title|el|fancy_loading|show|itemOpts|pad|orig_item|length|item|isIE|src|click|hide|round|target|fancy_close|document|title|settings|subGroup||window||td|bind|orig_pos|busy|iframe||visible|orig|position|match|_change_item|fancy_left|fancy_right|_finish|getNumeric|fancy_overlay|value|_set_content|close|img|getViewport|Image|span|__cleanup|centerOnScroll|normal|new|is|loadingFrame|loadingTimer|frameHeight|imageRegExp|50|objNext|keydown|empty|first|style|append|children|rel|frameWidth|image|_proceed_image|undefined|min|resize|isFunction|select|object|getPosition|visibility|scroll|embed|callbackOnClose|zoomSpeedIn|zoomOpacity|fancy_ico|fadeOut||fadeIn|fancy_wrap|overlayShow|animate|opacity|zoomSpeedOut||swing|keyCode|callbackOnShow|hideOnContentClick|callbackOnStart|null|absolute|parseInt|scrollBox|_initialize|bottom|push|substr|indexOf|data|relative|filter|png|browser|_start|matchedGroup|each|removeExpression|itemLeft|itemTop|stopPropagation|_set_navigation|100|prop|auto|setExpression|parentNode|right|_preload_neighbor_images|animateLoading|appendTo|fancy_inner|no|frameborder|tr|fancy_right_ico|fast|fancy_left_ico|javascript|fixPNG|defaults|easingOut|easingChange|overlayOpacity|build|easingIn|zoomSpeedChange|padding|backgroundImage|imageScale|stop|table|clearInterval|showLoading|fancy_frame|||showIframe||complete|load|bmp|jpeg|fancy_div|split|replace|enabled|scrollLeft|className|paddingTop|random|1000|fancy_iframe|name|scrollTop|onload|location|hidden|RegExp|jquery|355|url|extend|ready|version|jpg|425|for|borderLeftWidth|hspace|while|300|paddingLeft|curCSS|borderTopWidth|msie|fancy_ajax|fancy_bg_w|scale|fancy_bg_sw|fancy_bg_nw|setInterval|DXImageTransform|clientWidth|sizingMethod|fancy_bg_s|fancy_bg_se|progid|66|gif|repeat||backgroundRepeat|fancy_bg_e|fancy_bg_ne|fancy_bg_n|none|body|prepend|alt|fancy_img|fancy_bigIframe|60|crop|AlphaImageLoader|scrolling|jQuery|offset|cellpadding|cellspacing|clientHeight|border|fancy_title_left|Microsoft|fancy_title_right|fancy_title_main|get'.split('|'),0,{}))
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.asmallorange.com/extras/donate/?id=10218
4
  Tags: fancybox, lightbox, jquery, image, gallery
5
  Requires at least: 2.7
6
  Tested up to: 2.7.1
7
- Stable tag: 2.1.1
8
 
9
  Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. No further configuration needed. However, you can customize it from the Options Page if you like... :)
10
 
@@ -17,40 +17,53 @@ All images on the page will be considered part of a gallery, allowing you and yo
17
 
18
  The plugin will use jQuery to apply [FancyBox](http://fancy.klade.lv/) to ANY image links that open an image. This includes posts, the sidebar, etc.
19
 
20
- The requirements are that the link is an image (for example a thumbnail), and that it links to a JPG, PNG or GIF file (that will be the bigger image).
21
 
22
- [FancyBox](http://fancy.klade.lv/) will NOT be applied on text links, but i will implement a configuration page in the admin panel to optionally customize that and much more stuff in future versions.
23
 
24
- Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended to use it with WordPress 2.7 or later. However, there's no reason why you shouldn't be already using WP2.7, is there? ;)
25
 
26
 
27
  = Changelog =
28
 
 
 
 
 
 
 
 
 
29
  2.1.1 Updtades:
30
 
31
  * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
32
 
 
33
  2.1 Updtades:
34
 
35
  * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited.
36
  * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call.
37
  * Additional fixes to caption CSS: Captions should look better now in Hybrid theme, child themes, and other situations where general table elements are improperly styled.
38
 
 
39
  2.0 Updates:
40
 
41
  * Brand new Options Page in Admin Panel lets you easely customize many options: fancybox auto apply, image resize to fit, opacity fade while zooming, zoom speed, overlay on/off, overlay color, overlay opacity, close fancybox on image click, keep fancybox centered while scrolling.
42
  * CSS completely updated for FancyBox 1.2.0
43
  * Captions fixed in IE
44
 
 
45
  1.3 Updates:
46
 
47
  * Shadows and Close button should be fixed now
48
 
 
49
  1.2 Updates:
50
 
51
- * Upgraded to use FancyBox 1.2.0
52
  * Uses packed version of the JavaScript file (8kb instead of 14kb)
53
 
 
54
  1.1 Updates:
55
 
56
  * Fixed FancyBox not being applied to .jpeg files
@@ -60,15 +73,13 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
60
 
61
  = TODO List =
62
 
63
- * Add support for easing effects
64
- * Custom expression field in Options page to specify aditional elements where FancyBox should be applied (for example "#moskislink" or ""a.someclass:has(img)[href$='.gif']" )
65
  * Better support for inline content width adjustable window width and height.
66
- * Add alternative methods of loading the javascript so that the user can swuitch them in the option page if there are problems.
67
 
68
 
69
  = Known Bugs =
70
 
71
- * Shadows still a mess on IE6/7
72
 
73
 
74
  == Installation ==
4
  Tags: fancybox, lightbox, jquery, image, gallery
5
  Requires at least: 2.7
6
  Tested up to: 2.7.1
7
+ Stable tag: 2.2
8
 
9
  Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. No further configuration needed. However, you can customize it from the Options Page if you like... :)
10
 
17
 
18
  The plugin will use jQuery to apply [FancyBox](http://fancy.klade.lv/) to ANY image links that open an image. This includes posts, the sidebar, etc.
19
 
20
+ The requirements are that the link is an image (for example a thumbnail), and that it links to a JPG, PNG or GIF file (that will be the full size image).
21
 
22
+ This plugin will NOT apply [FancyBox](http://fancy.klade.lv/) on text links, but i will implement a setting in the Options Page to customize this in future versions.
23
 
24
+ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended to use it with WordPress 2.7 or later. After all, there's no reason why you shouldn't be already using WP2.7, is there? ;)
25
 
26
 
27
  = Changelog =
28
 
29
+ 2.2 Updtades:
30
+
31
+ * Updated to FancyBox 1.2.1
32
+ * Added new settings to Options Page: Easing, padding size, border color.
33
+ * Tweaked CSS to prevent some themes from adding unwanted styles to fancybox (especially background colors and link outlines).
34
+ * Options Page reorganized in three sections: Appearance, Behaviour and Troubleshooting Settings, to make settings easier to find.
35
+
36
+
37
  2.1.1 Updtades:
38
 
39
  * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
40
 
41
+
42
  2.1 Updtades:
43
 
44
  * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited.
45
  * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call.
46
  * Additional fixes to caption CSS: Captions should look better now in Hybrid theme, child themes, and other situations where general table elements are improperly styled.
47
 
48
+
49
  2.0 Updates:
50
 
51
  * Brand new Options Page in Admin Panel lets you easely customize many options: fancybox auto apply, image resize to fit, opacity fade while zooming, zoom speed, overlay on/off, overlay color, overlay opacity, close fancybox on image click, keep fancybox centered while scrolling.
52
  * CSS completely updated for FancyBox 1.2.0
53
  * Captions fixed in IE
54
 
55
+
56
  1.3 Updates:
57
 
58
  * Shadows and Close button should be fixed now
59
 
60
+
61
  1.2 Updates:
62
 
63
+ * Updated to FancyBox 1.2.0
64
  * Uses packed version of the JavaScript file (8kb instead of 14kb)
65
 
66
+
67
  1.1 Updates:
68
 
69
  * Fixed FancyBox not being applied to .jpeg files
73
 
74
  = TODO List =
75
 
76
+ * Custom expression field in Options page to specify aditional elements where FancyBox should be applied (for example "#moskislink" or "a.someclass:has(img)[href$='.gif']" )
 
77
  * Better support for inline content width adjustable window width and height.
 
78
 
79
 
80
  = Known Bugs =
81
 
82
+ * Shadows not perfect yet on IE6/7, but close
83
 
84
 
85
  == Installation ==
screenshot-1.jpg ADDED
Binary file
screenshot-1.png DELETED
Binary file
screenshot-2.png CHANGED
Binary file