FancyBox for WordPress - Version 2.7.0

Version Description

  • New: Fancybox v1.2.6 support
  • New: New Admin page with tabs for better organization of all the options
  • Added: Setting to change the speed of the animation when changing gallery items
  • Added: Setting to enable or disable Escape key to close Fancybox
  • Added: Setting to show or hide close button
  • Added: Setting to close fancybox when clicking on the overlay
  • Added: Setting to enable or disable callback function on start, show and close events
  • Added: Italian translation
  • Added: Russian translation
  • Added: "Load JS at Footer" option
  • Added: New Changelog tab in Wordpress Plugin Directory
  • Fixed: Some typos in Spanish translation
  • Fixed: FancyBox not showing above some elements (those with zindex higher than 90)
  • Fixed: JavaScript code being included in all admin pages instead of just the plugin's options page.
  • Fixed: noClonflict preventing frames to work in Fancybox
  • Fixed: Custom frame width and height not being applied
  • Updated: Japanese translation
  • Updated: JS is now Minified instead of Packed (thanks to mentalfruition.com)
Download this release

Release Info

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

Code changes from version 2.6.0 to 2.7.0

Files changed (63) hide show
  1. admin.php +89 -516
  2. css/fancybox.css +281 -0
  3. {img → css/img}/extra_donate.png +0 -0
  4. {img → css/img}/extra_twitter.png +0 -0
  5. css/img/fancy_closebox.png +0 -0
  6. {img → css/img}/fancy_left.png +0 -0
  7. css/img/fancy_progress.png +0 -0
  8. {img → css/img}/fancy_right.png +0 -0
  9. css/img/fancy_shadow_e.png +0 -0
  10. css/img/fancy_shadow_n.png +0 -0
  11. css/img/fancy_shadow_ne.png +0 -0
  12. css/img/fancy_shadow_nw.png +0 -0
  13. css/img/fancy_shadow_s.png +0 -0
  14. css/img/fancy_shadow_se.png +0 -0
  15. css/img/fancy_shadow_sw.png +0 -0
  16. css/img/fancy_shadow_w.png +0 -0
  17. {img → css/img}/fancy_title_left.png +0 -0
  18. {img → css/img}/fancy_title_main.png +0 -0
  19. {img → css/img}/fancy_title_right.png +0 -0
  20. css/img/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  21. css/img/ui-bg_flat_75_ffffff_40x100.png +0 -0
  22. css/img/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  23. css/img/ui-bg_glass_65_ffffff_1x400.png +0 -0
  24. css/img/ui-bg_glass_75_dadada_1x400.png +0 -0
  25. css/img/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  26. css/img/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  27. css/img/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  28. css/jquery-ui.css +64 -0
  29. fancybox.css +0 -328
  30. fancybox.php +438 -424
  31. img/fancy_closebox.png +0 -0
  32. img/fancy_progress.png +0 -0
  33. img/fancy_shadow_e.png +0 -0
  34. img/fancy_shadow_n.png +0 -0
  35. img/fancy_shadow_ne.png +0 -0
  36. img/fancy_shadow_nw.png +0 -0
  37. img/fancy_shadow_s.png +0 -0
  38. img/fancy_shadow_se.png +0 -0
  39. img/fancy_shadow_sw.png +0 -0
  40. img/fancy_shadow_w.png +0 -0
  41. jquery.easing.1.3.pack.js +0 -1
  42. jquery.fancybox-1.2.1.pack.js +0 -9
  43. js/admin.js +39 -0
  44. js/jquery.easing.1.3.min.js +2 -0
  45. js/jquery.fancybox-1.2.6.min.js +1 -0
  46. languages/mfbfw-es_ES.mo +0 -0
  47. languages/mfbfw-es_ES.po +250 -155
  48. languages/mfbfw-ja.mo +0 -0
  49. languages/mfbfw.po +0 -325
  50. languages/mfbfw.pot +245 -162
  51. lib/admin-head.php +17 -0
  52. lib/admin-js.php +54 -0
  53. lib/admin-tab-animations.php +114 -0
  54. lib/admin-tab-appearance.php +130 -0
  55. lib/admin-tab-behaviour.php +67 -0
  56. lib/admin-tab-galleries.php +85 -0
  57. lib/admin-tab-info.php +48 -0
  58. lib/admin-tab-other.php +55 -0
  59. lib/admin-tab-troubleshooting.php +43 -0
  60. lib/admin-tab-uninstall.php +23 -0
  61. readme.txt +43 -43
  62. screenshot-2.png +0 -0
  63. screenshot-3.png +0 -0
admin.php CHANGED
@@ -2,522 +2,95 @@
2
 
3
  function mfbfw_options_page() {
4
 
5
- // Get array with all the options
6
- $settings = mfbfw_get_settings();
7
-
8
- // Make selects data
9
- $closePositionArray = array('left','right');
10
- $overlayArray = array(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1);
11
- $msArray = array(0,100,200,300,400,500,600,700,800,900,1000,1250,1500,1750,2000);
12
- $easingArray = array('easeInQuad','easeOutQuad','easeInOutQuad','easeInCubic','easeOutCubic','easeInOutCubic','easeInQuart','easeOutQuart',
13
- 'easeInOutQuart','easeInQuint','easeOutQuint','easeInOutQuint','easeInSine','easeOutSine','easeInOutSine','easeInExpo',
14
- 'easeOutExpo','easeInOutExpo','easeInCirc','easeOutCirc','easeInOutCirc','easeInElastic','easeOutElastic','easeInOutElastic',
15
- 'easeInBack','easeOutBack','easeInOutBack','easeInBounce','easeOutBounce','easeInOutBounce');
16
-
17
- // Start the Options Page ?>
18
-
19
- <div class="wrap">
20
-
21
- <div id="icon-plugins" class="icon32"></div><h2><?php printf(__('Fancybox for WordPress Options (version %s)', 'mfbfw'), $settings['version']); ?></h2>
22
-
23
- <div style="float:right;margin-left:10px;background:#FFFBCC;text-align:center;width:200px;" class="updated">
24
-
25
- <p style="line-height:1.5em;"><?php _e('If you use FancyBox and like it, buy the author a beer!', 'mfbfw'); ?></p>
26
-
27
- <form id="donate_form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
28
- <input name="cmd" value="_donations" type="hidden">
29
- <input name="business" value="janis.skarnelis@gmail.com" type="hidden">
30
- <input name="item_name" value="FancyBox" type="hidden">
31
- <input name="amount" value="10.00" type="hidden">
32
- <input name="no_shipping" value="0" type="hidden">
33
- <input name="logo_custom" value="http://donate.png" type="hidden">
34
- <input name="no_note" value="1" type="hidden">
35
- <input name="currency_code" value="EUR" type="hidden">
36
- <input name="tax" value="0" type="hidden">
37
- <input name="lc" value="LV" type="hidden">
38
- <input name="bn" value="PP-DonationsBF" type="hidden">
39
- <input type="image" border="0" src="<?php echo WP_PLUGIN_URL ?>/fancybox-for-wordpress/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
40
- </form>
41
-
42
- </div>
43
-
44
- <div style="clear:right;float:right;margin-left:10px;background:#FFFBCC;text-align:center;width:200px;" class="updated">
45
-
46
- <p style="line-height:1.5em;"><?php _e('The author of this WordPress Plugin also likes beer :P', 'mfbfw'); ?></p>
47
-
48
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
49
- <input type="hidden" name="cmd" value="_s-xclick"/>
50
- <input type="hidden" name="hosted_button_id" value="3878319"/>
51
- <input type="image" border="0" src="<?php echo WP_PLUGIN_URL ?>/fancybox-for-wordpress/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
52
- <img height="1" width="1" border="0" alt="" src="https://www.paypal.com/es_ES/i/scr/pixel.gif" />
53
- </form>
54
-
55
- </div>
56
-
57
- <div style="clear:right;float:right;margin-left:10px;background:#9DD1F2;border-color:#419ED9;padding-bottom:5px;text-align:center;width:200px;" class="updated">
58
-
59
- <p style="line-height:1.5em;"><a href="http://twitter.com/moskis/"><?php _e('Follow me on Twitter for more WordPress Plugins and Themes', 'mfbfw'); ?></a></p>
60
-
61
- <img height="16" width="16" border="0" alt="" src="<?php echo WP_PLUGIN_URL ?>/fancybox-for-wordpress/img/extra_twitter.png" />
62
-
63
- </div>
64
-
65
-
66
- <h2><?php _e('Info & Support', 'mfbfw'); ?></h2>
67
-
68
- <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>
69
-
70
- <p><?php _e('As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)', 'mfbfw'); ?></p>
71
-
72
- <ul style="list-style-type:disc;padding-left:15px;">
73
-
74
- <li><?php _e('If you have problems or questions about FancyBox, please start with these links: <a href="http://fancy.klade.lv/howto">How-To</a> & <a href="http://fancy.klade.lv/faq">FAQ</a>.<br />If that does not help, go to <a href="http://groups.google.com/group/fancybox">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question.', 'mfbfw'); ?></li>
75
-
76
- <li><?php _e('If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href="http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/">leave a comment here</a> explaining the problem.', 'mfbfw'); ?></li>
77
-
78
- </ul>
79
-
80
-
81
- <h2><?php _e('Appearance Settings <span style="color:green">(basic)</span>', 'mfbfw'); ?></h2>
82
-
83
- <p><?php _e('These are the main settings, which let you tweak color, borders and animation.', 'mfbfw'); ?></p>
84
-
85
- <small><em><?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'); ?></em></small><br /><br />
86
-
87
- <form method="post" action="options.php" id="options">
88
-
89
- <?php
90
-
91
- wp_nonce_field('update-options');
92
- settings_fields('mfbfw-options');
93
-
94
- ?>
95
-
96
- <table class="form-table" style="clear:none;">
97
- <tbody>
98
-
99
- <tr valign="top">
100
- <th scope="row"><?php _e('Border Color', 'mfbfw'); ?></th>
101
- <td>
102
- <fieldset>
103
-
104
- <label for="mfbfw_borderColor">
105
- <input type="text" name="mfbfw_borderColor" id="mfbfw_borderColor" value="<?php echo $settings['borderColor'] ?>" size="7" maxlength="7" />
106
- <?php _e('HTML color of the border (default: #BBBBBB)', 'mfbfw'); ?>
107
- </label><br /><br />
108
-
109
- </fieldset>
110
- </td>
111
- </tr>
112
-
113
- <tr valign="top">
114
- <th scope="row"><?php _e('Close Button Position', 'mfbfw'); ?></th>
115
- <td>
116
- <fieldset>
117
-
118
- <input id="mfbfw_closePosLeft" type="radio" value="left" name="mfbfw_closeHorPos"<?php if ($settings['closeHorPos'] == 'left') echo ' checked="yes"';?> />
119
- <label for="mfbfw_closePosLeft" style="padding-right:15px">
120
- <?php _e('Left', 'mfbfw'); ?>
121
- </label>
122
-
123
- <input id="mfbfw_closePosRight" type="radio" value="right" name="mfbfw_closeHorPos"<?php if ($settings['closeHorPos'] == 'right') echo ' checked="yes"';?> />
124
- <label for="mfbfw_closePosRight">
125
- <?php _e('Right (default)', 'mfbfw'); ?>
126
- </label><br /><br />
127
-
128
- <input id="mfbfw_closePosBottom" type="radio" value="bottom" name="mfbfw_closeVerPos"<?php if ($settings['closeVerPos'] == 'bottom') echo ' checked="yes"';?> />
129
- <label for="mfbfw_closePosBottom" style="padding-right:15px">
130
- <?php _e('Bottom', 'mfbfw'); ?>
131
- </label>
132
-
133
- <input id="mfbfw_closePosTop" type="radio" value="top" name="mfbfw_closeVerPos"<?php if ($settings['closeVerPos'] == 'top') echo ' checked="yes"';?> />
134
- <label for="mfbfw_closePosTop">
135
- <?php _e('Top (default)', 'mfbfw'); ?>
136
- </label><br /><br />
137
-
138
- </fieldset>
139
- </td>
140
- </tr>
141
-
142
- <tr valign="top">
143
- <th scope="row"><?php _e('Padding', 'mfbfw'); ?></th>
144
- <td>
145
- <fieldset>
146
-
147
- <label for="mfbfw_paddingColor">
148
- <input type="text" name="mfbfw_paddingColor" id="mfbfw_paddingColor" value="<?php echo $settings['paddingColor'] ?>" size="7" maxlength="7" />
149
- <?php _e('HTML color of the padding (default: #FFFFFF)', 'mfbfw'); ?>
150
- </label><br /><br />
151
-
152
- <label for="mfbfw_padding">
153
- <input type="text" name="mfbfw_padding" id="mfbfw_padding" value="<?php echo $settings['padding']; ?>" size="7" maxlength="7" />
154
- <?php _e('Padding size in pixels (default: 10)', 'mfbfw'); ?>
155
- </label><br />
156
-
157
- <small><em><?php _e('(Set <strong>Border Color</strong> to "#000000" and <strong>Padding Size</strong> to "0" for the classic FancyBox look)', 'mfbfw'); ?></em></small><br /><br />
158
-
159
- </fieldset>
160
- </td>
161
- </tr>
162
-
163
- <tr valign="top">
164
- <th scope="row"><?php _e('Overlay Options', 'mfbfw'); ?></th>
165
- <td>
166
- <fieldset>
167
-
168
- <label for="mfbfw_overlayShow">
169
- <input type="checkbox" name="mfbfw_overlayShow" id="mfbfw_overlayShow"<?php if ($settings['overlayShow']) echo ' checked="yes"';?> />
170
- <?php _e('Add overlay (default: on)', 'mfbfw'); ?>
171
- </label><br /><br />
172
-
173
- <label for="mfbfw_overlayColor">
174
- <input type="text" name="mfbfw_overlayColor" id="mfbfw_overlayColor" value="<?php echo $settings['overlayColor']; ?>" size="7" maxlength="7" />
175
- <?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
176
- </label><br /><br />
177
-
178
- <label for="mfbfw_overlayOpacity">
179
- <select name="mfbfw_overlayOpacity" id="mfbfw_overlayOpacity">
180
- <?php
181
- foreach($overlayArray as $key=> $opacity) {
182
- if($settings['overlayOpacity'] != $opacity) $selected = '';
183
- else $selected = ' selected';
184
- echo "<option value='$opacity'$selected>$opacity</option>\n";
185
- }
186
- ?>
187
- </select>
188
- <?php _e('Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)', 'mfbfw'); ?>
189
- </label><br /><br />
190
-
191
- </fieldset>
192
- </td>
193
- </tr>
194
-
195
- <tr valign="top">
196
- <th scope="row"><?php _e('Zoom Options', 'mfbfw'); ?></th>
197
- <td>
198
- <fieldset>
199
-
200
- <label for="mfbfw_zoomOpacity">
201
- <input type="checkbox" name="mfbfw_zoomOpacity" id="mfbfw_zoomOpacity"<?php if ($settings['zoomOpacity']) echo ' checked="yes"';?> />
202
- <?php _e('Change content transparency during zoom animations (default: on)', 'mfbfw'); ?>
203
- </label><br /><br />
204
-
205
- <label for="mfbfw_zoomSpeedIn">
206
- <select name="mfbfw_zoomSpeedIn" id="mfbfw_zoomSpeedIn">
207
- <?php
208
- foreach($msArray as $key=> $ms) {
209
- if($settings['zoomSpeedIn'] != $ms) $selected = '';
210
- else $selected = ' selected';
211
- echo "<option value='$ms'$selected>$ms</option>\n";
212
- } ?>
213
- </select>
214
- <?php _e('Speed in miliseconds of the zooming-in animation (default: 500)', 'mfbfw'); ?>
215
- </label><br /><br />
216
-
217
- <label for="mfbfw_zoomSpeedOut">
218
- <select name="mfbfw_zoomSpeedOut" id="mfbfw_zoomSpeedOut">
219
- <?php
220
- foreach($msArray as $key=> $ms) {
221
- if($settings['zoomSpeedOut'] != $ms) $selected = '';
222
- else $selected = ' selected';
223
- echo "<option value='$ms'$selected>$ms</option>\n";
224
- } ?>
225
- </select>
226
- <?php _e('Speed in miliseconds of the zooming-out animation (default: 500)', 'mfbfw'); ?>
227
- </label><br /><br />
228
-
229
- </fieldset>
230
- </td>
231
- </tr>
232
-
233
- <tr valign="top">
234
- <th scope="row"><?php _e('Easing', 'mfbfw'); ?></th>
235
- <td>
236
- <fieldset>
237
-
238
- <label for="mfbfw_easing">
239
- <input type="checkbox" name="mfbfw_easing" id="mfbfw_easing"<?php if ($settings['easing']) echo ' checked="yes"';?> />
240
- <?php _e('Activate easing (default: off)', 'mfbfw'); ?>
241
- </label><br /><br />
242
-
243
- <label for="mfbfw_easingIn">
244
- <select name="mfbfw_easingIn" id="mfbfw_easingIn">
245
- <?php
246
- foreach($easingArray as $key=> $easingIn) {
247
- if($settings['easingIn'] != $easingIn) $selected = '';
248
- else $selected = ' selected';
249
- echo "<option value='$easingIn'$selected>$easingIn</option>\n";
250
- }
251
- ?>
252
- </select>
253
- <?php _e('Easing method when opening FancyBox. (default: easeOutBack)', 'mfbfw'); ?>
254
- </label><br /><br />
255
-
256
- <label for="mfbfw_easingOut">
257
- <select name="mfbfw_easingOut" id="mfbfw_easingOut">
258
- <?php
259
- foreach($easingArray as $key=> $easingOut) {
260
- if($settings['easingOut'] != $easingOut) $selected = '';
261
- else $selected = ' selected';
262
- echo "<option value='$easingOut'$selected>$easingOut</option>\n";
263
- }
264
- ?>
265
- </select>
266
- <?php _e('Easing method when closing FancyBox. (default: easeInBack)', 'mfbfw'); ?>
267
- </label><br /><br />
268
-
269
- <label for="mfbfw_easingChange">
270
- <select name="mfbfw_easingChange" id="mfbfw_easingChange">
271
- <?php
272
- foreach($easingArray as $key=> $easingChange) {
273
- if($settings['easingChange'] != $easingChange) $selected = '';
274
- else $selected = ' selected';
275
- echo "<option value='$easingChange'$selected>$easingChange</option>\n";
276
- }
277
- ?>
278
- </select>
279
- <?php _e('Easing method when navigating through gallery items. (default: easeInOutQuart)', 'mfbfw'); ?>
280
- </label><br />
281
-
282
- <small><em><?php _e('(There are 30 different easing methods, the first ones are the most boring. You can test them <a href="http://commadot.com/jquery/easing.php" target="_blank">here</a> or <a href="http://hosted.zeh.com.br/mctween/animationtypes.html" target="_blank">here</a>)', 'mfbfw'); ?></em></small><br /><br />
283
-
284
- </fieldset>
285
- </td>
286
- </tr>
287
-
288
- </tbody>
289
- </table>
290
-
291
- <span id="advOpsSwitch" class="button"><?php _e('Show/Hide Advanced Settings', 'mfbfw'); ?></span>&nbsp;
292
- <span id="troOpsSwitch" class="button"><?php _e('Show/Hide Troubleshooting &amp; Uninstall Settings', 'mfbfw'); ?></span><br /><br />
293
-
294
- <div style="display:none" class="advOpts">
295
-
296
-
297
- <h2><?php _e('Behavior Settings <span style="color:orange">(medium)</span>', 'mfbfw'); ?></h2>
298
-
299
- <p><?php _e('The following settings should be left on default unless you know what you are doing.', 'mfbfw'); ?></p>
300
-
301
- <table class="form-table" style="clear:none;">
302
- <tbody>
303
-
304
- <tr valign="top">
305
- <th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
306
- <td>
307
- <fieldset>
308
-
309
- <label for="mfbfw_imageScale">
310
- <input type="checkbox" name="mfbfw_imageScale" id="mfbfw_imageScale"<?php if ($settings['imageScale']) echo ' checked="yes"';?> />
311
- <?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
312
- </label><br /><br />
313
-
314
- </fieldset>
315
- </td>
316
- </tr>
317
-
318
- <tr valign="top">
319
- <th scope="row"><?php _e('Center on Scroll', 'mfbfw'); ?></th>
320
- <td>
321
- <fieldset>
322
-
323
- <label for="mfbfw_centerOnScroll">
324
- <input type="checkbox" name="mfbfw_centerOnScroll" id="mfbfw_centerOnScroll"<?php if ($settings['centerOnScroll']) echo ' checked="yes"';?> />
325
- <?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
326
- </label><br /><br />
327
-
328
- </fieldset>
329
- </td>
330
- </tr>
331
-
332
- <tr valign="top">
333
- <th scope="row"><?php _e('Close on Click', 'mfbfw'); ?></th>
334
- <td>
335
- <fieldset>
336
-
337
- <label for="mfbfw_hideOnContentClick">
338
- <input type="checkbox" name="mfbfw_hideOnContentClick" id="mfbfw_hideOnContentClick"<?php if ($settings['hideOnContentClick']) echo ' checked="yes"';?> />
339
- <?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
340
- </label><br />
341
-
342
- <small><em><?php _e('(You may want to leave this off if you display iframed or inline content and it containts clickable elements - for example: play buttons for movies, links to other pages)', 'mfbfw'); ?></em></small><br /><br />
343
-
344
- </fieldset>
345
- </td>
346
- </tr>
347
-
348
- </tbody>
349
- </table>
350
-
351
-
352
- <h2><?php _e('Gallery Settings <span style="color:red">(advanced)</span>', 'mfbfw'); ?></h2>
353
-
354
- <p><?php _e('Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like.', 'mfbfw'); ?></p>
355
-
356
- <table class="form-table" style="clear:none;">
357
- <tbody>
358
-
359
- <tr valign="top">
360
- <th scope="row"><?php _e('Frame Size', 'mfbfw'); ?></th>
361
- <td>
362
- <fieldset>
363
-
364
- <label for="mfbfw_frameWidth">
365
- <input type="text" name="mfbfw_frameWidth" id="mfbfw_frameWidth" value="<?php echo $settings['frameWidth']; ?>" size="4" maxlength="4" />
366
- <?php _e('Width in pixels of FancyBox when showing iframe content (default: 640)', 'mfbfw'); ?>
367
- </label><br /><br />
368
-
369
- <label for="mfbfw_frameHeight">
370
- <input type="text" name="mfbfw_frameHeight" id="mfbfw_frameHeight" value="<?php echo $settings['frameHeight']; ?>" size="4" maxlength="4" />
371
- <?php _e('Height in pixels of FancyBox when showing iframe content (default: 500)', 'mfbfw'); ?>
372
- </label><br /><br />
373
-
374
- </fieldset>
375
- </td>
376
- </tr>
377
-
378
- <tr valign="top">
379
- <th scope="row"><?php _e('Gallery Type', 'mfbfw'); ?></th>
380
- <td>
381
- <fieldset>
382
-
383
- <input id="mfbfw_galleryTypeAll" type="radio" value="all" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'all') echo ' checked="yes"';?> />
384
- <label for="mfbfw_galleryTypeAll">
385
- <?php _e('Make a gallery for all images on the page (default)', 'mfbfw'); ?>
386
- </label><br />
387
-
388
- <input id="mfbfw_galleryTypeNone" type="radio" value="none" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'none') echo ' checked="yes"';?> />
389
- <label for="mfbfw_galleryTypeNone">
390
- <?php _e('Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)', 'mfbfw'); ?>
391
- </label><br />
392
-
393
- <input id="mfbfw_galleryTypePost" type="radio" value="post" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'post') echo ' checked="yes"';?> />
394
- <label for="mfbfw_galleryTypePost">
395
- <?php _e('Make a gallery for each post (will only work if your theme uses <code>class="post"</code> on each post, which is common in WordPress', 'mfbfw'); ?>
396
- </label><br />
397
-
398
- <input id="mfbfw_galleryTypeCustom" type="radio" value="custom" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'custom') echo ' checked="yes"';?> />
399
- <label for="mfbfw_galleryTypeCustom">
400
- <?php _e('Use a custom expression to apply FancyBox', 'mfbfw'); ?>
401
- </label><br /><br />
402
-
403
- <div id="customExpressionBlock">
404
-
405
- <label for="mfbfw_customExpression">
406
- <textarea rows="10" cols="50" class="large-text code" name="mfbfw_customExpression" wrap="physical" id="mfbfw_customExpression"><?php echo ($settings['customExpression']); ?></textarea>
407
- </label><br />
408
-
409
- <small><strong><em><?php _e('Custom expression guidelines:', 'mfbfw'); ?></em></strong></small><br />
410
-
411
- <small><em><?php _e('&middot; The custom expression has to apply <code>class="fancybox"</code> to the links where you want to use FancyBox. Do not call the <code>fancybox()</code> function here, the plugin does this for you.', 'mfbfw'); ?></em></small><br />
412
-
413
- <small><em><?php _e('&middot; The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class.', 'mfbfw'); ?></em></small><br />
414
-
415
- <small><em><?php _e('&middot; You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions.', 'mfbfw'); ?></em></small><br />
416
-
417
- <small><em><?php _e('&middot; You can use <code>jQuery(thumbnails)</code> like in the example expression to apply FancyBox to thumbnails that link to these extensions: BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase).', 'mfbfw'); ?></em></small><br />
418
-
419
- <small><em><?php _e('&middot; If you want to do it manually you can use something like <code>jQuery("a:has(img)[href$=\'.jpg\']")</code> or whatever works for you.', 'mfbfw'); ?></em></small><br />
420
-
421
- <small><em><?php _e('See the <a href="http://docs.jquery.com/" target="_blank">jQuery Documentation</a> for more help.', 'mfbfw'); ?></em></small><br /><br />
422
-
423
- <small><strong><em><?php _e('Examples:', 'mfbfw'); ?></em></strong></small><br />
424
-
425
- <small><em><code>jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();</code></em></small><br />
426
-
427
- <small><em><code>jQuery("a:has(img)[href$='.jpg']").addClass("fancybox").attr("rel","fancybox").getTitle();</code></em></small><br /><br />
428
-
429
- </div>
430
-
431
- </fieldset>
432
- </td>
433
- </tr>
434
-
435
- </tbody>
436
- </table>
437
-
438
- </div>
439
-
440
-
441
- <div style="display:none" class="troOpts">
442
-
443
- <h2><?php _e('Troubleshooting Settings', 'mfbfw'); ?></h2>
444
-
445
- <p><span style="color:red;"><?php _e('Settings in this section should only be changed if you are having problems with the plugin!', 'mfbfw'); ?></span></p>
446
-
447
- <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>
448
-
449
- <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 />
450
-
451
- <table class="form-table" style="clear:none;">
452
- <tbody>
453
-
454
- <tr valign="top">
455
- <th scope="row"><?php _e('Do not call jQuery', 'mfbfw'); ?></th>
456
- <td>
457
- <fieldset>
458
-
459
- <label for="mfbfw_nojQuery">
460
- <input type="checkbox" name="mfbfw_nojQuery" id="mfbfw_nojQuery"<?php if ($settings['nojQuery']) echo ' checked="yes"';?> />
461
- <?php _e('Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)', 'mfbfw'); ?>
462
- </label><br />
463
-
464
- </fieldset>
465
- </td>
466
- </tr>
467
-
468
- <tr valign="top">
469
- <th scope="row"><?php _e('jQuery "noConflict" Mode', 'mfbfw'); ?></th>
470
- <td>
471
- <fieldset>
472
-
473
- <label for="mfbfw_jQnoConflict">
474
- <input type="checkbox" name="mfbfw_jQnoConflict" id="mfbfw_jQnoConflict"<?php if ($settings['jQnoConflict']) echo ' checked="yes"';?> />
475
- <?php _e('Use jQuery noConflict mode (default: on)', 'mfbfw'); ?>
476
- </label><br />
477
-
478
- <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 />
479
-
480
- </fieldset>
481
- </td>
482
- </tr>
483
-
484
- </tbody>
485
- </table>
486
-
487
- <h2><?php _e('Uninstall', 'mfbfw'); ?></h2>
488
-
489
- <p><?php _e('Like many other plugins, FancyBox for WordPress stores its settings on your WordPress\' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and <strong>when you deactivate the plugin</strong>, all its settings will be removed from the database.', 'mfbfw'); ?></p>
490
-
491
- <table class="form-table" style="clear:none;">
492
- <tbody>
493
-
494
- <tr valign="top">
495
- <th scope="row"><?php _e('Remove settings', 'mfbfw'); ?></th>
496
- <td>
497
- <fieldset>
498
-
499
- <label for="mfbfw_uninstall">
500
- <input type="checkbox" name="mfbfw_uninstall" id="mfbfw_uninstall"<?php if ($settings['uninstall']) echo ' checked="yes"';?> />
501
- <?php _e('Remove Settings when plugin is deactivated from the "Manage Plugins" page. (default: off)', 'mfbfw'); ?>
502
- </label><br />
503
-
504
- </fieldset>
505
- </td>
506
- </tr>
507
-
508
- </tbody>
509
- </table>
510
-
511
- </div>
512
-
513
-
514
- <input type="hidden" name="action" value="update" />
515
-
516
- <p class="submit">
517
- <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','mfbfw'); ?>" />
518
- </p>
519
-
520
- </form>
521
 
522
  </div>
523
 
2
 
3
  function mfbfw_options_page() {
4
 
5
+ require_once( FBFW_PATH . '/lib/admin-head.php');
6
+
7
+ ?>
8
+
9
+ <div class="wrap">
10
+
11
+ <div id="icon-plugins" class="icon32"></div><h2><?php printf(__('Fancybox for WordPress Options (version %s)', 'mfbfw'), $settings['version']); ?></h2>
12
+
13
+ <br />
14
+
15
+ <form method="post" action="options.php" id="options">
16
+
17
+ <?php
18
+
19
+ wp_nonce_field('update-options');
20
+ settings_fields('mfbfw-options');
21
+
22
+ ?>
23
+
24
+ <div id="fbfwTabs">
25
+
26
+ <ul>
27
+ <li><a href="#fbfw-info">Info</a></li>
28
+ <li><a href="#fbfw-appearance">Appearance</a></li>
29
+ <li><a href="#fbfw-animations">Animations</a></li>
30
+ <li><a href="#fbfw-behaviour">Behaviour</a></li>
31
+ <li><a href="#fbfw-galleries">Galleries</a></li>
32
+ <li><a href="#fbfw-other">Other</a></li>
33
+ <li><a href="#fbfw-troubleshooting">Troubleshooting</a></li>
34
+ <li><a href="#fbfw-uninstall">Uninstall</a></li>
35
+ </ul>
36
+
37
+ <div id="fbfw-info">
38
+
39
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-info.php'); ?>
40
+
41
+ </div>
42
+
43
+ <div id="fbfw-appearance">
44
+
45
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-appearance.php'); ?>
46
+
47
+ </div>
48
+
49
+ <div id="fbfw-animations">
50
+
51
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-animations.php'); ?>
52
+
53
+ </div>
54
+
55
+ <div id="fbfw-behaviour">
56
+
57
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-behaviour.php'); ?>
58
+
59
+ </div>
60
+
61
+ <div id="fbfw-galleries">
62
+
63
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-galleries.php'); ?>
64
+
65
+ </div>
66
+
67
+ <div id="fbfw-other">
68
+
69
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-other.php'); ?>
70
+
71
+ </div>
72
+
73
+ <div id="fbfw-troubleshooting">
74
+
75
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-troubleshooting.php'); ?>
76
+
77
+ </div>
78
+
79
+ <div id="fbfw-uninstall">
80
+
81
+ <?php require_once ( FBFW_PATH . '/lib/admin-tab-uninstall.php'); ?>
82
+
83
+ </div>
84
+
85
+ </div>
86
+
87
+ <input type="hidden" name="action" value="update" />
88
+
89
+ <p class="submit" style="text-align:center;">
90
+ <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','mfbfw'); ?>" />
91
+ </p>
92
+
93
+ </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  </div>
96
 
css/fancybox.css ADDED
@@ -0,0 +1,281 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ div#fancy_overlay {
2
+ position: fixed;
3
+ top: 0;
4
+ left: 0;
5
+ width: 100%;
6
+ height: 100%;
7
+ display: none;
8
+ z-index: 30;
9
+ }
10
+
11
+ div#fancy_loading {
12
+ position: absolute;
13
+ height: 40px;
14
+ width: 40px;
15
+ cursor: pointer;
16
+ display: none;
17
+ overflow: hidden;
18
+ background: transparent;
19
+ z-index: 100;
20
+ }
21
+
22
+ div#fancy_loading div {
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ width: 40px;
27
+ height: 480px;
28
+ background: transparent url('img/fancy_progress.png') no-repeat;
29
+ }
30
+
31
+ div#fancy_outer {
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ z-index: 90;
36
+ padding: 20px 20px 40px 20px;
37
+ margin: 0;
38
+ background: transparent;
39
+ display: none;
40
+ }
41
+
42
+ div#fancy_inner {
43
+ position: relative;
44
+ width:100%;
45
+ height:100%;
46
+ background: #FFF;
47
+ }
48
+
49
+ div#fancy_content {
50
+ margin: 0;
51
+ z-index: 100;
52
+ position: absolute;
53
+ }
54
+
55
+ div#fancy_div {
56
+ background: #000;
57
+ color: #FFF;
58
+ height: 100%;
59
+ width: 100%;
60
+ z-index: 100;
61
+ }
62
+
63
+ img#fancy_img {
64
+ position: absolute;
65
+ top: 0;
66
+ left: 0;
67
+ border:0;
68
+ padding: 0;
69
+ margin: 0;
70
+ z-index: 100;
71
+ width: 100%;
72
+ height: 100%;
73
+ }
74
+
75
+ div#fancy_close {
76
+ position: absolute;
77
+ height: 30px;
78
+ width: 30px;
79
+ background: url('img/fancy_closebox.png') top left no-repeat;
80
+ cursor: pointer;
81
+ z-index: 181;
82
+ display: none;
83
+ }
84
+
85
+ #fancy_frame {
86
+ position: relative;
87
+ width: 100%;
88
+ height: 100%;
89
+ display: none;
90
+ }
91
+
92
+ #fancy_ajax {
93
+ width: 100%;
94
+ height: 100%;
95
+ overflow: auto;
96
+ }
97
+
98
+ a#fancy_left, a#fancy_right {
99
+ position: absolute;
100
+ bottom: 0px;
101
+ height: 100%;
102
+ width: 35%;
103
+ cursor: pointer;
104
+ z-index: 111;
105
+ display: none;
106
+ background-image: url("data:image/gif;base64,AAAA");
107
+ outline: none;
108
+ overflow: hidden;
109
+ }
110
+
111
+ a#fancy_left {
112
+ left: 0px;
113
+ }
114
+
115
+ a#fancy_right {
116
+ right: 0px;
117
+ }
118
+
119
+ span.fancy_ico {
120
+ position: absolute;
121
+ top: 50%;
122
+ margin-top: -15px;
123
+ width: 30px;
124
+ height: 30px;
125
+ z-index: 112;
126
+ cursor: pointer;
127
+ display: block;
128
+ }
129
+
130
+ span#fancy_left_ico {
131
+ left: -9999px;
132
+ background: transparent url('img/fancy_left.png') no-repeat;
133
+ }
134
+
135
+ span#fancy_right_ico {
136
+ right: -9999px;
137
+ background: transparent url('img/fancy_right.png') no-repeat;
138
+ }
139
+
140
+ a#fancy_left:hover, a#fancy_right:hover {
141
+ visibility: visible;
142
+ background-color: transparent;
143
+ }
144
+
145
+ a#fancy_left:hover span {
146
+ left: 20px;
147
+ }
148
+
149
+ a#fancy_right:hover span {
150
+ right: 20px;
151
+ }
152
+
153
+ #fancy_bigIframe {
154
+ position: absolute;
155
+ top: 0;
156
+ left: 0;
157
+ width: 100%;
158
+ height: 100%;
159
+ background: transparent;
160
+ }
161
+
162
+ div#fancy_bg {
163
+ position: absolute;
164
+ top: 0; left: 0;
165
+ width: 100%;
166
+ height: 100%;
167
+ z-index: 70;
168
+ border: 0;
169
+ padding: 0;
170
+ margin: 0;
171
+ }
172
+
173
+ div.fancy_bg {
174
+ position: absolute;
175
+ display: block;
176
+ z-index: 70;
177
+ border: 0;
178
+ padding: 0;
179
+ margin: 0;
180
+ }
181
+
182
+ div#fancy_bg_n {
183
+ top: -20px;
184
+ left: 0;
185
+ width: 100%;
186
+ height: 20px;
187
+ background: transparent url('img/fancy_shadow_n.png') repeat-x;
188
+ }
189
+
190
+ div#fancy_bg_ne {
191
+ top: -20px;
192
+ right: -20px;
193
+ width: 20px;
194
+ height: 20px;
195
+ background: transparent url('img/fancy_shadow_ne.png') no-repeat;
196
+ }
197
+
198
+ div#fancy_bg_e {
199
+ right: -20px;
200
+ height: 100%;
201
+ width: 20px;
202
+ background: transparent url('img/fancy_shadow_e.png') repeat-y;
203
+ }
204
+
205
+ div#fancy_bg_se {
206
+ bottom: -20px;
207
+ right: -20px;
208
+ width: 20px;
209
+ height: 20px;
210
+ background: transparent url('img/fancy_shadow_se.png') no-repeat;
211
+ }
212
+
213
+ div#fancy_bg_s {
214
+ bottom: -20px;
215
+ left: 0;
216
+ width: 100%;
217
+ height: 20px;
218
+ background: transparent url('img/fancy_shadow_s.png') repeat-x;
219
+ }
220
+
221
+ div#fancy_bg_sw {
222
+ bottom: -20px;
223
+ left: -20px;
224
+ width: 20px;
225
+ height: 20px;
226
+ background: transparent url('img/fancy_shadow_sw.png') no-repeat;
227
+ }
228
+
229
+ div#fancy_bg_w {
230
+ left: -20px;
231
+ height: 100%;
232
+ width: 20px;
233
+ background: transparent url('img/fancy_shadow_w.png') repeat-y;
234
+ }
235
+
236
+ div#fancy_bg_nw {
237
+ top: -20px;
238
+ left: -20px;
239
+ width: 20px;
240
+ height: 20px;
241
+ background: transparent url('img/fancy_shadow_nw.png') no-repeat;
242
+ }
243
+
244
+ div#fancy_title {
245
+ position: absolute;
246
+ z-index: 100;
247
+ display: none;
248
+ }
249
+
250
+ div#fancy_title div {
251
+ color: #FFF;
252
+ font: bold 12px Arial;
253
+ padding-bottom: 3px;
254
+ white-space: nowrap;
255
+ }
256
+
257
+ div#fancy_title table {
258
+ margin: 0 auto;
259
+ }
260
+
261
+ div#fancy_title table td {
262
+ padding: 0;
263
+ vertical-align: middle;
264
+ }
265
+
266
+ td#fancy_title_left {
267
+ height: 32px;
268
+ width: 15px;
269
+ background: transparent url('img/fancy_title_left.png') repeat-x;
270
+ }
271
+
272
+ td#fancy_title_main {
273
+ height: 32px;
274
+ background: transparent url('img/fancy_title_main.png') repeat-x;
275
+ }
276
+
277
+ td#fancy_title_right {
278
+ height: 32px;
279
+ width: 15px;
280
+ background: transparent url('img/fancy_title_right.png') repeat-x;
281
+ }
{img → css/img}/extra_donate.png RENAMED
File without changes
{img → css/img}/extra_twitter.png RENAMED
File without changes
css/img/fancy_closebox.png ADDED
Binary file
{img → css/img}/fancy_left.png RENAMED
File without changes
css/img/fancy_progress.png ADDED
Binary file
{img → css/img}/fancy_right.png RENAMED
File without changes
css/img/fancy_shadow_e.png ADDED
Binary file
css/img/fancy_shadow_n.png ADDED
Binary file
css/img/fancy_shadow_ne.png ADDED
Binary file
css/img/fancy_shadow_nw.png ADDED
Binary file
css/img/fancy_shadow_s.png ADDED
Binary file
css/img/fancy_shadow_se.png ADDED
Binary file
css/img/fancy_shadow_sw.png ADDED
Binary file
css/img/fancy_shadow_w.png ADDED
Binary file
{img → css/img}/fancy_title_left.png RENAMED
File without changes
{img → css/img}/fancy_title_main.png RENAMED
File without changes
{img → css/img}/fancy_title_right.png RENAMED
File without changes
css/img/ui-bg_flat_0_aaaaaa_40x100.png ADDED
Binary file
css/img/ui-bg_flat_75_ffffff_40x100.png ADDED
Binary file
css/img/ui-bg_glass_55_fbf9ee_1x400.png ADDED
Binary file
css/img/ui-bg_glass_65_ffffff_1x400.png ADDED
Binary file
css/img/ui-bg_glass_75_dadada_1x400.png ADDED
Binary file
css/img/ui-bg_glass_75_e6e6e6_1x400.png ADDED
Binary file
css/img/ui-bg_glass_95_fef1ec_1x400.png ADDED
Binary file
css/img/ui-bg_highlight-soft_75_cccccc_1x100.png ADDED
Binary file
css/jquery-ui.css ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery UI CSS Framework
3
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
4
+ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
5
+ */
6
+
7
+
8
+ /* Layout helpers
9
+ ----------------------------------*/
10
+ .ui-helper-hidden { display: none; }
11
+ .ui-helper-hidden-accessible { position: absolute; left: -99999999px; }
12
+ .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
13
+ .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
14
+ .ui-helper-clearfix { display: inline-block; }
15
+ /* required comment for clearfix to work in Opera \*/
16
+ * html .ui-helper-clearfix { height:1%; }
17
+ .ui-helper-clearfix { display:block; }
18
+ /* end clearfix */
19
+ .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
20
+
21
+
22
+ /* Tabs
23
+ ----------------------------------*/
24
+ .ui-tabs { padding: .2em; zoom: 1; }
25
+ .ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; }
26
+ .ui-tabs .ui-tabs-nav li { font-size:.8em; position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; }
27
+ .ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; }
28
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; }
29
+ .ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
30
+ .ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
31
+ .ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; }
32
+ .ui-tabs .ui-tabs-hide { display: none !important; }
33
+
34
+
35
+ /* Component containers
36
+ ----------------------------------*/
37
+ .ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; }
38
+ .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; }
39
+ .ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #ffffff/*{bgColorContent}*/ url(img/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; overflow: hidden; }
40
+ .ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ url(img/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; color: #222222/*{fcHeader}*/; font-weight: bold; }
41
+ .ui-widget-header a { color: #222222/*{fcHeader}*/; }
42
+
43
+
44
+ /* Interaction states
45
+ ----------------------------------*/
46
+ .ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(img/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; outline: none; }
47
+ .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; outline: none; }
48
+ .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #999999/*{borderColorHover}*/; background: #dadada/*{bgColorHover}*/ url(img/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcHover}*/; outline: none; }
49
+ .ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; outline: none; }
50
+ .ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ url(img/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; outline: none; }
51
+ .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; outline: none; text-decoration: none; }
52
+
53
+
54
+ /* Misc visuals
55
+ ----------------------------------*/
56
+ .ui-corner-tl { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; }
57
+ .ui-corner-tr { -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; }
58
+ .ui-corner-bl { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; }
59
+ .ui-corner-br { -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; }
60
+ .ui-corner-top { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; }
61
+ .ui-corner-bottom { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; }
62
+ .ui-corner-right { -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; }
63
+ .ui-corner-left { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; }
64
+ .ui-corner-all { -moz-border-radius: 4px/*{cornerRadius}*/; -webkit-border-radius: 4px/*{cornerRadius}*/; }
fancybox.css DELETED
@@ -1,328 +0,0 @@
1
- html, body {
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;
12
- left: 0;
13
- width: 100%;
14
- height: 100%;
15
- background-color: #666;
16
- display: none;
17
- z-index: 30;
18
- }
19
-
20
- * html div#fancy_overlay {
21
- position: absolute;
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;
32
- width: 40px;
33
- cursor: pointer;
34
- display: none;
35
- overflow: hidden;
36
- background: transparent;
37
- z-index: 100;
38
- }
39
-
40
- div#fancy_loading div {
41
- position: absolute;
42
- top: 0;
43
- left: 0;
44
- width: 40px;
45
- height: 480px;
46
- background: transparent url('img/fancy_progress.png') no-repeat;
47
- }
48
-
49
- div#fancy_loading_overlay {
50
- position: absolute;
51
- background-color: #FFF;
52
- z-index: 30;
53
- }
54
-
55
- div#fancy_loading_icon {
56
- position: absolute;
57
- background: url('img/fancy_loading.gif') no-repeat;
58
- z-index: 35;
59
- width: 16px;
60
- height: 16px;
61
- }
62
-
63
- div#fancy_outer {
64
- position: absolute;
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;
72
- display: none;
73
- }
74
-
75
- div#fancy_inner {
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 {
90
- background: #000;
91
- color: #FFF;
92
- height: 100%;
93
- width: 100%;
94
- z-index: 100;
95
- }
96
-
97
- img#fancy_img {
98
- position: absolute;
99
- top: 0;
100
- left: 0;
101
- border:0;
102
- padding: 0;
103
- margin: 0;
104
- z-index: 100;
105
- width: 100%;
106
- height: 100%;
107
- }
108
-
109
- div#fancy_close {
110
- position: absolute;
111
- height: 30px;
112
- width: 30px;
113
- background: url('img/fancy_closebox.png') top left no-repeat;
114
- cursor: pointer;
115
- z-index: 181;
116
- display: none;
117
- }
118
-
119
- #fancy_frame {
120
- position: relative;
121
- width: 100%;
122
- height: 100%;
123
- display: none;
124
- }
125
-
126
- #fancy_ajax {
127
- width: 100%;
128
- height: 100%;
129
- overflow: auto;
130
- }
131
-
132
- a#fancy_left, a#fancy_right {
133
- position: absolute;
134
- bottom: 0px;
135
- height: 100%;
136
- width: 35%;
137
- cursor: pointer;
138
- z-index: 111;
139
- display: none;
140
- background-image: url(data:image/gif;base64,AAAA);
141
- }
142
-
143
- a#fancy_left {
144
- left: 0px;
145
- }
146
-
147
- a#fancy_right {
148
- right: 0px;
149
- }
150
-
151
- span.fancy_ico {
152
- position: absolute;
153
- top: 50%;
154
- margin-top: -15px;
155
- width: 30px;
156
- height: 30px;
157
- z-index: 112;
158
- cursor: pointer;
159
- display: block;
160
- }
161
-
162
- span#fancy_left_ico {
163
- left: -9999px;
164
- background: transparent url('img/fancy_left.png') no-repeat;
165
- }
166
-
167
- span#fancy_right_ico {
168
- right: -9999px;
169
- background: transparent url('img/fancy_right.png') no-repeat;
170
- }
171
-
172
- a#fancy_left:hover {
173
- visibility: visible;
174
- }
175
-
176
- a#fancy_right:hover {
177
- visibility: visible;
178
- }
179
-
180
- a#fancy_left:hover span {
181
- left: 20px;
182
- }
183
-
184
- a#fancy_right:hover span {
185
- right: 20px;
186
- }
187
-
188
- .fancy_bigIframe {
189
- position: absolute;
190
- top: 0;
191
- left: 0;
192
- width: 100%;
193
- height: 100%;
194
- background: transparent;
195
- }
196
-
197
- div#fancy_bg {
198
- position: absolute;
199
- top: 0; left: 0;
200
- width: 100%;
201
- height: 100%;
202
- z-index: 70;
203
- border: 0;
204
- padding: 0;
205
- margin: 0;
206
- }
207
-
208
- div.fancy_bg {
209
- position: absolute;
210
- display: block;
211
- z-index: 70;
212
- border: 0;
213
- padding: 0;
214
- margin: 0;
215
- }
216
-
217
- div.fancy_bg_n {
218
- top: -18px;
219
- width: 100%;
220
- height: 18px;
221
- background: transparent url('img/fancy_shadow_n.png') repeat-x;
222
- }
223
-
224
- div.fancy_bg_ne {
225
- top: -18px;
226
- right: -13px;
227
- width: 13px;
228
- height: 18px;
229
- background: transparent url('img/fancy_shadow_ne.png') no-repeat;
230
- }
231
-
232
- div.fancy_bg_e {
233
- right: -13px;
234
- height: 100%;
235
- width: 13px;
236
- background: transparent url('img/fancy_shadow_e.png') repeat-y;
237
- }
238
-
239
- div.fancy_bg_se {
240
- bottom: -18px;
241
- right: -13px;
242
- width: 13px;
243
- height: 18px;
244
- background: transparent url('img/fancy_shadow_se.png') no-repeat;
245
- }
246
-
247
- div.fancy_bg_s {
248
- bottom: -18px;
249
- width: 100%;
250
- height: 18px;
251
- background: transparent url('img/fancy_shadow_s.png') repeat-x;
252
- }
253
-
254
- div.fancy_bg_sw {
255
- bottom: -18px;
256
- left: -13px;
257
- width: 13px;
258
- height: 18px;
259
- background: transparent url('img/fancy_shadow_sw.png') no-repeat;
260
- }
261
-
262
- div.fancy_bg_w {
263
- left: -13px;
264
- height: 100%;
265
- width: 13px;
266
- background: transparent url('img/fancy_shadow_w.png') repeat-y;
267
- }
268
-
269
- div.fancy_bg_nw {
270
- top: -18px;
271
- left: -13px;
272
- width: 13px;
273
- height: 18px;
274
- background: transparent url('img/fancy_shadow_nw.png') no-repeat;
275
- }
276
-
277
- div#fancy_title {
278
- position: absolute;
279
- bottom: -33px;
280
- left: 0;
281
- width: 100%;
282
- z-index: 100;
283
- display: none;
284
- }
285
-
286
- div#fancy_title div {
287
- color: #FFF;
288
- font: bold 12px Arial;
289
- padding-bottom: 3px;
290
- }
291
-
292
- div#fancy_title table {
293
- margin: 0 auto;
294
- background:transparent;
295
- border-collapse:separate;
296
- border: 0;
297
- width:auto;
298
- }
299
-
300
- div#fancy_title tr {
301
- background:transparent;
302
- border: 0;
303
- }
304
-
305
- div#fancy_title table td {
306
- padding: 0;
307
- vertical-align: middle;
308
- }
309
-
310
- td#fancy_title_left {
311
- height: 32px;
312
- width: 15px;
313
- background: transparent url(img/fancy_title_left.png) repeat-x;
314
- border: 0;
315
- }
316
-
317
- td#fancy_title_main {
318
- height: 32px;
319
- background: transparent url(img/fancy_title_main.png) repeat-x;
320
- border: 0;
321
- }
322
-
323
- td#fancy_title_right {
324
- height: 32px;
325
- width: 15px;
326
- background: transparent url(img/fancy_title_right.png) repeat-x;
327
- border: 0;
328
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox.php CHANGED
@@ -1,425 +1,439 @@
1
- <?php
2
- /*
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.
6
- Version: 2.6.0
7
- Author: Jose Pardilla
8
- Author URI: http://moskis.net/
9
- */
10
-
11
-
12
- // When plugin is activated, update version, and set any new settings to default
13
- function mfbfw_install() {
14
-
15
- update_option('mfbfw_active_version', '2.6.0');
16
-
17
- add_option('mfbfw_borderColor', '#BBBBBB');
18
- add_option('mfbfw_closeHorPos', 'right');
19
- add_option('mfbfw_closeVerPos', 'top');
20
- add_option('mfbfw_paddingColor', '#FFFFFF');
21
- add_option('mfbfw_padding', '10');
22
- add_option('mfbfw_overlayShow', 'on');
23
- add_option('mfbfw_overlayColor', '#666666');
24
- add_option('mfbfw_overlayOpacity', '0.3');
25
- add_option('mfbfw_zoomOpacity', 'on');
26
- add_option('mfbfw_zoomSpeedIn', '500');
27
- add_option('mfbfw_zoomSpeedOut', '500');
28
- add_option('mfbfw_easing', '');
29
- add_option('mfbfw_easingIn', 'easeOutBack');
30
- add_option('mfbfw_easingOut', 'easeInBack');
31
- add_option('mfbfw_easingChange', 'easeInOutQuart');
32
-
33
- add_option('mfbfw_imageScale', 'on');
34
- add_option('mfbfw_centerOnScroll', 'on');
35
- add_option('mfbfw_hideOnContentClick', '');
36
- add_option('mfbfw_frameWidth', '640');
37
- add_option('mfbfw_frameHeight', '500');
38
-
39
- add_option('mfbfw_galleryType', 'all');
40
- add_option('mfbfw_customExpression', 'jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();');
41
-
42
- add_option('mfbfw_nojQuery', '');
43
- add_option('mfbfw_jQnoConflict', 'on');
44
-
45
- add_option('mfbfw_uninstall', '');
46
-
47
- // Old settings, no longer used
48
- delete_option('mfbfw_autoApply');
49
- delete_option('mfbfw_closePosition');
50
- delete_option('mfbfw_noTextLinks');
51
-
52
- }
53
-
54
-
55
- // If requested, when plugin is deactivated, remove settings
56
- function mfbfw_uninstall() {
57
-
58
- if (get_option('mfbfw_uninstall')) {
59
-
60
- delete_option('mfbfw_active_version');
61
-
62
- delete_option('mfbfw_borderColor');
63
- delete_option('mfbfw_closeHorPos');
64
- delete_option('mfbfw_closeVerPos');
65
- delete_option('mfbfw_paddingColor');
66
- delete_option('mfbfw_padding');
67
- delete_option('mfbfw_overlayShow');
68
- delete_option('mfbfw_overlayColor');
69
- delete_option('mfbfw_overlayOpacity');
70
- delete_option('mfbfw_zoomOpacity');
71
- delete_option('mfbfw_zoomSpeedIn');
72
- delete_option('mfbfw_zoomSpeedOut');
73
- delete_option('mfbfw_easing');
74
- delete_option('mfbfw_easingIn');
75
- delete_option('mfbfw_easingOut');
76
- delete_option('mfbfw_easingChange');
77
-
78
- delete_option('mfbfw_imageScale');
79
- delete_option('mfbfw_centerOnScroll');
80
- delete_option('mfbfw_hideOnContentClick');
81
- delete_option('mfbfw_frameWidth');
82
- delete_option('mfbfw_frameHeight');
83
-
84
- delete_option('mfbfw_autoApply');
85
- delete_option('mfbfw_galleryType');
86
- delete_option('mfbfw_customExpression');
87
-
88
- delete_option('mfbfw_nojQuery');
89
- delete_option('mfbfw_jQnoConflict');
90
-
91
- delete_option('mfbfw_uninstall');
92
-
93
- }
94
-
95
- }
96
-
97
-
98
- // Store plugin options in an array and return that array
99
- function mfbfw_get_settings() {
100
-
101
- $mfbfwSettingsArray=array(
102
-
103
- 'version' => get_option('mfbfw_active_version'),
104
-
105
- 'borderColor' => get_option('mfbfw_borderColor'),
106
- 'closeHorPos' => get_option('mfbfw_closeHorPos'),
107
- 'closeVerPos' => get_option('mfbfw_closeVerPos'),
108
- 'paddingColor' => get_option('mfbfw_paddingColor'),
109
- 'padding' => get_option('mfbfw_padding'),
110
- 'overlayShow' => get_option('mfbfw_overlayShow'),
111
- 'overlayColor' => get_option('mfbfw_overlayColor'),
112
- 'overlayOpacity' => get_option('mfbfw_overlayOpacity'),
113
- 'zoomOpacity' => get_option('mfbfw_zoomOpacity'),
114
- 'zoomSpeedIn' => get_option('mfbfw_zoomSpeedIn'),
115
- 'zoomSpeedOut' => get_option('mfbfw_zoomSpeedOut'),
116
- 'easing' => get_option('mfbfw_easing'),
117
- 'easingIn' => get_option('mfbfw_easingIn'),
118
- 'easingOut' => get_option('mfbfw_easingOut'),
119
- 'easingChange' => get_option('mfbfw_easingChange'),
120
-
121
- 'imageScale' => get_option('mfbfw_imageScale'),
122
- 'centerOnScroll' => get_option('mfbfw_centerOnScroll'),
123
- 'hideOnContentClick' => get_option('mfbfw_hideOnContentClick'),
124
- 'frameWidth' => get_option('mfbfw_frameWidth'),
125
- 'frameHeight' => get_option('mfbfw_frameHeight'),
126
-
127
- 'galleryType' => get_option('mfbfw_galleryType'),
128
- 'customExpression' => get_option('mfbfw_customExpression'),
129
-
130
- 'nojQuery' => get_option('mfbfw_nojQuery'),
131
- 'jQnoConflict' => get_option('mfbfw_jQnoConflict'),
132
-
133
- 'uninstall' => get_option('mfbfw_uninstall')
134
-
135
- );
136
-
137
- return $mfbfwSettingsArray;
138
-
139
- }
140
-
141
-
142
- // Here we load FancyBox JS with jQuery and jQuery.easing if necessary
143
- function mfbfw_load() {
144
-
145
- $settings = mfbfw_get_settings();
146
-
147
- if (!is_admin()) { // avoid the scripts from loading on admin panel
148
-
149
- if ($settings['nojQuery']) {
150
-
151
- wp_enqueue_script('fancybox', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.fancybox-1.2.1.pack.js'); // Load fancybox without jQuery (for troubleshooting)
152
-
153
- } else {
154
-
155
- 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
156
-
157
- }
158
-
159
- if (get_option('mfbfw_easing')) {
160
-
161
- wp_enqueue_script('jqueryeasing', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.easing.1.3.pack.js', array('jquery'), '1.3.2'); // Load easing javascript file if required
162
-
163
- }
164
-
165
- }
166
-
167
- }
168
-
169
-
170
- // Link to FancyBox stylesheet and apply some custom styles
171
- function mfbfw_css() {
172
-
173
- $settings = mfbfw_get_settings();
174
-
175
- echo "\n".'<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/fancybox-for-wordpress/fancybox.css" type="text/css" media="screen" />'."\n";
176
-
177
- ?>
178
-
179
- <style type="text/css">
180
- div#fancy_overlay {background-color:<?php echo $settings['overlayColor']; ?>}
181
- div#fancy_inner {border-color:<?php echo $settings['borderColor']; ?>}
182
- div#fancy_close {<?php echo $settings['closeHorPos']; ?>:-15px;<?php echo $settings['closeVerPos']; ?>:-12px;}
183
- div#fancy_bg {background-color:<?php echo $settings['paddingColor']; ?>}
184
- </style>
185
-
186
- <?php
187
-
188
- }
189
-
190
-
191
- // Load FancyBox with the settings set
192
- function mfbfw_init() {
193
-
194
- $settings = mfbfw_get_settings();
195
-
196
- echo "\n"."\n"."<!-- Fancybox for WordPress v". $settings['version'] ." -->"."\n";
197
-
198
- ?>
199
-
200
- <script type="text/javascript">
201
-
202
- <?php if ($settings['jQnoConflict']) { ?>jQuery.noConflict();<?php } echo "\n" ?>
203
-
204
- jQuery(function(){
205
-
206
- <?php // This copies the title of every IMG tag and adds it to its parent A so that fancybox can use it ?>
207
- jQuery.fn.getTitle = function() {
208
- var arr = jQuery("a.fancybox");
209
- jQuery.each(arr, function() {
210
- var title = jQuery(this).children("img").attr("title");
211
- jQuery(this).attr('title',title);
212
- })
213
- }
214
-
215
- // Supported file extensions
216
- var thumbnails = 'a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]';
217
-
218
- <?php if ($settings['galleryType'] == 'post') {
219
-
220
- // Gallery type BY POST and we are on post or page (so only one post or page is visible)
221
- if ( is_single() | is_page() ) { ?>
222
-
223
- jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();
224
-
225
- <?php }
226
-
227
- // Gallery type BY POST, but we are neither on post or page, so we make a different rel attribute on each post
228
- else { ?>
229
-
230
- var posts = jQuery('.post');
231
-
232
- posts.each(function() {
233
- jQuery(this).find(thumbnails).addClass("fancybox").attr('rel','fancybox'+posts.index(this)).getTitle()
234
- });
235
-
236
-
237
- <?php }
238
-
239
- }
240
-
241
- // Gallery type ALL
242
- elseif ($settings['galleryType'] == 'all') { ?>
243
-
244
- jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();
245
-
246
- <?php }
247
-
248
- // Gallery type NONE
249
- elseif ($settings['galleryType'] == 'none') { ?>
250
-
251
- jQuery(thumbnails).addClass("fancybox").getTitle();
252
-
253
- <?php }
254
-
255
- // Else, gallery type is custom, so we just print the custom expression
256
- else {
257
-
258
- echo $settings['customExpression'];
259
-
260
- }
261
-
262
- // Now we call fancybox and apply it on any link with a rel atribute that starts with "fancybox", with the options set on the admin panel ?>
263
- jQuery("a.fancybox").fancybox({
264
- 'imageScale': <?php if ($settings['imageScale']) { echo "true"; } else { echo "false"; } ?>,
265
- 'padding': <?php echo $settings['padding']; ?>,
266
- 'zoomOpacity': <?php if ($settings['zoomOpacity']) { echo "true"; } else { echo "false"; } ?>,
267
- 'zoomSpeedIn': <?php echo $settings['zoomSpeedIn']; ?>,
268
- 'zoomSpeedOut': <?php echo $settings['zoomSpeedOut']; ?>,
269
- 'overlayShow': <?php if ($settings['overlayShow']) { echo "true"; } else { echo "false"; } ?>,
270
- 'overlayOpacity': <?php echo $settings['overlayOpacity']; ?>,
271
- 'hideOnContentClick': <?php if ($settings['hideOnContentClick']) { echo "true"; } else { echo "false"; } ?>,
272
- 'centerOnScroll': <?php if ($settings['centerOnScroll']) { echo "true"; } else { echo "false"; } ?><?php if ($settings['easing']) { ?>,
273
- 'easingIn': <?php echo '"' . $settings['easingIn'] . '"'; ?>,
274
- 'easingOut': <?php echo '"' . $settings['easingOut'] . '"'; ?>,
275
- 'easingChange': <?php echo '"' . $settings['easingChange'] . '"'; ?>
276
- <?php } ?>
277
-
278
- });
279
-
280
- })
281
-
282
- </script>
283
- <?php echo "<!-- END Fancybox for WordPress -->"."\n";
284
-
285
- }
286
-
287
-
288
- // Admin Head
289
- function mfbfw_admin_head() {
290
-
291
- ?>
292
-
293
- <script type="text/javascript">
294
-
295
- jQuery(function(){
296
-
297
- // Advanced Settings Switcher
298
- jQuery("#advOpsSwitch").click(function(){
299
- jQuery(".advOpts").toggle("slow");
300
- });
301
-
302
- // Troubleshooting & Settings Switcher
303
- jQuery("#troOpsSwitch").click(function(){
304
- jQuery(".troOpts").toggle("slow");
305
- });
306
-
307
- // Hide Custom Expresion textarea if not needed
308
- var galleryType = jQuery("input:radio[name=mfbfw_galleryType]:checked").val();
309
-
310
- switch (galleryType) {
311
- case "all":
312
- case "none":
313
- case "post":
314
- jQuery("#customExpressionBlock").css("display", "none");
315
- }
316
-
317
- jQuery("#mfbfw_galleryTypeAll").click(function () {
318
- jQuery("#customExpressionBlock").hide("slow");
319
- });
320
-
321
- jQuery("#mfbfw_galleryTypePost").click(function () {
322
- jQuery("#customExpressionBlock").hide("slow");
323
- });
324
-
325
- jQuery("#mfbfw_galleryTypeCustom").click(function () {
326
- jQuery("#customExpressionBlock").show("slow");
327
- });
328
-
329
- })
330
-
331
- </script>
332
-
333
- <?php
334
-
335
- }
336
-
337
-
338
- // Admin options page
339
- function mfbfw_admin_menu() {
340
-
341
- require dirname(__FILE__) . '/admin.php';
342
-
343
- add_submenu_page('options-general.php', 'Fancybox for WordPress Options', 'Fancybox for WP', 10, 'fancybox-for-wordpress', 'mfbfw_options_page');
344
-
345
- }
346
-
347
-
348
- // Load text domain
349
- function mfbfw_textdomain() {
350
-
351
- if (function_exists('load_plugin_textdomain')) {
352
- load_plugin_textdomain('mfbfw', WP_PLUGIN_URL . '/fancybox-for-wordpress/languages', 'fancybox-for-wordpress/languages');
353
- }
354
-
355
- }
356
-
357
-
358
- // Settings Button on Plugins Panel
359
- function mfbfw_plugin_action_links($links, $file) {
360
-
361
- static $this_plugin;
362
- if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
363
-
364
- if ( $file == $this_plugin ){
365
- $settings_link = '<a href="options-general.php?page=fancybox-for-wordpress">' . __('Settings', 'mfbfw') . '</a>';
366
- array_unshift( $links, $settings_link );
367
- }
368
-
369
- return $links;
370
-
371
- }
372
-
373
-
374
- // Load text domain
375
- function mfbfw_admin_init() {
376
-
377
- register_setting('mfbfw-options', 'mfbfw_borderColor');
378
- register_setting('mfbfw-options', 'mfbfw_closeHorPos');
379
- register_setting('mfbfw-options', 'mfbfw_closeVerPos');
380
- register_setting('mfbfw-options', 'mfbfw_paddingColor');
381
- register_setting('mfbfw-options', 'mfbfw_padding');
382
- register_setting('mfbfw-options', 'mfbfw_overlayShow');
383
- register_setting('mfbfw-options', 'mfbfw_overlayColor');
384
- register_setting('mfbfw-options', 'mfbfw_overlayOpacity');
385
- register_setting('mfbfw-options', 'mfbfw_zoomOpacity');
386
- register_setting('mfbfw-options', 'mfbfw_zoomSpeedIn');
387
- register_setting('mfbfw-options', 'mfbfw_zoomSpeedOut');
388
- register_setting('mfbfw-options', 'mfbfw_easing');
389
- register_setting('mfbfw-options', 'mfbfw_easingIn');
390
- register_setting('mfbfw-options', 'mfbfw_easingOut');
391
- register_setting('mfbfw-options', 'mfbfw_easingChange');
392
- register_setting('mfbfw-options', 'mfbfw_imageScale');
393
- register_setting('mfbfw-options', 'mfbfw_centerOnScroll');
394
- register_setting('mfbfw-options', 'mfbfw_hideOnContentClick');
395
- register_setting('mfbfw-options', 'mfbfw_frameWidth');
396
- register_setting('mfbfw-options', 'mfbfw_frameHeight');
397
- register_setting('mfbfw-options', 'mfbfw_galleryType');
398
- register_setting('mfbfw-options', 'mfbfw_customExpression');
399
- register_setting('mfbfw-options', 'mfbfw_nojQuery');
400
- register_setting('mfbfw-options', 'mfbfw_jQnoConflict');
401
- register_setting('mfbfw-options', 'mfbfw_uninstall');
402
-
403
- }
404
-
405
-
406
-
407
- // Actions
408
- add_action('init', 'mfbfw_textdomain'); // Load Text Domain
409
- add_action('wp_print_scripts', 'mfbfw_load'); // Load FancyBox Script
410
- add_action('wp_print_styles', 'mfbfw_css'); // Fancybox Stylesheet
411
- add_action('wp_head', 'mfbfw_init'); // Initiate Fancybox
412
- add_action('admin_head', 'mfbfw_admin_head'); // Admin Panel Head
413
- add_action('admin_menu', 'mfbfw_admin_menu'); // Admin Panel Page
414
- add_action('admin_init', 'mfbfw_admin_init'); // Register options
415
-
416
-
417
- // Filters
418
- add_filter( 'plugin_action_links', 'mfbfw_plugin_action_links', 10, 2 ); // Settings Button on Plugins Panel
419
-
420
-
421
- // Install and Uninstall
422
- register_activation_hook(__FILE__,'mfbfw_install');
423
- register_deactivation_hook(__FILE__,'mfbfw_uninstall');
424
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
425
  ?>
1
+ <?php
2
+ /*
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.
6
+ Version: 2.7.0
7
+ Author: Jose Pardilla
8
+ Author URI: http://moskis.net/
9
+ */
10
+
11
+
12
+ // Define paths
13
+ define('FBFW_PATH', dirname(__FILE__));
14
+ define('FBFW_URL', WP_PLUGIN_URL . '/fancybox-for-wordpress');
15
+
16
+ // When plugin is activated, update version, and set any new settings to default
17
+ function mfbfw_install() {
18
+
19
+ update_option('mfbfw_active_version', '2.7.0');
20
+
21
+ add_option('mfbfw_showTitle', 'on');
22
+ add_option('mfbfw_border', '');
23
+ add_option('mfbfw_borderColor', '#BBBBBB');
24
+ add_option('mfbfw_closeHorPos', 'right');
25
+ add_option('mfbfw_closeVerPos', 'top');
26
+ add_option('mfbfw_paddingColor', '#FFFFFF');
27
+ add_option('mfbfw_padding', '10');
28
+ add_option('mfbfw_overlayShow', 'on');
29
+ add_option('mfbfw_overlayColor', '#666666');
30
+ add_option('mfbfw_overlayOpacity', '0.3');
31
+ add_option('mfbfw_zoomOpacity', 'on');
32
+ add_option('mfbfw_zoomSpeedIn', '500');
33
+ add_option('mfbfw_zoomSpeedOut', '500');
34
+ add_option('mfbfw_zoomSpeedChange', '300');
35
+ add_option('mfbfw_easing', '');
36
+ add_option('mfbfw_easingIn', 'easeOutBack');
37
+ add_option('mfbfw_easingOut', 'easeInBack');
38
+ add_option('mfbfw_easingChange', 'easeInOutQuart');
39
+
40
+ add_option('mfbfw_imageScale', 'on');
41
+ add_option('mfbfw_enableEscapeButton', 'on');
42
+ add_option('mfbfw_showCloseButton', 'on');
43
+ add_option('mfbfw_centerOnScroll', 'on');
44
+ add_option('mfbfw_hideOnOverlayClick', 'on');
45
+ add_option('mfbfw_hideOnContentClick', '');
46
+ add_option('mfbfw_loadAtFooter', '');
47
+ add_option('mfbfw_frameWidth', '560');
48
+ add_option('mfbfw_frameHeight', '340');
49
+
50
+ add_option('mfbfw_callbackOnStart', '');
51
+ add_option('mfbfw_callbackOnShow', '');
52
+ add_option('mfbfw_callbackOnClose', '');
53
+
54
+ add_option('mfbfw_galleryType', 'all');
55
+ add_option('mfbfw_customExpression', 'jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();');
56
+
57
+ add_option('mfbfw_nojQuery', '');
58
+ add_option('mfbfw_jQnoConflict', 'on');
59
+
60
+ add_option('mfbfw_uninstall', '');
61
+
62
+ // Settings, on previous versions, no longer used
63
+ delete_option('mfbfw_autoApply');
64
+ delete_option('mfbfw_closePosition');
65
+ delete_option('mfbfw_noTextLinks');
66
+
67
+ }
68
+
69
+
70
+ // If requested, when plugin is deactivated, remove settings
71
+ function mfbfw_uninstall() {
72
+
73
+ if (get_option('mfbfw_uninstall')) {
74
+
75
+ delete_option('mfbfw_active_version');
76
+
77
+ delete_option('mfbfw_showTitle');
78
+ delete_option('mfbfw_border');
79
+ delete_option('mfbfw_borderColor');
80
+ delete_option('mfbfw_closeHorPos');
81
+ delete_option('mfbfw_closeVerPos');
82
+ delete_option('mfbfw_paddingColor');
83
+ delete_option('mfbfw_padding');
84
+ delete_option('mfbfw_overlayShow');
85
+ delete_option('mfbfw_overlayColor');
86
+ delete_option('mfbfw_overlayOpacity');
87
+ delete_option('mfbfw_zoomOpacity');
88
+ delete_option('mfbfw_zoomSpeedIn');
89
+ delete_option('mfbfw_zoomSpeedOut');
90
+ delete_option('mfbfw_zoomSpeedChange');
91
+ delete_option('mfbfw_easing');
92
+ delete_option('mfbfw_easingIn');
93
+ delete_option('mfbfw_easingOut');
94
+ delete_option('mfbfw_easingChange');
95
+
96
+ delete_option('mfbfw_imageScale');
97
+ delete_option('mfbfw_enableEscapeButton');
98
+ delete_option('mfbfw_showCloseButton');
99
+ delete_option('mfbfw_centerOnScroll');
100
+ delete_option('mfbfw_hideOnOverlayClick');
101
+ delete_option('mfbfw_hideOnContentClick');
102
+ delete_option('mfbfw_loadAtFooter');
103
+ delete_option('mfbfw_frameWidth');
104
+ delete_option('mfbfw_frameHeight');
105
+
106
+ delete_option('mfbfw_callbackOnStart');
107
+ delete_option('mfbfw_callbackOnShow');
108
+ delete_option('mfbfw_callbackOnClose');
109
+
110
+ delete_option('mfbfw_galleryType');
111
+ delete_option('mfbfw_customExpression');
112
+
113
+ delete_option('mfbfw_nojQuery');
114
+ delete_option('mfbfw_jQnoConflict');
115
+
116
+ delete_option('mfbfw_uninstall');
117
+
118
+ }
119
+
120
+ }
121
+
122
+
123
+ // Store plugin options in an array and return that array
124
+ function mfbfw_get_settings() {
125
+
126
+ $mfbfwSettingsArray=array(
127
+
128
+ 'version' => get_option('mfbfw_active_version'),
129
+
130
+ 'showTitle' => get_option('mfbfw_showTitle'),
131
+ 'border' => get_option('mfbfw_border'),
132
+ 'borderColor' => get_option('mfbfw_borderColor'),
133
+ 'closeHorPos' => get_option('mfbfw_closeHorPos'),
134
+ 'closeVerPos' => get_option('mfbfw_closeVerPos'),
135
+ 'paddingColor' => get_option('mfbfw_paddingColor'),
136
+ 'padding' => get_option('mfbfw_padding'),
137
+ 'overlayShow' => get_option('mfbfw_overlayShow'),
138
+ 'overlayColor' => get_option('mfbfw_overlayColor'),
139
+ 'overlayOpacity' => get_option('mfbfw_overlayOpacity'),
140
+ 'zoomOpacity' => get_option('mfbfw_zoomOpacity'),
141
+ 'zoomSpeedIn' => get_option('mfbfw_zoomSpeedIn'),
142
+ 'zoomSpeedOut' => get_option('mfbfw_zoomSpeedOut'),
143
+ 'zoomSpeedChange' => get_option('mfbfw_zoomSpeedChange'),
144
+ 'easing' => get_option('mfbfw_easing'),
145
+ 'easingIn' => get_option('mfbfw_easingIn'),
146
+ 'easingOut' => get_option('mfbfw_easingOut'),
147
+ 'easingChange' => get_option('mfbfw_easingChange'),
148
+
149
+ 'imageScale' => get_option('mfbfw_imageScale'),
150
+ 'enableEscapeButton' => get_option('mfbfw_enableEscapeButton'),
151
+ 'showCloseButton' => get_option('mfbfw_showCloseButton'),
152
+ 'centerOnScroll' => get_option('mfbfw_centerOnScroll'),
153
+ 'hideOnOverlayClick' => get_option('mfbfw_hideOnOverlayClick'),
154
+ 'hideOnContentClick' => get_option('mfbfw_hideOnContentClick'),
155
+ 'loadAtFooter' => get_option('mfbfw_loadAtFooter'),
156
+ 'frameWidth' => get_option('mfbfw_frameWidth'),
157
+ 'frameHeight' => get_option('mfbfw_frameHeight'),
158
+
159
+ 'callbackOnStart' => get_option('mfbfw_callbackOnStart'),
160
+ 'callbackOnShow' => get_option('mfbfw_callbackOnShow'),
161
+ 'callbackOnClose' => get_option('mfbfw_callbackOnClose'),
162
+
163
+ 'galleryType' => get_option('mfbfw_galleryType'),
164
+ 'customExpression' => get_option('mfbfw_customExpression'),
165
+
166
+ 'nojQuery' => get_option('mfbfw_nojQuery'),
167
+ 'jQnoConflict' => get_option('mfbfw_jQnoConflict'),
168
+
169
+ 'uninstall' => get_option('mfbfw_uninstall')
170
+
171
+ );
172
+
173
+ return $mfbfwSettingsArray;
174
+
175
+ }
176
+
177
+
178
+ // Here we load FancyBox JS with jQuery and jQuery.easing if necessary
179
+ function mfbfw_load() {
180
+
181
+ $settings = mfbfw_get_settings();
182
+
183
+ if ($settings['loadAtFooter']) $loadAtFooter = true;
184
+
185
+ if (!is_admin()) { // avoid the scripts from loading on admin panel
186
+
187
+ if ($settings['nojQuery']) {
188
+
189
+ wp_enqueue_script('fancybox', FBFW_URL . '/js/jquery.fancybox-1.2.6.min.js', $loadAtFooter); // Load fancybox without jQuery (for troubleshooting)
190
+
191
+ } else {
192
+
193
+ wp_enqueue_script('fancybox', FBFW_URL . '/js/jquery.fancybox-1.2.6.min.js', array('jquery'), '1.3.2', $loadAtFooter); // Load fancybox with jQuery
194
+
195
+ }
196
+
197
+ if (get_option('mfbfw_easing')) {
198
+
199
+ wp_enqueue_script('jqueryeasing', FBFW_URL . '/js/jquery.easing.1.3.min.js', array('jquery'), '1.3.2', $loadAtFooter); // Load easing javascript file if required
200
+
201
+ }
202
+
203
+ } elseif ( is_plugin_page() ) {
204
+
205
+ wp_enqueue_script('jquery-ui-tabs', array('jquery-ui-core')); // Load jQuery UI Tabs for Admin Page
206
+
207
+ wp_enqueue_script('fancyboxadmin', FBFW_URL . '/js/admin.js', array('jquery'), '1.3.2'); // Load specific JS for Admin Page
208
+
209
+ }
210
+
211
+ }
212
+
213
+
214
+ // Link to FancyBox stylesheet and apply some custom styles
215
+ function mfbfw_css() {
216
+
217
+ $settings = mfbfw_get_settings();
218
+
219
+ echo "\n".'<link rel="stylesheet" href="'. FBFW_URL . '/css/fancybox.css" type="text/css" media="screen" />'."\n";
220
+
221
+ ?>
222
+
223
+ <style type="text/css">
224
+ div#fancy_inner {border-color:<?php echo $settings['borderColor']; ?>}
225
+ div#fancy_close {<?php echo $settings['closeHorPos']; ?>:-15px;<?php echo $settings['closeVerPos']; ?>:-12px}
226
+ div#fancy_bg {background-color:<?php echo $settings['paddingColor']; if ($settings['border']) { echo "; border:1px solid " . $settings['borderColor']; } ?>}
227
+ <?php if (!$settings['showTitle']) { echo "div#fancy_title table {display:none} \n"; } ?>
228
+ </style>
229
+
230
+ <?php
231
+
232
+ }
233
+
234
+
235
+ // Load FancyBox with the settings set
236
+ function mfbfw_init() {
237
+
238
+ $settings = mfbfw_get_settings();
239
+
240
+ echo "\n"."\n"."<!-- Fancybox for WordPress v". $settings['version'] ." -->"."\n";
241
+
242
+ ?>
243
+
244
+ <script type="text/javascript">
245
+
246
+ <?php if ($settings['jQnoConflict']) { ?>jQuery.noConflict();<?php } echo "\n" ?>
247
+
248
+ jQuery(function(){
249
+
250
+ <?php // This copies the title of every IMG tag and adds it to its parent A so that fancybox can use it ?>
251
+ jQuery.fn.getTitle = function() {
252
+ var arr = jQuery("a.fancybox");
253
+ jQuery.each(arr, function() {
254
+ var title = jQuery(this).children("img").attr("title");
255
+ jQuery(this).attr('title',title);
256
+ })
257
+ }
258
+
259
+ // Supported file extensions
260
+ var thumbnails = 'a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]';
261
+
262
+ <?php if ($settings['galleryType'] == 'post') {
263
+
264
+ // Gallery type BY POST and we are on post or page (so only one post or page is visible)
265
+ if ( is_single() | is_page() ) { ?>
266
+
267
+ jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();
268
+
269
+ <?php }
270
+
271
+ // Gallery type BY POST, but we are neither on post or page, so we make a different rel attribute on each post
272
+ // (optimized based on sugestions from http://mentalfruition.com/)
273
+ else { ?>
274
+
275
+ var posts = jQuery('.post');
276
+
277
+ posts.each(function() {
278
+ jQuery(this).find(thumbnails).addClass("fancybox").attr('rel','fancybox'+posts.index(this)).getTitle()
279
+ });
280
+
281
+
282
+ <?php }
283
+
284
+ }
285
+
286
+ // Gallery type ALL
287
+ elseif ($settings['galleryType'] == 'all') { ?>
288
+
289
+ jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle();
290
+
291
+ <?php }
292
+
293
+ // Gallery type NONE
294
+ elseif ($settings['galleryType'] == 'none') { ?>
295
+
296
+ jQuery(thumbnails).addClass("fancybox").getTitle();
297
+
298
+ <?php }
299
+
300
+ // Else, gallery type is custom, so we just print the custom expression
301
+ else {
302
+
303
+ echo $settings['customExpression'];
304
+
305
+ }
306
+
307
+ // Now we call fancybox and apply it on any link with a rel atribute that starts with "fancybox", with the options set on the admin panel ?>
308
+ jQuery("a.fancybox").fancybox({
309
+ 'imageScale': <?php if ($settings['imageScale']) { echo "true"; } else { echo "false"; } ?>,
310
+ 'padding': <?php echo $settings['padding']; ?>,
311
+ 'zoomOpacity': <?php if ($settings['zoomOpacity']) { echo "true"; } else { echo "false"; } ?>,
312
+ 'zoomSpeedIn': <?php echo $settings['zoomSpeedIn']; ?>,
313
+ 'zoomSpeedOut': <?php echo $settings['zoomSpeedOut']; ?>,
314
+ 'zoomSpeedChange': <?php echo $settings['zoomSpeedChange']; ?>,
315
+ 'overlayShow': <?php if ($settings['overlayShow']) { echo "true"; } else { echo "false"; } ?>,
316
+ 'overlayColor': <?php echo '"' . $settings['overlayColor'] . '"'; ?>,
317
+ 'overlayOpacity': <?php echo $settings['overlayOpacity']; ?>,
318
+ 'enableEscapeButton': <?php if ($settings['enableEscapeButton']) { echo "true"; } else { echo "false"; } ?>,
319
+ 'showCloseButton': <?php if ($settings['showCloseButton']) { echo "true"; } else { echo "false"; } ?>,
320
+ 'hideOnOverlayClick': <?php if ($settings['hideOnOverlayClick']) { echo "true"; } else { echo "false"; } ?>,
321
+ 'hideOnContentClick': <?php if ($settings['hideOnContentClick']) { echo "true"; } else { echo "false"; } ?>,
322
+ 'frameWidth': <?php echo $settings['frameWidth']; ?>,
323
+ 'frameHeight': <?php echo $settings['frameHeight']; ?>,
324
+ 'callbackOnStart': <?php if ($settings['callbackOnStart']) { echo $settings['callbackOnStart']; } else { echo 'null'; } ?>,
325
+ 'callbackOnShow': <?php if ($settings['callbackOnShow']) { echo $settings['callbackOnShow']; } else { echo 'null'; } ?>,
326
+ 'callbackOnClose': <?php if ($settings['callbackOnClose']) { echo $settings['callbackOnClose']; } else { echo 'null'; } ?>,
327
+ 'centerOnScroll': <?php if ($settings['centerOnScroll']) { echo "true"; } else { echo "false"; } ?><?php if ($settings['easing']) { ?>,
328
+ 'easingIn': <?php echo '"' . $settings['easingIn'] . '"'; ?>,
329
+ 'easingOut': <?php echo '"' . $settings['easingOut'] . '"'; ?>,
330
+ 'easingChange': <?php echo '"' . $settings['easingChange'] . '"';
331
+ } ?>
332
+
333
+ });
334
+
335
+ })
336
+
337
+ </script>
338
+ <?php echo "<!-- END Fancybox for WordPress -->"."\n";
339
+
340
+ }
341
+
342
+
343
+ // Admin options page
344
+ function mfbfw_admin_menu() {
345
+
346
+ require FBFW_PATH . '/admin.php';
347
+
348
+ add_submenu_page('options-general.php', 'Fancybox for WordPress Options', 'Fancybox for WP', 10, 'fancybox-for-wordpress', 'mfbfw_options_page');
349
+
350
+ }
351
+
352
+
353
+ // Load text domain
354
+ function mfbfw_textdomain() {
355
+
356
+ if (function_exists('load_plugin_textdomain')) {
357
+ load_plugin_textdomain('mfbfw', FBFW_URL . '/languages', 'fancybox-for-wordpress/languages');
358
+ }
359
+
360
+ }
361
+
362
+
363
+ // Settings Button on Plugins Panel
364
+ function mfbfw_plugin_action_links($links, $file) {
365
+
366
+ static $this_plugin;
367
+ if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
368
+
369
+ if ( $file == $this_plugin ){
370
+ $settings_link = '<a href="options-general.php?page=fancybox-for-wordpress">' . __('Settings', 'mfbfw') . '</a>';
371
+ array_unshift( $links, $settings_link );
372
+ }
373
+
374
+ return $links;
375
+
376
+ }
377
+
378
+
379
+ // Load text domain
380
+ function mfbfw_admin_init() {
381
+
382
+ register_setting('mfbfw-options', 'mfbfw_showTitle');
383
+ register_setting('mfbfw-options', 'mfbfw_border');
384
+ register_setting('mfbfw-options', 'mfbfw_borderColor');
385
+ register_setting('mfbfw-options', 'mfbfw_closeHorPos');
386
+ register_setting('mfbfw-options', 'mfbfw_closeVerPos');
387
+ register_setting('mfbfw-options', 'mfbfw_paddingColor');
388
+ register_setting('mfbfw-options', 'mfbfw_padding');
389
+ register_setting('mfbfw-options', 'mfbfw_overlayShow');
390
+ register_setting('mfbfw-options', 'mfbfw_overlayColor');
391
+ register_setting('mfbfw-options', 'mfbfw_overlayOpacity');
392
+ register_setting('mfbfw-options', 'mfbfw_zoomOpacity');
393
+ register_setting('mfbfw-options', 'mfbfw_zoomSpeedIn');
394
+ register_setting('mfbfw-options', 'mfbfw_zoomSpeedOut');
395
+ register_setting('mfbfw-options', 'mfbfw_zoomSpeedChange');
396
+ register_setting('mfbfw-options', 'mfbfw_easing');
397
+ register_setting('mfbfw-options', 'mfbfw_easingIn');
398
+ register_setting('mfbfw-options', 'mfbfw_easingOut');
399
+ register_setting('mfbfw-options', 'mfbfw_easingChange');
400
+ register_setting('mfbfw-options', 'mfbfw_imageScale');
401
+ register_setting('mfbfw-options', 'mfbfw_centerOnScroll');
402
+ register_setting('mfbfw-options', 'mfbfw_enableEscapeButton');
403
+ register_setting('mfbfw-options', 'mfbfw_showCloseButton');
404
+ register_setting('mfbfw-options', 'mfbfw_hideOnOverlayClick');
405
+ register_setting('mfbfw-options', 'mfbfw_hideOnContentClick');
406
+ register_setting('mfbfw-options', 'mfbfw_loadAtFooter');
407
+ register_setting('mfbfw-options', 'mfbfw_frameWidth');
408
+ register_setting('mfbfw-options', 'mfbfw_frameHeight');
409
+ register_setting('mfbfw-options', 'mfbfw_callbackOnStart');
410
+ register_setting('mfbfw-options', 'mfbfw_callbackOnShow');
411
+ register_setting('mfbfw-options', 'mfbfw_callbackOnClose');
412
+ register_setting('mfbfw-options', 'mfbfw_galleryType');
413
+ register_setting('mfbfw-options', 'mfbfw_customExpression');
414
+ register_setting('mfbfw-options', 'mfbfw_nojQuery');
415
+ register_setting('mfbfw-options', 'mfbfw_jQnoConflict');
416
+ register_setting('mfbfw-options', 'mfbfw_uninstall');
417
+
418
+ }
419
+
420
+
421
+
422
+ // Actions
423
+ add_action('init', 'mfbfw_textdomain'); // Load Text Domain
424
+ add_action('wp_print_scripts', 'mfbfw_load'); // Load FancyBox Script
425
+ add_action('wp_print_styles', 'mfbfw_css'); // Fancybox Stylesheet
426
+ add_action('wp_head', 'mfbfw_init'); // Initiate Fancybox
427
+ add_action('admin_menu', 'mfbfw_admin_menu'); // Admin Panel Page
428
+ add_action('admin_init', 'mfbfw_admin_init'); // Register options
429
+
430
+
431
+ // Filters
432
+ add_filter( 'plugin_action_links', 'mfbfw_plugin_action_links', 10, 2 ); // Settings Button on Plugins Panel
433
+
434
+
435
+ // Install and Uninstall
436
+ register_activation_hook(__FILE__,'mfbfw_install');
437
+ register_deactivation_hook(__FILE__,'mfbfw_uninstall');
438
+
439
  ?>
img/fancy_closebox.png DELETED
Binary file
img/fancy_progress.png DELETED
Binary file
img/fancy_shadow_e.png DELETED
Binary file
img/fancy_shadow_n.png DELETED
Binary file
img/fancy_shadow_ne.png DELETED
Binary file
img/fancy_shadow_nw.png DELETED
Binary file
img/fancy_shadow_s.png DELETED
Binary file
img/fancy_shadow_se.png DELETED
Binary file
img/fancy_shadow_sw.png DELETED
Binary file
img/fancy_shadow_w.png DELETED
Binary file
jquery.easing.1.3.pack.js DELETED
@@ -1 +0,0 @@
1
- jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
 
jquery.fancybox-1.2.1.pack.js DELETED
@@ -1,9 +0,0 @@
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,{}))
 
 
 
 
 
 
 
 
 
js/admin.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ jQuery(function(){
3
+
4
+ // Tabs
5
+ jQuery("#fbfwTabs").tabs();
6
+
7
+ // Advanced Settings Switcher
8
+ jQuery("#advOpsSwitch").click(function(){
9
+ jQuery(".advOpts").toggle("slow");
10
+ });
11
+
12
+ // Troubleshooting & Settings Switcher
13
+ jQuery("#troOpsSwitch").click(function(){
14
+ jQuery(".troOpts").toggle("slow");
15
+ });
16
+
17
+ // Hide Custom Expresion textarea if not needed
18
+ var galleryType = jQuery("input:radio[name=mfbfw_galleryType]:checked").val();
19
+
20
+ switch (galleryType) {
21
+ case "all":
22
+ case "none":
23
+ case "post":
24
+ jQuery("#customExpressionBlock").css("display", "none");
25
+ }
26
+
27
+ jQuery("#mfbfw_galleryTypeAll").click(function () {
28
+ jQuery("#customExpressionBlock").hide("slow");
29
+ });
30
+
31
+ jQuery("#mfbfw_galleryTypePost").click(function () {
32
+ jQuery("#customExpressionBlock").hide("slow");
33
+ });
34
+
35
+ jQuery("#mfbfw_galleryTypeCustom").click(function () {
36
+ jQuery("#customExpressionBlock").show("slow");
37
+ });
38
+
39
+ })
js/jquery.easing.1.3.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */
2
+ jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def: 'easeOutQuad',swing: function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad: function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad: function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad: function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic: function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic: function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic: function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart: function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart: function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart: function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint: function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint: function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint: function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine: function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine: function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine: function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo: function(x,t,b,c,d){return(t==0)?b : c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo: function(x,t,b,c,d){return(t==d)?b+c : c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo: function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc: function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc: function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc: function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic: function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic: function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic: function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack: function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack: function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack: function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce: function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce: function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce: function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});
js/jquery.fancybox-1.2.6.min.js ADDED
@@ -0,0 +1 @@
 
1
+ ;(function($){$.fn.fixPNG=function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage': 'none','filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod="+($(this).css('backgroundRepeat')=='no-repeat'?'crop' : 'scale')+",src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')$(this).css('position','relative');});}});};var elem,opts,busy=false,imagePreloader=new Image,loadingTimer,loadingFrame=1,imageRegExp=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i;var ieQuirks=null,IE6=$.browser.msie&&$.browser.version.substr(0,1)==6&&!window.XMLHttpRequest,oldIE=IE6||($.browser.msie&&$.browser.version.substr(0,1)==7);$.fn.fancybox=function(o){var settings=$.extend({},$.fn.fancybox.defaults,o);var matchedGroup=this;function _initialize(){elem=this;opts=$.extend({},settings);_start();return false;};function _start(){if(busy)return;if($.isFunction(opts.callbackOnStart)){opts.callbackOnStart();}opts.itemArray=[];opts.itemCurrent=0;if(settings.itemArray.length>0){opts.itemArray=settings.itemArray;}else{var item={};if(!elem.rel||elem.rel==''){var item={href: elem.href,title: elem.title};if($(elem).children("img:first").length){item.orig=$(elem).children("img:first");}else{item.orig=$(elem);}if(item.title==''||typeof item.title=='undefined'){item.title=item.orig.attr('alt');}opts.itemArray.push(item);}else{var subGroup=$(matchedGroup).filter("a[rel="+elem.rel+"]");var item={};for(var i=0;i<subGroup.length;i++){item={href: subGroup[i].href,title: subGroup[i].title};if($(subGroup[i]).children("img:first").length){item.orig=$(subGroup[i]).children("img:first");}else{item.orig=$(subGroup[i]);}if(item.title==''||typeof item.title=='undefined'){item.title=item.orig.attr('alt');}opts.itemArray.push(item);}}}while(opts.itemArray[opts.itemCurrent].href!=elem.href){opts.itemCurrent++;}if(opts.overlayShow){if(IE6){$('embed,object,select').css('visibility','hidden');$("#fancy_overlay").css('height',$(document).height());}$("#fancy_overlay").css({'background-color' : opts.overlayColor,'opacity' : opts.overlayOpacity}).show();}$(window).bind("resize.fb scroll.fb",$.fn.fancybox.scrollBox);_change_item();};function _change_item(){$("#fancy_right,#fancy_left,#fancy_close,#fancy_title").hide();var href=opts.itemArray[opts.itemCurrent].href;if(href.match("iframe")||elem.className.indexOf("iframe")>=0){$.fn.fancybox.showLoading();_set_content('<iframe id="fancy_frame" onload="jQuery.fn.fancybox.showIframe()" name="fancy_iframe'+Math.round(Math.random()*1000)+'" frameborder="0" hspace="0" src="'+href+'"></iframe>',opts.frameWidth,opts.frameHeight);}else if(href.match(/#/)){var target=window.location.href.split('#')[0];target=href.replace(target,'');target=target.substr(target.indexOf('#'));_set_content('<div id="fancy_div">'+$(target).html()+'</div>',opts.frameWidth,opts.frameHeight);}else if(href.match(imageRegExp)){imagePreloader=new Image;imagePreloader.src=href;if(imagePreloader.complete){_proceed_image();}else{$.fn.fancybox.showLoading();$(imagePreloader).unbind().bind('load',function(){$("#fancy_loading").hide();_proceed_image();});}}else{$.fn.fancybox.showLoading();$.get(href,function(data){$("#fancy_loading").hide();_set_content('<div id="fancy_ajax">'+data+'</div>',opts.frameWidth,opts.frameHeight);});}};function _proceed_image(){var width=imagePreloader.width;var height=imagePreloader.height;var horizontal_space=(opts.padding*2)+40;var vertical_space=(opts.padding*2)+60;var w=$.fn.fancybox.getViewport();if(opts.imageScale&&(width>(w[0]-horizontal_space)||height>(w[1]-vertical_space))){var ratio=Math.min(Math.min(w[0]-horizontal_space,width)/width,Math.min(w[1]-vertical_space,height)/height);width=Math.round(ratio*width);height=Math.round(ratio*height);}_set_content('<img alt="" id="fancy_img" src="'+imagePreloader.src+'"/>',width,height);};function _preload_neighbor_images(){if((opts.itemArray.length-1)>opts.itemCurrent){var href=opts.itemArray[opts.itemCurrent+1].href||false;if(href&&href.match(imageRegExp)){objNext=new Image();objNext.src=href;}}if(opts.itemCurrent>0){var href=opts.itemArray[opts.itemCurrent-1].href||false;if(href&&href.match(imageRegExp)){objNext=new Image();objNext.src=href;}}};function _set_content(value,width,height){busy=true;var pad=opts.padding;if(oldIE||ieQuirks){$("#fancy_content")[0].style.removeExpression("height");$("#fancy_content")[0].style.removeExpression("width");}if(pad>0){width+=pad*2;height+=pad*2;$("#fancy_content").css({'top' : pad+'px','right' : pad+'px','bottom' : pad+'px','left' : pad+'px','width' : 'auto','height' : 'auto'});if(oldIE||ieQuirks){$("#fancy_content")[0].style.setExpression('height','(this.parentNode.clientHeight-'+pad*2+')');$("#fancy_content")[0].style.setExpression('width','(this.parentNode.clientWidth-'+pad*2+')');}}else{$("#fancy_content").css({'top' : 0,'right' : 0,'bottom' : 0,'left' : 0,'width' : '100%','height' : '100%'});}if($("#fancy_outer").is(":visible")&&width==$("#fancy_outer").width()&&height==$("#fancy_outer").height()){$("#fancy_content").fadeOut('fast',function(){$("#fancy_content").empty().append($(value)).fadeIn("normal",function(){_finish();});});return;}var w=$.fn.fancybox.getViewport();var itemTop=(height+60)>w[1]?w[3]:(w[3]+Math.round((w[1]-height-60)*0.5));var itemLeft=(width+40)>w[0]?w[2]:(w[2]+Math.round((w[0]-width-40)*0.5));var itemOpts={'left': itemLeft,'top': itemTop,'width': width+'px','height': height+'px'};if($("#fancy_outer").is(":visible")){$("#fancy_content").fadeOut("normal",function(){$("#fancy_content").empty();$("#fancy_outer").animate(itemOpts,opts.zoomSpeedChange,opts.easingChange,function(){$("#fancy_content").append($(value)).fadeIn("normal",function(){_finish();});});});}else{if(opts.zoomSpeedIn>0&&opts.itemArray[opts.itemCurrent].orig!==undefined){$("#fancy_content").empty().append($(value));var orig_item=opts.itemArray[opts.itemCurrent].orig;var orig_pos=$.fn.fancybox.getPosition(orig_item);$("#fancy_outer").css({'left':(orig_pos.left-20-opts.padding)+'px','top':(orig_pos.top-20-opts.padding)+'px','width': $(orig_item).width()+(opts.padding*2),'height': $(orig_item).height()+(opts.padding*2)});if(opts.zoomOpacity){itemOpts.opacity='show';}$("#fancy_outer").animate(itemOpts,opts.zoomSpeedIn,opts.easingIn,function(){_finish();});}else{$("#fancy_content").hide().empty().append($(value)).show();$("#fancy_outer").css(itemOpts).fadeIn("normal",function(){_finish();});}}};function _set_navigation(){if(opts.itemCurrent!==0){$("#fancy_left,#fancy_left_ico").unbind().bind("click",function(e){e.stopPropagation();opts.itemCurrent--;_change_item();return false;});$("#fancy_left").show();}if(opts.itemCurrent!=(opts.itemArray.length-1)){$("#fancy_right,#fancy_right_ico").unbind().bind("click",function(e){e.stopPropagation();opts.itemCurrent++;_change_item();return false;});$("#fancy_right").show();}};function _finish(){if($.browser.msie){$("#fancy_content")[0].style.removeAttribute('filter');$("#fancy_outer")[0].style.removeAttribute('filter');}_set_navigation();_preload_neighbor_images();$(document).bind("keydown.fb",function(e){if(e.keyCode==27&&opts.enableEscapeButton){$.fn.fancybox.close();}else if(e.keyCode==37&&opts.itemCurrent!==0){$(document).unbind("keydown.fb");opts.itemCurrent--;_change_item();}else if(e.keyCode==39&&opts.itemCurrent!=(opts.itemArray.length-1)){$(document).unbind("keydown.fb");opts.itemCurrent++;_change_item();}});if(opts.hideOnContentClick){$("#fancy_content").click($.fn.fancybox.close);}if(opts.overlayShow&&opts.hideOnOverlayClick){$("#fancy_overlay").bind("click",$.fn.fancybox.close);}if(opts.showCloseButton){$("#fancy_close").bind("click",$.fn.fancybox.close).show();}if(typeof opts.itemArray[opts.itemCurrent].title!=='undefined'&&opts.itemArray[opts.itemCurrent].title.length>0){var pos=$("#fancy_outer").position();$('#fancy_title div').text(opts.itemArray[opts.itemCurrent].title).html();$('#fancy_title').css({'top' : pos.top+$("#fancy_outer").outerHeight()-32,'left' : pos.left+(($("#fancy_outer").outerWidth()*0.5)-($('#fancy_title').width()*0.5))}).show();}if(opts.overlayShow&&IE6){$('embed,object,select',$('#fancy_content')).css('visibility','visible');}if($.isFunction(opts.callbackOnShow)){opts.callbackOnShow(opts.itemArray[opts.itemCurrent]);}if($.browser.msie){$("#fancy_outer")[0].style.removeAttribute('filter');$("#fancy_content")[0].style.removeAttribute('filter');}busy=false;};return this.unbind('click.fb').bind('click.fb',_initialize);};$.fn.fancybox.scrollBox=function(){var w=$.fn.fancybox.getViewport();if(opts.centerOnScroll&&$("#fancy_outer").is(':visible')){var ow=$("#fancy_outer").outerWidth();var oh=$("#fancy_outer").outerHeight();var pos={'top' :(oh>w[1]?w[3]: w[3]+Math.round((w[1]-oh)*0.5)),'left' :(ow>w[0]?w[2]: w[2]+Math.round((w[0]-ow)*0.5))};$("#fancy_outer").css(pos);$('#fancy_title').css({'top' : pos.top+oh-32,'left' : pos.left+((ow*0.5)-($('#fancy_title').width()*0.5))});}if(IE6&&$("#fancy_overlay").is(':visible')){$("#fancy_overlay").css({'height' : $(document).height()});}if($("#fancy_loading").is(':visible')){$("#fancy_loading").css({'left':((w[0]-40)*0.5+w[2]),'top':((w[1]-40)*0.5+w[3])});}};$.fn.fancybox.getNumeric=function(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};$.fn.fancybox.getPosition=function(el){var pos=el.offset();pos.top+=$.fn.fancybox.getNumeric(el,'paddingTop');pos.top+=$.fn.fancybox.getNumeric(el,'borderTopWidth');pos.left+=$.fn.fancybox.getNumeric(el,'paddingLeft');pos.left+=$.fn.fancybox.getNumeric(el,'borderLeftWidth');return pos;};$.fn.fancybox.showIframe=function(){$("#fancy_loading").hide();$("#fancy_frame").show();};$.fn.fancybox.getViewport=function(){return[$(window).width(),$(window).height(),$(document).scrollLeft(),$(document).scrollTop()];};$.fn.fancybox.animateLoading=function(){if(!$("#fancy_loading").is(':visible')){clearInterval(loadingTimer);return;}$("#fancy_loading>div").css('top',(loadingFrame*-40)+'px');loadingFrame=(loadingFrame+1)%12;};$.fn.fancybox.showLoading=function(){clearInterval(loadingTimer);var w=$.fn.fancybox.getViewport();$("#fancy_loading").css({'left':((w[0]-40)*0.5+w[2]),'top':((w[1]-40)*0.5+w[3])}).show();$("#fancy_loading").bind('click',$.fn.fancybox.close);loadingTimer=setInterval($.fn.fancybox.animateLoading,66);};$.fn.fancybox.close=function(){busy=true;$(imagePreloader).unbind();$(document).unbind("keydown.fb");$(window).unbind("resize.fb scroll.fb");$("#fancy_overlay,#fancy_content,#fancy_close").unbind();$("#fancy_close,#fancy_loading,#fancy_left,#fancy_right,#fancy_title").hide();__cleanup=function(){if($("#fancy_overlay").is(':visible')){$("#fancy_overlay").fadeOut("fast");}$("#fancy_content").empty();if(opts.centerOnScroll){$(window).unbind("resize.fb scroll.fb");}if(IE6){$('embed,object,select').css('visibility','visible');}if($.isFunction(opts.callbackOnClose)){opts.callbackOnClose();}busy=false;};if($("#fancy_outer").is(":visible")!==false){if(opts.zoomSpeedOut>0&&opts.itemArray[opts.itemCurrent].orig!==undefined){var orig_item=opts.itemArray[opts.itemCurrent].orig;var orig_pos=$.fn.fancybox.getPosition(orig_item);var itemOpts={'left':(orig_pos.left-20-opts.padding)+'px','top':(orig_pos.top-20-opts.padding)+'px','width': $(orig_item).width()+(opts.padding*2),'height': $(orig_item).height()+(opts.padding*2)};if(opts.zoomOpacity){itemOpts.opacity='hide';}$("#fancy_outer").stop(false,true).animate(itemOpts,opts.zoomSpeedOut,opts.easingOut,__cleanup);}else{$("#fancy_outer").stop(false,true).fadeOut('fast',__cleanup);}}else{__cleanup();}return false;};$.fn.fancybox.build=function(){var html='';html+='<div id="fancy_overlay"></div>';html+='<div id="fancy_loading"><div></div></div>';html+='<div id="fancy_outer">';html+='<div id="fancy_inner">';html+='<div id="fancy_close"></div>';html+='<div id="fancy_bg"><div class="fancy_bg" id="fancy_bg_n"></div><div class="fancy_bg" id="fancy_bg_ne"></div><div class="fancy_bg" id="fancy_bg_e"></div><div class="fancy_bg" id="fancy_bg_se"></div><div class="fancy_bg" id="fancy_bg_s"></div><div class="fancy_bg" id="fancy_bg_sw"></div><div class="fancy_bg" id="fancy_bg_w"></div><div class="fancy_bg" id="fancy_bg_nw"></div></div>';html+='<a href="javascript:;" id="fancy_left"><span class="fancy_ico" id="fancy_left_ico"></span></a><a href="javascript:;" id="fancy_right"><span class="fancy_ico" id="fancy_right_ico"></span></a>';html+='<div id="fancy_content"></div>';html+='</div>';html+='</div>';html+='<div id="fancy_title"></div>';$(html).appendTo("body");$('<table cellspacing="0" cellpadding="0" border="0"><tr><td class="fancy_title" id="fancy_title_left"></td><td class="fancy_title" id="fancy_title_main"><div></div></td><td class="fancy_title" id="fancy_title_right"></td></tr></table>').appendTo('#fancy_title');if($.browser.msie){$(".fancy_bg").fixPNG();}if(IE6){$("div#fancy_overlay").css("position","absolute");$("#fancy_loading div,#fancy_close,.fancy_title,.fancy_ico").fixPNG();$("#fancy_inner").prepend('<iframe id="fancy_bigIframe" src="javascript:false;" scrolling="no" frameborder="0"></iframe>');var frameDoc=$('#fancy_bigIframe')[0].contentWindow.document;frameDoc.open();frameDoc.close();}};$.fn.fancybox.defaults={padding : 10,imageScale : true,zoomOpacity : true,zoomSpeedIn : 0,zoomSpeedOut : 0,zoomSpeedChange : 300,easingIn : 'swing',easingOut : 'swing',easingChange : 'swing',frameWidth : 560,frameHeight : 340,overlayShow : true,overlayOpacity : 0.3,overlayColor : '#666',enableEscapeButton : true,showCloseButton : true,hideOnOverlayClick : true,hideOnContentClick : true,centerOnScroll : true,itemArray :[],callbackOnStart : null,callbackOnShow : null,callbackOnClose : null};$(document).ready(function(){ieQuirks=$.browser.msie&&!$.boxModel;if($("#fancy_outer").length<1){$.fn.fancybox.build();}});})(jQuery);
languages/mfbfw-es_ES.mo CHANGED
Binary file
languages/mfbfw-es_ES.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: FancyBox for WordPress Español\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/fancybox-for-wordpress\n"
5
- "POT-Creation-Date: 2009-06-26 04:32+0000\n"
6
  "PO-Revision-Date: \n"
7
- "Last-Translator: Jose <jose@moskis.net>\n"
8
  "Language-Team: Moskis <jose@moskis.net>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -12,331 +12,426 @@ msgstr ""
12
  "X-Poedit-Language: Spanish\n"
13
  "X-Poedit-Country: SPAIN\n"
14
 
15
- #: admin.php:21
16
  #, php-format
17
  msgid "Fancybox for WordPress Options (version %s)"
18
  msgstr "Opciones de Fancybox for WordPress (versión %s)"
19
 
20
- #: admin.php:25
21
- msgid "If you use FancyBox and like it, buy the author a beer!"
22
- msgstr "Si usas FancyBox y te gusta, c&oacute;mprale una cerveza al autor!"
23
 
24
- #: admin.php:46
25
- msgid "The author of this WordPress Plugin also likes beer :P"
26
- msgstr "Al autor de este plugin para WordPress tambi&eacute;n le gusta la cerveza :P"
27
 
28
- #: admin.php:59
29
- msgid "Follow me on Twitter for more WordPress Plugins and Themes"
30
- msgstr "S&iacute;gueme en Twitter para m&aacute;s Plugins y Temas de WordPress"
31
 
32
- #: admin.php:66
33
- msgid "Info & Support"
34
- msgstr "Info & Soporte"
35
 
36
- #: admin.php:68
37
- msgid "<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>."
38
- msgstr "<a href=\"http://fancy.klade.lv/home\">FancyBox</a> desarrollado por <a href=\"http://kac.klade.lv/\">Janis Skarnelis</a>, adaptado a WordPress por <a href=\"http://moskis.net/\">Jos&eacute; Pardilla</a>. Licenciado bajo <a target=\"_blank\" href=\"http://en.wikipedia.org/wiki/MIT_License\">Licencia MIT</a>."
39
 
40
- #: admin.php:70
41
- msgid "As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)"
42
- msgstr "Como puedes ver, este plugin te permite editar muchas opciones, pero no te preocupes, puedes dejarlo todo como está, ya que las opciones predefinidas no están mal para empezar... :)"
43
 
44
- #: admin.php:74
45
- msgid "If you have problems or questions about FancyBox, please start with these links: <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://fancy.klade.lv/faq\">FAQ</a>.<br />If that does not help, go to <a href=\"http://groups.google.com/group/fancybox\">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question."
46
- msgstr "Si tienes problemas o dudas acerca de FancyBox, por favor visita estos enlaces (en inglés): <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://fancy.klade.lv/faq\">FAQ</a>.<br />Si eso no ayuda, ves al <a href=\"http://groups.google.com/group/fancybox\">Grupo de Google de FancyBox</a>, usa la opción de <strong>Búsqueda</strong>, y si no encuentras lo que buscas, pregunta allí."
47
 
48
- #: admin.php:76
49
- msgid "If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href=\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">leave a comment here</a> explaining the problem."
50
- msgstr "Si tienes problemas con este plugin para WordPress, intenta localizar la fuente del problema (cambia de tema y/o desactiva plugins hasta que encuentres lo que causa el problema). También puedes usar las optiones de Resolución de Errores que hay al final de esta página. Si no consigues hacer funcionar el plugin, <a href=\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">deja un comentario aquí</a> explicando el problema."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
- #: admin.php:81
 
 
 
 
 
 
 
 
 
 
 
 
53
  msgid "Appearance Settings <span style=\"color:green\">(basic)</span>"
54
  msgstr "Opciones de Apariencia <span style=\"color:green\">(básico)</span>"
55
 
56
- #: admin.php:83
57
- msgid "These are the main settings, which let you tweak color, borders and animation."
58
- msgstr "Estas son las opciones principales, que te permiten ajustar los colores, bordes y animación."
59
-
60
- #: admin.php:85
61
- msgid "<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."
62
- msgstr "<strong>Nota:</strong> Usar un plugin de caché puede hacer que los cambios no surjan efecto inmediatamente, vacía el cache después de guardar los cambios or desactivalo hasta que termines de ajustar estas opciones."
63
 
64
- #: admin.php:100
65
  msgid "Border Color"
66
  msgstr "Color del Borde"
67
 
68
- #: admin.php:106
 
 
 
 
69
  msgid "HTML color of the border (default: #BBBBBB)"
70
  msgstr "Color HTML del borde (por defecto: #BBBBBB)"
71
 
72
- #: admin.php:114
73
- msgid "Close Button Position"
74
- msgstr "Posición del Botón de Cerrar"
 
 
 
 
75
 
76
- #: admin.php:120
 
 
 
 
77
  msgid "Left"
78
  msgstr "Izquierda"
79
 
80
- #: admin.php:125
81
  msgid "Right (default)"
82
  msgstr "Derecha (por defecto)"
83
 
84
- #: admin.php:130
85
  msgid "Bottom"
86
  msgstr "Abajo"
87
 
88
- #: admin.php:135
89
  msgid "Top (default)"
90
  msgstr "Arriba (por defecto)"
91
 
92
- #: admin.php:143
93
  msgid "Padding"
94
  msgstr "Margen"
95
 
96
- #: admin.php:149
97
  msgid "HTML color of the padding (default: #FFFFFF)"
98
  msgstr "Color HTML del margen (por defecto: #FFFFFF)"
99
 
100
- #: admin.php:154
 
 
 
 
101
  msgid "Padding size in pixels (default: 10)"
102
  msgstr "Tamaño del margen en píxeles (por defecto: 10)"
103
 
104
- #: admin.php:157
105
- msgid "(Set <strong>Border Color</strong> to \"#000000\" and <strong>Padding Size</strong> to \"0\" for the classic FancyBox look)"
106
- msgstr "(Pon el <strong>Color del Borde</strong> en \"#000000\" y el <strong>Tamaño del Margen</strong> en \"0\" para el aspecto clásico de FancyBox)"
107
-
108
- #: admin.php:164
109
  msgid "Overlay Options"
110
  msgstr "Opciones de Overlay"
111
 
112
- #: admin.php:170
113
  msgid "Add overlay (default: on)"
114
  msgstr "Añadir overlay (por defecto: activado)"
115
 
116
- #: admin.php:175
117
  msgid "HTML color of the overlay (default: #666666)"
118
  msgstr "Color HTML del overlay (por defecto: #666666)"
119
 
120
- #: admin.php:188
121
  msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
122
  msgstr "Opacidad del overlay. 0 es transparente, 1 es opaco (por defecto: 0.3)"
123
 
124
- #: admin.php:196
125
- msgid "Zoom Options"
126
- msgstr "Opciones de Zoom"
127
-
128
- #: admin.php:202
129
- msgid "Change content transparency during zoom animations (default: on)"
130
- msgstr "Animar opacidad durante el efecto de zoom (por defecto: activado)"
131
-
132
- #: admin.php:214
133
- msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
134
- msgstr "Velocidad en milisegundos del efecto de Zoom In (por defecto: 500)"
135
-
136
- #: admin.php:226
137
- msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
138
- msgstr "Velocidad en milisegundos del efecto de Zoom Out (por defecto: 500)"
139
 
140
- #: admin.php:234
141
- msgid "Easing"
142
- msgstr "Efecto de Animación"
143
 
144
- #: admin.php:240
145
- msgid "Activate easing (default: off)"
146
- msgstr "Activar efecto de animación (por defecto: desactivado)"
147
-
148
- #: admin.php:253
149
- msgid "Easing method when opening FancyBox. (default: easeOutBack)"
150
- msgstr "Efecto de animación al abrir FancyBox. (por defecto: easeOutBack)"
151
-
152
- #: admin.php:266
153
- msgid "Easing method when closing FancyBox. (default: easeInBack)"
154
- msgstr "Efecto de animación al cerrar FancyBox. (por defecto: easeInBack)"
155
-
156
- #: admin.php:279
157
- msgid "Easing method when navigating through gallery items. (default: easeInOutQuart)"
158
- msgstr "Efecto de animación al navegar por galerías. (por defecto: easoInOutQuart)"
159
-
160
- #: admin.php:282
161
- msgid "(There are 30 different easing methods, the first ones are the most boring. You can test them <a href=\"http://commadot.com/jquery/easing.php\" target=\"_blank\">here</a> or <a href=\"http://hosted.zeh.com.br/mctween/animationtypes.html\" target=\"_blank\">here</a>)"
162
- msgstr "(Hay 30 efectos diferentes, los primeros son los más aburridos. Puedes probarlos <a href=\"http://commadot.com/jquery/easing.php\" target=\"_blank\">aquí</a> o <a href=\"http://hosted.zeh.com.br/mctween/animationtypes.html\" target=\"_blank\">aquí</a>)"
163
-
164
- #: admin.php:291
165
- msgid "Show/Hide Advanced Settings"
166
- msgstr "Mostrar/Ocultar Opciones Avanzadas"
167
-
168
- #: admin.php:292
169
- msgid "Show/Hide Troubleshooting &amp; Uninstall Settings"
170
- msgstr "Mostrar/Ocultar Resolución de Problemas y Desinstalaci&oacute;n"
171
-
172
- #: admin.php:297
173
  msgid "Behavior Settings <span style=\"color:orange\">(medium)</span>"
174
  msgstr "Opciones de Comportamiento <span style=\"color:orange\">(medio)</span>"
175
 
176
- #: admin.php:299
177
  msgid "The following settings should be left on default unless you know what you are doing."
178
  msgstr "Las siguientes opciones solo deberían ser editadas si sabes lo que estás haciendo."
179
 
180
- #: admin.php:305
181
  msgid "Auto Resize to Fit"
182
  msgstr "Ajustar Tamaño"
183
 
184
- #: admin.php:311
185
  msgid "Scale images to fit in viewport (default: on)"
186
  msgstr "Ajusta el tamaño de las imagenes a la ventana del navegador (por defecto: activado)"
187
 
188
- #: admin.php:319
189
  msgid "Center on Scroll"
190
  msgstr "Centrar al hacer Scroll"
191
 
192
- #: admin.php:325
193
  msgid "Keep image in the center of the browser window when scrolling (default: on)"
194
  msgstr "Mantiene la imagen en el centro de la ventana del naegador al hacer scroll (por defecto: activado)"
195
 
196
- #: admin.php:333
197
  msgid "Close on Click"
198
  msgstr "Cerrar al hacer click"
199
 
200
- #: admin.php:339
201
  msgid "Close FancyBox by clicking on the image (default: off)"
202
  msgstr "Cerrar FancyBox al hacer click en la imagen (por defecto: desactivado)"
203
 
204
- #: admin.php:342
205
- msgid "(You may want to leave this off if you display iframed or inline content and it containts clickable elements - for example: play buttons for movies, links to other pages)"
206
- msgstr "(Puedes que quieras dejar esta opción desactivada si vas a usar contendido anidado que incluya enlaces - for ejemplo: botones de play, enlaces a otras páginas))"
207
 
208
- #: admin.php:352
 
 
 
 
 
 
 
 
209
  msgid "Gallery Settings <span style=\"color:red\">(advanced)</span>"
210
  msgstr "Opciones de Galería <span style=\"color:red\">(avanzado)</span>"
211
 
212
- #: admin.php:354
213
  msgid "Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like."
214
  msgstr "Aquí puedes elegir si quieres que el plugin agrupe las imágenes en una galería, o hacer una galería para cada entrada. También puedes definir tu propia expresión en jQuery."
215
 
216
- #: admin.php:360
217
  msgid "Frame Size"
218
  msgstr "Tamaño del recuadro"
219
 
220
- #: admin.php:366
221
- msgid "Width in pixels of FancyBox when showing iframe content (default: 640)"
222
- msgstr "Ancho en píxeles de FancyBox cuado se muestre contenido anidado (por defecto: 640)"
223
 
224
- #: admin.php:371
225
- msgid "Height in pixels of FancyBox when showing iframe content (default: 500)"
226
- msgstr "Alto en píxeles de FancyBox cuado se muestre contenido anidado (por defecto: 500)"
227
 
228
- #: admin.php:379
229
  msgid "Gallery Type"
230
  msgstr "Tipo de Galería"
231
 
232
- #: admin.php:385
233
  msgid "Make a gallery for all images on the page (default)"
234
  msgstr "Incluir todas las imágenes de la página en una única galería (opción por defecto)"
235
 
236
- #: admin.php:390
237
  msgid "Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)"
238
  msgstr "No agrupar im&aacute;genes en galer&iacute;as autom&aacute;ticamente (usa esta opci&oacute;n si quieres agrupar las imagenes manualmente con el atributo <code>REL</code>)"
239
 
240
- #: admin.php:395
241
  msgid "Make a gallery for each post (will only work if your theme uses <code>class=\"post\"</code> on each post, which is common in WordPress"
242
  msgstr "Hacer una galer&iacute;a para cada post (solo funcionar&aacute; si el tema usa <code>class=\"post\"</code> en cada post, que es lo m&aacute;s com&uacte;n en WordPress"
243
 
244
- #: admin.php:400
245
  msgid "Use a custom expression to apply FancyBox"
246
  msgstr "Aplicar FancyBox con una expresión personalizada"
247
 
248
- #: admin.php:409
249
  msgid "Custom expression guidelines:"
250
  msgstr "Indicaciones para expresiones personalizadas:"
251
 
252
- #: admin.php:411
253
  msgid "&middot; The custom expression has to apply <code>class=\"fancybox\"</code> to the links where you want to use FancyBox. Do not call the <code>fancybox()</code> function here, the plugin does this for you."
254
  msgstr "&middot; La expresión personalizada tiene que aplicar el atributo <code>class=\"fancybox\"</code> a los enlaces en los que quieras usar FancyBox. No llames a la funci&oacute;n <code>fancybox()</code> aqu&iacute;, de eso ya se encarga el plugin."
255
 
256
- #: admin.php:413
257
  msgid "&middot; The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class."
258
  msgstr "&middot; La funci&oacute;n <code>addClass()</code> de jQuery es una buena forma de a&ntilde;adir el class a los links deseados."
259
 
260
- #: admin.php:415
261
  msgid "&middot; You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions."
262
  msgstr "&middot; Puedes usar <code>getTitle()</code> en tu expresi&oacute;n para copiar el atributo title desde el tag <code>IMG</code> al tag <code>A</code>, para que FancyBox pueda mostrar el t&iacute;tulo de la imagen."
263
 
264
- #: admin.php:417
265
  msgid "&middot; You can use <code>jQuery(thumbnails)</code> like in the example expression to apply FancyBox to thumbnails that link to these extensions: BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase)."
266
  msgstr "&middot; Puedes usar <code>jQuery(thumbnails)</code> como en el ejemplo para aplicar FancyBox a las miniaturas de im%aacute;genes que enlazen a estas extensiones: BMP, GIF, JPG, JPEG, PNG tanto en min&uacute;scula como en may&uacute;scula)."
267
 
268
- #: admin.php:419
269
  msgid "&middot; If you want to do it manually you can use something like <code>jQuery(\"a:has(img)[href$='.jpg']\")</code> or whatever works for you."
270
  msgstr "&middot; Si prefieres hacerlo manualmente puedes usar algo como <code>jQuery(\"a:has(img)[href$='.jpg']\")</code> o lo que m&aacute;s se ajuste a tu blog."
271
 
272
- #: admin.php:421
273
  msgid "See the <a href=\"http://docs.jquery.com/\" target=\"_blank\">jQuery Documentation</a> for more help."
274
  msgstr "Visita la <a href=\"http://docs.jquery.com/\" target=\"_blank\">Documentaci&oacute;n de jQuery</a> para encontrar m&aacute;s ayuda."
275
 
276
- #: admin.php:423
277
  msgid "Examples:"
278
  msgstr "Ejemplos:"
279
 
280
- #: admin.php:443
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  msgid "Troubleshooting Settings"
282
  msgstr "Resolución de Problemas"
283
 
284
- #: admin.php:445
285
  msgid "Settings in this section should only be changed if you are having problems with the plugin!"
286
  msgstr "Las opciones de esta sección solo deben ser editadas si tienes problemas con el plugin!"
287
 
288
- #: admin.php:447
289
  msgid "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)."
290
  msgstr "Si el plugin no funciona, lo primero que deberías hacer es comprobar que no haya un conflicto con otros plugins, especialmente otro tipo de Lightbox, Slimbox, etc. Asegúrate de que todos tus plugins y tu WordPress están actualizados (este plugin solo se ha testado con WordPress 2.7 y superiores)."
291
 
292
- #: admin.php:449
293
  msgid "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."
294
  msgstr "Cámbialas de una en una y comprueba si solucionan tu problema. Recuqerda que usar un plugin de caché puede hacer que los cambios no surjan efecto inmediatamente, vacía el cache después de guardar los cambios or desactivalo hasta que termines de ajustar estas opciones."
295
 
296
- #: admin.php:455
297
  msgid "Do not call jQuery"
298
  msgstr "No cargar jQuery"
299
 
300
- #: admin.php:461
301
  msgid "Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)"
302
  msgstr "Omitir llamada a jQuery. Usa esta opción sólo si jQuery se está cargando dos veces por error. (por defecto: desactivado)"
303
 
304
- #: admin.php:469
305
  msgid "jQuery \"noConflict\" Mode"
306
  msgstr "Modo jQuery \"noConflict\""
307
 
308
- #: admin.php:475
309
  msgid "Use jQuery noConflict mode (default: on)"
310
  msgstr "Usar parámetro noConflict de jQuery (por defecto: activado)"
311
 
312
- #: admin.php:478
313
  msgid "(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)"
314
  msgstr "(Desactivar esta opción puede causar problemas si hay plugins activadoes que usen otros frameworks javascript como Mootols, Prototype, Scriptaculous, etc.)"
315
 
316
- #: admin.php:487
317
  msgid "Uninstall"
318
  msgstr "Desinstalar"
319
 
320
- #: admin.php:489
321
  msgid "Like many other plugins, FancyBox for WordPress stores its settings on your WordPress' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and <strong>when you deactivate the plugin</strong>, all its settings will be removed from the database."
322
  msgstr "Al igual que otros plugins, FancyBox for WordPress guarda sus opciones en la tabla de opciones de la base de datos de WordPress. En realidad, estas opcines no ocupam más que unos kilobytes de espacio, pero si quieres eliminar el plugin por completo, activa la siguiente opción, guarda los cambios, y <strong>cuando desactives el plugin</strong>, todas las opciones se eliminarán de la base de datos."
323
 
324
- #: admin.php:495
325
  msgid "Remove settings"
326
  msgstr "Eliminar Opciones"
327
 
328
- #: admin.php:501
329
  msgid "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. (default: off)"
330
  msgstr "Eliminar opciones cuando se desactive el plugin desde la página \"Gestionar Plugins\". (por defecto: desactivado)"
331
 
332
- #: admin.php:517
333
- msgid "Save Changes"
334
- msgstr "Guardar Cambios"
335
-
336
- #: fancybox.php:373
337
- msgid "Settings"
338
- msgstr "Opciones"
339
-
 
 
 
 
 
 
 
 
 
 
 
340
  #~ msgid ""
341
  #~ "Do not call the <code>fancybox()</code> function here, the plugin does "
342
  #~ "this for you."
2
  msgstr ""
3
  "Project-Id-Version: FancyBox for WordPress Español\n"
4
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/fancybox-for-wordpress\n"
5
+ "POT-Creation-Date: 2009-12-12 21:30+0000\n"
6
  "PO-Revision-Date: \n"
7
+ "Last-Translator: Jose Pardilla <jose@moskis.net>\n"
8
  "Language-Team: Moskis <jose@moskis.net>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "X-Poedit-Language: Spanish\n"
13
  "X-Poedit-Country: SPAIN\n"
14
 
15
+ #: admin.php:11
16
  #, php-format
17
  msgid "Fancybox for WordPress Options (version %s)"
18
  msgstr "Opciones de Fancybox for WordPress (versión %s)"
19
 
20
+ #: admin.php:90
21
+ msgid "Save Changes"
22
+ msgstr "Guardar Cambios"
23
 
24
+ #: fancybox.php:370
25
+ msgid "Settings"
26
+ msgstr "Opciones"
27
 
28
+ #: lib/admin-tab-animations.php:1
29
+ msgid "Animation Settings <span style=\"color:green\">(basic)</span>"
30
+ msgstr "Opciones de Animación <span style=\"color:green\">(básico)</span>"
31
 
32
+ #: lib/admin-tab-animations.php:3
33
+ msgid "These settings control the animations when opening and closing Fancybox, and the optional easing effects."
34
+ msgstr "Estas opciones controlan las animaciones al abrir y cerrar Fancybox, y los efectos opcionales de animación."
35
 
36
+ #: lib/admin-tab-animations.php:9
37
+ msgid "Zoom Options"
38
+ msgstr "Opciones de Zoom"
39
 
40
+ #: lib/admin-tab-animations.php:15
41
+ msgid "Change content transparency during zoom animations (default: on)"
42
+ msgstr "Animar opacidad durante el efecto de zoom (por defecto: activado)"
43
 
44
+ #: lib/admin-tab-animations.php:27
45
+ msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
46
+ msgstr "Velocidad en milisegundos del efecto de Zoom In (por defecto: 500)"
47
 
48
+ #: lib/admin-tab-animations.php:39
49
+ msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
50
+ msgstr "Velocidad en milisegundos del efecto de Zoom Out (por defecto: 500)"
51
+
52
+ #: lib/admin-tab-animations.php:51
53
+ msgid "Speed in miliseconds of the animation when navigating thorugh gallery items (default: 300)"
54
+ msgstr "Velocidad en milisegundos de la animación al navegar entre los elementos de una galería (por defecto: 300)"
55
+
56
+ #: lib/admin-tab-animations.php:59
57
+ msgid "Easing"
58
+ msgstr "Efecto de Animación"
59
+
60
+ #: lib/admin-tab-animations.php:65
61
+ msgid "Activate easing (default: off)"
62
+ msgstr "Activar efecto de animación (por defecto: desactivado)"
63
+
64
+ #: lib/admin-tab-animations.php:78
65
+ msgid "Easing method when opening FancyBox. (default: easeOutBack)"
66
+ msgstr "Efecto de animación al abrir FancyBox. (por defecto: easeOutBack)"
67
 
68
+ #: lib/admin-tab-animations.php:91
69
+ msgid "Easing method when closing FancyBox. (default: easeInBack)"
70
+ msgstr "Efecto de animación al cerrar FancyBox. (por defecto: easeInBack)"
71
+
72
+ #: lib/admin-tab-animations.php:104
73
+ msgid "Easing method when navigating through gallery items. (default: easeInOutQuart)"
74
+ msgstr "Efecto de animación al navegar por galerías. (por defecto: easoInOutQuart)"
75
+
76
+ #: lib/admin-tab-animations.php:107
77
+ msgid "(There are 30 different easing methods, the first ones are the most boring. You can test them <a href=\"http://commadot.com/jquery/easing.php\" target=\"_blank\">here</a> or <a href=\"http://hosted.zeh.com.br/mctween/animationtypes.html\" target=\"_blank\">here</a>)"
78
+ msgstr "(Hay 30 efectos diferentes, los primeros son los más aburridos. Puedes probarlos <a href=\"http://commadot.com/jquery/easing.php\" target=\"_blank\">aquí</a> o <a href=\"http://hosted.zeh.com.br/mctween/animationtypes.html\" target=\"_blank\">aquí</a>)"
79
+
80
+ #: lib/admin-tab-appearance.php:1
81
  msgid "Appearance Settings <span style=\"color:green\">(basic)</span>"
82
  msgstr "Opciones de Apariencia <span style=\"color:green\">(básico)</span>"
83
 
84
+ #: lib/admin-tab-appearance.php:3
85
+ msgid "These setting control how Fancybox looks, they let you tweak color, borders and position of elements, like the image title and closing buttons."
86
+ msgstr "Estas opciones controlan el aspecto general de FancyBox, te permiten ajustar los colores, bordes y posición de elementos como el título de la imagen y el botón de cerrar."
 
 
 
 
87
 
88
+ #: lib/admin-tab-appearance.php:9
89
  msgid "Border Color"
90
  msgstr "Color del Borde"
91
 
92
+ #: lib/admin-tab-appearance.php:15
93
+ msgid "Show Border (default: off)"
94
+ msgstr "Mostrar Borde (por defecto: desactivado)"
95
+
96
+ #: lib/admin-tab-appearance.php:20
97
  msgid "HTML color of the border (default: #BBBBBB)"
98
  msgstr "Color HTML del borde (por defecto: #BBBBBB)"
99
 
100
+ #: lib/admin-tab-appearance.php:28
101
+ msgid "Close Button"
102
+ msgstr "Botón de Cerrar"
103
+
104
+ #: lib/admin-tab-appearance.php:34
105
+ msgid "Show Close button (default: on)"
106
+ msgstr "Mostrar el Botón de Cerrar (por defecto: activado)"
107
 
108
+ #: lib/admin-tab-appearance.php:37
109
+ msgid "Close button position:"
110
+ msgstr "Posición del Botón de Cerrar:"
111
+
112
+ #: lib/admin-tab-appearance.php:40
113
  msgid "Left"
114
  msgstr "Izquierda"
115
 
116
+ #: lib/admin-tab-appearance.php:45
117
  msgid "Right (default)"
118
  msgstr "Derecha (por defecto)"
119
 
120
+ #: lib/admin-tab-appearance.php:50
121
  msgid "Bottom"
122
  msgstr "Abajo"
123
 
124
+ #: lib/admin-tab-appearance.php:55
125
  msgid "Top (default)"
126
  msgstr "Arriba (por defecto)"
127
 
128
+ #: lib/admin-tab-appearance.php:63
129
  msgid "Padding"
130
  msgstr "Margen"
131
 
132
+ #: lib/admin-tab-appearance.php:69
133
  msgid "HTML color of the padding (default: #FFFFFF)"
134
  msgstr "Color HTML del margen (por defecto: #FFFFFF)"
135
 
136
+ #: lib/admin-tab-appearance.php:72
137
+ msgid "(This should be left on #FFFFFF (white) if you want to display anything other than images, like inline or framed content)"
138
+ msgstr "(Esta opción debería dejarse en #FFFFFF (blanco) si vas a mostrar algo que no sean imágenes, como contenido anidado)"
139
+
140
+ #: lib/admin-tab-appearance.php:76
141
  msgid "Padding size in pixels (default: 10)"
142
  msgstr "Tamaño del margen en píxeles (por defecto: 10)"
143
 
144
+ #: lib/admin-tab-appearance.php:84
 
 
 
 
145
  msgid "Overlay Options"
146
  msgstr "Opciones de Overlay"
147
 
148
+ #: lib/admin-tab-appearance.php:90
149
  msgid "Add overlay (default: on)"
150
  msgstr "Añadir overlay (por defecto: activado)"
151
 
152
+ #: lib/admin-tab-appearance.php:95
153
  msgid "HTML color of the overlay (default: #666666)"
154
  msgstr "Color HTML del overlay (por defecto: #666666)"
155
 
156
+ #: lib/admin-tab-appearance.php:108
157
  msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
158
  msgstr "Opacidad del overlay. 0 es transparente, 1 es opaco (por defecto: 0.3)"
159
 
160
+ #: lib/admin-tab-appearance.php:116
161
+ msgid "Show Title"
162
+ msgstr "Mostrar Título"
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
+ #: lib/admin-tab-appearance.php:122
165
+ msgid "Show the image title (default: on)"
166
+ msgstr "Mostrar el Título de la imagen (por defecto: activado)"
167
 
168
+ #: lib/admin-tab-behaviour.php:1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
169
  msgid "Behavior Settings <span style=\"color:orange\">(medium)</span>"
170
  msgstr "Opciones de Comportamiento <span style=\"color:orange\">(medio)</span>"
171
 
172
+ #: lib/admin-tab-behaviour.php:3
173
  msgid "The following settings should be left on default unless you know what you are doing."
174
  msgstr "Las siguientes opciones solo deberían ser editadas si sabes lo que estás haciendo."
175
 
176
+ #: lib/admin-tab-behaviour.php:9
177
  msgid "Auto Resize to Fit"
178
  msgstr "Ajustar Tamaño"
179
 
180
+ #: lib/admin-tab-behaviour.php:15
181
  msgid "Scale images to fit in viewport (default: on)"
182
  msgstr "Ajusta el tamaño de las imagenes a la ventana del navegador (por defecto: activado)"
183
 
184
+ #: lib/admin-tab-behaviour.php:23
185
  msgid "Center on Scroll"
186
  msgstr "Centrar al hacer Scroll"
187
 
188
+ #: lib/admin-tab-behaviour.php:29
189
  msgid "Keep image in the center of the browser window when scrolling (default: on)"
190
  msgstr "Mantiene la imagen en el centro de la ventana del naegador al hacer scroll (por defecto: activado)"
191
 
192
+ #: lib/admin-tab-behaviour.php:37
193
  msgid "Close on Click"
194
  msgstr "Cerrar al hacer click"
195
 
196
+ #: lib/admin-tab-behaviour.php:43
197
  msgid "Close FancyBox by clicking on the image (default: off)"
198
  msgstr "Cerrar FancyBox al hacer click en la imagen (por defecto: desactivado)"
199
 
200
+ #: lib/admin-tab-behaviour.php:46
201
+ msgid "(You may want to leave this off if you display iframed or inline content that containts clickable elements - for example: play buttons for movies, links to other pages)"
202
+ msgstr "(Puedes que quieras dejar esta opción desactivada si vas a usar contendido anidado que incluya enlaces - for ejemplo: botones de play, enlaces a otras páginas)"
203
 
204
+ #: lib/admin-tab-behaviour.php:53
205
+ msgid "Close with &quot;Esc&quot;"
206
+ msgstr "Cerrar con &quot;Esc&quot;"
207
+
208
+ #: lib/admin-tab-behaviour.php:59
209
+ msgid "Close FancyBox when &quot;Escape&quot; key is pressed (default: on)"
210
+ msgstr "Cerrar Fancybox cuando se pulse la tecla &quot;Escape&quot; (por defecto: activado)"
211
+
212
+ #: lib/admin-tab-galleries.php:1
213
  msgid "Gallery Settings <span style=\"color:red\">(advanced)</span>"
214
  msgstr "Opciones de Galería <span style=\"color:red\">(avanzado)</span>"
215
 
216
+ #: lib/admin-tab-galleries.php:3
217
  msgid "Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like."
218
  msgstr "Aquí puedes elegir si quieres que el plugin agrupe las imágenes en una galería, o hacer una galería para cada entrada. También puedes definir tu propia expresión en jQuery."
219
 
220
+ #: lib/admin-tab-galleries.php:9
221
  msgid "Frame Size"
222
  msgstr "Tamaño del recuadro"
223
 
224
+ #: lib/admin-tab-galleries.php:15
225
+ msgid "Width in pixels of FancyBox when showing iframe content (default: 560)"
226
+ msgstr "Ancho en píxeles de FancyBox cuado se muestre contenido anidado (por defecto: 560)"
227
 
228
+ #: lib/admin-tab-galleries.php:20
229
+ msgid "Height in pixels of FancyBox when showing iframe content (default: 340)"
230
+ msgstr "Alto en píxeles de FancyBox cuado se muestre contenido anidado (por defecto: 340)"
231
 
232
+ #: lib/admin-tab-galleries.php:28
233
  msgid "Gallery Type"
234
  msgstr "Tipo de Galería"
235
 
236
+ #: lib/admin-tab-galleries.php:34
237
  msgid "Make a gallery for all images on the page (default)"
238
  msgstr "Incluir todas las imágenes de la página en una única galería (opción por defecto)"
239
 
240
+ #: lib/admin-tab-galleries.php:39
241
  msgid "Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)"
242
  msgstr "No agrupar im&aacute;genes en galer&iacute;as autom&aacute;ticamente (usa esta opci&oacute;n si quieres agrupar las imagenes manualmente con el atributo <code>REL</code>)"
243
 
244
+ #: lib/admin-tab-galleries.php:44
245
  msgid "Make a gallery for each post (will only work if your theme uses <code>class=\"post\"</code> on each post, which is common in WordPress"
246
  msgstr "Hacer una galer&iacute;a para cada post (solo funcionar&aacute; si el tema usa <code>class=\"post\"</code> en cada post, que es lo m&aacute;s com&uacte;n en WordPress"
247
 
248
+ #: lib/admin-tab-galleries.php:49
249
  msgid "Use a custom expression to apply FancyBox"
250
  msgstr "Aplicar FancyBox con una expresión personalizada"
251
 
252
+ #: lib/admin-tab-galleries.php:58
253
  msgid "Custom expression guidelines:"
254
  msgstr "Indicaciones para expresiones personalizadas:"
255
 
256
+ #: lib/admin-tab-galleries.php:60
257
  msgid "&middot; The custom expression has to apply <code>class=\"fancybox\"</code> to the links where you want to use FancyBox. Do not call the <code>fancybox()</code> function here, the plugin does this for you."
258
  msgstr "&middot; La expresión personalizada tiene que aplicar el atributo <code>class=\"fancybox\"</code> a los enlaces en los que quieras usar FancyBox. No llames a la funci&oacute;n <code>fancybox()</code> aqu&iacute;, de eso ya se encarga el plugin."
259
 
260
+ #: lib/admin-tab-galleries.php:62
261
  msgid "&middot; The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class."
262
  msgstr "&middot; La funci&oacute;n <code>addClass()</code> de jQuery es una buena forma de a&ntilde;adir el class a los links deseados."
263
 
264
+ #: lib/admin-tab-galleries.php:64
265
  msgid "&middot; You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions."
266
  msgstr "&middot; Puedes usar <code>getTitle()</code> en tu expresi&oacute;n para copiar el atributo title desde el tag <code>IMG</code> al tag <code>A</code>, para que FancyBox pueda mostrar el t&iacute;tulo de la imagen."
267
 
268
+ #: lib/admin-tab-galleries.php:66
269
  msgid "&middot; You can use <code>jQuery(thumbnails)</code> like in the example expression to apply FancyBox to thumbnails that link to these extensions: BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase)."
270
  msgstr "&middot; Puedes usar <code>jQuery(thumbnails)</code> como en el ejemplo para aplicar FancyBox a las miniaturas de im%aacute;genes que enlazen a estas extensiones: BMP, GIF, JPG, JPEG, PNG tanto en min&uacute;scula como en may&uacute;scula)."
271
 
272
+ #: lib/admin-tab-galleries.php:68
273
  msgid "&middot; If you want to do it manually you can use something like <code>jQuery(\"a:has(img)[href$='.jpg']\")</code> or whatever works for you."
274
  msgstr "&middot; Si prefieres hacerlo manualmente puedes usar algo como <code>jQuery(\"a:has(img)[href$='.jpg']\")</code> o lo que m&aacute;s se ajuste a tu blog."
275
 
276
+ #: lib/admin-tab-galleries.php:70
277
  msgid "See the <a href=\"http://docs.jquery.com/\" target=\"_blank\">jQuery Documentation</a> for more help."
278
  msgstr "Visita la <a href=\"http://docs.jquery.com/\" target=\"_blank\">Documentaci&oacute;n de jQuery</a> para encontrar m&aacute;s ayuda."
279
 
280
+ #: lib/admin-tab-galleries.php:72
281
  msgid "Examples:"
282
  msgstr "Ejemplos:"
283
 
284
+ #: lib/admin-tab-info.php:1
285
+ msgid "Info & Support"
286
+ msgstr "Info & Soporte"
287
+
288
+ #: lib/admin-tab-info.php:3
289
+ msgid "<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>."
290
+ msgstr "<a href=\"http://fancy.klade.lv/home\">FancyBox</a> desarrollado por <a href=\"http://kac.klade.lv/\">Janis Skarnelis</a>, adaptado a WordPress por <a href=\"http://moskis.net/\">Jos&eacute; Pardilla</a>. Licenciado bajo <a target=\"_blank\" href=\"http://en.wikipedia.org/wiki/MIT_License\">Licencia MIT</a>."
291
+
292
+ #: lib/admin-tab-info.php:5
293
+ msgid "As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)"
294
+ msgstr "Como puedes ver, este plugin te permite editar muchas opciones, pero no te preocupes, puedes dejarlo todo como está, ya que las opciones predefinidas no están mal para empezar... :)"
295
+
296
+ #: lib/admin-tab-info.php:9
297
+ msgid "If you have problems or questions about FancyBox, please start with these links: <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://fancy.klade.lv/faq\">FAQ</a>.<br />If that does not help, go to <a href=\"http://groups.google.com/group/fancybox\">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question."
298
+ msgstr "Si tienes problemas o dudas acerca de FancyBox, por favor visita estos enlaces (en inglés): <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://fancy.klade.lv/faq\">FAQ</a>.<br />Si eso no ayuda, ves al <a href=\"http://groups.google.com/group/fancybox\">Grupo de Google de FancyBox</a>, usa la opción de <strong>Búsqueda</strong>, y si no encuentras lo que buscas, pregunta allí."
299
+
300
+ #: lib/admin-tab-info.php:11
301
+ msgid "If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href=\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">leave a comment here</a> explaining the problem."
302
+ msgstr "Si tienes problemas con este plugin para WordPress, intenta localizar la fuente del problema (cambia de tema y/o desactiva plugins hasta que encuentres lo que causa el problema). También puedes usar las optiones de Resolución de Errores que hay al final de esta página. Si no consigues hacer funcionar el plugin, <a href=\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">deja un comentario aquí</a> explicando el problema."
303
+
304
+ #: lib/admin-tab-info.php:15
305
+ msgid "<strong>Note:</strong> Having a cache plugin may prevent changes from taking effect immidiately, if this happens clear cache after saving changes here or deactivate cache until you finish editing these options."
306
+ msgstr "<strong>Nota:</strong> Usar un plugin de caché puede hacer que los cambios no surjan efecto inmediatamente, si esto ocurre vacía el cache después de guardar los cambios o desactívalo hasta que termines de ajustar estas opciones."
307
+
308
+ #: lib/admin-tab-info.php:18
309
+ msgid "If you use FancyBox and like it, buy the author a beer!"
310
+ msgstr "Si usas FancyBox y te gusta, c&oacute;mprale una cerveza al autor!"
311
+
312
+ #: lib/admin-tab-info.php:36
313
+ msgid "The author of this WordPress Plugin also likes beer :P"
314
+ msgstr "Al autor de este plugin para WordPress tambi&eacute;n le gusta la cerveza :P"
315
+
316
+ #: lib/admin-tab-info.php:46
317
+ msgid "Follow me on Twitter for more WordPress Plugins and Themes"
318
+ msgstr "S&iacute;gueme en Twitter para m&aacute;s Plugins y Temas de WordPress"
319
+
320
+ #: lib/admin-tab-other.php:1
321
+ msgid "Other Settings <span style=\"color:red\">(advanced)</span>"
322
+ msgstr "Otras Opciones <span style=\"color:red\">(avanzado)</span>"
323
+
324
+ #: lib/admin-tab-other.php:3
325
+ msgid "These are additional settings for advanced users."
326
+ msgstr "Las siguientes opciones son para usuarios avanzados."
327
+
328
+ #: lib/admin-tab-other.php:9
329
+ msgid "Callbacks"
330
+ msgstr "Retrollamadas"
331
+
332
+ #: lib/admin-tab-other.php:14
333
+ msgid "Callback on Start event (default: empty)"
334
+ msgstr "Retrollamada en el evento de Inicio (por defecto: vacío)"
335
+
336
+ #: lib/admin-tab-other.php:19
337
+ msgid "Callback on Show event (default: empty)"
338
+ msgstr "Retrollamada en el evento de Mostrado (por defecto: vacío)"
339
+
340
+ #: lib/admin-tab-other.php:24
341
+ msgid "Callback on Close event (default: empty)"
342
+ msgstr "Retrollamada en el evento de Cerrado (por defecto: vacío)"
343
+
344
+ #: lib/admin-tab-other.php:28
345
+ msgid "Example:"
346
+ msgstr "Ejemplo:"
347
+
348
+ #: lib/admin-tab-other.php:32
349
+ msgid "Leave the fields empty to disable."
350
+ msgstr "Deja estos campos vacíos para desactivar cualqueir retrollamada."
351
+
352
+ #: lib/admin-tab-other.php:39
353
+ msgid "Load JavaScript in Footer"
354
+ msgstr "Cargar JavaScript en el Pié de página"
355
+
356
+ #: lib/admin-tab-other.php:45
357
+ msgid "Loads JavaScript at the end of the blog's HTML (experimental) (default: off)"
358
+ msgstr "Carga el JavaScript al final del código HTML del blog (experimental) (por defecto: desactivado)"
359
+
360
+ #: lib/admin-tab-other.php:48
361
+ msgid "This option won't be recognized if you use <strong>Parallel Load</strong> plugin. In that case, you can do this from Parallel Load's options."
362
+ msgstr "Esta opción será ignorada si el plugin <strong>Parallel Load</strong> está instalado. Si es así, usa las opciones del plugin Parallel Load."
363
+
364
+ #: lib/admin-tab-troubleshooting.php:1
365
  msgid "Troubleshooting Settings"
366
  msgstr "Resolución de Problemas"
367
 
368
+ #: lib/admin-tab-troubleshooting.php:3
369
  msgid "Settings in this section should only be changed if you are having problems with the plugin!"
370
  msgstr "Las opciones de esta sección solo deben ser editadas si tienes problemas con el plugin!"
371
 
372
+ #: lib/admin-tab-troubleshooting.php:5
373
  msgid "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)."
374
  msgstr "Si el plugin no funciona, lo primero que deberías hacer es comprobar que no haya un conflicto con otros plugins, especialmente otro tipo de Lightbox, Slimbox, etc. Asegúrate de que todos tus plugins y tu WordPress están actualizados (este plugin solo se ha testado con WordPress 2.7 y superiores)."
375
 
376
+ #: lib/admin-tab-troubleshooting.php:7
377
  msgid "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."
378
  msgstr "Cámbialas de una en una y comprueba si solucionan tu problema. Recuqerda que usar un plugin de caché puede hacer que los cambios no surjan efecto inmediatamente, vacía el cache después de guardar los cambios or desactivalo hasta que termines de ajustar estas opciones."
379
 
380
+ #: lib/admin-tab-troubleshooting.php:13
381
  msgid "Do not call jQuery"
382
  msgstr "No cargar jQuery"
383
 
384
+ #: lib/admin-tab-troubleshooting.php:19
385
  msgid "Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)"
386
  msgstr "Omitir llamada a jQuery. Usa esta opción sólo si jQuery se está cargando dos veces por error. (por defecto: desactivado)"
387
 
388
+ #: lib/admin-tab-troubleshooting.php:27
389
  msgid "jQuery \"noConflict\" Mode"
390
  msgstr "Modo jQuery \"noConflict\""
391
 
392
+ #: lib/admin-tab-troubleshooting.php:33
393
  msgid "Use jQuery noConflict mode (default: on)"
394
  msgstr "Usar parámetro noConflict de jQuery (por defecto: activado)"
395
 
396
+ #: lib/admin-tab-troubleshooting.php:36
397
  msgid "(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)"
398
  msgstr "(Desactivar esta opción puede causar problemas si hay plugins activadoes que usen otros frameworks javascript como Mootols, Prototype, Scriptaculous, etc.)"
399
 
400
+ #: lib/admin-tab-uninstall.php:1
401
  msgid "Uninstall"
402
  msgstr "Desinstalar"
403
 
404
+ #: lib/admin-tab-uninstall.php:3
405
  msgid "Like many other plugins, FancyBox for WordPress stores its settings on your WordPress' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and <strong>when you deactivate the plugin</strong>, all its settings will be removed from the database."
406
  msgstr "Al igual que otros plugins, FancyBox for WordPress guarda sus opciones en la tabla de opciones de la base de datos de WordPress. En realidad, estas opcines no ocupam más que unos kilobytes de espacio, pero si quieres eliminar el plugin por completo, activa la siguiente opción, guarda los cambios, y <strong>cuando desactives el plugin</strong>, todas las opciones se eliminarán de la base de datos."
407
 
408
+ #: lib/admin-tab-uninstall.php:9
409
  msgid "Remove settings"
410
  msgstr "Eliminar Opciones"
411
 
412
+ #: lib/admin-tab-uninstall.php:15
413
  msgid "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. (default: off)"
414
  msgstr "Eliminar opciones cuando se desactive el plugin desde la página \"Gestionar Plugins\". (por defecto: desactivado)"
415
 
416
+ #~ msgid "Presentation"
417
+ #~ msgstr "Presentación"
418
+ #~ msgid ""
419
+ #~ "These are the main settings, which let you tweak color, borders and "
420
+ #~ "animation."
421
+ #~ msgstr ""
422
+ #~ "Estas son las opciones principales, que te permiten ajustar los colores, "
423
+ #~ "bordes y animación."
424
+ #~ msgid ""
425
+ #~ "(Set <strong>Border Color</strong> to \"#000000\" and <strong>Padding "
426
+ #~ "Size</strong> to \"0\" for the classic FancyBox look)"
427
+ #~ msgstr ""
428
+ #~ "(Pon el <strong>Color del Borde</strong> en \"#000000\" y el "
429
+ #~ "<strong>Tamaño del Margen</strong> en \"0\" para el aspecto clásico de "
430
+ #~ "FancyBox)"
431
+ #~ msgid "Show/Hide Advanced Settings"
432
+ #~ msgstr "Mostrar/Ocultar Opciones Avanzadas"
433
+ #~ msgid "Show/Hide Troubleshooting &amp; Uninstall Settings"
434
+ #~ msgstr "Mostrar/Ocultar Resolución de Problemas y Desinstalaci&oacute;n"
435
  #~ msgid ""
436
  #~ "Do not call the <code>fancybox()</code> function here, the plugin does "
437
  #~ "this for you."
languages/mfbfw-ja.mo CHANGED
Binary file
languages/mfbfw.po DELETED
@@ -1,325 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: FancyBox for WordPress\n"
4
- "Report-Msgid-Bugs-To: http://wordpress.org/tag/fancybox-for-wordpress\n"
5
- "POT-Creation-Date: 2009-03-25 16:40+0000\n"
6
- "PO-Revision-Date: \n"
7
- "Last-Translator: Jose Pardilla 'Th3 ProphetMan' <jose@moskis.net>\n"
8
- "Language-Team: \n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
-
13
- #: admin.php:21
14
- #, php-format
15
- msgid "Fancybox for WordPress Options (version %s)"
16
- msgstr ""
17
-
18
- #: admin.php:25
19
- msgid "If you use FancyBox and like it, buy the author a beer!"
20
- msgstr ""
21
-
22
- #: admin.php:46
23
- msgid "The author of this WordPress Plugin also likes beer :P"
24
- msgstr ""
25
-
26
- #: admin.php:59
27
- msgid "Follow me on Twitter for more WordPress Plugins and Themes"
28
- msgstr ""
29
-
30
- #: admin.php:66
31
- msgid "Info & Support"
32
- msgstr ""
33
-
34
- #: admin.php:68
35
- msgid "<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>."
36
- msgstr ""
37
-
38
- #: admin.php:70
39
- msgid "As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)"
40
- msgstr ""
41
-
42
- #: admin.php:74
43
- msgid "If you have problems or questions about FancyBox, please start with these links: <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://fancy.klade.lv/faq\">FAQ</a>.<br />If that does not help, go to <a href=\"http://groups.google.com/group/fancybox\">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question."
44
- msgstr ""
45
-
46
- #: admin.php:76
47
- msgid "If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href=\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">leave a comment here</a> explaining the problem."
48
- msgstr ""
49
-
50
- #: admin.php:81
51
- msgid "Appearance Settings <span style=\"color:green\">(basic)</span>"
52
- msgstr ""
53
-
54
- #: admin.php:83
55
- msgid "These are the main settings, which let you tweak color, borders and animation."
56
- msgstr ""
57
-
58
- #: admin.php:85
59
- msgid "<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."
60
- msgstr ""
61
-
62
- #: admin.php:95
63
- msgid "Border Color"
64
- msgstr ""
65
-
66
- #: admin.php:101
67
- msgid "HTML color of the border (default: #BBBBBB)"
68
- msgstr ""
69
-
70
- #: admin.php:109
71
- msgid "Close Button Position"
72
- msgstr ""
73
-
74
- #: admin.php:115
75
- msgid "Left"
76
- msgstr ""
77
-
78
- #: admin.php:120
79
- msgid "Right (default)"
80
- msgstr ""
81
-
82
- #: admin.php:125
83
- msgid "Bottom"
84
- msgstr ""
85
-
86
- #: admin.php:130
87
- msgid "Top (default)"
88
- msgstr ""
89
-
90
- #: admin.php:138
91
- msgid "Padding"
92
- msgstr ""
93
-
94
- #: admin.php:144
95
- msgid "HTML color of the padding (default: #FFFFFF)"
96
- msgstr ""
97
-
98
- #: admin.php:149
99
- msgid "Padding size in pixels (default: 10)"
100
- msgstr ""
101
-
102
- #: admin.php:152
103
- msgid "(Set <strong>Border Color</strong> to \"#000000\" and <strong>Padding Size</strong> to \"0\" for the classic FancyBox look)"
104
- msgstr ""
105
-
106
- #: admin.php:159
107
- msgid "Overlay Options"
108
- msgstr ""
109
-
110
- #: admin.php:165
111
- msgid "Add overlay (default: on)"
112
- msgstr ""
113
-
114
- #: admin.php:170
115
- msgid "HTML color of the overlay (default: #666666)"
116
- msgstr ""
117
-
118
- #: admin.php:183
119
- msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
120
- msgstr ""
121
-
122
- #: admin.php:191
123
- msgid "Zoom Options"
124
- msgstr ""
125
-
126
- #: admin.php:197
127
- msgid "Change content transparency during zoom animations (default: on)"
128
- msgstr ""
129
-
130
- #: admin.php:209
131
- msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
132
- msgstr ""
133
-
134
- #: admin.php:221
135
- msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
136
- msgstr ""
137
-
138
- #: admin.php:229
139
- msgid "Easing"
140
- msgstr ""
141
-
142
- #: admin.php:235
143
- msgid "Activate easing (default: off)"
144
- msgstr ""
145
-
146
- #: admin.php:248
147
- msgid "Easing method when opening FancyBox. (default: easeOutBack)"
148
- msgstr ""
149
-
150
- #: admin.php:261
151
- msgid "Easing method when closing FancyBox. (default: easeInBack)"
152
- msgstr ""
153
-
154
- #: admin.php:274
155
- msgid "Easing method when navigating through gallery items. (default: easeInOutQuart)"
156
- msgstr ""
157
-
158
- #: admin.php:277
159
- msgid "(There are 30 different easing methods, the first ones are the most boring. You can test them <a href=\"http://commadot.com/jquery/easing.php\" target=\"_blank\">here</a> or <a href=\"http://hosted.zeh.com.br/mctween/animationtypes.html\" target=\"_blank\">here</a>)"
160
- msgstr ""
161
-
162
- #: admin.php:286
163
- msgid "Show/Hide Advanced Settings"
164
- msgstr ""
165
-
166
- #: admin.php:287
167
- msgid "Show/Hide Troubleshooting &amp; Uninstall Settings"
168
- msgstr ""
169
-
170
- #: admin.php:292
171
- msgid "Behavior Settings <span style=\"color:orange\">(medium)</span>"
172
- msgstr ""
173
-
174
- #: admin.php:294
175
- msgid "The following settings should be left on default unless you know what you are doing."
176
- msgstr ""
177
-
178
- #: admin.php:300
179
- msgid "Auto Resize to Fit"
180
- msgstr ""
181
-
182
- #: admin.php:306
183
- msgid "Scale images to fit in viewport (default: on)"
184
- msgstr ""
185
-
186
- #: admin.php:314
187
- msgid "Center on Scroll"
188
- msgstr ""
189
-
190
- #: admin.php:320
191
- msgid "Keep image in the center of the browser window when scrolling (default: on)"
192
- msgstr ""
193
-
194
- #: admin.php:328
195
- msgid "Close on Click"
196
- msgstr ""
197
-
198
- #: admin.php:334
199
- msgid "Close FancyBox by clicking on the image (default: off)"
200
- msgstr ""
201
-
202
- #: admin.php:337
203
- msgid "(You may want to leave this off if you display iframed or inline content and it containts clickable elements - for example: play buttons for movies, links to other pages)"
204
- msgstr ""
205
-
206
- #: admin.php:347
207
- msgid "Gallery Settings <span style=\"color:red\">(advanced)</span>"
208
- msgstr ""
209
-
210
- #: admin.php:349
211
- msgid "Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like."
212
- msgstr ""
213
-
214
- #: admin.php:355
215
- msgid "Frame Size"
216
- msgstr ""
217
-
218
- #: admin.php:361
219
- msgid "Width in pixels of FancyBox when showing iframe content (default: 640)"
220
- msgstr ""
221
-
222
- #: admin.php:366
223
- msgid "Height in pixels of FancyBox when showing iframe content (default: 500)"
224
- msgstr ""
225
-
226
- #: admin.php:374
227
- msgid "Gallery Type"
228
- msgstr ""
229
-
230
- #: admin.php:380
231
- msgid "Make a gallery for all images on the page (default)"
232
- msgstr ""
233
-
234
- #: admin.php:385
235
- msgid "Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)"
236
- msgstr ""
237
-
238
- #: admin.php:390
239
- msgid "Make a gallery for each post (will only work if your theme uses <code>class=\"post\"</code> on each post, which is common in WordPress"
240
- msgstr ""
241
-
242
- #: admin.php:395
243
- msgid "Use a custom expression to apply FancyBox"
244
- msgstr ""
245
-
246
- #: admin.php:404
247
- msgid "Custom expression guidelines:"
248
- msgstr ""
249
-
250
- #: admin.php:406
251
- msgid "The custom expression has to apply <code>class=\"fancybox\"</code> to the links where you want to use FancyBox."
252
- msgstr ""
253
-
254
- #: admin.php:408
255
- msgid "The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class."
256
- msgstr ""
257
-
258
- #: admin.php:410
259
- msgid "You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions."
260
- msgstr ""
261
-
262
- #: admin.php:412
263
- msgid "Do not call the <code>fancybox()</code> function here, the plugin does this for you."
264
- msgstr ""
265
-
266
- #: admin.php:428
267
- msgid "Troubleshooting Settings"
268
- msgstr ""
269
-
270
- #: admin.php:430
271
- msgid "Settings in this section should only be changed if you are having problems with the plugin!"
272
- msgstr ""
273
-
274
- #: admin.php:432
275
- msgid "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)."
276
- msgstr ""
277
-
278
- #: admin.php:434
279
- msgid "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."
280
- msgstr ""
281
-
282
- #: admin.php:440
283
- msgid "Do not call jQuery"
284
- msgstr ""
285
-
286
- #: admin.php:446
287
- msgid "Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)"
288
- msgstr ""
289
-
290
- #: admin.php:454
291
- msgid "jQuery \"noConflict\" Mode"
292
- msgstr ""
293
-
294
- #: admin.php:460
295
- msgid "Use jQuery noConflict mode (default: on)"
296
- msgstr ""
297
-
298
- #: admin.php:463
299
- msgid "(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)"
300
- msgstr ""
301
-
302
- #: admin.php:472
303
- msgid "Uninstall"
304
- msgstr ""
305
-
306
- #: admin.php:474
307
- msgid "Like many other plugins, FancyBox for WordPress stores its settings on your WordPress' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and <strong>when you deactivate the plugin</strong>, all its settings will be removed from the database."
308
- msgstr ""
309
-
310
- #: admin.php:480
311
- msgid "Remove settings"
312
- msgstr ""
313
-
314
- #: admin.php:486
315
- msgid "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. (default: off)"
316
- msgstr ""
317
-
318
- #: admin.php:503
319
- msgid "Save Changes"
320
- msgstr ""
321
-
322
- #: fancybox.php:437
323
- msgid "Settings"
324
- msgstr ""
325
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/mfbfw.pot CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/fancybox-for-wordpress\n"
10
- "POT-Creation-Date: 2009-06-26 04:32+0000\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -15,342 +15,433 @@ msgstr ""
15
  "Content-Type: text/plain; charset=CHARSET\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
 
18
- #: admin.php:21
19
  #, php-format
20
  msgid "Fancybox for WordPress Options (version %s)"
21
  msgstr ""
22
 
23
- #: admin.php:25
24
- msgid "If you use FancyBox and like it, buy the author a beer!"
25
- msgstr ""
26
-
27
- #: admin.php:46
28
- msgid "The author of this WordPress Plugin also likes beer :P"
29
  msgstr ""
30
 
31
- #: admin.php:59
32
- msgid "Follow me on Twitter for more WordPress Plugins and Themes"
33
  msgstr ""
34
 
35
- #: admin.php:66
36
- msgid "Info & Support"
37
  msgstr ""
38
 
39
- #: admin.php:68
40
  msgid ""
41
- "<a href=\"http://fancy.klade.lv/home\">FancyBox</a> developed by <a href="
42
- "\"http://kac.klade.lv/\">Janis Skarnelis</a>, ported to WordPress by <a href="
43
- "\"http://moskis.net/\">Jos&eacute; Pardilla</a>. Licensed under the <a "
44
- "target=\"_blank\" href=\"http://en.wikipedia.org/wiki/MIT_License\">MIT "
45
- "License</a>."
46
  msgstr ""
47
 
48
- #: admin.php:70
49
- msgid ""
50
- "As you can see, this plugin has many options you can edit, but have no fear, "
51
- "you can leave everything as it is if you want, since the default options "
52
- "should be a good start... :)"
53
  msgstr ""
54
 
55
- #: admin.php:74
56
- msgid ""
57
- "If you have problems or questions about FancyBox, please start with these "
58
- "links: <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://"
59
- "fancy.klade.lv/faq\">FAQ</a>.<br />If that does not help, go to <a href="
60
- "\"http://groups.google.com/group/fancybox\">the FancyBox Google Group</a>, "
61
- "use the <strong>Search</strong> option, and if necesary, post your question."
62
  msgstr ""
63
 
64
- #: admin.php:76
65
- msgid ""
66
- "If you are having trouble with this plugin try to localize the problem "
67
- "(switch your theme and/or deactivate plugins until you find the source of "
68
- "the problem). You can also try the Troubleshooting settings at the bottom of "
69
- "this page if necesary. If you still can not get the plugin to work, <a href="
70
- "\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">leave a "
71
- "comment here</a> explaining the problem."
72
  msgstr ""
73
 
74
- #: admin.php:81
75
- msgid "Appearance Settings <span style=\"color:green\">(basic)</span>"
76
  msgstr ""
77
 
78
- #: admin.php:83
79
  msgid ""
80
- "These are the main settings, which let you tweak color, borders and "
81
- "animation."
82
  msgstr ""
83
 
84
- #: admin.php:85
85
- msgid ""
86
- "<strong>Note:</strong> Having a cache plugin may prevent changes from taking "
87
- "effect immidiately, so clear cache after saving changes here or deactivate "
88
- "cache until you finish editing these options."
89
  msgstr ""
90
 
91
- #: admin.php:100
92
- msgid "Border Color"
93
  msgstr ""
94
 
95
- #: admin.php:106
96
- msgid "HTML color of the border (default: #BBBBBB)"
97
  msgstr ""
98
 
99
- #: admin.php:114
100
- msgid "Close Button Position"
101
  msgstr ""
102
 
103
- #: admin.php:120
104
- msgid "Left"
 
 
105
  msgstr ""
106
 
107
- #: admin.php:125
108
- msgid "Right (default)"
 
 
 
 
109
  msgstr ""
110
 
111
- #: admin.php:130
112
- msgid "Bottom"
113
  msgstr ""
114
 
115
- #: admin.php:135
116
- msgid "Top (default)"
 
 
117
  msgstr ""
118
 
119
- #: admin.php:143
120
- msgid "Padding"
121
  msgstr ""
122
 
123
- #: admin.php:149
124
- msgid "HTML color of the padding (default: #FFFFFF)"
125
  msgstr ""
126
 
127
- #: admin.php:154
128
- msgid "Padding size in pixels (default: 10)"
129
  msgstr ""
130
 
131
- #: admin.php:157
132
- msgid ""
133
- "(Set <strong>Border Color</strong> to \"#000000\" and <strong>Padding Size</"
134
- "strong> to \"0\" for the classic FancyBox look)"
135
  msgstr ""
136
 
137
- #: admin.php:164
138
- msgid "Overlay Options"
139
  msgstr ""
140
 
141
- #: admin.php:170
142
- msgid "Add overlay (default: on)"
143
  msgstr ""
144
 
145
- #: admin.php:175
146
- msgid "HTML color of the overlay (default: #666666)"
147
  msgstr ""
148
 
149
- #: admin.php:188
150
- msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
151
  msgstr ""
152
 
153
- #: admin.php:196
154
- msgid "Zoom Options"
155
  msgstr ""
156
 
157
- #: admin.php:202
158
- msgid "Change content transparency during zoom animations (default: on)"
159
  msgstr ""
160
 
161
- #: admin.php:214
162
- msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
163
  msgstr ""
164
 
165
- #: admin.php:226
166
- msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
167
  msgstr ""
168
 
169
- #: admin.php:234
170
- msgid "Easing"
 
 
171
  msgstr ""
172
 
173
- #: admin.php:240
174
- msgid "Activate easing (default: off)"
175
  msgstr ""
176
 
177
- #: admin.php:253
178
- msgid "Easing method when opening FancyBox. (default: easeOutBack)"
179
  msgstr ""
180
 
181
- #: admin.php:266
182
- msgid "Easing method when closing FancyBox. (default: easeInBack)"
183
  msgstr ""
184
 
185
- #: admin.php:279
186
- msgid ""
187
- "Easing method when navigating through gallery items. (default: "
188
- "easeInOutQuart)"
189
  msgstr ""
190
 
191
- #: admin.php:282
192
- msgid ""
193
- "(There are 30 different easing methods, the first ones are the most boring. "
194
- "You can test them <a href=\"http://commadot.com/jquery/easing.php\" target="
195
- "\"_blank\">here</a> or <a href=\"http://hosted.zeh.com.br/mctween/"
196
- "animationtypes.html\" target=\"_blank\">here</a>)"
197
  msgstr ""
198
 
199
- #: admin.php:291
200
- msgid "Show/Hide Advanced Settings"
201
  msgstr ""
202
 
203
- #: admin.php:292
204
- msgid "Show/Hide Troubleshooting &amp; Uninstall Settings"
205
  msgstr ""
206
 
207
- #: admin.php:297
208
  msgid "Behavior Settings <span style=\"color:orange\">(medium)</span>"
209
  msgstr ""
210
 
211
- #: admin.php:299
212
  msgid ""
213
  "The following settings should be left on default unless you know what you "
214
  "are doing."
215
  msgstr ""
216
 
217
- #: admin.php:305
218
  msgid "Auto Resize to Fit"
219
  msgstr ""
220
 
221
- #: admin.php:311
222
  msgid "Scale images to fit in viewport (default: on)"
223
  msgstr ""
224
 
225
- #: admin.php:319
226
  msgid "Center on Scroll"
227
  msgstr ""
228
 
229
- #: admin.php:325
230
  msgid ""
231
  "Keep image in the center of the browser window when scrolling (default: on)"
232
  msgstr ""
233
 
234
- #: admin.php:333
235
  msgid "Close on Click"
236
  msgstr ""
237
 
238
- #: admin.php:339
239
  msgid "Close FancyBox by clicking on the image (default: off)"
240
  msgstr ""
241
 
242
- #: admin.php:342
243
  msgid ""
244
- "(You may want to leave this off if you display iframed or inline content and "
245
- "it containts clickable elements - for example: play buttons for movies, "
246
  "links to other pages)"
247
  msgstr ""
248
 
249
- #: admin.php:352
 
 
 
 
 
 
 
 
250
  msgid "Gallery Settings <span style=\"color:red\">(advanced)</span>"
251
  msgstr ""
252
 
253
- #: admin.php:354
254
  msgid ""
255
  "Here you can choose if you want the plugin to group all images into a "
256
  "gallery, or make a gallery for each post. You can also define you own jQuery "
257
  "expression if you like."
258
  msgstr ""
259
 
260
- #: admin.php:360
261
  msgid "Frame Size"
262
  msgstr ""
263
 
264
- #: admin.php:366
265
- msgid "Width in pixels of FancyBox when showing iframe content (default: 640)"
266
  msgstr ""
267
 
268
- #: admin.php:371
269
- msgid "Height in pixels of FancyBox when showing iframe content (default: 500)"
270
  msgstr ""
271
 
272
- #: admin.php:379
273
  msgid "Gallery Type"
274
  msgstr ""
275
 
276
- #: admin.php:385
277
  msgid "Make a gallery for all images on the page (default)"
278
  msgstr ""
279
 
280
- #: admin.php:390
281
  msgid ""
282
  "Do not group images in gallery automatically (use this if you want to make "
283
  "galleries manually with the <code>REL</code> attribute)"
284
  msgstr ""
285
 
286
- #: admin.php:395
287
  msgid ""
288
  "Make a gallery for each post (will only work if your theme uses <code>class="
289
  "\"post\"</code> on each post, which is common in WordPress"
290
  msgstr ""
291
 
292
- #: admin.php:400
293
  msgid "Use a custom expression to apply FancyBox"
294
  msgstr ""
295
 
296
- #: admin.php:409
297
  msgid "Custom expression guidelines:"
298
  msgstr ""
299
 
300
- #: admin.php:411
301
  msgid ""
302
  "&middot; The custom expression has to apply <code>class=\"fancybox\"</code> "
303
  "to the links where you want to use FancyBox. Do not call the <code>fancybox()"
304
  "</code> function here, the plugin does this for you."
305
  msgstr ""
306
 
307
- #: admin.php:413
308
  msgid ""
309
  "&middot; The jQuery <code>addClass()</code> function is a good way to add "
310
  "the class to the desired links conserving any existing class."
311
  msgstr ""
312
 
313
- #: admin.php:415
314
  msgid ""
315
  "&middot; You can use <code>getTitle()</code> in your expression to copy the "
316
  "title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so "
317
  "that FancyBox can show captions."
318
  msgstr ""
319
 
320
- #: admin.php:417
321
  msgid ""
322
  "&middot; You can use <code>jQuery(thumbnails)</code> like in the example "
323
  "expression to apply FancyBox to thumbnails that link to these extensions: "
324
  "BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase)."
325
  msgstr ""
326
 
327
- #: admin.php:419
328
  msgid ""
329
  "&middot; If you want to do it manually you can use something like "
330
  "<code>jQuery(\"a:has(img)[href$='.jpg']\")</code> or whatever works for you."
331
  msgstr ""
332
 
333
- #: admin.php:421
334
  msgid ""
335
  "See the <a href=\"http://docs.jquery.com/\" target=\"_blank\">jQuery "
336
  "Documentation</a> for more help."
337
  msgstr ""
338
 
339
- #: admin.php:423
340
  msgid "Examples:"
341
  msgstr ""
342
 
343
- #: admin.php:443
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
344
  msgid "Troubleshooting Settings"
345
  msgstr ""
346
 
347
- #: admin.php:445
348
  msgid ""
349
  "Settings in this section should only be changed if you are having problems "
350
  "with the plugin!"
351
  msgstr ""
352
 
353
- #: admin.php:447
354
  msgid ""
355
  "If the plugin doesn't seem to work, first you should check for other plugins "
356
  "that may be conflicting with this one, especially other Lightbox, Slimbox, "
@@ -358,7 +449,7 @@ msgid ""
358
  "plugin has only been tested in WordPress 2.7 and above)."
359
  msgstr ""
360
 
361
- #: admin.php:449
362
  msgid ""
363
  "Change them one at a time and test to see if they help. Remember that having "
364
  "a cache plugin may prevent changes from taking effect immidiately, so clear "
@@ -366,35 +457,35 @@ msgid ""
366
  "these options."
367
  msgstr ""
368
 
369
- #: admin.php:455
370
  msgid "Do not call jQuery"
371
  msgstr ""
372
 
373
- #: admin.php:461
374
  msgid ""
375
  "Skip jQuery call. Use this only if jQuery is being loaded twice (default: "
376
  "off)"
377
  msgstr ""
378
 
379
- #: admin.php:469
380
  msgid "jQuery \"noConflict\" Mode"
381
  msgstr ""
382
 
383
- #: admin.php:475
384
  msgid "Use jQuery noConflict mode (default: on)"
385
  msgstr ""
386
 
387
- #: admin.php:478
388
  msgid ""
389
  "(Turning this off may cause problems if there are plugins activated that use "
390
  "other js framework like mootools, prototype, scriptaculous, etc.)"
391
  msgstr ""
392
 
393
- #: admin.php:487
394
  msgid "Uninstall"
395
  msgstr ""
396
 
397
- #: admin.php:489
398
  msgid ""
399
  "Like many other plugins, FancyBox for WordPress stores its settings on your "
400
  "WordPress' options database table. Actually, these settings are not using "
@@ -404,20 +495,12 @@ msgid ""
404
  "removed from the database."
405
  msgstr ""
406
 
407
- #: admin.php:495
408
  msgid "Remove settings"
409
  msgstr ""
410
 
411
- #: admin.php:501
412
  msgid ""
413
  "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. "
414
  "(default: off)"
415
  msgstr ""
416
-
417
- #: admin.php:517
418
- msgid "Save Changes"
419
- msgstr ""
420
-
421
- #: fancybox.php:373
422
- msgid "Settings"
423
- msgstr ""
7
  msgstr ""
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/fancybox-for-wordpress\n"
10
+ "POT-Creation-Date: 2009-12-12 21:30+0000\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
  "Content-Type: text/plain; charset=CHARSET\n"
16
  "Content-Transfer-Encoding: 8bit\n"
17
 
18
+ #: admin.php:11
19
  #, php-format
20
  msgid "Fancybox for WordPress Options (version %s)"
21
  msgstr ""
22
 
23
+ #: admin.php:90
24
+ msgid "Save Changes"
 
 
 
 
25
  msgstr ""
26
 
27
+ #: fancybox.php:370
28
+ msgid "Settings"
29
  msgstr ""
30
 
31
+ #: lib/admin-tab-animations.php:1
32
+ msgid "Animation Settings <span style=\"color:green\">(basic)</span>"
33
  msgstr ""
34
 
35
+ #: lib/admin-tab-animations.php:3
36
  msgid ""
37
+ "These settings control the animations when opening and closing Fancybox, and "
38
+ "the optional easing effects."
 
 
 
39
  msgstr ""
40
 
41
+ #: lib/admin-tab-animations.php:9
42
+ msgid "Zoom Options"
 
 
 
43
  msgstr ""
44
 
45
+ #: lib/admin-tab-animations.php:15
46
+ msgid "Change content transparency during zoom animations (default: on)"
 
 
 
 
 
47
  msgstr ""
48
 
49
+ #: lib/admin-tab-animations.php:27
50
+ msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
 
 
 
 
 
 
51
  msgstr ""
52
 
53
+ #: lib/admin-tab-animations.php:39
54
+ msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
55
  msgstr ""
56
 
57
+ #: lib/admin-tab-animations.php:51
58
  msgid ""
59
+ "Speed in miliseconds of the animation when navigating thorugh gallery items "
60
+ "(default: 300)"
61
  msgstr ""
62
 
63
+ #: lib/admin-tab-animations.php:59
64
+ msgid "Easing"
 
 
 
65
  msgstr ""
66
 
67
+ #: lib/admin-tab-animations.php:65
68
+ msgid "Activate easing (default: off)"
69
  msgstr ""
70
 
71
+ #: lib/admin-tab-animations.php:78
72
+ msgid "Easing method when opening FancyBox. (default: easeOutBack)"
73
  msgstr ""
74
 
75
+ #: lib/admin-tab-animations.php:91
76
+ msgid "Easing method when closing FancyBox. (default: easeInBack)"
77
  msgstr ""
78
 
79
+ #: lib/admin-tab-animations.php:104
80
+ msgid ""
81
+ "Easing method when navigating through gallery items. (default: "
82
+ "easeInOutQuart)"
83
  msgstr ""
84
 
85
+ #: lib/admin-tab-animations.php:107
86
+ msgid ""
87
+ "(There are 30 different easing methods, the first ones are the most boring. "
88
+ "You can test them <a href=\"http://commadot.com/jquery/easing.php\" target="
89
+ "\"_blank\">here</a> or <a href=\"http://hosted.zeh.com.br/mctween/"
90
+ "animationtypes.html\" target=\"_blank\">here</a>)"
91
  msgstr ""
92
 
93
+ #: lib/admin-tab-appearance.php:1
94
+ msgid "Appearance Settings <span style=\"color:green\">(basic)</span>"
95
  msgstr ""
96
 
97
+ #: lib/admin-tab-appearance.php:3
98
+ msgid ""
99
+ "These setting control how Fancybox looks, they let you tweak color, borders "
100
+ "and position of elements, like the image title and closing buttons."
101
  msgstr ""
102
 
103
+ #: lib/admin-tab-appearance.php:9
104
+ msgid "Border Color"
105
  msgstr ""
106
 
107
+ #: lib/admin-tab-appearance.php:15
108
+ msgid "Show Border (default: off)"
109
  msgstr ""
110
 
111
+ #: lib/admin-tab-appearance.php:20
112
+ msgid "HTML color of the border (default: #BBBBBB)"
113
  msgstr ""
114
 
115
+ #: lib/admin-tab-appearance.php:28
116
+ msgid "Close Button"
 
 
117
  msgstr ""
118
 
119
+ #: lib/admin-tab-appearance.php:34
120
+ msgid "Show Close button (default: on)"
121
  msgstr ""
122
 
123
+ #: lib/admin-tab-appearance.php:37
124
+ msgid "Close button position:"
125
  msgstr ""
126
 
127
+ #: lib/admin-tab-appearance.php:40
128
+ msgid "Left"
129
  msgstr ""
130
 
131
+ #: lib/admin-tab-appearance.php:45
132
+ msgid "Right (default)"
133
  msgstr ""
134
 
135
+ #: lib/admin-tab-appearance.php:50
136
+ msgid "Bottom"
137
  msgstr ""
138
 
139
+ #: lib/admin-tab-appearance.php:55
140
+ msgid "Top (default)"
141
  msgstr ""
142
 
143
+ #: lib/admin-tab-appearance.php:63
144
+ msgid "Padding"
145
  msgstr ""
146
 
147
+ #: lib/admin-tab-appearance.php:69
148
+ msgid "HTML color of the padding (default: #FFFFFF)"
149
  msgstr ""
150
 
151
+ #: lib/admin-tab-appearance.php:72
152
+ msgid ""
153
+ "(This should be left on #FFFFFF (white) if you want to display anything "
154
+ "other than images, like inline or framed content)"
155
  msgstr ""
156
 
157
+ #: lib/admin-tab-appearance.php:76
158
+ msgid "Padding size in pixels (default: 10)"
159
  msgstr ""
160
 
161
+ #: lib/admin-tab-appearance.php:84
162
+ msgid "Overlay Options"
163
  msgstr ""
164
 
165
+ #: lib/admin-tab-appearance.php:90
166
+ msgid "Add overlay (default: on)"
167
  msgstr ""
168
 
169
+ #: lib/admin-tab-appearance.php:95
170
+ msgid "HTML color of the overlay (default: #666666)"
 
 
171
  msgstr ""
172
 
173
+ #: lib/admin-tab-appearance.php:108
174
+ msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
 
 
 
 
175
  msgstr ""
176
 
177
+ #: lib/admin-tab-appearance.php:116
178
+ msgid "Show Title"
179
  msgstr ""
180
 
181
+ #: lib/admin-tab-appearance.php:122
182
+ msgid "Show the image title (default: on)"
183
  msgstr ""
184
 
185
+ #: lib/admin-tab-behaviour.php:1
186
  msgid "Behavior Settings <span style=\"color:orange\">(medium)</span>"
187
  msgstr ""
188
 
189
+ #: lib/admin-tab-behaviour.php:3
190
  msgid ""
191
  "The following settings should be left on default unless you know what you "
192
  "are doing."
193
  msgstr ""
194
 
195
+ #: lib/admin-tab-behaviour.php:9
196
  msgid "Auto Resize to Fit"
197
  msgstr ""
198
 
199
+ #: lib/admin-tab-behaviour.php:15
200
  msgid "Scale images to fit in viewport (default: on)"
201
  msgstr ""
202
 
203
+ #: lib/admin-tab-behaviour.php:23
204
  msgid "Center on Scroll"
205
  msgstr ""
206
 
207
+ #: lib/admin-tab-behaviour.php:29
208
  msgid ""
209
  "Keep image in the center of the browser window when scrolling (default: on)"
210
  msgstr ""
211
 
212
+ #: lib/admin-tab-behaviour.php:37
213
  msgid "Close on Click"
214
  msgstr ""
215
 
216
+ #: lib/admin-tab-behaviour.php:43
217
  msgid "Close FancyBox by clicking on the image (default: off)"
218
  msgstr ""
219
 
220
+ #: lib/admin-tab-behaviour.php:46
221
  msgid ""
222
+ "(You may want to leave this off if you display iframed or inline content "
223
+ "that containts clickable elements - for example: play buttons for movies, "
224
  "links to other pages)"
225
  msgstr ""
226
 
227
+ #: lib/admin-tab-behaviour.php:53
228
+ msgid "Close with &quot;Esc&quot;"
229
+ msgstr ""
230
+
231
+ #: lib/admin-tab-behaviour.php:59
232
+ msgid "Close FancyBox when &quot;Escape&quot; key is pressed (default: on)"
233
+ msgstr ""
234
+
235
+ #: lib/admin-tab-galleries.php:1
236
  msgid "Gallery Settings <span style=\"color:red\">(advanced)</span>"
237
  msgstr ""
238
 
239
+ #: lib/admin-tab-galleries.php:3
240
  msgid ""
241
  "Here you can choose if you want the plugin to group all images into a "
242
  "gallery, or make a gallery for each post. You can also define you own jQuery "
243
  "expression if you like."
244
  msgstr ""
245
 
246
+ #: lib/admin-tab-galleries.php:9
247
  msgid "Frame Size"
248
  msgstr ""
249
 
250
+ #: lib/admin-tab-galleries.php:15
251
+ msgid "Width in pixels of FancyBox when showing iframe content (default: 560)"
252
  msgstr ""
253
 
254
+ #: lib/admin-tab-galleries.php:20
255
+ msgid "Height in pixels of FancyBox when showing iframe content (default: 340)"
256
  msgstr ""
257
 
258
+ #: lib/admin-tab-galleries.php:28
259
  msgid "Gallery Type"
260
  msgstr ""
261
 
262
+ #: lib/admin-tab-galleries.php:34
263
  msgid "Make a gallery for all images on the page (default)"
264
  msgstr ""
265
 
266
+ #: lib/admin-tab-galleries.php:39
267
  msgid ""
268
  "Do not group images in gallery automatically (use this if you want to make "
269
  "galleries manually with the <code>REL</code> attribute)"
270
  msgstr ""
271
 
272
+ #: lib/admin-tab-galleries.php:44
273
  msgid ""
274
  "Make a gallery for each post (will only work if your theme uses <code>class="
275
  "\"post\"</code> on each post, which is common in WordPress"
276
  msgstr ""
277
 
278
+ #: lib/admin-tab-galleries.php:49
279
  msgid "Use a custom expression to apply FancyBox"
280
  msgstr ""
281
 
282
+ #: lib/admin-tab-galleries.php:58
283
  msgid "Custom expression guidelines:"
284
  msgstr ""
285
 
286
+ #: lib/admin-tab-galleries.php:60
287
  msgid ""
288
  "&middot; The custom expression has to apply <code>class=\"fancybox\"</code> "
289
  "to the links where you want to use FancyBox. Do not call the <code>fancybox()"
290
  "</code> function here, the plugin does this for you."
291
  msgstr ""
292
 
293
+ #: lib/admin-tab-galleries.php:62
294
  msgid ""
295
  "&middot; The jQuery <code>addClass()</code> function is a good way to add "
296
  "the class to the desired links conserving any existing class."
297
  msgstr ""
298
 
299
+ #: lib/admin-tab-galleries.php:64
300
  msgid ""
301
  "&middot; You can use <code>getTitle()</code> in your expression to copy the "
302
  "title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so "
303
  "that FancyBox can show captions."
304
  msgstr ""
305
 
306
+ #: lib/admin-tab-galleries.php:66
307
  msgid ""
308
  "&middot; You can use <code>jQuery(thumbnails)</code> like in the example "
309
  "expression to apply FancyBox to thumbnails that link to these extensions: "
310
  "BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase)."
311
  msgstr ""
312
 
313
+ #: lib/admin-tab-galleries.php:68
314
  msgid ""
315
  "&middot; If you want to do it manually you can use something like "
316
  "<code>jQuery(\"a:has(img)[href$='.jpg']\")</code> or whatever works for you."
317
  msgstr ""
318
 
319
+ #: lib/admin-tab-galleries.php:70
320
  msgid ""
321
  "See the <a href=\"http://docs.jquery.com/\" target=\"_blank\">jQuery "
322
  "Documentation</a> for more help."
323
  msgstr ""
324
 
325
+ #: lib/admin-tab-galleries.php:72
326
  msgid "Examples:"
327
  msgstr ""
328
 
329
+ #: lib/admin-tab-info.php:1
330
+ msgid "Info & Support"
331
+ msgstr ""
332
+
333
+ #: lib/admin-tab-info.php:3
334
+ msgid ""
335
+ "<a href=\"http://fancy.klade.lv/home\">FancyBox</a> developed by <a href="
336
+ "\"http://kac.klade.lv/\">Janis Skarnelis</a>, ported to WordPress by <a href="
337
+ "\"http://moskis.net/\">Jos&eacute; Pardilla</a>. Licensed under the <a "
338
+ "target=\"_blank\" href=\"http://en.wikipedia.org/wiki/MIT_License\">MIT "
339
+ "License</a>."
340
+ msgstr ""
341
+
342
+ #: lib/admin-tab-info.php:5
343
+ msgid ""
344
+ "As you can see, this plugin has many options you can edit, but have no fear, "
345
+ "you can leave everything as it is if you want, since the default options "
346
+ "should be a good start... :)"
347
+ msgstr ""
348
+
349
+ #: lib/admin-tab-info.php:9
350
+ msgid ""
351
+ "If you have problems or questions about FancyBox, please start with these "
352
+ "links: <a href=\"http://fancy.klade.lv/howto\">How-To</a> & <a href=\"http://"
353
+ "fancy.klade.lv/faq\">FAQ</a>.<br />If that does not help, go to <a href="
354
+ "\"http://groups.google.com/group/fancybox\">the FancyBox Google Group</a>, "
355
+ "use the <strong>Search</strong> option, and if necesary, post your question."
356
+ msgstr ""
357
+
358
+ #: lib/admin-tab-info.php:11
359
+ msgid ""
360
+ "If you are having trouble with this plugin try to localize the problem "
361
+ "(switch your theme and/or deactivate plugins until you find the source of "
362
+ "the problem). You can also try the Troubleshooting settings at the bottom of "
363
+ "this page if necesary. If you still can not get the plugin to work, <a href="
364
+ "\"http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/\">leave a "
365
+ "comment here</a> explaining the problem."
366
+ msgstr ""
367
+
368
+ #: lib/admin-tab-info.php:15
369
+ msgid ""
370
+ "<strong>Note:</strong> Having a cache plugin may prevent changes from taking "
371
+ "effect immidiately, if this happens clear cache after saving changes here or "
372
+ "deactivate cache until you finish editing these options."
373
+ msgstr ""
374
+
375
+ #: lib/admin-tab-info.php:18
376
+ msgid "If you use FancyBox and like it, buy the author a beer!"
377
+ msgstr ""
378
+
379
+ #: lib/admin-tab-info.php:36
380
+ msgid "The author of this WordPress Plugin also likes beer :P"
381
+ msgstr ""
382
+
383
+ #: lib/admin-tab-info.php:46
384
+ msgid "Follow me on Twitter for more WordPress Plugins and Themes"
385
+ msgstr ""
386
+
387
+ #: lib/admin-tab-other.php:1
388
+ msgid "Other Settings <span style=\"color:red\">(advanced)</span>"
389
+ msgstr ""
390
+
391
+ #: lib/admin-tab-other.php:3
392
+ msgid "These are additional settings for advanced users."
393
+ msgstr ""
394
+
395
+ #: lib/admin-tab-other.php:9
396
+ msgid "Callbacks"
397
+ msgstr ""
398
+
399
+ #: lib/admin-tab-other.php:14
400
+ msgid "Callback on Start event (default: empty)"
401
+ msgstr ""
402
+
403
+ #: lib/admin-tab-other.php:19
404
+ msgid "Callback on Show event (default: empty)"
405
+ msgstr ""
406
+
407
+ #: lib/admin-tab-other.php:24
408
+ msgid "Callback on Close event (default: empty)"
409
+ msgstr ""
410
+
411
+ #: lib/admin-tab-other.php:28
412
+ msgid "Example:"
413
+ msgstr ""
414
+
415
+ #: lib/admin-tab-other.php:32
416
+ msgid "Leave the fields empty to disable."
417
+ msgstr ""
418
+
419
+ #: lib/admin-tab-other.php:39
420
+ msgid "Load JavaScript in Footer"
421
+ msgstr ""
422
+
423
+ #: lib/admin-tab-other.php:45
424
+ msgid ""
425
+ "Loads JavaScript at the end of the blog's HTML (experimental) (default: off)"
426
+ msgstr ""
427
+
428
+ #: lib/admin-tab-other.php:48
429
+ msgid ""
430
+ "This option won't be recognized if you use <strong>Parallel Load</strong> "
431
+ "plugin. In that case, you can do this from Parallel Load's options."
432
+ msgstr ""
433
+
434
+ #: lib/admin-tab-troubleshooting.php:1
435
  msgid "Troubleshooting Settings"
436
  msgstr ""
437
 
438
+ #: lib/admin-tab-troubleshooting.php:3
439
  msgid ""
440
  "Settings in this section should only be changed if you are having problems "
441
  "with the plugin!"
442
  msgstr ""
443
 
444
+ #: lib/admin-tab-troubleshooting.php:5
445
  msgid ""
446
  "If the plugin doesn't seem to work, first you should check for other plugins "
447
  "that may be conflicting with this one, especially other Lightbox, Slimbox, "
449
  "plugin has only been tested in WordPress 2.7 and above)."
450
  msgstr ""
451
 
452
+ #: lib/admin-tab-troubleshooting.php:7
453
  msgid ""
454
  "Change them one at a time and test to see if they help. Remember that having "
455
  "a cache plugin may prevent changes from taking effect immidiately, so clear "
457
  "these options."
458
  msgstr ""
459
 
460
+ #: lib/admin-tab-troubleshooting.php:13
461
  msgid "Do not call jQuery"
462
  msgstr ""
463
 
464
+ #: lib/admin-tab-troubleshooting.php:19
465
  msgid ""
466
  "Skip jQuery call. Use this only if jQuery is being loaded twice (default: "
467
  "off)"
468
  msgstr ""
469
 
470
+ #: lib/admin-tab-troubleshooting.php:27
471
  msgid "jQuery \"noConflict\" Mode"
472
  msgstr ""
473
 
474
+ #: lib/admin-tab-troubleshooting.php:33
475
  msgid "Use jQuery noConflict mode (default: on)"
476
  msgstr ""
477
 
478
+ #: lib/admin-tab-troubleshooting.php:36
479
  msgid ""
480
  "(Turning this off may cause problems if there are plugins activated that use "
481
  "other js framework like mootools, prototype, scriptaculous, etc.)"
482
  msgstr ""
483
 
484
+ #: lib/admin-tab-uninstall.php:1
485
  msgid "Uninstall"
486
  msgstr ""
487
 
488
+ #: lib/admin-tab-uninstall.php:3
489
  msgid ""
490
  "Like many other plugins, FancyBox for WordPress stores its settings on your "
491
  "WordPress' options database table. Actually, these settings are not using "
495
  "removed from the database."
496
  msgstr ""
497
 
498
+ #: lib/admin-tab-uninstall.php:9
499
  msgid "Remove settings"
500
  msgstr ""
501
 
502
+ #: lib/admin-tab-uninstall.php:15
503
  msgid ""
504
  "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. "
505
  "(default: off)"
506
  msgstr ""
 
 
 
 
 
 
 
 
lib/admin-head.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ echo "\n".'<link rel="stylesheet" href="'. FBFW_URL . '/css/jquery-ui.css" type="text/css" media="screen" />'."\n";
4
+
5
+ // Get array with all the options
6
+ $settings = mfbfw_get_settings();
7
+
8
+ // Make selects data
9
+ $closePositionArray = array('left','right');
10
+ $overlayArray = array(0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1);
11
+ $msArray = array(0,25,50,75,100,200,300,400,500,600,700,800,900,1000,1250,1500,1750,2000);
12
+ $easingArray = array('easeInQuad','easeOutQuad','easeInOutQuad','easeInCubic','easeOutCubic','easeInOutCubic','easeInQuart','easeOutQuart',
13
+ 'easeInOutQuart','easeInQuint','easeOutQuint','easeInOutQuint','easeInSine','easeOutSine','easeInOutSine','easeInExpo',
14
+ 'easeOutExpo','easeInOutExpo','easeInCirc','easeOutCirc','easeInOutCirc','easeInElastic','easeOutElastic','easeInOutElastic',
15
+ 'easeInBack','easeOutBack','easeInOutBack','easeInBounce','easeOutBounce','easeInOutBounce');
16
+
17
+ ?>
lib/admin-js.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if (is_plugin_page()) {
4
+
5
+ ?>
6
+
7
+ <script type="text/javascript">
8
+
9
+ jQuery(function(){
10
+
11
+ // Tabs
12
+ jQuery("#fbfwTabs").tabs();
13
+
14
+ // Advanced Settings Switcher
15
+ jQuery("#advOpsSwitch").click(function(){
16
+ jQuery(".advOpts").toggle("slow");
17
+ });
18
+
19
+ // Troubleshooting & Settings Switcher
20
+ jQuery("#troOpsSwitch").click(function(){
21
+ jQuery(".troOpts").toggle("slow");
22
+ });
23
+
24
+ // Hide Custom Expresion textarea if not needed
25
+ var galleryType = jQuery("input:radio[name=mfbfw_galleryType]:checked").val();
26
+
27
+ switch (galleryType) {
28
+ case "all":
29
+ case "none":
30
+ case "post":
31
+ jQuery("#customExpressionBlock").css("display", "none");
32
+ }
33
+
34
+ jQuery("#mfbfw_galleryTypeAll").click(function () {
35
+ jQuery("#customExpressionBlock").hide("slow");
36
+ });
37
+
38
+ jQuery("#mfbfw_galleryTypePost").click(function () {
39
+ jQuery("#customExpressionBlock").hide("slow");
40
+ });
41
+
42
+ jQuery("#mfbfw_galleryTypeCustom").click(function () {
43
+ jQuery("#customExpressionBlock").show("slow");
44
+ });
45
+
46
+ })
47
+
48
+ </script>
49
+
50
+ <?php
51
+
52
+ }
53
+
54
+ ?>
lib/admin-tab-animations.php ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Animation Settings <span style="color:green">(basic)</span>', 'mfbfw'); ?></h2>
2
+
3
+ <p><?php _e('These settings control the animations when opening and closing Fancybox, and the optional easing effects.', 'mfbfw'); ?></p>
4
+
5
+ <table class="form-table" style="clear:none;">
6
+ <tbody>
7
+
8
+ <tr valign="top">
9
+ <th scope="row"><?php _e('Zoom Options', 'mfbfw'); ?></th>
10
+ <td>
11
+ <fieldset>
12
+
13
+ <label for="mfbfw_zoomOpacity">
14
+ <input type="checkbox" name="mfbfw_zoomOpacity" id="mfbfw_zoomOpacity"<?php if ($settings['zoomOpacity']) echo ' checked="yes"';?> />
15
+ <?php _e('Change content transparency during zoom animations (default: on)', 'mfbfw'); ?>
16
+ </label><br /><br />
17
+
18
+ <label for="mfbfw_zoomSpeedIn">
19
+ <select name="mfbfw_zoomSpeedIn" id="mfbfw_zoomSpeedIn">
20
+ <?php
21
+ foreach($msArray as $key=> $ms) {
22
+ if($settings['zoomSpeedIn'] != $ms) $selected = '';
23
+ else $selected = ' selected';
24
+ echo "<option value='$ms'$selected>$ms</option>\n";
25
+ } ?>
26
+ </select>
27
+ <?php _e('Speed in miliseconds of the zooming-in animation (default: 500)', 'mfbfw'); ?>
28
+ </label><br /><br />
29
+
30
+ <label for="mfbfw_zoomSpeedOut">
31
+ <select name="mfbfw_zoomSpeedOut" id="mfbfw_zoomSpeedOut">
32
+ <?php
33
+ foreach($msArray as $key=> $ms) {
34
+ if($settings['zoomSpeedOut'] != $ms) $selected = '';
35
+ else $selected = ' selected';
36
+ echo "<option value='$ms'$selected>$ms</option>\n";
37
+ } ?>
38
+ </select>
39
+ <?php _e('Speed in miliseconds of the zooming-out animation (default: 500)', 'mfbfw'); ?>
40
+ </label><br /><br />
41
+
42
+ <label for="mfbfw_zoomSpeedChange">
43
+ <select name="mfbfw_zoomSpeedChange" id="mfbfw_zoomSpeedChange">
44
+ <?php
45
+ foreach($msArray as $key=> $ms) {
46
+ if($settings['zoomSpeedChange'] != $ms) $selected = '';
47
+ else $selected = ' selected';
48
+ echo "<option value='$ms'$selected>$ms</option>\n";
49
+ } ?>
50
+ </select>
51
+ <?php _e('Speed in miliseconds of the animation when navigating thorugh gallery items (default: 300)', 'mfbfw'); ?>
52
+ </label><br /><br />
53
+
54
+ </fieldset>
55
+ </td>
56
+ </tr>
57
+
58
+ <tr valign="top">
59
+ <th scope="row"><?php _e('Easing', 'mfbfw'); ?></th>
60
+ <td>
61
+ <fieldset>
62
+
63
+ <label for="mfbfw_easing">
64
+ <input type="checkbox" name="mfbfw_easing" id="mfbfw_easing"<?php if ($settings['easing']) echo ' checked="yes"';?> />
65
+ <?php _e('Activate easing (default: off)', 'mfbfw'); ?>
66
+ </label><br /><br />
67
+
68
+ <label for="mfbfw_easingIn">
69
+ <select name="mfbfw_easingIn" id="mfbfw_easingIn">
70
+ <?php
71
+ foreach($easingArray as $key=> $easingIn) {
72
+ if($settings['easingIn'] != $easingIn) $selected = '';
73
+ else $selected = ' selected';
74
+ echo "<option value='$easingIn'$selected>$easingIn</option>\n";
75
+ }
76
+ ?>
77
+ </select>
78
+ <?php _e('Easing method when opening FancyBox. (default: easeOutBack)', 'mfbfw'); ?>
79
+ </label><br /><br />
80
+
81
+ <label for="mfbfw_easingOut">
82
+ <select name="mfbfw_easingOut" id="mfbfw_easingOut">
83
+ <?php
84
+ foreach($easingArray as $key=> $easingOut) {
85
+ if($settings['easingOut'] != $easingOut) $selected = '';
86
+ else $selected = ' selected';
87
+ echo "<option value='$easingOut'$selected>$easingOut</option>\n";
88
+ }
89
+ ?>
90
+ </select>
91
+ <?php _e('Easing method when closing FancyBox. (default: easeInBack)', 'mfbfw'); ?>
92
+ </label><br /><br />
93
+
94
+ <label for="mfbfw_easingChange">
95
+ <select name="mfbfw_easingChange" id="mfbfw_easingChange">
96
+ <?php
97
+ foreach($easingArray as $key=> $easingChange) {
98
+ if($settings['easingChange'] != $easingChange) $selected = '';
99
+ else $selected = ' selected';
100
+ echo "<option value='$easingChange'$selected>$easingChange</option>\n";
101
+ }
102
+ ?>
103
+ </select>
104
+ <?php _e('Easing method when navigating through gallery items. (default: easeInOutQuart)', 'mfbfw'); ?>
105
+ </label><br />
106
+
107
+ <small><em><?php _e('(There are 30 different easing methods, the first ones are the most boring. You can test them <a href="http://commadot.com/jquery/easing.php" target="_blank">here</a> or <a href="http://hosted.zeh.com.br/mctween/animationtypes.html" target="_blank">here</a>)', 'mfbfw'); ?></em></small><br /><br />
108
+
109
+ </fieldset>
110
+ </td>
111
+ </tr>
112
+
113
+ </tbody>
114
+ </table>
lib/admin-tab-appearance.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Appearance Settings <span style="color:green">(basic)</span>', 'mfbfw'); ?></h2>
2
+
3
+ <p><?php _e('These setting control how Fancybox looks, they let you tweak color, borders and position of elements, like the image title and closing buttons.', 'mfbfw'); ?></p>
4
+
5
+ <table class="form-table" style="clear:none;">
6
+ <tbody>
7
+
8
+ <tr valign="top">
9
+ <th scope="row"><?php _e('Border Color', 'mfbfw'); ?></th>
10
+ <td>
11
+ <fieldset>
12
+
13
+ <label for="mfbfw_border">
14
+ <input type="checkbox" name="mfbfw_border" id="mfbfw_border"<?php if ($settings['border']) echo ' checked="yes"';?> />
15
+ <?php _e('Show Border (default: off)', 'mfbfw'); ?>
16
+ </label><br /><br />
17
+
18
+ <label for="mfbfw_borderColor">
19
+ <input type="text" name="mfbfw_borderColor" id="mfbfw_borderColor" value="<?php echo $settings['borderColor'] ?>" size="7" maxlength="7" />
20
+ <?php _e('HTML color of the border (default: #BBBBBB)', 'mfbfw'); ?>
21
+ </label><br /><br />
22
+
23
+ </fieldset>
24
+ </td>
25
+ </tr>
26
+
27
+ <tr valign="top">
28
+ <th scope="row"><?php _e('Close Button', 'mfbfw'); ?></th>
29
+ <td>
30
+ <fieldset>
31
+
32
+ <label for="mfbfw_showCloseButton">
33
+ <input type="checkbox" name="mfbfw_showCloseButton" id="mfbfw_showCloseButton"<?php if ($settings['showCloseButton']) echo ' checked="yes"';?> />
34
+ <?php _e('Show Close button (default: on)', 'mfbfw'); ?>
35
+ </label><br /><br />
36
+
37
+ <?php _e('Close button position:', 'mfbfw'); ?><br />
38
+ <input id="mfbfw_closePosLeft" type="radio" value="left" name="mfbfw_closeHorPos"<?php if ($settings['closeHorPos'] == 'left') echo ' checked="yes"';?> />
39
+ <label for="mfbfw_closePosLeft" style="padding-right:15px">
40
+ <?php _e('Left', 'mfbfw'); ?>
41
+ </label>
42
+
43
+ <input id="mfbfw_closePosRight" type="radio" value="right" name="mfbfw_closeHorPos"<?php if ($settings['closeHorPos'] == 'right') echo ' checked="yes"';?> />
44
+ <label for="mfbfw_closePosRight">
45
+ <?php _e('Right (default)', 'mfbfw'); ?>
46
+ </label><br />
47
+
48
+ <input id="mfbfw_closePosBottom" type="radio" value="bottom" name="mfbfw_closeVerPos"<?php if ($settings['closeVerPos'] == 'bottom') echo ' checked="yes"';?> />
49
+ <label for="mfbfw_closePosBottom" style="padding-right:15px">
50
+ <?php _e('Bottom', 'mfbfw'); ?>
51
+ </label>
52
+
53
+ <input id="mfbfw_closePosTop" type="radio" value="top" name="mfbfw_closeVerPos"<?php if ($settings['closeVerPos'] == 'top') echo ' checked="yes"';?> />
54
+ <label for="mfbfw_closePosTop">
55
+ <?php _e('Top (default)', 'mfbfw'); ?>
56
+ </label><br /><br />
57
+
58
+ </fieldset>
59
+ </td>
60
+ </tr>
61
+
62
+ <tr valign="top">
63
+ <th scope="row"><?php _e('Padding', 'mfbfw'); ?></th>
64
+ <td>
65
+ <fieldset>
66
+
67
+ <label for="mfbfw_paddingColor">
68
+ <input type="text" name="mfbfw_paddingColor" id="mfbfw_paddingColor" value="<?php echo $settings['paddingColor'] ?>" size="7" maxlength="7" />
69
+ <?php _e('HTML color of the padding (default: #FFFFFF)', 'mfbfw'); ?>
70
+ </label><br />
71
+
72
+ <small><em><?php _e('(This should be left on #FFFFFF (white) if you want to display anything other than images, like inline or framed content)', 'mfbfw'); ?></em></small><br /><br />
73
+
74
+ <label for="mfbfw_padding">
75
+ <input type="text" name="mfbfw_padding" id="mfbfw_padding" value="<?php echo $settings['padding']; ?>" size="7" maxlength="7" />
76
+ <?php _e('Padding size in pixels (default: 10)', 'mfbfw'); ?>
77
+ </label><br /><br />
78
+
79
+ </fieldset>
80
+ </td>
81
+ </tr>
82
+
83
+ <tr valign="top">
84
+ <th scope="row"><?php _e('Overlay Options', 'mfbfw'); ?></th>
85
+ <td>
86
+ <fieldset>
87
+
88
+ <label for="mfbfw_overlayShow">
89
+ <input type="checkbox" name="mfbfw_overlayShow" id="mfbfw_overlayShow"<?php if ($settings['overlayShow']) echo ' checked="yes"';?> />
90
+ <?php _e('Add overlay (default: on)', 'mfbfw'); ?>
91
+ </label><br /><br />
92
+
93
+ <label for="mfbfw_overlayColor">
94
+ <input type="text" name="mfbfw_overlayColor" id="mfbfw_overlayColor" value="<?php echo $settings['overlayColor']; ?>" size="7" maxlength="7" />
95
+ <?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
96
+ </label><br /><br />
97
+
98
+ <label for="mfbfw_overlayOpacity">
99
+ <select name="mfbfw_overlayOpacity" id="mfbfw_overlayOpacity">
100
+ <?php
101
+ foreach($overlayArray as $key=> $opacity) {
102
+ if($settings['overlayOpacity'] != $opacity) $selected = '';
103
+ else $selected = ' selected';
104
+ echo "<option value='$opacity'$selected>$opacity</option>\n";
105
+ }
106
+ ?>
107
+ </select>
108
+ <?php _e('Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)', 'mfbfw'); ?>
109
+ </label><br /><br />
110
+
111
+ </fieldset>
112
+ </td>
113
+ </tr>
114
+
115
+ <tr valign="top">
116
+ <th scope="row"><?php _e('Show Title', 'mfbfw'); ?></th>
117
+ <td>
118
+ <fieldset>
119
+
120
+ <label for="mfbfw_showTitle">
121
+ <input type="checkbox" name="mfbfw_showTitle" id="mfbfw_showTitle"<?php if ($settings['showTitle']) echo ' checked="yes"';?> />
122
+ <?php _e('Show the image title (default: on)', 'mfbfw'); ?>
123
+ </label><br /><br />
124
+
125
+ </fieldset>
126
+ </td>
127
+ </tr>
128
+
129
+ </tbody>
130
+ </table>
lib/admin-tab-behaviour.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Behavior Settings <span style="color:orange">(medium)</span>', 'mfbfw'); ?></h2>
2
+
3
+ <p><?php _e('The following settings should be left on default unless you know what you are doing.', 'mfbfw'); ?></p>
4
+
5
+ <table class="form-table" style="clear:none;">
6
+ <tbody>
7
+
8
+ <tr valign="top">
9
+ <th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
10
+ <td>
11
+ <fieldset>
12
+
13
+ <label for="mfbfw_imageScale">
14
+ <input type="checkbox" name="mfbfw_imageScale" id="mfbfw_imageScale"<?php if ($settings['imageScale']) echo ' checked="yes"';?> />
15
+ <?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
16
+ </label><br /><br />
17
+
18
+ </fieldset>
19
+ </td>
20
+ </tr>
21
+
22
+ <tr valign="top">
23
+ <th scope="row"><?php _e('Center on Scroll', 'mfbfw'); ?></th>
24
+ <td>
25
+ <fieldset>
26
+
27
+ <label for="mfbfw_centerOnScroll">
28
+ <input type="checkbox" name="mfbfw_centerOnScroll" id="mfbfw_centerOnScroll"<?php if ($settings['centerOnScroll']) echo ' checked="yes"';?> />
29
+ <?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
30
+ </label><br /><br />
31
+
32
+ </fieldset>
33
+ </td>
34
+ </tr>
35
+
36
+ <tr valign="top">
37
+ <th scope="row"><?php _e('Close on Click', 'mfbfw'); ?></th>
38
+ <td>
39
+ <fieldset>
40
+
41
+ <label for="mfbfw_hideOnContentClick">
42
+ <input type="checkbox" name="mfbfw_hideOnContentClick" id="mfbfw_hideOnContentClick"<?php if ($settings['hideOnContentClick']) echo ' checked="yes"';?> />
43
+ <?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
44
+ </label><br />
45
+
46
+ <small><em><?php _e('(You may want to leave this off if you display iframed or inline content that containts clickable elements - for example: play buttons for movies, links to other pages)', 'mfbfw'); ?></em></small><br /><br />
47
+
48
+ </fieldset>
49
+ </td>
50
+ </tr>
51
+
52
+ <tr valign="top">
53
+ <th scope="row"><?php _e('Close with &quot;Esc&quot;', 'mfbfw'); ?></th>
54
+ <td>
55
+ <fieldset>
56
+
57
+ <label for="mfbfw_enableEscapeButton">
58
+ <input type="checkbox" name="mfbfw_enableEscapeButton" id="mfbfw_enableEscapeButton"<?php if ($settings['enableEscapeButton']) echo ' checked="yes"';?> />
59
+ <?php _e('Close FancyBox when &quot;Escape&quot; key is pressed (default: on)', 'mfbfw'); ?>
60
+ </label><br /><br />
61
+
62
+ </fieldset>
63
+ </td>
64
+ </tr>
65
+
66
+ </tbody>
67
+ </table>
lib/admin-tab-galleries.php ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Gallery Settings <span style="color:red">(advanced)</span>', 'mfbfw'); ?></h2>
2
+
3
+ <p><?php _e('Here you can choose if you want the plugin to group all images into a gallery, or make a gallery for each post. You can also define you own jQuery expression if you like.', 'mfbfw'); ?></p>
4
+
5
+ <table class="form-table" style="clear:none;">
6
+ <tbody>
7
+
8
+ <tr valign="top">
9
+ <th scope="row"><?php _e('Frame Size', 'mfbfw'); ?></th>
10
+ <td>
11
+ <fieldset>
12
+
13
+ <label for="mfbfw_frameWidth">
14
+ <input type="text" name="mfbfw_frameWidth" id="mfbfw_frameWidth" value="<?php echo $settings['frameWidth']; ?>" size="4" maxlength="4" />
15
+ <?php _e('Width in pixels of FancyBox when showing iframe content (default: 560)', 'mfbfw'); ?>
16
+ </label><br /><br />
17
+
18
+ <label for="mfbfw_frameHeight">
19
+ <input type="text" name="mfbfw_frameHeight" id="mfbfw_frameHeight" value="<?php echo $settings['frameHeight']; ?>" size="4" maxlength="4" />
20
+ <?php _e('Height in pixels of FancyBox when showing iframe content (default: 340)', 'mfbfw'); ?>
21
+ </label><br /><br />
22
+
23
+ </fieldset>
24
+ </td>
25
+ </tr>
26
+
27
+ <tr valign="top">
28
+ <th scope="row"><?php _e('Gallery Type', 'mfbfw'); ?></th>
29
+ <td>
30
+ <fieldset>
31
+
32
+ <input id="mfbfw_galleryTypeAll" type="radio" value="all" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'all') echo ' checked="yes"';?> />
33
+ <label for="mfbfw_galleryTypeAll">
34
+ <?php _e('Make a gallery for all images on the page (default)', 'mfbfw'); ?>
35
+ </label><br />
36
+
37
+ <input id="mfbfw_galleryTypeNone" type="radio" value="none" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'none') echo ' checked="yes"';?> />
38
+ <label for="mfbfw_galleryTypeNone">
39
+ <?php _e('Do not group images in gallery automatically (use this if you want to make galleries manually with the <code>REL</code> attribute)', 'mfbfw'); ?>
40
+ </label><br />
41
+
42
+ <input id="mfbfw_galleryTypePost" type="radio" value="post" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'post') echo ' checked="yes"';?> />
43
+ <label for="mfbfw_galleryTypePost">
44
+ <?php _e('Make a gallery for each post (will only work if your theme uses <code>class="post"</code> on each post, which is common in WordPress', 'mfbfw'); ?>
45
+ </label><br />
46
+
47
+ <input id="mfbfw_galleryTypeCustom" type="radio" value="custom" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'custom') echo ' checked="yes"';?> />
48
+ <label for="mfbfw_galleryTypeCustom">
49
+ <?php _e('Use a custom expression to apply FancyBox', 'mfbfw'); ?>
50
+ </label><br /><br />
51
+
52
+ <div id="customExpressionBlock">
53
+
54
+ <label for="mfbfw_customExpression">
55
+ <textarea rows="10" cols="50" class="large-text code" name="mfbfw_customExpression" wrap="physical" id="mfbfw_customExpression"><?php echo ($settings['customExpression']); ?></textarea>
56
+ </label><br />
57
+
58
+ <small><strong><em><?php _e('Custom expression guidelines:', 'mfbfw'); ?></em></strong></small><br />
59
+
60
+ <small><em><?php _e('&middot; The custom expression has to apply <code>class="fancybox"</code> to the links where you want to use FancyBox. Do not call the <code>fancybox()</code> function here, the plugin does this for you.', 'mfbfw'); ?></em></small><br />
61
+
62
+ <small><em><?php _e('&middot; The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class.', 'mfbfw'); ?></em></small><br />
63
+
64
+ <small><em><?php _e('&middot; You can use <code>getTitle()</code> in your expression to copy the title attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that FancyBox can show captions.', 'mfbfw'); ?></em></small><br />
65
+
66
+ <small><em><?php _e('&middot; You can use <code>jQuery(thumbnails)</code> like in the example expression to apply FancyBox to thumbnails that link to these extensions: BMP, GIF, JPG, JPEG, PNG (both lowercase and uppercase).', 'mfbfw'); ?></em></small><br />
67
+
68
+ <small><em><?php _e('&middot; If you want to do it manually you can use something like <code>jQuery("a:has(img)[href$=\'.jpg\']")</code> or whatever works for you.', 'mfbfw'); ?></em></small><br />
69
+
70
+ <small><em><?php _e('See the <a href="http://docs.jquery.com/" target="_blank">jQuery Documentation</a> for more help.', 'mfbfw'); ?></em></small><br /><br />
71
+
72
+ <small><strong><em><?php _e('Examples:', 'mfbfw'); ?></em></strong></small><br />
73
+
74
+ <small><em><code>jQuery(thumbnails).addClass(&quot;fancybox&quot;).attr(&quot;rel&quot;,&quot;fancybox&quot;).getTitle();</code></em></small><br />
75
+
76
+ <small><em><code>jQuery&quot;a:has(img)[href$='.jpg']&quot;).addClass&quot;fancybox&quot;).attr(&quot;rel&quot;,&quot;fancybox&quot;).getTitle();</code></em></small><br /><br />
77
+
78
+ </div>
79
+
80
+ </fieldset>
81
+ </td>
82
+ </tr>
83
+
84
+ </tbody>
85
+ </table>
lib/admin-tab-info.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Info & Support', 'mfbfw'); ?></h2>
2
+
3
+ <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>
4
+
5
+ <p><?php _e('As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)', 'mfbfw'); ?></p>
6
+
7
+ <ul style="list-style-type:disc;padding-left:15px;">
8
+
9
+ <li><?php _e('If you have problems or questions about FancyBox, please start with these links: <a href="http://fancy.klade.lv/howto">How-To</a> & <a href="http://fancy.klade.lv/faq">FAQ</a>.<br />If that does not help, go to <a href="http://groups.google.com/group/fancybox">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question.', 'mfbfw'); ?></li>
10
+
11
+ <li><?php _e('If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href="http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/">leave a comment here</a> explaining the problem.', 'mfbfw'); ?></li>
12
+
13
+ </ul>
14
+
15
+ <br /><small><em><?php _e('<strong>Note:</strong> Having a cache plugin may prevent changes from taking effect immidiately, if this happens clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></em></small><br /><br />
16
+
17
+ <div style="height:90px;float:left;text-align:center;width:200px;" class="updated">
18
+ <p style="line-height:1.5em;"><?php _e('If you use FancyBox and like it, buy the author a beer!', 'mfbfw'); ?></p>
19
+ <form id="donate_form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
20
+ <input name="cmd" value="_donations" type="hidden">
21
+ <input name="business" value="janis.skarnelis@gmail.com" type="hidden">
22
+ <input name="item_name" value="FancyBox" type="hidden">
23
+ <input name="amount" value="10.00" type="hidden">
24
+ <input name="no_shipping" value="0" type="hidden">
25
+ <input name="logo_custom" value="http://donate.png" type="hidden">
26
+ <input name="no_note" value="1" type="hidden">
27
+ <input name="currency_code" value="EUR" type="hidden">
28
+ <input name="tax" value="0" type="hidden">
29
+ <input name="lc" value="LV" type="hidden">
30
+ <input name="bn" value="PP-DonationsBF" type="hidden">
31
+ <input type="image" border="0" src="<?php echo FBFW_URL ?>/css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
32
+ </form>
33
+ </div>
34
+
35
+ <div style="height:90px;float:left;margin-left:10px;text-align:center;width:200px;" class="updated">
36
+ <p style="line-height:1.5em;"><?php _e('The author of this WordPress Plugin also likes beer :P', 'mfbfw'); ?></p>
37
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
38
+ <input type="hidden" name="cmd" value="_s-xclick"/>
39
+ <input type="hidden" name="hosted_button_id" value="3878319"/>
40
+ <input type="image" border="0" src="<?php echo FBFW_URL ?>/css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
41
+ <img height="1" width="1" border="0" alt="" src="https://www.paypal.com/es_ES/i/scr/pixel.gif" />
42
+ </form>
43
+ </div>
44
+
45
+ <div style="height:90px;float:left;margin-left:10px;background:#9DD1F2;border-color:#419ED9;text-align:center;width:200px;" class="updated">
46
+ <p style="line-height:1.5em;"><a href="http://twitter.com/moskis/"><?php _e('Follow me on Twitter for more WordPress Plugins and Themes', 'mfbfw'); ?></a></p>
47
+ <img height="16" width="16" border="0" alt="" src="<?php echo FBFW_URL ?>/css/img/extra_twitter.png" />
48
+ </div>
lib/admin-tab-other.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Other Settings <span style="color:red">(advanced)</span>', 'mfbfw'); ?></h2>
2
+
3
+ <p><?php _e('These are additional settings for advanced users.', 'mfbfw'); ?></p>
4
+
5
+ <table class="form-table" style="clear:none;">
6
+ <tbody>
7
+
8
+ <tr valign="top">
9
+ <th scope="row"><?php _e('Callbacks', 'mfbfw'); ?></th>
10
+ <td>
11
+ <fieldset>
12
+
13
+ <label for="mfbfw_callbackOnStart">
14
+ <?php _e('Callback on Start event (default: empty)', 'mfbfw'); ?>
15
+ <textarea rows="10" cols="50" class="large-text code" name="mfbfw_callbackOnStart" wrap="physical" id="mfbfw_callbackOnStart"><?php echo ($settings['callbackOnStart']); ?></textarea>
16
+ </label><br /><br />
17
+
18
+ <label for="mfbfw_callbackOnShow">
19
+ <?php _e('Callback on Show event (default: empty)', 'mfbfw'); ?>
20
+ <textarea rows="10" cols="50" class="large-text code" name="mfbfw_callbackOnShow" wrap="physical" id="mfbfw_callbackOnShow"><?php echo ($settings['callbackOnShow']); ?></textarea>
21
+ </label><br /><br />
22
+
23
+ <label for="mfbfw_callbackOnClose">
24
+ <?php _e('Callback on Close event (default: empty)', 'mfbfw'); ?>
25
+ <textarea rows="10" cols="50" class="large-text code" name="mfbfw_callbackOnClose" wrap="physical" id="mfbfw_callbackOnClose"><?php echo ($settings['callbackOnClose']); ?></textarea>
26
+ </label><br />
27
+
28
+ <small><strong><em><?php _e('Example:', 'mfbfw'); ?></em></strong></small><br />
29
+
30
+ <small><em><code>function() { alert('Completed!'); }</code></em></small><br /><br />
31
+
32
+ <small><em><?php _e('Leave the fields empty to disable.', 'mfbfw'); ?></em></small><br /><br />
33
+
34
+ </fieldset>
35
+ </td>
36
+ </tr>
37
+
38
+ <tr valign="top">
39
+ <th scope="row"><?php _e('Load JavaScript in Footer', 'mfbfw'); ?></th>
40
+ <td>
41
+ <fieldset>
42
+
43
+ <label for="mfbfw_loadAtFooter">
44
+ <input type="checkbox" name="mfbfw_loadAtFooter" id="mfbfw_loadAtFooter"<?php if ($settings['loadAtFooter']) echo ' checked="yes"';?> />
45
+ <?php _e('Loads JavaScript at the end of the blog\'s HTML (experimental) (default: off)', 'mfbfw'); ?>
46
+ </label><br />
47
+
48
+ <small><em><?php _e('This option won\'t be recognized if you use <strong>Parallel Load</strong> plugin. In that case, you can do this from Parallel Load\'s options.', 'mfbfw'); ?></em></small><br /><br />
49
+
50
+ </fieldset>
51
+ </td>
52
+ </tr>
53
+
54
+ </tbody>
55
+ </table>
lib/admin-tab-troubleshooting.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Troubleshooting Settings', 'mfbfw'); ?></h2>
2
+
3
+ <p><span style="color:red;"><?php _e('Settings in this section should only be changed if you are having problems with the plugin!', 'mfbfw'); ?></span></p>
4
+
5
+ <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>
6
+
7
+ <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 />
8
+
9
+ <table class="form-table" style="clear:none;">
10
+ <tbody>
11
+
12
+ <tr valign="top">
13
+ <th scope="row"><?php _e('Do not call jQuery', 'mfbfw'); ?></th>
14
+ <td>
15
+ <fieldset>
16
+
17
+ <label for="mfbfw_nojQuery">
18
+ <input type="checkbox" name="mfbfw_nojQuery" id="mfbfw_nojQuery"<?php if ($settings['nojQuery']) echo ' checked="yes"';?> />
19
+ <?php _e('Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)', 'mfbfw'); ?>
20
+ </label><br />
21
+
22
+ </fieldset>
23
+ </td>
24
+ </tr>
25
+
26
+ <tr valign="top">
27
+ <th scope="row"><?php _e('jQuery "noConflict" Mode', 'mfbfw'); ?></th>
28
+ <td>
29
+ <fieldset>
30
+
31
+ <label for="mfbfw_jQnoConflict">
32
+ <input type="checkbox" name="mfbfw_jQnoConflict" id="mfbfw_jQnoConflict"<?php if ($settings['jQnoConflict']) echo ' checked="yes"';?> />
33
+ <?php _e('Use jQuery noConflict mode (default: on)', 'mfbfw'); ?>
34
+ </label><br />
35
+
36
+ <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 />
37
+
38
+ </fieldset>
39
+ </td>
40
+ </tr>
41
+
42
+ </tbody>
43
+ </table>
lib/admin-tab-uninstall.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Uninstall', 'mfbfw'); ?></h2>
2
+
3
+ <p><?php _e('Like many other plugins, FancyBox for WordPress stores its settings on your WordPress\' options database table. Actually, these settings are not using more than a couple of kilobytes of space, but if you want to completely uninstall this plugin, check the option below, then save changes, and <strong>when you deactivate the plugin</strong>, all its settings will be removed from the database.', 'mfbfw'); ?></p>
4
+
5
+ <table class="form-table" style="clear:none;">
6
+ <tbody>
7
+
8
+ <tr valign="top">
9
+ <th scope="row"><?php _e('Remove settings', 'mfbfw'); ?></th>
10
+ <td>
11
+ <fieldset>
12
+
13
+ <label for="mfbfw_uninstall">
14
+ <input type="checkbox" name="mfbfw_uninstall" id="mfbfw_uninstall"<?php if ($settings['uninstall']) echo ' checked="yes"';?> />
15
+ <?php _e('Remove Settings when plugin is deactivated from the "Manage Plugins" page. (default: off)', 'mfbfw'); ?>
16
+ </label><br /><br />
17
+
18
+ </fieldset>
19
+ </td>
20
+ </tr>
21
+
22
+ </tbody>
23
+ </table>
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: moskis
3
  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.8
7
- Stable tag: 2.6.0
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
 
@@ -19,11 +19,36 @@ By default, the plugin will use jQuery to apply [FancyBox](http://fancy.klade.lv
19
 
20
  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? ;)
21
 
22
-
23
- = Changelog =
24
-
25
- 2.6.0 Updates:
26
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  * Optimized the JavaScript code used to apply FancyBox
28
  * Updated Custom Expression section in Options Page
29
  * Fixed uppercase image extensions not being recognized
@@ -36,16 +61,12 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
36
  * Removed /wp-content/ reference in fancybox.php for better WP2.8 support
37
  * Optimized some code readability
38
 
39
-
40
- 2.5.1 Updates:
41
-
42
  * Fixed the plugin not working when selecting Gallery Type "By Post"
43
  * Fixed a bug that would prevent the title in the IMG tag from being copied to the A tag in some cases
44
  * Fixed the Custom Expression showing in the Admin panel when other gallery types are selected
45
 
46
-
47
- 2.5 Updates:
48
-
49
  * Support for localizations (Spanish and German localizations included)
50
  * Some parts of the code completely rewritten
51
  * Fixed fancybox files being loaded on the admin pages
@@ -59,58 +80,38 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
59
  * New uninstall options and better handling of new options when installing/updating
60
  * Cleans any old options no longer needed when plugin is activated/updated
61
 
62
-
63
- 2.2 Updtades:
64
-
65
  * Updated to FancyBox 1.2.1
66
  * Added new settings to Options Page: Easing, padding size, border color
67
  * Tweaked CSS to prevent some themes from adding unwanted styles to fancybox (especially background colors and link outlines)
68
  * Options Page reorganized in three sections: Appearance, Behaviour and Troubleshooting Settings, to make settings easier to find
69
 
70
-
71
- 2.1.1 Updtades:
72
-
73
  * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
74
 
75
-
76
- 2.1 Updtades:
77
-
78
  * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited
79
  * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call
80
  * 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
81
 
82
-
83
- 2.0 Updates:
84
-
85
  * 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
86
  * CSS completely updated for FancyBox 1.2.0
87
  * Captions fixed in IE
88
 
89
-
90
- 1.3 Updates:
91
-
92
  * Shadows and Close button should be fixed now
93
 
94
-
95
- 1.2 Updates:
96
-
97
  * Updated to FancyBox 1.2.0
98
  * Uses packed version of the JavaScript file (8kb instead of 14kb)
99
 
100
-
101
- 1.1 Updates:
102
-
103
  * Fixed FancyBox not being applied to .jpeg files
104
  * Fixed "Click to close" overlay text
105
  * Moved images to /img/ folder
106
 
107
 
108
- = Known Bugs =
109
-
110
- * Shadows not perfect on IE6/7
111
- * Options page may not work on WordPress MU
112
-
113
-
114
  == Installation ==
115
 
116
  1. Upload the `fancybox-for-wordpress` folder to the `/wp-content/plugins/` directory
@@ -123,7 +124,6 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
123
 
124
  1. Simple example of fancybox on a post. [Live demo here](http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/)
125
  2. Basic settings on Options Page in the Admin Panel. This makes it very easy to customize the plugin to your needs
126
- 2. Full settings on Options Page
127
 
128
 
129
  == Frequently Asked Questions ==
@@ -150,7 +150,7 @@ Don't hesitate to email me at jose (at) moskis.net with any thoughts about this
150
 
151
  = How does the plugin exactly work? =
152
 
153
- First the plugin checks if your blog is using jQuery, if not it will load it from the WordPress files. Then it will load the FancyBox JavaScript, which is where all the magic happens. After this all the CSS code needed to beautify the plugin is added to the page. Finally, the JavaScript wait for your blog to finish loading and then it looks for all links where FancyBox can be applied, and adds it. And that's it. :)
154
 
155
  = The plugin does not work with Mandingo theme =
156
 
2
  Contributors: moskis
3
  Donate link: https://www.asmallorange.com/extras/donate/?id=10218
4
  Tags: fancybox, lightbox, jquery, image, gallery
5
+ Requires at least: 2.8
6
+ Tested up to: 2.8.6
7
+ Stable tag: 2.7.0
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
 
19
 
20
  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? ;)
21
 
22
+ = Known Bugs =
23
+ * Shadows not perfect on IE6/7
24
+ * Options page doesn't on WordPress MU
25
+
26
+
27
+ == Changelog ==
28
+
29
+ This changelog is for the WordPress plugin. For the Fancybox main changelog go to its [home page](http://fancy.klade.lv/).
30
+
31
+ = 2.7.0 =
32
+ * New: Fancybox v1.2.6 support
33
+ * New: New Admin page with tabs for better organization of all the options
34
+ * Added: Setting to change the speed of the animation when changing gallery items
35
+ * Added: Setting to enable or disable Escape key to close Fancybox
36
+ * Added: Setting to show or hide close button
37
+ * Added: Setting to close fancybox when clicking on the overlay
38
+ * Added: Setting to enable or disable callback function on start, show and close events
39
+ * Added: Italian translation
40
+ * Added: Russian translation
41
+ * Added: "Load JS at Footer" option
42
+ * Added: New Changelog tab in Wordpress Plugin Directory
43
+ * Fixed: Some typos in Spanish translation
44
+ * Fixed: FancyBox not showing above some elements (those with zindex higher than 90)
45
+ * Fixed: JavaScript code being included in all admin pages instead of just the plugin's options page.
46
+ * Fixed: noClonflict preventing frames to work in Fancybox
47
+ * Fixed: Custom frame width and height not being applied
48
+ * Updated: Japanese translation
49
+ * Updated: JS is now Minified instead of Packed (thanks to mentalfruition.com)
50
+
51
+ = 2.6.0 =
52
  * Optimized the JavaScript code used to apply FancyBox
53
  * Updated Custom Expression section in Options Page
54
  * Fixed uppercase image extensions not being recognized
61
  * Removed /wp-content/ reference in fancybox.php for better WP2.8 support
62
  * Optimized some code readability
63
 
64
+ = 2.5.1 =
 
 
65
  * Fixed the plugin not working when selecting Gallery Type "By Post"
66
  * Fixed a bug that would prevent the title in the IMG tag from being copied to the A tag in some cases
67
  * Fixed the Custom Expression showing in the Admin panel when other gallery types are selected
68
 
69
+ = 2.5 =
 
 
70
  * Support for localizations (Spanish and German localizations included)
71
  * Some parts of the code completely rewritten
72
  * Fixed fancybox files being loaded on the admin pages
80
  * New uninstall options and better handling of new options when installing/updating
81
  * Cleans any old options no longer needed when plugin is activated/updated
82
 
83
+ = 2.2 =
 
 
84
  * Updated to FancyBox 1.2.1
85
  * Added new settings to Options Page: Easing, padding size, border color
86
  * Tweaked CSS to prevent some themes from adding unwanted styles to fancybox (especially background colors and link outlines)
87
  * Options Page reorganized in three sections: Appearance, Behaviour and Troubleshooting Settings, to make settings easier to find
88
 
89
+ = 2.1.1 =
 
 
90
  * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
91
 
92
+ = 2.1 =
 
 
93
  * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited
94
  * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call
95
  * 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
96
 
97
+ = 2.0 =
 
 
98
  * 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
99
  * CSS completely updated for FancyBox 1.2.0
100
  * Captions fixed in IE
101
 
102
+ = 1.3 =
 
 
103
  * Shadows and Close button should be fixed now
104
 
105
+ = 1.2 =
 
 
106
  * Updated to FancyBox 1.2.0
107
  * Uses packed version of the JavaScript file (8kb instead of 14kb)
108
 
109
+ = 1.1 =
 
 
110
  * Fixed FancyBox not being applied to .jpeg files
111
  * Fixed "Click to close" overlay text
112
  * Moved images to /img/ folder
113
 
114
 
 
 
 
 
 
 
115
  == Installation ==
116
 
117
  1. Upload the `fancybox-for-wordpress` folder to the `/wp-content/plugins/` directory
124
 
125
  1. Simple example of fancybox on a post. [Live demo here](http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/)
126
  2. Basic settings on Options Page in the Admin Panel. This makes it very easy to customize the plugin to your needs
 
127
 
128
 
129
  == Frequently Asked Questions ==
150
 
151
  = How does the plugin exactly work? =
152
 
153
+ First the plugin checks if your blog is using jQuery, if not it will load it from the WordPress files. Then it will load the FancyBox JavaScript, which is where all the magic happens. After this all the CSS code needed to beautify the plugin is added to the page. Finally, the JavaScript waits for your blog to finish loading and then it looks for all links where FancyBox can be applied, and adds it. And that's it. :)
154
 
155
  = The plugin does not work with Mandingo theme =
156
 
screenshot-2.png CHANGED
Binary file
screenshot-3.png DELETED
Binary file