Version Description
Download this release
Release Info
Developer | moskis |
Plugin | FancyBox for WordPress |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.5
- admin.php +231 -112
- fancybox.css +0 -2
- fancybox.php +402 -69
- languages/mfbfw-de_DE.mo +0 -0
- languages/mfbfw-es_ES.mo +0 -0
- languages/mfbfw-es_ES.po +388 -0
- languages/mfbfw.po +325 -0
- languages/mfbfw.pot +405 -0
- readme.txt +28 -21
- screenshot-1.jpg +0 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
admin.php
CHANGED
@@ -1,44 +1,24 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
function
|
4 |
-
|
5 |
-
//
|
6 |
-
$
|
7 |
-
'autoApply' => get_option('mfbfw_autoApply'),
|
8 |
-
'imageScale' => get_option('mfbfw_imageScale'),
|
9 |
-
'borderColor' => get_option('mfbfw_borderColor'),
|
10 |
-
'padding' => get_option('mfbfw_padding'),
|
11 |
-
'zoomOpacity' => get_option('mfbfw_zoomOpacity'),
|
12 |
-
'zoomSpeedIn' => get_option('mfbfw_zoomSpeedIn'),
|
13 |
-
'zoomSpeedOut' => get_option('mfbfw_zoomSpeedOut'),
|
14 |
-
'overlayShow' => get_option('mfbfw_overlayShow'),
|
15 |
-
'overlayColor' => get_option('mfbfw_overlayColor'),
|
16 |
-
'overlayOpacity' => get_option('mfbfw_overlayOpacity'),
|
17 |
-
'easing' => get_option('mfbfw_easing'),
|
18 |
-
'easingIn' => get_option('mfbfw_easingIn'),
|
19 |
-
'easingOut' => get_option('mfbfw_easingOut'),
|
20 |
-
'easingChange' => get_option('mfbfw_easingChange'),
|
21 |
-
'hideOnContentClick' => get_option('mfbfw_hideOnContentClick'),
|
22 |
-
'centerOnScroll' => get_option('mfbfw_centerOnScroll'),
|
23 |
-
'nojQuery' => get_option('mfbfw_nojQuery'),
|
24 |
-
'jQnoConflict' => get_option('mfbfw_jQnoConflict')
|
25 |
-
);
|
26 |
|
27 |
// Make selects data
|
28 |
-
$
|
29 |
-
|
|
|
30 |
$easingArray = array('easeInQuad','easeOutQuad','easeInOutQuad','easeInCubic','easeOutCubic','easeInOutCubic','easeInQuart','easeOutQuart',
|
31 |
'easeInOutQuart','easeInQuint','easeOutQuint','easeInOutQuint','easeInSine','easeOutSine','easeInOutSine','easeInExpo',
|
32 |
'easeOutExpo','easeInOutExpo','easeInCirc','easeOutCirc','easeInOutCirc','easeInElastic','easeOutElastic','easeInOutElastic',
|
33 |
'easeInBack','easeOutBack','easeInOutBack','easeInBounce','easeOutBounce','easeInOutBounce');
|
34 |
|
35 |
-
// Start the Options Page
|
36 |
-
?>
|
37 |
|
38 |
<div class="wrap">
|
39 |
|
40 |
-
<div id="icon-plugins" class="icon32"></div>
|
41 |
-
<h2><?php _e('Fancybox for WordPress Options', 'mfbfw'); ?></h2>
|
42 |
|
43 |
<div style="float:right;margin-left:10px;background:#FFFBCC;text-align:center;width:200px;" class="updated">
|
44 |
|
@@ -74,7 +54,7 @@ function mfbfw_options() {
|
|
74 |
|
75 |
</div>
|
76 |
|
77 |
-
<div style="clear:right;float:right;margin-left:10px;background:#9DD1F2;border-color:#419ED9;text-align:center;width:200px;" class="updated">
|
78 |
|
79 |
<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>
|
80 |
|
@@ -82,20 +62,27 @@ function mfbfw_options() {
|
|
82 |
|
83 |
</div>
|
84 |
|
85 |
-
<h3><?php _e('About', 'mfbfw'); ?></h3>
|
86 |
|
87 |
-
<
|
|
|
|
|
|
|
|
|
88 |
|
89 |
-
<
|
90 |
|
91 |
-
|
92 |
|
93 |
-
|
94 |
|
|
|
|
|
|
|
|
|
95 |
|
96 |
-
<
|
97 |
|
98 |
-
<
|
99 |
|
100 |
<form method="post" action="options.php" id="options">
|
101 |
|
@@ -110,7 +97,7 @@ function mfbfw_options() {
|
|
110 |
<fieldset>
|
111 |
|
112 |
<label for="mfbfw_borderColor">
|
113 |
-
<input type="text" name="mfbfw_borderColor" id="mfbfw_borderColor" value="<?php echo
|
114 |
<?php _e('HTML color of the border (default: #BBBBBB)', 'mfbfw'); ?>
|
115 |
</label><br /><br />
|
116 |
|
@@ -119,16 +106,50 @@ function mfbfw_options() {
|
|
119 |
</tr>
|
120 |
|
121 |
<tr valign="top">
|
122 |
-
<th scope="row"><?php _e('
|
123 |
<td>
|
124 |
<fieldset>
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
<label for="mfbfw_padding">
|
127 |
-
<input type="text" name="mfbfw_padding" id="mfbfw_padding" value="<?php echo
|
128 |
<?php _e('Padding size in pixels (default: 10)', 'mfbfw'); ?>
|
129 |
</label><br />
|
130 |
|
131 |
-
<small><em><?php _e('(Set <strong>Border Color</strong> to "#000000" and <strong>Padding</strong> to "0" for the classic FancyBox look)', 'mfbfw'); ?></em></small><br /><br />
|
132 |
|
133 |
</fieldset>
|
134 |
</td>
|
@@ -140,12 +161,12 @@ function mfbfw_options() {
|
|
140 |
<fieldset>
|
141 |
|
142 |
<label for="mfbfw_overlayShow">
|
143 |
-
<input type="checkbox" name="mfbfw_overlayShow" id="mfbfw_overlayShow"<?php if (
|
144 |
<?php _e('Add overlay (default: on)', 'mfbfw'); ?>
|
145 |
</label><br /><br />
|
146 |
|
147 |
<label for="mfbfw_overlayColor">
|
148 |
-
<input type="text" name="mfbfw_overlayColor" id="mfbfw_overlayColor" value="<?php echo
|
149 |
<?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
|
150 |
</label><br /><br />
|
151 |
|
@@ -153,7 +174,7 @@ function mfbfw_options() {
|
|
153 |
<select name="mfbfw_overlayOpacity" id="mfbfw_overlayOpacity">
|
154 |
<?php
|
155 |
foreach($overlayArray as $key=> $opacity) {
|
156 |
-
if($
|
157 |
else $selected = ' selected';
|
158 |
echo "<option value='$opacity'$selected>$opacity</option>\n";
|
159 |
}
|
@@ -172,15 +193,15 @@ function mfbfw_options() {
|
|
172 |
<fieldset>
|
173 |
|
174 |
<label for="mfbfw_zoomOpacity">
|
175 |
-
<input type="checkbox" name="mfbfw_zoomOpacity" id="mfbfw_zoomOpacity"<?php if (
|
176 |
-
<?php _e('Change content transparency
|
177 |
</label><br /><br />
|
178 |
|
179 |
<label for="mfbfw_zoomSpeedIn">
|
180 |
<select name="mfbfw_zoomSpeedIn" id="mfbfw_zoomSpeedIn">
|
181 |
<?php
|
182 |
foreach($msArray as $key=> $ms) {
|
183 |
-
if($
|
184 |
else $selected = ' selected';
|
185 |
echo "<option value='$ms'$selected>$ms</option>\n";
|
186 |
} ?>
|
@@ -192,7 +213,7 @@ function mfbfw_options() {
|
|
192 |
<select name="mfbfw_zoomSpeedOut" id="mfbfw_zoomSpeedOut">
|
193 |
<?php
|
194 |
foreach($msArray as $key=> $ms) {
|
195 |
-
if($
|
196 |
else $selected = ' selected';
|
197 |
echo "<option value='$ms'$selected>$ms</option>\n";
|
198 |
} ?>
|
@@ -204,39 +225,84 @@ function mfbfw_options() {
|
|
204 |
</td>
|
205 |
</tr>
|
206 |
|
207 |
-
</tbody>
|
208 |
-
</table>
|
209 |
-
|
210 |
-
<h3><?php _e('Behavior Settings', 'mfbfw'); ?></h3>
|
211 |
-
|
212 |
-
<p><?php _e('Settings in this section may be a bit more tricky to configure, or just recommended to be left on default. If you want fancier animations you can just activate "Easing".', 'mfbfw'); ?></p>
|
213 |
-
|
214 |
-
<table class="form-table" style="clear:none;">
|
215 |
-
<tbody>
|
216 |
-
|
217 |
<tr valign="top">
|
218 |
-
<th scope="row"><?php _e('
|
219 |
<td>
|
220 |
<fieldset>
|
221 |
|
222 |
-
<label for="
|
223 |
-
<input type="checkbox" name="
|
224 |
-
<?php _e('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
</label><br />
|
226 |
|
227 |
-
<small><em><?php _e('(
|
228 |
|
229 |
</fieldset>
|
230 |
</td>
|
231 |
</tr>
|
232 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
<tr valign="top">
|
234 |
<th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
|
235 |
<td>
|
236 |
<fieldset>
|
237 |
|
238 |
<label for="mfbfw_imageScale">
|
239 |
-
<input type="checkbox" name="mfbfw_imageScale" id="mfbfw_imageScale"<?php if (
|
240 |
<?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
|
241 |
</label><br /><br />
|
242 |
|
@@ -250,9 +316,9 @@ function mfbfw_options() {
|
|
250 |
<fieldset>
|
251 |
|
252 |
<label for="mfbfw_centerOnScroll">
|
253 |
-
<input type="checkbox" name="mfbfw_centerOnScroll" id="mfbfw_centerOnScroll"<?php if (
|
254 |
<?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
|
255 |
-
</label><br /><br
|
256 |
|
257 |
</fieldset>
|
258 |
</td>
|
@@ -264,66 +330,88 @@ function mfbfw_options() {
|
|
264 |
<fieldset>
|
265 |
|
266 |
<label for="mfbfw_hideOnContentClick">
|
267 |
-
<input type="checkbox" name="mfbfw_hideOnContentClick" id="mfbfw_hideOnContentClick"<?php if (
|
268 |
<?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
|
269 |
</label><br />
|
270 |
|
271 |
-
<small><em><?php _e('(
|
272 |
|
273 |
</fieldset>
|
274 |
</td>
|
275 |
</tr>
|
276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
<tr valign="top">
|
278 |
-
<th scope="row"><?php _e('
|
279 |
<td>
|
280 |
<fieldset>
|
281 |
|
282 |
-
<label for="
|
283 |
-
<input type="
|
284 |
-
<?php _e('
|
285 |
</label><br /><br />
|
286 |
|
287 |
-
<label for="
|
288 |
-
<
|
289 |
-
|
290 |
-
foreach($easingArray as $key=> $easingIn) {
|
291 |
-
if($options['easingIn'] != $easingIn) $selected = '';
|
292 |
-
else $selected = ' selected';
|
293 |
-
echo "<option value='$easingIn'$selected>$easingIn</option>\n";
|
294 |
-
}
|
295 |
-
?>
|
296 |
-
</select>
|
297 |
-
<?php _e('Easing method when opening FancyBox. (default: easeOutBack)', 'mfbfw'); ?>
|
298 |
</label><br /><br />
|
299 |
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
311 |
</label><br /><br />
|
312 |
|
313 |
-
<
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
if($options['easingChange'] != $easingChange) $selected = '';
|
318 |
-
else $selected = ' selected';
|
319 |
-
echo "<option value='$easingChange'$selected>$easingChange</option>\n";
|
320 |
-
}
|
321 |
-
?>
|
322 |
-
</select>
|
323 |
-
<?php _e('Easing method when navigating through gallery items. (default: easeInOutBack)', 'mfbfw'); ?>
|
324 |
</label><br />
|
325 |
|
326 |
-
<small><em><?php _e('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
327 |
|
328 |
</fieldset>
|
329 |
</td>
|
@@ -332,11 +420,16 @@ function mfbfw_options() {
|
|
332 |
</tbody>
|
333 |
</table>
|
334 |
|
335 |
-
|
336 |
|
337 |
-
<p><?php _e('If the plugin doesn\'t seem to work, first you should check for other plugins that may be conflicting with this one, especially other Lightbox, Slimbox, etc. Make sure all your plugins and WordPress itself are up to date (this plugin has only been tested in WordPress 2.7 and above).', 'mfbfw'); ?></p>
|
338 |
|
339 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
|
341 |
<p><?php _e('Change them one at a time and test to see if they help. Remember that having a cache plugin may prevent changes from taking effect immidiately, so clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></p><br />
|
342 |
|
@@ -349,7 +442,7 @@ function mfbfw_options() {
|
|
349 |
<fieldset>
|
350 |
|
351 |
<label for="mfbfw_nojQuery">
|
352 |
-
<input type="checkbox" name="mfbfw_nojQuery" id="mfbfw_nojQuery"<?php if (
|
353 |
<?php _e('Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)', 'mfbfw'); ?>
|
354 |
</label><br />
|
355 |
|
@@ -363,7 +456,7 @@ function mfbfw_options() {
|
|
363 |
<fieldset>
|
364 |
|
365 |
<label for="mfbfw_jQnoConflict">
|
366 |
-
<input type="checkbox" name="mfbfw_jQnoConflict" id="mfbfw_jQnoConflict"<?php if (
|
367 |
<?php _e('Use jQuery noConflict mode (default: on)', 'mfbfw'); ?>
|
368 |
</label><br />
|
369 |
|
@@ -376,9 +469,35 @@ function mfbfw_options() {
|
|
376 |
</tbody>
|
377 |
</table>
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
|
380 |
<input type="hidden" name="action" value="update" />
|
381 |
-
<input type="hidden" name="page_options" value="mfbfw_autoApply,mfbfw_imageScale,mfbfw_borderColor,mfbfw_padding,mfbfw_zoomOpacity,mfbfw_zoomSpeedIn,mfbfw_zoomSpeedOut,mfbfw_overlayShow,mfbfw_overlayColor,mfbfw_overlayOpacity,mfbfw_easing,mfbfw_easingIn,mfbfw_easingOut,mfbfw_easingChange,mfbfw_hideOnContentClick,mfbfw_centerOnScroll,mfbfw_nojQuery,mfbfw_jQnoConflict" />
|
382 |
|
383 |
<p class="submit">
|
384 |
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','mfbfw'); ?>" />
|
1 |
<?php
|
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 |
|
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 |
|
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é 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 |
|
97 |
<fieldset>
|
98 |
|
99 |
<label for="mfbfw_borderColor">
|
100 |
+
<input type="text" name="mfbfw_borderColor" id="mfbfw_borderColor" value="<?php echo $settings['borderColor'] ?>" size="7" maxlength="7" />
|
101 |
<?php _e('HTML color of the border (default: #BBBBBB)', 'mfbfw'); ?>
|
102 |
</label><br /><br />
|
103 |
|
106 |
</tr>
|
107 |
|
108 |
<tr valign="top">
|
109 |
+
<th scope="row"><?php _e('Close Button Position', 'mfbfw'); ?></th>
|
110 |
<td>
|
111 |
<fieldset>
|
112 |
|
113 |
+
<input id="mfbfw_closePosLeft" type="radio" value="left" name="mfbfw_closeHorPos"<?php if ($settings['closeHorPos'] == 'left') echo ' checked="yes"';?> />
|
114 |
+
<label for="mfbfw_closePosLeft" style="padding-right:15px">
|
115 |
+
<?php _e('Left', 'mfbfw'); ?>
|
116 |
+
</label>
|
117 |
+
|
118 |
+
<input id="mfbfw_closePosRight" type="radio" value="right" name="mfbfw_closeHorPos"<?php if ($settings['closeHorPos'] == 'right') echo ' checked="yes"';?> />
|
119 |
+
<label for="mfbfw_closePosRight">
|
120 |
+
<?php _e('Right (default)', 'mfbfw'); ?>
|
121 |
+
</label><br /><br />
|
122 |
+
|
123 |
+
<input id="mfbfw_closePosBottom" type="radio" value="bottom" name="mfbfw_closeVerPos"<?php if ($settings['closeVerPos'] == 'bottom') echo ' checked="yes"';?> />
|
124 |
+
<label for="mfbfw_closePosBottom" style="padding-right:15px">
|
125 |
+
<?php _e('Bottom', 'mfbfw'); ?>
|
126 |
+
</label>
|
127 |
+
|
128 |
+
<input id="mfbfw_closePosTop" type="radio" value="top" name="mfbfw_closeVerPos"<?php if ($settings['closeVerPos'] == 'top') echo ' checked="yes"';?> />
|
129 |
+
<label for="mfbfw_closePosTop">
|
130 |
+
<?php _e('Top (default)', 'mfbfw'); ?>
|
131 |
+
</label><br /><br />
|
132 |
+
|
133 |
+
</fieldset>
|
134 |
+
</td>
|
135 |
+
</tr>
|
136 |
+
|
137 |
+
<tr valign="top">
|
138 |
+
<th scope="row"><?php _e('Padding', 'mfbfw'); ?></th>
|
139 |
+
<td>
|
140 |
+
<fieldset>
|
141 |
+
|
142 |
+
<label for="mfbfw_paddingColor">
|
143 |
+
<input type="text" name="mfbfw_paddingColor" id="mfbfw_paddingColor" value="<?php echo $settings['paddingColor'] ?>" size="7" maxlength="7" />
|
144 |
+
<?php _e('HTML color of the padding (default: #FFFFFF)', 'mfbfw'); ?>
|
145 |
+
</label><br /><br />
|
146 |
+
|
147 |
<label for="mfbfw_padding">
|
148 |
+
<input type="text" name="mfbfw_padding" id="mfbfw_padding" value="<?php echo $settings['padding']; ?>" size="7" maxlength="7" />
|
149 |
<?php _e('Padding size in pixels (default: 10)', 'mfbfw'); ?>
|
150 |
</label><br />
|
151 |
|
152 |
+
<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 />
|
153 |
|
154 |
</fieldset>
|
155 |
</td>
|
161 |
<fieldset>
|
162 |
|
163 |
<label for="mfbfw_overlayShow">
|
164 |
+
<input type="checkbox" name="mfbfw_overlayShow" id="mfbfw_overlayShow"<?php if ($settings['overlayShow']) echo ' checked="yes"';?> />
|
165 |
<?php _e('Add overlay (default: on)', 'mfbfw'); ?>
|
166 |
</label><br /><br />
|
167 |
|
168 |
<label for="mfbfw_overlayColor">
|
169 |
+
<input type="text" name="mfbfw_overlayColor" id="mfbfw_overlayColor" value="<?php echo $settings['overlayColor']; ?>" size="7" maxlength="7" />
|
170 |
<?php _e('HTML color of the overlay (default: #666666)', 'mfbfw'); ?>
|
171 |
</label><br /><br />
|
172 |
|
174 |
<select name="mfbfw_overlayOpacity" id="mfbfw_overlayOpacity">
|
175 |
<?php
|
176 |
foreach($overlayArray as $key=> $opacity) {
|
177 |
+
if($settings['overlayOpacity'] != $opacity) $selected = '';
|
178 |
else $selected = ' selected';
|
179 |
echo "<option value='$opacity'$selected>$opacity</option>\n";
|
180 |
}
|
193 |
<fieldset>
|
194 |
|
195 |
<label for="mfbfw_zoomOpacity">
|
196 |
+
<input type="checkbox" name="mfbfw_zoomOpacity" id="mfbfw_zoomOpacity"<?php if ($settings['zoomOpacity']) echo ' checked="yes"';?> />
|
197 |
+
<?php _e('Change content transparency during zoom animations (default: on)', 'mfbfw'); ?>
|
198 |
</label><br /><br />
|
199 |
|
200 |
<label for="mfbfw_zoomSpeedIn">
|
201 |
<select name="mfbfw_zoomSpeedIn" id="mfbfw_zoomSpeedIn">
|
202 |
<?php
|
203 |
foreach($msArray as $key=> $ms) {
|
204 |
+
if($settings['zoomSpeedIn'] != $ms) $selected = '';
|
205 |
else $selected = ' selected';
|
206 |
echo "<option value='$ms'$selected>$ms</option>\n";
|
207 |
} ?>
|
213 |
<select name="mfbfw_zoomSpeedOut" id="mfbfw_zoomSpeedOut">
|
214 |
<?php
|
215 |
foreach($msArray as $key=> $ms) {
|
216 |
+
if($settings['zoomSpeedOut'] != $ms) $selected = '';
|
217 |
else $selected = ' selected';
|
218 |
echo "<option value='$ms'$selected>$ms</option>\n";
|
219 |
} ?>
|
225 |
</td>
|
226 |
</tr>
|
227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
<tr valign="top">
|
229 |
+
<th scope="row"><?php _e('Easing', 'mfbfw'); ?></th>
|
230 |
<td>
|
231 |
<fieldset>
|
232 |
|
233 |
+
<label for="mfbfw_easing">
|
234 |
+
<input type="checkbox" name="mfbfw_easing" id="mfbfw_easing"<?php if ($settings['easing']) echo ' checked="yes"';?> />
|
235 |
+
<?php _e('Activate easing (default: off)', 'mfbfw'); ?>
|
236 |
+
</label><br /><br />
|
237 |
+
|
238 |
+
<label for="mfbfw_easingIn">
|
239 |
+
<select name="mfbfw_easingIn" id="mfbfw_easingIn">
|
240 |
+
<?php
|
241 |
+
foreach($easingArray as $key=> $easingIn) {
|
242 |
+
if($settings['easingIn'] != $easingIn) $selected = '';
|
243 |
+
else $selected = ' selected';
|
244 |
+
echo "<option value='$easingIn'$selected>$easingIn</option>\n";
|
245 |
+
}
|
246 |
+
?>
|
247 |
+
</select>
|
248 |
+
<?php _e('Easing method when opening FancyBox. (default: easeOutBack)', 'mfbfw'); ?>
|
249 |
+
</label><br /><br />
|
250 |
+
|
251 |
+
<label for="mfbfw_easingOut">
|
252 |
+
<select name="mfbfw_easingOut" id="mfbfw_easingOut">
|
253 |
+
<?php
|
254 |
+
foreach($easingArray as $key=> $easingOut) {
|
255 |
+
if($settings['easingOut'] != $easingOut) $selected = '';
|
256 |
+
else $selected = ' selected';
|
257 |
+
echo "<option value='$easingOut'$selected>$easingOut</option>\n";
|
258 |
+
}
|
259 |
+
?>
|
260 |
+
</select>
|
261 |
+
<?php _e('Easing method when closing FancyBox. (default: easeInBack)', 'mfbfw'); ?>
|
262 |
+
</label><br /><br />
|
263 |
+
|
264 |
+
<label for="mfbfw_easingChange">
|
265 |
+
<select name="mfbfw_easingChange" id="mfbfw_easingChange">
|
266 |
+
<?php
|
267 |
+
foreach($easingArray as $key=> $easingChange) {
|
268 |
+
if($settings['easingChange'] != $easingChange) $selected = '';
|
269 |
+
else $selected = ' selected';
|
270 |
+
echo "<option value='$easingChange'$selected>$easingChange</option>\n";
|
271 |
+
}
|
272 |
+
?>
|
273 |
+
</select>
|
274 |
+
<?php _e('Easing method when navigating through gallery items. (default: easeInOutQuart)', 'mfbfw'); ?>
|
275 |
</label><br />
|
276 |
|
277 |
+
<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 />
|
278 |
|
279 |
</fieldset>
|
280 |
</td>
|
281 |
</tr>
|
282 |
|
283 |
+
</tbody>
|
284 |
+
</table>
|
285 |
+
|
286 |
+
<span id="advOpsSwitch" class="button"><?php _e('Show/Hide Advanced Settings', 'mfbfw'); ?></span>
|
287 |
+
<span id="troOpsSwitch" class="button"><?php _e('Show/Hide Troubleshooting & Uninstall Settings', 'mfbfw'); ?></span><br /><br />
|
288 |
+
|
289 |
+
<div style="display:none" class="advOpts">
|
290 |
+
|
291 |
+
|
292 |
+
<h2><?php _e('Behavior Settings <span style="color:orange">(medium)</span>', 'mfbfw'); ?></h2>
|
293 |
+
|
294 |
+
<p><?php _e('The following settings should be left on default unless you know what you are doing.', 'mfbfw'); ?></p>
|
295 |
+
|
296 |
+
<table class="form-table" style="clear:none;">
|
297 |
+
<tbody>
|
298 |
+
|
299 |
<tr valign="top">
|
300 |
<th scope="row"><?php _e('Auto Resize to Fit', 'mfbfw'); ?></th>
|
301 |
<td>
|
302 |
<fieldset>
|
303 |
|
304 |
<label for="mfbfw_imageScale">
|
305 |
+
<input type="checkbox" name="mfbfw_imageScale" id="mfbfw_imageScale"<?php if ($settings['imageScale']) echo ' checked="yes"';?> />
|
306 |
<?php _e('Scale images to fit in viewport (default: on)', 'mfbfw'); ?>
|
307 |
</label><br /><br />
|
308 |
|
316 |
<fieldset>
|
317 |
|
318 |
<label for="mfbfw_centerOnScroll">
|
319 |
+
<input type="checkbox" name="mfbfw_centerOnScroll" id="mfbfw_centerOnScroll"<?php if ($settings['centerOnScroll']) echo ' checked="yes"';?> />
|
320 |
<?php _e('Keep image in the center of the browser window when scrolling (default: on)', 'mfbfw'); ?>
|
321 |
+
</label><br /><br />
|
322 |
|
323 |
</fieldset>
|
324 |
</td>
|
330 |
<fieldset>
|
331 |
|
332 |
<label for="mfbfw_hideOnContentClick">
|
333 |
+
<input type="checkbox" name="mfbfw_hideOnContentClick" id="mfbfw_hideOnContentClick"<?php if ($settings['hideOnContentClick']) echo ' checked="yes"';?> />
|
334 |
<?php _e('Close FancyBox by clicking on the image (default: off)', 'mfbfw'); ?>
|
335 |
</label><br />
|
336 |
|
337 |
+
<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 />
|
338 |
|
339 |
</fieldset>
|
340 |
</td>
|
341 |
</tr>
|
342 |
|
343 |
+
</tbody>
|
344 |
+
</table>
|
345 |
+
|
346 |
+
|
347 |
+
<h2><?php _e('Gallery Settings <span style="color:red">(advanced)</span>', 'mfbfw'); ?></h2>
|
348 |
+
|
349 |
+
<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>
|
350 |
+
|
351 |
+
<table class="form-table" style="clear:none;">
|
352 |
+
<tbody>
|
353 |
+
|
354 |
<tr valign="top">
|
355 |
+
<th scope="row"><?php _e('Frame Size', 'mfbfw'); ?></th>
|
356 |
<td>
|
357 |
<fieldset>
|
358 |
|
359 |
+
<label for="mfbfw_frameWidth">
|
360 |
+
<input type="text" name="mfbfw_frameWidth" id="mfbfw_frameWidth" value="<?php echo $settings['frameWidth']; ?>" size="4" maxlength="4" />
|
361 |
+
<?php _e('Width in pixels of FancyBox when showing iframe content (default: 640)', 'mfbfw'); ?>
|
362 |
</label><br /><br />
|
363 |
|
364 |
+
<label for="mfbfw_frameHeight">
|
365 |
+
<input type="text" name="mfbfw_frameHeight" id="mfbfw_frameHeight" value="<?php echo $settings['frameHeight']; ?>" size="4" maxlength="4" />
|
366 |
+
<?php _e('Height in pixels of FancyBox when showing iframe content (default: 500)', 'mfbfw'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
</label><br /><br />
|
368 |
|
369 |
+
</fieldset>
|
370 |
+
</td>
|
371 |
+
</tr>
|
372 |
+
|
373 |
+
<tr valign="top">
|
374 |
+
<th scope="row"><?php _e('Gallery Type', 'mfbfw'); ?></th>
|
375 |
+
<td>
|
376 |
+
<fieldset>
|
377 |
+
|
378 |
+
<input id="mfbfw_galleryTypeAll" type="radio" value="all" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'all') echo ' checked="yes"';?> />
|
379 |
+
<label for="mfbfw_galleryTypeAll">
|
380 |
+
<?php _e('Make a gallery for all images on the page (default)', 'mfbfw'); ?>
|
381 |
+
</label><br />
|
382 |
+
|
383 |
+
<input id="mfbfw_galleryTypeAll" type="radio" value="none" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'none') echo ' checked="yes"';?> />
|
384 |
+
<label for="mfbfw_galleryTypeAll">
|
385 |
+
<?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'); ?>
|
386 |
+
</label><br />
|
387 |
+
|
388 |
+
<input id="mfbfw_galleryTypePost" type="radio" value="post" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'post') echo ' checked="yes"';?> />
|
389 |
+
<label for="mfbfw_galleryTypePost">
|
390 |
+
<?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'); ?>
|
391 |
+
</label><br />
|
392 |
+
|
393 |
+
<input id="mfbfw_galleryTypeCustom" type="radio" value="custom" name="mfbfw_galleryType"<?php if ($settings['galleryType'] == 'custom') echo ' checked="yes"';?> />
|
394 |
+
<label for="mfbfw_galleryTypeCustom">
|
395 |
+
<?php _e('Use a custom expression to apply FancyBox', 'mfbfw'); ?>
|
396 |
</label><br /><br />
|
397 |
|
398 |
+
<div id="customExpressionBlock">
|
399 |
+
|
400 |
+
<label for="mfbfw_customExpression">
|
401 |
+
<textarea rows="8" cols="30" name="mfbfw_customExpression" wrap="physical" id="mfbfw_customExpression"><?php echo ($settings['customExpression']); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
</label><br />
|
403 |
|
404 |
+
<small><strong><em><?php _e('Custom expression guidelines:', 'mfbfw'); ?></em></strong></small><br />
|
405 |
+
|
406 |
+
<small><em><?php _e('The custom expression has to apply <code>class="fancybox"</code> to the links where you want to use FancyBox.', 'mfbfw'); ?></em></small><br />
|
407 |
+
|
408 |
+
<small><em><?php _e('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 />
|
409 |
+
|
410 |
+
<small><em><?php _e('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 />
|
411 |
+
|
412 |
+
<small><em><?php _e('Do not call the <code>fancybox()</code> function here, the plugin does this for you.', 'mfbfw'); ?></em></small><br /><br />
|
413 |
+
|
414 |
+
</div>
|
415 |
|
416 |
</fieldset>
|
417 |
</td>
|
420 |
</tbody>
|
421 |
</table>
|
422 |
|
423 |
+
</div>
|
424 |
|
|
|
425 |
|
426 |
+
<div style="display:none" class="troOpts">
|
427 |
+
|
428 |
+
<h2><?php _e('Troubleshooting Settings', 'mfbfw'); ?></h2>
|
429 |
+
|
430 |
+
<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>
|
431 |
+
|
432 |
+
<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>
|
433 |
|
434 |
<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 />
|
435 |
|
442 |
<fieldset>
|
443 |
|
444 |
<label for="mfbfw_nojQuery">
|
445 |
+
<input type="checkbox" name="mfbfw_nojQuery" id="mfbfw_nojQuery"<?php if ($settings['nojQuery']) echo ' checked="yes"';?> />
|
446 |
<?php _e('Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)', 'mfbfw'); ?>
|
447 |
</label><br />
|
448 |
|
456 |
<fieldset>
|
457 |
|
458 |
<label for="mfbfw_jQnoConflict">
|
459 |
+
<input type="checkbox" name="mfbfw_jQnoConflict" id="mfbfw_jQnoConflict"<?php if ($settings['jQnoConflict']) echo ' checked="yes"';?> />
|
460 |
<?php _e('Use jQuery noConflict mode (default: on)', 'mfbfw'); ?>
|
461 |
</label><br />
|
462 |
|
469 |
</tbody>
|
470 |
</table>
|
471 |
|
472 |
+
<h2><?php _e('Uninstall', 'mfbfw'); ?></h2>
|
473 |
+
|
474 |
+
<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>
|
475 |
+
|
476 |
+
<table class="form-table" style="clear:none;">
|
477 |
+
<tbody>
|
478 |
+
|
479 |
+
<tr valign="top">
|
480 |
+
<th scope="row"><?php _e('Remove settings', 'mfbfw'); ?></th>
|
481 |
+
<td>
|
482 |
+
<fieldset>
|
483 |
+
|
484 |
+
<label for="mfbfw_uninstall">
|
485 |
+
<input type="checkbox" name="mfbfw_uninstall" id="mfbfw_uninstall"<?php if ($settings['uninstall']) echo ' checked="yes"';?> />
|
486 |
+
<?php _e('Remove Settings when plugin is deactivated from the "Manage Plugins" page. (default: off)', 'mfbfw'); ?>
|
487 |
+
</label><br />
|
488 |
+
|
489 |
+
</fieldset>
|
490 |
+
</td>
|
491 |
+
</tr>
|
492 |
+
|
493 |
+
</tbody>
|
494 |
+
</table>
|
495 |
+
|
496 |
+
</div>
|
497 |
+
|
498 |
|
499 |
<input type="hidden" name="action" value="update" />
|
500 |
+
<input type="hidden" name="page_options" value="mfbfw_autoApply,mfbfw_imageScale,mfbfw_borderColor,mfbfw_closeHorPos,mfbfw_closeVerPos,mfbfw_padding,mfbfw_paddingColor,mfbfw_zoomOpacity,mfbfw_zoomSpeedIn,mfbfw_zoomSpeedOut,mfbfw_overlayShow,mfbfw_overlayColor,mfbfw_overlayOpacity,mfbfw_easing,mfbfw_easingIn,mfbfw_easingOut,mfbfw_easingChange,mfbfw_hideOnContentClick,mfbfw_centerOnScroll,mfbfw_noTextLinks,mfbfw_galleryType,mfbfw_customExpression,mfbfw_frameWidth,mfbfw_frameHeight,mfbfw_nojQuery,mfbfw_jQnoConflict,mfbfw_uninstall" />
|
501 |
|
502 |
<p class="submit">
|
503 |
<input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes','mfbfw'); ?>" />
|
fancybox.css
CHANGED
@@ -108,8 +108,6 @@ img#fancy_img {
|
|
108 |
|
109 |
div#fancy_close {
|
110 |
position: absolute;
|
111 |
-
top: -12px;
|
112 |
-
right: -15px;
|
113 |
height: 30px;
|
114 |
width: 30px;
|
115 |
background: url('img/fancy_closebox.png') top left no-repeat;
|
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;
|
fancybox.php
CHANGED
@@ -2,65 +2,193 @@
|
|
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 |
Author: Jose Pardilla
|
8 |
Author URI: http://moskis.net/
|
9 |
*/
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
|
38 |
-
|
|
|
|
|
39 |
|
40 |
-
|
|
|
41 |
|
42 |
-
|
43 |
|
44 |
}
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
}
|
51 |
|
52 |
}
|
53 |
|
54 |
|
|
|
55 |
function mfbfw_css() {
|
56 |
|
57 |
-
|
|
|
|
|
58 |
|
59 |
?>
|
60 |
|
61 |
<style type="text/css">
|
62 |
-
div#fancy_overlay {background-color:<?php echo
|
63 |
-
div#fancy_inner {border-color:<?php echo
|
|
|
|
|
64 |
</style>
|
65 |
|
66 |
<?php
|
@@ -68,64 +196,269 @@ function mfbfw_css() {
|
|
68 |
}
|
69 |
|
70 |
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
-
|
74 |
|
75 |
-
|
76 |
|
77 |
jQuery(function(){
|
78 |
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
jQuery("a:has(img)[href$='.gif']").attr({ rel: "fancybox" });
|
84 |
-
jQuery("a:has(img)[href$='.png']").attr({ rel: "fancybox" });
|
85 |
-
jQuery("a:has(img)[href$='.bmp']").attr({ rel: "fancybox" });
|
86 |
|
87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
|
|
|
|
106 |
|
107 |
});
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
</script>
|
110 |
-
|
111 |
-
<?php
|
112 |
|
113 |
}
|
114 |
|
115 |
|
116 |
-
|
|
|
117 |
|
118 |
require dirname(__FILE__) . '/admin.php';
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
122 |
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
|
125 |
-
//
|
126 |
-
|
127 |
-
|
128 |
-
add_action('wp_head', 'mfbfw_do'); // Apply fancyboy when the page loads
|
129 |
-
add_action('admin_menu', 'mfbfw_admin'); // Admin Panel Page
|
130 |
|
131 |
?>
|
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.5
|
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.5');
|
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',
|
41 |
+
'// This example expression will group all the image links in a page and make a gallery with them.
|
42 |
+
// Each line adds support to a different image format: JPG, JPEG, GIF, PNG and BMP.
|
43 |
+
|
44 |
+
jQuery("a:has(img)[href$=\'.jpg\']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
45 |
+
jQuery("a:has(img)[href$=\'.jpeg\']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
46 |
+
jQuery("a:has(img)[href$=\'.gif\']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
47 |
+
jQuery("a:has(img)[href$=\'.png\']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
48 |
+
jQuery("a:has(img)[href$=\'.bmp\']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();');
|
49 |
+
|
50 |
+
add_option('mfbfw_nojQuery', '');
|
51 |
+
add_option('mfbfw_jQnoConflict', 'on');
|
52 |
+
|
53 |
+
add_option('mfbfw_uninstall', '');
|
54 |
+
|
55 |
+
// Old settings, no longer used
|
56 |
+
delete_option('mfbfw_autoApply');
|
57 |
+
delete_option('mfbfw_closePosition');
|
58 |
+
delete_option('mfbfw_noTextLinks');
|
59 |
+
|
60 |
}
|
61 |
|
62 |
|
63 |
+
// If requested, when plugin is deactivated, remove settings
|
64 |
+
function mfbfw_uninstall() {
|
65 |
+
|
66 |
+
if (get_option('mfbfw_uninstall')) {
|
67 |
+
|
68 |
+
delete_option('mfbfw_active_version');
|
69 |
+
|
70 |
+
delete_option('mfbfw_borderColor');
|
71 |
+
delete_option('mfbfw_closeHorPos');
|
72 |
+
delete_option('mfbfw_closeVerPos');
|
73 |
+
delete_option('mfbfw_paddingColor');
|
74 |
+
delete_option('mfbfw_padding');
|
75 |
+
delete_option('mfbfw_overlayShow');
|
76 |
+
delete_option('mfbfw_overlayColor');
|
77 |
+
delete_option('mfbfw_overlayOpacity');
|
78 |
+
delete_option('mfbfw_zoomOpacity');
|
79 |
+
delete_option('mfbfw_zoomSpeedIn');
|
80 |
+
delete_option('mfbfw_zoomSpeedOut');
|
81 |
+
delete_option('mfbfw_easing');
|
82 |
+
delete_option('mfbfw_easingIn');
|
83 |
+
delete_option('mfbfw_easingOut');
|
84 |
+
delete_option('mfbfw_easingChange');
|
85 |
|
86 |
+
delete_option('mfbfw_imageScale');
|
87 |
+
delete_option('mfbfw_centerOnScroll');
|
88 |
+
delete_option('mfbfw_hideOnContentClick');
|
89 |
+
delete_option('mfbfw_frameWidth');
|
90 |
+
delete_option('mfbfw_frameHeight');
|
91 |
|
92 |
+
delete_option('mfbfw_autoApply');
|
93 |
+
delete_option('mfbfw_galleryType');
|
94 |
+
delete_option('mfbfw_customExpression');
|
95 |
|
96 |
+
delete_option('mfbfw_nojQuery');
|
97 |
+
delete_option('mfbfw_jQnoConflict');
|
98 |
|
99 |
+
delete_option('mfbfw_uninstall');
|
100 |
|
101 |
}
|
102 |
|
103 |
+
}
|
104 |
+
|
105 |
+
|
106 |
+
// Store plugin options in an array and return that array
|
107 |
+
function mfbfw_get_settings() {
|
108 |
+
|
109 |
+
$mfbfwSettingsArray=array(
|
110 |
+
|
111 |
+
'version' => get_option('mfbfw_active_version'),
|
112 |
+
|
113 |
+
'borderColor' => get_option('mfbfw_borderColor'),
|
114 |
+
'closeHorPos' => get_option('mfbfw_closeHorPos'),
|
115 |
+
'closeVerPos' => get_option('mfbfw_closeVerPos'),
|
116 |
+
'paddingColor' => get_option('mfbfw_paddingColor'),
|
117 |
+
'padding' => get_option('mfbfw_padding'),
|
118 |
+
'overlayShow' => get_option('mfbfw_overlayShow'),
|
119 |
+
'overlayColor' => get_option('mfbfw_overlayColor'),
|
120 |
+
'overlayOpacity' => get_option('mfbfw_overlayOpacity'),
|
121 |
+
'zoomOpacity' => get_option('mfbfw_zoomOpacity'),
|
122 |
+
'zoomSpeedIn' => get_option('mfbfw_zoomSpeedIn'),
|
123 |
+
'zoomSpeedOut' => get_option('mfbfw_zoomSpeedOut'),
|
124 |
+
'easing' => get_option('mfbfw_easing'),
|
125 |
+
'easingIn' => get_option('mfbfw_easingIn'),
|
126 |
+
'easingOut' => get_option('mfbfw_easingOut'),
|
127 |
+
'easingChange' => get_option('mfbfw_easingChange'),
|
128 |
+
|
129 |
+
'imageScale' => get_option('mfbfw_imageScale'),
|
130 |
+
'centerOnScroll' => get_option('mfbfw_centerOnScroll'),
|
131 |
+
'hideOnContentClick' => get_option('mfbfw_hideOnContentClick'),
|
132 |
+
'frameWidth' => get_option('mfbfw_frameWidth'),
|
133 |
+
'frameHeight' => get_option('mfbfw_frameHeight'),
|
134 |
+
|
135 |
+
'galleryType' => get_option('mfbfw_galleryType'),
|
136 |
+
'customExpression' => get_option('mfbfw_customExpression'),
|
137 |
+
|
138 |
+
'nojQuery' => get_option('mfbfw_nojQuery'),
|
139 |
+
'jQnoConflict' => get_option('mfbfw_jQnoConflict'),
|
140 |
+
|
141 |
+
'uninstall' => get_option('mfbfw_uninstall')
|
142 |
+
|
143 |
+
);
|
144 |
+
|
145 |
+
return $mfbfwSettingsArray;
|
146 |
+
|
147 |
+
}
|
148 |
+
|
149 |
+
|
150 |
+
// Here we load FancyBox JS with jQuery and jQuery.easing if necessary
|
151 |
+
function mfbfw_load() {
|
152 |
+
|
153 |
+
$settings = mfbfw_get_settings();
|
154 |
|
155 |
+
if (!is_admin()) { // avoid the scripts from loading on admin panel
|
156 |
+
|
157 |
+
if ($settings['nojQuery']) {
|
158 |
+
|
159 |
+
wp_enqueue_script('fancybox', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.fancybox-1.2.1.pack.js'); // Load fancybox without jQuery (for troubleshooting)
|
160 |
+
|
161 |
+
} else {
|
162 |
+
|
163 |
+
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
|
164 |
+
|
165 |
+
}
|
166 |
+
|
167 |
+
if (get_option('mfbfw_easing')) {
|
168 |
+
|
169 |
+
wp_enqueue_script('jqueryeasing', WP_PLUGIN_URL . '/fancybox-for-wordpress/jquery.easing.1.3.js', array('jquery'), '1.3.2'); // Load easing javascript file if required
|
170 |
+
|
171 |
+
}
|
172 |
|
173 |
}
|
174 |
|
175 |
}
|
176 |
|
177 |
|
178 |
+
// Link to FancyBox stylesheet and apply some custom styles
|
179 |
function mfbfw_css() {
|
180 |
|
181 |
+
$settings = mfbfw_get_settings();
|
182 |
+
|
183 |
+
echo "\n"."<!-- Fancybox for WordPress v". $settings['version'] ." -->"."\n".'<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/fancybox-for-wordpress/fancybox.css" type="text/css" media="screen" />'."\n";
|
184 |
|
185 |
?>
|
186 |
|
187 |
<style type="text/css">
|
188 |
+
div#fancy_overlay {background-color:<?php echo $settings['overlayColor']; ?>}
|
189 |
+
div#fancy_inner {border-color:<?php echo $settings['borderColor']; ?>}
|
190 |
+
div#fancy_close {<?php echo $settings['closeHorPos']; ?>:-15px;<?php echo $settings['closeVerPos']; ?>:-12px;}
|
191 |
+
div#fancy_bg {background-color:<?php echo $settings['paddingColor']; ?>}
|
192 |
</style>
|
193 |
|
194 |
<?php
|
196 |
}
|
197 |
|
198 |
|
199 |
+
// Load FancyBox with the settings set
|
200 |
+
function mfbfw_init() {
|
201 |
+
|
202 |
+
$settings = mfbfw_get_settings();
|
203 |
+
|
204 |
+
?>
|
205 |
|
206 |
+
<script type="text/javascript">
|
207 |
|
208 |
+
<?php if ($settings['jQnoConflict']) { ?> jQuery.noConflict();<?php } echo "\n" ?>
|
209 |
|
210 |
jQuery(function(){
|
211 |
|
212 |
+
<?php // This copies the title of every IMG tag and add it to its parent A so that fancybox can use it ?>
|
213 |
+
jQuery.fn.getTitle = function() {
|
214 |
+
var arr = jQuery("a[rel^='fancybox']");
|
215 |
+
jQuery.each(arr, function() {
|
216 |
+
var title = jQuery(this).children("img").attr("title");
|
217 |
+
jQuery(this).attr('title',title);
|
218 |
+
})
|
219 |
+
}
|
220 |
+
|
221 |
+
<?php if ($settings['galleryType'] == 'post') {
|
222 |
+
|
223 |
+
// Gallery type BY POST and we are on post or page (so only one post or page is visible)
|
224 |
+
if ( is_single() | is_page() ) { ?>
|
225 |
+
|
226 |
+
jQuery("a:has(img)[href$='.jpg']").attr({ rel: "fancybox" }).getTitle();
|
227 |
+
jQuery("a:has(img)[href$='.jpeg']").attr({ rel: "fancybox" }).getTitle();
|
228 |
+
jQuery("a:has(img)[href$='.gif']").attr({ rel: "fancybox" }).getTitle();
|
229 |
+
jQuery("a:has(img)[href$='.png']").attr({ rel: "fancybox" }).getTitle();
|
230 |
+
jQuery("a:has(img)[href$='.bmp']").attr({ rel: "fancybox" }).getTitle();
|
231 |
+
|
232 |
+
<?php }
|
233 |
+
|
234 |
+
// Gallery type BY POST, but we are neither on post or page, so we make a different rel attribute on each post
|
235 |
+
else { ?>
|
236 |
+
|
237 |
+
jQuery('.post:eq(0)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox1').getTitle();
|
238 |
+
jQuery('.post:eq(1)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox2').getTitle();
|
239 |
+
jQuery('.post:eq(2)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox3').getTitle();
|
240 |
+
jQuery('.post:eq(3)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox4').getTitle();
|
241 |
+
jQuery('.post:eq(4)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox5').getTitle();
|
242 |
+
jQuery('.post:eq(5)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox6').getTitle();
|
243 |
+
jQuery('.post:eq(6)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox7').getTitle();
|
244 |
+
jQuery('.post:eq(7)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox8').getTitle();
|
245 |
+
jQuery('.post:eq(8)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox9').getTitle();
|
246 |
+
jQuery('.post:eq(9)').contents().find("a:has(img)[href$='.jpg']").attr('rel','fancybox10').getTitle();
|
247 |
+
|
248 |
+
jQuery('.post:eq(0)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox1').getTitle();
|
249 |
+
jQuery('.post:eq(1)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox2').getTitle();
|
250 |
+
jQuery('.post:eq(2)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox3').getTitle();
|
251 |
+
jQuery('.post:eq(3)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox4').getTitle();
|
252 |
+
jQuery('.post:eq(4)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox5').getTitle();
|
253 |
+
jQuery('.post:eq(5)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox6').getTitle();
|
254 |
+
jQuery('.post:eq(6)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox7').getTitle();
|
255 |
+
jQuery('.post:eq(7)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox8').getTitle();
|
256 |
+
jQuery('.post:eq(8)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox9').getTitle();
|
257 |
+
jQuery('.post:eq(9)').contents().find("a:has(img)[href$='.jpeg']").attr('rel','fancybox10').getTitle();
|
258 |
+
|
259 |
+
jQuery('.post:eq(0)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox1').getTitle();
|
260 |
+
jQuery('.post:eq(1)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox2').getTitle();
|
261 |
+
jQuery('.post:eq(2)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox3').getTitle();
|
262 |
+
jQuery('.post:eq(3)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox4').getTitle();
|
263 |
+
jQuery('.post:eq(4)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox5').getTitle();
|
264 |
+
jQuery('.post:eq(5)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox6').getTitle();
|
265 |
+
jQuery('.post:eq(6)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox7').getTitle();
|
266 |
+
jQuery('.post:eq(7)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox8').getTitle();
|
267 |
+
jQuery('.post:eq(8)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox9').getTitle();
|
268 |
+
jQuery('.post:eq(9)').contents().find("a:has(img)[href$='.gif']").attr('rel','fancybox10').getTitle();
|
269 |
+
|
270 |
+
jQuery('.post:eq(0)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox1').getTitle();
|
271 |
+
jQuery('.post:eq(1)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox2').getTitle();
|
272 |
+
jQuery('.post:eq(2)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox3').getTitle();
|
273 |
+
jQuery('.post:eq(3)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox4').getTitle();
|
274 |
+
jQuery('.post:eq(4)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox5').getTitle();
|
275 |
+
jQuery('.post:eq(5)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox6').getTitle();
|
276 |
+
jQuery('.post:eq(6)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox7').getTitle();
|
277 |
+
jQuery('.post:eq(7)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox8').getTitle();
|
278 |
+
jQuery('.post:eq(8)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox9').getTitle();
|
279 |
+
jQuery('.post:eq(9)').contents().find("a:has(img)[href$='.png']").attr('rel','fancybox10').getTitle();
|
280 |
+
|
281 |
+
jQuery('.post:eq(0)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox1').getTitle();
|
282 |
+
jQuery('.post:eq(1)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox2').getTitle();
|
283 |
+
jQuery('.post:eq(2)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox3').getTitle();
|
284 |
+
jQuery('.post:eq(3)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox4').getTitle();
|
285 |
+
jQuery('.post:eq(4)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox5').getTitle();
|
286 |
+
jQuery('.post:eq(5)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox6').getTitle();
|
287 |
+
jQuery('.post:eq(6)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox7').getTitle();
|
288 |
+
jQuery('.post:eq(7)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox8').getTitle();
|
289 |
+
jQuery('.post:eq(8)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox9').getTitle();
|
290 |
+
jQuery('.post:eq(9)').contents().find("a:has(img)[href$='.bmp']").attr('rel','fancybox10').getTitle();
|
291 |
+
|
292 |
+
<?php }
|
293 |
+
|
294 |
+
}
|
295 |
|
296 |
+
// Gallery type ALL
|
297 |
+
elseif ($settings['galleryType'] == 'all') { ?>
|
|
|
|
|
|
|
298 |
|
299 |
+
jQuery("a:has(img)[href$='.jpg']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
300 |
+
jQuery("a:has(img)[href$='.jpeg']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
301 |
+
jQuery("a:has(img)[href$='.gif']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
302 |
+
jQuery("a:has(img)[href$='.png']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
303 |
+
jQuery("a:has(img)[href$='.bmp']").addClass("fancybox").attr({ rel: "fancybox" }).getTitle();
|
304 |
+
|
305 |
+
<?php }
|
306 |
+
|
307 |
+
// Gallery type NONE
|
308 |
+
elseif ($settings['galleryType'] == 'none') { ?>
|
309 |
+
|
310 |
+
jQuery("a:has(img)[href$='.jpg']").addClass("fancybox").getTitle();
|
311 |
+
jQuery("a:has(img)[href$='.jpeg']").addClass("fancybox").getTitle();
|
312 |
+
jQuery("a:has(img)[href$='.gif']").addClass("fancybox").getTitle();
|
313 |
+
jQuery("a:has(img)[href$='.png']").addClass("fancybox").getTitle();
|
314 |
+
jQuery("a:has(img)[href$='.bmp']").addClass("fancybox").getTitle();
|
315 |
+
|
316 |
+
<?php }
|
317 |
+
|
318 |
+
// Else, gallery type is custom, so we just print the custom expression
|
319 |
+
else {
|
320 |
|
321 |
+
echo $settings['customExpression'];
|
322 |
+
|
323 |
+
}
|
324 |
+
|
325 |
+
// 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 ?>
|
326 |
+
jQuery("a.fancybox").fancybox({
|
327 |
+
'imageScale': <?php if ($settings['imageScale']) { echo "true"; } else { echo "false"; } ?>,
|
328 |
+
'padding': <?php echo $settings['padding']; ?>,
|
329 |
+
'zoomOpacity': <?php if ($settings['zoomOpacity']) { echo "true"; } else { echo "false"; } ?>,
|
330 |
+
'zoomSpeedIn': <?php echo $settings['zoomSpeedIn']; ?>,
|
331 |
+
'zoomSpeedOut': <?php echo $settings['zoomSpeedOut']; ?>,
|
332 |
+
'overlayShow': <?php if ($settings['overlayShow']) { echo "true"; } else { echo "false"; } ?>,
|
333 |
+
'overlayOpacity': <?php echo $settings['overlayOpacity']; ?>,
|
334 |
+
'hideOnContentClick': <?php if ($settings['hideOnContentClick']) { echo "true"; } else { echo "false"; } ?>,
|
335 |
+
'centerOnScroll': <?php if ($settings['centerOnScroll']) { echo "true"; } else { echo "false"; } ?><?php if ($settings['easing']) { ?>,
|
336 |
+
'easingIn': <?php echo '"' . $settings['easingIn'] . '"'; ?>,
|
337 |
+
'easingOut': <?php echo '"' . $settings['easingOut'] . '"'; ?>,
|
338 |
+
'easingChange': <?php echo '"' . $settings['easingChange'] . '"'; ?>
|
339 |
+
<?php } ?>
|
340 |
|
341 |
});
|
342 |
|
343 |
+
})
|
344 |
+
|
345 |
+
</script>
|
346 |
+
<?php echo "<!-- END Fancybox for WordPress -->"."\n";
|
347 |
+
|
348 |
+
}
|
349 |
+
|
350 |
+
|
351 |
+
// Admin Head
|
352 |
+
function mfbfw_admin_head() {
|
353 |
+
|
354 |
+
?>
|
355 |
+
|
356 |
+
<script type="text/javascript">
|
357 |
+
|
358 |
+
jQuery(function(){
|
359 |
+
|
360 |
+
// Advanced Settings Switcher
|
361 |
+
jQuery("#advOpsSwitch").click(function(){
|
362 |
+
jQuery(".advOpts").toggle("slow");
|
363 |
+
});
|
364 |
+
|
365 |
+
// Troubleshooting & Settings Switcher
|
366 |
+
jQuery("#troOpsSwitch").click(function(){
|
367 |
+
jQuery(".troOpts").toggle("slow");
|
368 |
+
});
|
369 |
+
|
370 |
+
// Hide Custom Expresion textarea if not needed
|
371 |
+
var galleryType = jQuery("input:radio[name=mfbfw_galleryType]:checked").val();
|
372 |
+
|
373 |
+
if (galleryType == "all") {
|
374 |
+
jQuery("#customExpressionBlock").css("display", "none");
|
375 |
+
} else if (galleryType == "post") {
|
376 |
+
jQuery("#customExpressionBlock").css("display", "none");
|
377 |
+
}
|
378 |
+
|
379 |
+
jQuery("#mfbfw_galleryTypeAll").click(function () {
|
380 |
+
jQuery("#customExpressionBlock").hide("slow");
|
381 |
+
});
|
382 |
+
|
383 |
+
jQuery("#mfbfw_galleryTypePost").click(function () {
|
384 |
+
jQuery("#customExpressionBlock").hide("slow");
|
385 |
+
});
|
386 |
+
|
387 |
+
jQuery("#mfbfw_galleryTypeCustom").click(function () {
|
388 |
+
jQuery("#customExpressionBlock").show("slow");
|
389 |
+
});
|
390 |
+
|
391 |
+
})
|
392 |
+
|
393 |
</script>
|
394 |
+
|
395 |
+
<?php
|
396 |
|
397 |
}
|
398 |
|
399 |
|
400 |
+
// Admin options page
|
401 |
+
function mfbfw_admin_menu() {
|
402 |
|
403 |
require dirname(__FILE__) . '/admin.php';
|
404 |
+
|
405 |
+
// global $wp_version;
|
406 |
+
// $menutitle = '';
|
407 |
+
//
|
408 |
+
// if ( version_compare( $wp_version, '2.6.999', '>' ) ) {
|
409 |
+
//
|
410 |
+
// $menutitle = '<img src="' . WP_PLUGIN_URL .'/fancybox-for-wordpress/img/extra_menu.png" alt="" width="12" height="12" />' . ' ';
|
411 |
+
// $menutitle .= ('Fancybox for WP');
|
412 |
+
// add_options_page('Fancybox for WordPress Options', $menutitle, 10, 'fancybox-for-wordpress', 'mfbfw_options_page');
|
413 |
+
// } else {
|
414 |
+
add_submenu_page('options-general.php', 'Fancybox for WordPress Options', 'Fancybox for WP', 10, 'fancybox-for-wordpress', 'mfbfw_options_page');
|
415 |
+
// }
|
416 |
+
|
417 |
+
}
|
418 |
+
|
419 |
+
|
420 |
+
// Load text domain
|
421 |
+
function mfbfw_textdomain() {
|
422 |
+
|
423 |
+
if (function_exists('load_plugin_textdomain')) {
|
424 |
+
load_plugin_textdomain('mfbfw', 'wp-content/plugins/fancybox-for-wordpress/languages', 'fancybox-for-wordpress/languages');
|
425 |
+
}
|
426 |
+
|
427 |
}
|
428 |
|
429 |
|
430 |
+
// Settings Button on Plugins Panel
|
431 |
+
function mfbfw_plugin_action_links($links, $file) {
|
432 |
+
|
433 |
+
static $this_plugin;
|
434 |
+
if ( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
|
435 |
+
|
436 |
+
if ( $file == $this_plugin ){
|
437 |
+
$settings_link = '<a href="options-general.php?page=fancybox-for-wordpress">' . __('Settings', 'mfbfw') . '</a>';
|
438 |
+
array_unshift( $links, $settings_link );
|
439 |
+
}
|
440 |
+
|
441 |
+
return $links;
|
442 |
+
|
443 |
+
}
|
444 |
+
|
445 |
+
|
446 |
+
|
447 |
+
// Actions
|
448 |
+
add_action('init', 'mfbfw_textdomain'); // Load Text Domain
|
449 |
+
add_action('wp_print_scripts', 'mfbfw_load'); // Load FancyBox Script
|
450 |
+
add_action('wp_head', 'mfbfw_css'); // Fancybox Stylesheet
|
451 |
+
add_action('wp_head', 'mfbfw_init'); // Initiate Fancybox
|
452 |
+
add_action('admin_head', 'mfbfw_admin_head'); // Admin Panel Head
|
453 |
+
add_action('admin_menu', 'mfbfw_admin_menu'); // Admin Panel Page
|
454 |
+
|
455 |
+
|
456 |
+
// Filters
|
457 |
+
add_filter( 'plugin_action_links', 'mfbfw_plugin_action_links', 10, 2 ); // Settings Button on Plugins Panel
|
458 |
+
|
459 |
|
460 |
+
// Install and Uninstall
|
461 |
+
register_activation_hook(__FILE__,'mfbfw_install');
|
462 |
+
register_deactivation_hook(__FILE__,'mfbfw_uninstall');
|
|
|
|
|
463 |
|
464 |
?>
|
languages/mfbfw-de_DE.mo
ADDED
Binary file
|
languages/mfbfw-es_ES.mo
ADDED
Binary file
|
languages/mfbfw-es_ES.po
ADDED
@@ -0,0 +1,388 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
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-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: Moskis <jose@moskis.net>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
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ó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é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ígueme en Twitter para má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é 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é 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:95
|
65 |
+
msgid "Border Color"
|
66 |
+
msgstr "Color del Borde"
|
67 |
+
|
68 |
+
#: admin.php:101
|
69 |
+
msgid "HTML color of the border (default: #BBBBBB)"
|
70 |
+
msgstr "Color HTML del borde (por defecto: #BBBBBB)"
|
71 |
+
|
72 |
+
#: admin.php:109
|
73 |
+
msgid "Close Button Position"
|
74 |
+
msgstr "Posición del Botón de Cerrar"
|
75 |
+
|
76 |
+
#: admin.php:115
|
77 |
+
msgid "Left"
|
78 |
+
msgstr "Izquierda"
|
79 |
+
|
80 |
+
#: admin.php:120
|
81 |
+
msgid "Right (default)"
|
82 |
+
msgstr "Derecha (por defecto)"
|
83 |
+
|
84 |
+
#: admin.php:125
|
85 |
+
msgid "Bottom"
|
86 |
+
msgstr "Abajo"
|
87 |
+
|
88 |
+
#: admin.php:130
|
89 |
+
msgid "Top (default)"
|
90 |
+
msgstr "Arriba (por defecto)"
|
91 |
+
|
92 |
+
#: admin.php:138
|
93 |
+
msgid "Padding"
|
94 |
+
msgstr "Margen"
|
95 |
+
|
96 |
+
#: admin.php:144
|
97 |
+
msgid "HTML color of the padding (default: #FFFFFF)"
|
98 |
+
msgstr "Color HTML del margen (por defecto: #FFFFFF)"
|
99 |
+
|
100 |
+
#: admin.php:149
|
101 |
+
msgid "Padding size in pixels (default: 10)"
|
102 |
+
msgstr "Tamaño del margen en píxeles (por defecto: 10)"
|
103 |
+
|
104 |
+
#: admin.php:152
|
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:159
|
109 |
+
msgid "Overlay Options"
|
110 |
+
msgstr "Opciones de Overlay"
|
111 |
+
|
112 |
+
#: admin.php:165
|
113 |
+
msgid "Add overlay (default: on)"
|
114 |
+
msgstr "Añadir overlay (por defecto: activado)"
|
115 |
+
|
116 |
+
#: admin.php:170
|
117 |
+
msgid "HTML color of the overlay (default: #666666)"
|
118 |
+
msgstr "Color HTML del overlay (por defecto: #666666)"
|
119 |
+
|
120 |
+
#: admin.php:183
|
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:191
|
125 |
+
msgid "Zoom Options"
|
126 |
+
msgstr "Opciones de Zoom"
|
127 |
+
|
128 |
+
#: admin.php:197
|
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:209
|
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:221
|
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:229
|
141 |
+
msgid "Easing"
|
142 |
+
msgstr "Efecto de Animación"
|
143 |
+
|
144 |
+
#: admin.php:235
|
145 |
+
msgid "Activate easing (default: off)"
|
146 |
+
msgstr "Activar efecto de animación (por defecto: desactivado)"
|
147 |
+
|
148 |
+
#: admin.php:248
|
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:261
|
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:274
|
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:277
|
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:286
|
165 |
+
msgid "Show/Hide Advanced Settings"
|
166 |
+
msgstr "Mostrar/Ocultar Opciones Avanzadas"
|
167 |
+
|
168 |
+
#: admin.php:287
|
169 |
+
msgid "Show/Hide Troubleshooting & Uninstall Settings"
|
170 |
+
msgstr "Mostrar/Ocultar Resolución de Problemas y Desinstalación"
|
171 |
+
|
172 |
+
#: admin.php:292
|
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:294
|
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:300
|
181 |
+
msgid "Auto Resize to Fit"
|
182 |
+
msgstr "Ajustar Tamaño"
|
183 |
+
|
184 |
+
#: admin.php:306
|
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:314
|
189 |
+
msgid "Center on Scroll"
|
190 |
+
msgstr "Centrar al hacer Scroll"
|
191 |
+
|
192 |
+
#: admin.php:320
|
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:328
|
197 |
+
msgid "Close on Click"
|
198 |
+
msgstr "Cerrar al hacer click"
|
199 |
+
|
200 |
+
#: admin.php:334
|
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:337
|
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:347
|
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:349
|
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:355
|
217 |
+
msgid "Frame Size"
|
218 |
+
msgstr "Tamaño del recuadro"
|
219 |
+
|
220 |
+
#: admin.php:361
|
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:366
|
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:374
|
229 |
+
msgid "Gallery Type"
|
230 |
+
msgstr "Tipo de Galería"
|
231 |
+
|
232 |
+
#: admin.php:380
|
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:385
|
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ágenes en galerías automáticamente (usa esta opción si quieres agrupar las imagenes manualmente con el atributo <code>REL</code>)"
|
239 |
+
|
240 |
+
#: admin.php:390
|
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ía para cada post (solo funcionará si el tema usa <code>class=\"post\"</code> en cada post, que es lo más com&uacte;n en WordPress"
|
243 |
+
|
244 |
+
#: admin.php:395
|
245 |
+
msgid "Use a custom expression to apply FancyBox"
|
246 |
+
msgstr "Aplicar FancyBox con una expresión personalizada"
|
247 |
+
|
248 |
+
#: admin.php:404
|
249 |
+
msgid "Custom expression guidelines:"
|
250 |
+
msgstr "Indicaciones para expresiones personalizadas:"
|
251 |
+
|
252 |
+
#: admin.php:406
|
253 |
+
msgid "The custom expression has to apply <code>class=\"fancybox\"</code> to the links where you want to use FancyBox."
|
254 |
+
msgstr "La expresión personalizada tiene que aplicar el atributo <code>class=\"fancybox\"</code> a los enlaces en los que quieras usar FancyBox."
|
255 |
+
|
256 |
+
#: admin.php:408
|
257 |
+
msgid "The jQuery <code>addClass()</code> function is a good way to add the class to the desired links conserving any existing class."
|
258 |
+
msgstr "La función <code>addClass()</code> de jQuery es una buena forma de añadir el class a los links deseados."
|
259 |
+
|
260 |
+
#: admin.php:410
|
261 |
+
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."
|
262 |
+
msgstr "Puedes usar <code>getTitle()</code> en tu expresión para copiar el atributo title desde el tag <code>IMG</code> al tag <code>A</code> para que FancyBox pueda mostrar el título de la imagen."
|
263 |
+
|
264 |
+
#: admin.php:412
|
265 |
+
msgid "Do not call the <code>fancybox()</code> function here, the plugin does this for you."
|
266 |
+
msgstr "No llames a la función <code>fancybox()</code> desde aquí, eso ya lo hace el plugin por tí."
|
267 |
+
|
268 |
+
#: admin.php:428
|
269 |
+
msgid "Troubleshooting Settings"
|
270 |
+
msgstr "Resolución de Problemas"
|
271 |
+
|
272 |
+
#: admin.php:430
|
273 |
+
msgid "Settings in this section should only be changed if you are having problems with the plugin!"
|
274 |
+
msgstr "Las opciones de esta sección solo deben ser editadas si tienes problemas con el plugin!"
|
275 |
+
|
276 |
+
#: admin.php:432
|
277 |
+
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)."
|
278 |
+
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)."
|
279 |
+
|
280 |
+
#: admin.php:434
|
281 |
+
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."
|
282 |
+
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."
|
283 |
+
|
284 |
+
#: admin.php:440
|
285 |
+
msgid "Do not call jQuery"
|
286 |
+
msgstr "No cargar jQuery"
|
287 |
+
|
288 |
+
#: admin.php:446
|
289 |
+
msgid "Skip jQuery call. Use this only if jQuery is being loaded twice (default: off)"
|
290 |
+
msgstr "Omitir llamada a jQuery. Usa esta opción sólo si jQuery se está cargando dos veces por error. (por defecto: desactivado)"
|
291 |
+
|
292 |
+
#: admin.php:454
|
293 |
+
msgid "jQuery \"noConflict\" Mode"
|
294 |
+
msgstr "Modo jQuery \"noConflict\""
|
295 |
+
|
296 |
+
#: admin.php:460
|
297 |
+
msgid "Use jQuery noConflict mode (default: on)"
|
298 |
+
msgstr "Usar parámetro noConflict de jQuery (por defecto: activado)"
|
299 |
+
|
300 |
+
#: admin.php:463
|
301 |
+
msgid "(Turning this off may cause problems if there are plugins activated that use other js framework like mootools, prototype, scriptaculous, etc.)"
|
302 |
+
msgstr "(Desactivar esta opción puede causar problemas si hay plugins activadoes que usen otros frameworks javascript como Mootols, Prototype, Scriptaculous, etc.)"
|
303 |
+
|
304 |
+
#: admin.php:472
|
305 |
+
msgid "Uninstall"
|
306 |
+
msgstr "Desinstalar"
|
307 |
+
|
308 |
+
#: admin.php:474
|
309 |
+
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."
|
310 |
+
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."
|
311 |
+
|
312 |
+
#: admin.php:480
|
313 |
+
msgid "Remove settings"
|
314 |
+
msgstr "Eliminar Opciones"
|
315 |
+
|
316 |
+
#: admin.php:486
|
317 |
+
msgid "Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. (default: off)"
|
318 |
+
msgstr "Eliminar opciones cuando se desactive el plugin desde la página \"Gestionar Plugins\". (por defecto: desactivado)"
|
319 |
+
|
320 |
+
#: admin.php:503
|
321 |
+
msgid "Save Changes"
|
322 |
+
msgstr "Guardar Cambios"
|
323 |
+
|
324 |
+
#: fancybox.php:437
|
325 |
+
msgid "Settings"
|
326 |
+
msgstr "Opciones"
|
327 |
+
|
328 |
+
#~ msgid "Make a gallery for each post"
|
329 |
+
#~ msgstr "Hacer una galería para cada entrada"
|
330 |
+
#~ msgid ""
|
331 |
+
#~ "The attribute has to start with fancybox, but can end with however you "
|
332 |
+
#~ "like: \"fancybox1\", \"fancybox2\", \"fancybox-custom\" will work."
|
333 |
+
#~ msgstr ""
|
334 |
+
#~ "El atributo debe empezar por fancybox pero puede terminar como quieras: "
|
335 |
+
#~ "\"fancybox1\", \"fancybox2\", \"fancybox-custom\" servirían."
|
336 |
+
#~ msgid "Horizontal position of the close button (default: right)"
|
337 |
+
#~ msgstr ""
|
338 |
+
#~ "Posición horizontal del botón para cerrar FancyBox (por defecto: derecha)"
|
339 |
+
#~ msgid "About"
|
340 |
+
#~ msgstr "Información"
|
341 |
+
#~ msgid ""
|
342 |
+
#~ "This plugin integrates FancyBox with WordPress without having to edit any "
|
343 |
+
#~ "file or code. Once activated the plugin will apply FancyBox automatically "
|
344 |
+
#~ "to all image links, including WordPress galleries. Future versions will "
|
345 |
+
#~ "include some more options like easier inline content integration and more "
|
346 |
+
#~ "advanced customization. Enjoy!"
|
347 |
+
#~ msgstr ""
|
348 |
+
#~ "Este plugin integra FancyBox con WordPress sin necesidad de editar ningún "
|
349 |
+
#~ "archivo o HTML. Una vez activado, el plugin aplicará FancyBox "
|
350 |
+
#~ "automáticamente a todos los enlaces a imágenes, incluyendo galerias de "
|
351 |
+
#~ "WordPress. Que lo disfrutes!"
|
352 |
+
#~ msgid ""
|
353 |
+
#~ "If you have problems or questions about FancyBox itself you should <a "
|
354 |
+
#~ "href=\"http://groups.google.com/group/fancybox\">ask in the FancyBox "
|
355 |
+
#~ "Google Group</a>. If you want to make suggestions or ask just about this "
|
356 |
+
#~ "WordPress plugin you can <a href=\"http://blog.moskis.net/downloads/"
|
357 |
+
#~ "plugins/fancybox-for-wordpress/\">leave a comment here</a>, <a href="
|
358 |
+
#~ "\"http://blog.moskis.net/contactar/\">send me an email</a>, or <a href="
|
359 |
+
#~ "\"http://twitter.com/moskis\">contact me on twitter</a>."
|
360 |
+
#~ msgstr ""
|
361 |
+
#~ "Si tienes problemas o preguntas sobre FancyBox deberías <a href=\"http://"
|
362 |
+
#~ "groups.google.com/group/fancybox\">preguntar en este grupo de Google</a> "
|
363 |
+
#~ "(enlace en inglés). Si tienes preguntas o sugerencias sobre este plugin "
|
364 |
+
#~ "para WordPress, puedes <a href=\"http://blog.moskis.net/downloads/plugins/"
|
365 |
+
#~ "fancybox-for-wordpress/\">dejar un comentario aquí</a>, <a href=\"http://"
|
366 |
+
#~ "blog.moskis.net/contactar/\">enviarme un email</a>, o <a href=\"http://"
|
367 |
+
#~ "twitter.com/moskis\">contactar conmigo vía Twitter</a>."
|
368 |
+
#~ msgid "Auto Apply"
|
369 |
+
#~ msgstr "Auto Aplicar"
|
370 |
+
#~ msgid ""
|
371 |
+
#~ "Apply FancyBox automatically to all links pointing to .jpg, .jpeg, .png "
|
372 |
+
#~ "or .gif images (default: on)"
|
373 |
+
#~ msgstr ""
|
374 |
+
#~ "Aplicar FancyBox automáticamente a todos los enlaces que apunten a "
|
375 |
+
#~ "archivos .jpg, .jpeg, .png o .gif (por defecto: activado)"
|
376 |
+
#~ msgid ""
|
377 |
+
#~ "(The link itself must the an image as well, text links will not be "
|
378 |
+
#~ "affected by this option!)"
|
379 |
+
#~ msgstr ""
|
380 |
+
#~ "(El link tiene que estar en una imagen, esta opción no affecta a enlaces "
|
381 |
+
#~ "de texto!)"
|
382 |
+
#~ msgid ""
|
383 |
+
#~ "(This does NOT conflict with the previous and next image links on "
|
384 |
+
#~ "FancyBox galleries.)"
|
385 |
+
#~ msgstr ""
|
386 |
+
#~ "(Esto no afecta a los enlaces de Imagen Siguiente e Imagen Anterior en "
|
387 |
+
#~ "galerias de varias imágenes)"
|
388 |
+
|
languages/mfbfw.po
ADDED
@@ -0,0 +1,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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é 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 & 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
ADDED
@@ -0,0 +1,405 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SOME DESCRIPTIVE TITLE.
|
2 |
+
# This file is put in the public domain.
|
3 |
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
4 |
+
#
|
5 |
+
#, fuzzy
|
6 |
+
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-03-25 16:40+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"
|
14 |
+
"MIME-Version: 1.0\n"
|
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é 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:95
|
92 |
+
msgid "Border Color"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: admin.php:101
|
96 |
+
msgid "HTML color of the border (default: #BBBBBB)"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: admin.php:109
|
100 |
+
msgid "Close Button Position"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: admin.php:115
|
104 |
+
msgid "Left"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: admin.php:120
|
108 |
+
msgid "Right (default)"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: admin.php:125
|
112 |
+
msgid "Bottom"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: admin.php:130
|
116 |
+
msgid "Top (default)"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: admin.php:138
|
120 |
+
msgid "Padding"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: admin.php:144
|
124 |
+
msgid "HTML color of the padding (default: #FFFFFF)"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: admin.php:149
|
128 |
+
msgid "Padding size in pixels (default: 10)"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: admin.php:152
|
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:159
|
138 |
+
msgid "Overlay Options"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: admin.php:165
|
142 |
+
msgid "Add overlay (default: on)"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: admin.php:170
|
146 |
+
msgid "HTML color of the overlay (default: #666666)"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: admin.php:183
|
150 |
+
msgid "Opacity of overlay. 0 is transparent, 1 is opaque (default: 0.3)"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: admin.php:191
|
154 |
+
msgid "Zoom Options"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: admin.php:197
|
158 |
+
msgid "Change content transparency during zoom animations (default: on)"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: admin.php:209
|
162 |
+
msgid "Speed in miliseconds of the zooming-in animation (default: 500)"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: admin.php:221
|
166 |
+
msgid "Speed in miliseconds of the zooming-out animation (default: 500)"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: admin.php:229
|
170 |
+
msgid "Easing"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: admin.php:235
|
174 |
+
msgid "Activate easing (default: off)"
|
175 |
+
msgstr ""
|
176 |
+
|
177 |
+
#: admin.php:248
|
178 |
+
msgid "Easing method when opening FancyBox. (default: easeOutBack)"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: admin.php:261
|
182 |
+
msgid "Easing method when closing FancyBox. (default: easeInBack)"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: admin.php:274
|
186 |
+
msgid ""
|
187 |
+
"Easing method when navigating through gallery items. (default: "
|
188 |
+
"easeInOutQuart)"
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: admin.php:277
|
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:286
|
200 |
+
msgid "Show/Hide Advanced Settings"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: admin.php:287
|
204 |
+
msgid "Show/Hide Troubleshooting & Uninstall Settings"
|
205 |
+
msgstr ""
|
206 |
+
|
207 |
+
#: admin.php:292
|
208 |
+
msgid "Behavior Settings <span style=\"color:orange\">(medium)</span>"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: admin.php:294
|
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:300
|
218 |
+
msgid "Auto Resize to Fit"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: admin.php:306
|
222 |
+
msgid "Scale images to fit in viewport (default: on)"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: admin.php:314
|
226 |
+
msgid "Center on Scroll"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: admin.php:320
|
230 |
+
msgid ""
|
231 |
+
"Keep image in the center of the browser window when scrolling (default: on)"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: admin.php:328
|
235 |
+
msgid "Close on Click"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#: admin.php:334
|
239 |
+
msgid "Close FancyBox by clicking on the image (default: off)"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: admin.php:337
|
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:347
|
250 |
+
msgid "Gallery Settings <span style=\"color:red\">(advanced)</span>"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: admin.php:349
|
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:355
|
261 |
+
msgid "Frame Size"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: admin.php:361
|
265 |
+
msgid "Width in pixels of FancyBox when showing iframe content (default: 640)"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: admin.php:366
|
269 |
+
msgid "Height in pixels of FancyBox when showing iframe content (default: 500)"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: admin.php:374
|
273 |
+
msgid "Gallery Type"
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: admin.php:380
|
277 |
+
msgid "Make a gallery for all images on the page (default)"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: admin.php:385
|
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:390
|
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:395
|
293 |
+
msgid "Use a custom expression to apply FancyBox"
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
+
#: admin.php:404
|
297 |
+
msgid "Custom expression guidelines:"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#: admin.php:406
|
301 |
+
msgid ""
|
302 |
+
"The custom expression has to apply <code>class=\"fancybox\"</code> to the "
|
303 |
+
"links where you want to use FancyBox."
|
304 |
+
msgstr ""
|
305 |
+
|
306 |
+
#: admin.php:408
|
307 |
+
msgid ""
|
308 |
+
"The jQuery <code>addClass()</code> function is a good way to add the class "
|
309 |
+
"to the desired links conserving any existing class."
|
310 |
+
msgstr ""
|
311 |
+
|
312 |
+
#: admin.php:410
|
313 |
+
msgid ""
|
314 |
+
"You can use <code>getTitle()</code> in your expression to copy the title "
|
315 |
+
"attribute from the <code>IMG</code> tag to the <code>A</code> tag, so that "
|
316 |
+
"FancyBox can show captions."
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: admin.php:412
|
320 |
+
msgid ""
|
321 |
+
"Do not call the <code>fancybox()</code> function here, the plugin does this "
|
322 |
+
"for you."
|
323 |
+
msgstr ""
|
324 |
+
|
325 |
+
#: admin.php:428
|
326 |
+
msgid "Troubleshooting Settings"
|
327 |
+
msgstr ""
|
328 |
+
|
329 |
+
#: admin.php:430
|
330 |
+
msgid ""
|
331 |
+
"Settings in this section should only be changed if you are having problems "
|
332 |
+
"with the plugin!"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: admin.php:432
|
336 |
+
msgid ""
|
337 |
+
"If the plugin doesn't seem to work, first you should check for other plugins "
|
338 |
+
"that may be conflicting with this one, especially other Lightbox, Slimbox, "
|
339 |
+
"etc. Make sure all your plugins and WordPress itself are up to date (this "
|
340 |
+
"plugin has only been tested in WordPress 2.7 and above)."
|
341 |
+
msgstr ""
|
342 |
+
|
343 |
+
#: admin.php:434
|
344 |
+
msgid ""
|
345 |
+
"Change them one at a time and test to see if they help. Remember that having "
|
346 |
+
"a cache plugin may prevent changes from taking effect immidiately, so clear "
|
347 |
+
"cache after saving changes here or deactivate cache until you finish editing "
|
348 |
+
"these options."
|
349 |
+
msgstr ""
|
350 |
+
|
351 |
+
#: admin.php:440
|
352 |
+
msgid "Do not call jQuery"
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#: admin.php:446
|
356 |
+
msgid ""
|
357 |
+
"Skip jQuery call. Use this only if jQuery is being loaded twice (default: "
|
358 |
+
"off)"
|
359 |
+
msgstr ""
|
360 |
+
|
361 |
+
#: admin.php:454
|
362 |
+
msgid "jQuery \"noConflict\" Mode"
|
363 |
+
msgstr ""
|
364 |
+
|
365 |
+
#: admin.php:460
|
366 |
+
msgid "Use jQuery noConflict mode (default: on)"
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#: admin.php:463
|
370 |
+
msgid ""
|
371 |
+
"(Turning this off may cause problems if there are plugins activated that use "
|
372 |
+
"other js framework like mootools, prototype, scriptaculous, etc.)"
|
373 |
+
msgstr ""
|
374 |
+
|
375 |
+
#: admin.php:472
|
376 |
+
msgid "Uninstall"
|
377 |
+
msgstr ""
|
378 |
+
|
379 |
+
#: admin.php:474
|
380 |
+
msgid ""
|
381 |
+
"Like many other plugins, FancyBox for WordPress stores its settings on your "
|
382 |
+
"WordPress' options database table. Actually, these settings are not using "
|
383 |
+
"more than a couple of kilobytes of space, but if you want to completely "
|
384 |
+
"uninstall this plugin, check the option below, then save changes, and "
|
385 |
+
"<strong>when you deactivate the plugin</strong>, all its settings will be "
|
386 |
+
"removed from the database."
|
387 |
+
msgstr ""
|
388 |
+
|
389 |
+
#: admin.php:480
|
390 |
+
msgid "Remove settings"
|
391 |
+
msgstr ""
|
392 |
+
|
393 |
+
#: admin.php:486
|
394 |
+
msgid ""
|
395 |
+
"Remove Settings when plugin is deactivated from the \"Manage Plugins\" page. "
|
396 |
+
"(default: off)"
|
397 |
+
msgstr ""
|
398 |
+
|
399 |
+
#: admin.php:503
|
400 |
+
msgid "Save Changes"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: fancybox.php:437
|
404 |
+
msgid "Settings"
|
405 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.asmallorange.com/extras/donate/?id=10218
|
|
4 |
Tags: fancybox, lightbox, jquery, image, gallery
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.7.1
|
7 |
-
Stable tag: 2.
|
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 |
|
@@ -13,19 +13,31 @@ Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done
|
|
13 |
|
14 |
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... :)
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
The requirements are that the link is an image (for example a thumbnail), and that it links to a JPG, PNG or GIF file (that will be the full size image).
|
21 |
-
|
22 |
-
This plugin will NOT apply [FancyBox](http://fancy.klade.lv/) on text links, but i will implement a setting in the Options Page to customize this in future versions.
|
23 |
|
24 |
Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended to use it with WordPress 2.7 or later. After all, there's no reason why you shouldn't be already using WP2.7, is there? ;)
|
25 |
|
26 |
|
27 |
= Changelog =
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
2.2 Updtades:
|
30 |
|
31 |
* Updated to FancyBox 1.2.1
|
@@ -71,12 +83,6 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
|
|
71 |
* Moved images to /img/ folder
|
72 |
|
73 |
|
74 |
-
= TODO List =
|
75 |
-
|
76 |
-
* Custom expression field in Options page to specify aditional elements where FancyBox should be applied (for example "#moskislink" or "a.someclass:has(img)[href$='.gif']" )
|
77 |
-
* Better support for inline content width adjustable window width and height.
|
78 |
-
|
79 |
-
|
80 |
= Known Bugs =
|
81 |
|
82 |
* Shadows not perfect yet on IE6/7, but close
|
@@ -92,8 +98,9 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
|
|
92 |
|
93 |
== Screenshots ==
|
94 |
|
95 |
-
1. Simple example of fancybox
|
96 |
-
2. Options Page in the Admin Panel makes it very easy to customize the plugin to your needs.
|
|
|
97 |
|
98 |
|
99 |
== Frequently Asked Questions ==
|
@@ -102,13 +109,13 @@ Finally, i have only tested the plugin in WordPress 2.7, so it's very recomended
|
|
102 |
|
103 |
NO. I just ported it to WordPress. For more info on the FancyBox script itself [visit its website](http://fancy.klade.lv/home).
|
104 |
|
105 |
-
=
|
106 |
|
107 |
-
|
108 |
|
109 |
-
=
|
110 |
|
111 |
-
|
112 |
|
113 |
If the plugin is not working or you find any bug/bad behaviour/conflict deactivate it and email me at jose (at) moskis.net with a description of the problem, and i'll take a look at it.
|
114 |
|
@@ -120,7 +127,7 @@ Don't hesitate to email me at jose (at) moskis.net with any thoughts about this
|
|
120 |
|
121 |
= How does the plugin exactly work? =
|
122 |
|
123 |
-
First the plugin checks if your blog
|
124 |
|
125 |
= The plugin does not work with Mandingo theme =
|
126 |
|
@@ -135,4 +142,4 @@ After applying this fix everything seems to work perfectly.
|
|
135 |
|
136 |
You can see the plugin working on [my blog](http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/) although there's nothing amazing to see, just a FancyBox simple implementation, that's the point ;)
|
137 |
|
138 |
-
You can take a look at the code if you're curious, though.
|
4 |
Tags: fancybox, lightbox, jquery, image, gallery
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.7.1
|
7 |
+
Stable tag: 2.5
|
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 |
|
13 |
|
14 |
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... :)
|
15 |
|
16 |
+
You can easely customize almost anything you can think about fancybox: the border, margin width and color, zoom speed, animation type, close button position, overlay color and opacity and even more advanced option like several options to group images into galleries, and more...
|
17 |
|
18 |
+
By default, the plugin will use jQuery to apply [FancyBox](http://fancy.klade.lv/) to ANY image links that open an image. This includes posts, the sidebar, etc, so you can activate it and it will be applied automatically.
|
|
|
|
|
|
|
|
|
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.5 Updates:
|
26 |
+
|
27 |
+
* Support for localizations (Spanish and German localizations included)
|
28 |
+
* Some parts of the code completely rewritten
|
29 |
+
* Fixed fancybox files being loaded on the admin pages
|
30 |
+
* New options for close button position, custom jquery expressions, iframe content
|
31 |
+
* Options page mostly rewritten, better organized.
|
32 |
+
* Medium/advanced, troubleshooting/uninstall options collapsable, hidden by default
|
33 |
+
* Better support guidelines and links on options page
|
34 |
+
* Settings link on the Manage plugins page
|
35 |
+
* Custom expression hidden when not used
|
36 |
+
* Title atribute on IMG tags is now copied to its parent A tag for better caption support
|
37 |
+
* New uninstall options and better handling of new options when installing/updating
|
38 |
+
* Cleans any old options no longer needed when plugin is activated/updated
|
39 |
+
|
40 |
+
|
41 |
2.2 Updtades:
|
42 |
|
43 |
* Updated to FancyBox 1.2.1
|
83 |
* Moved images to /img/ folder
|
84 |
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
= Known Bugs =
|
87 |
|
88 |
* Shadows not perfect yet on IE6/7, but close
|
98 |
|
99 |
== Screenshots ==
|
100 |
|
101 |
+
1. Simple example of fancybox on a post. [Live demo here](http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/).
|
102 |
+
2. Basic settings on Options Page in the Admin Panel. This makes it very easy to customize the plugin to your needs.
|
103 |
+
2. Full settings on Options Page.
|
104 |
|
105 |
|
106 |
== Frequently Asked Questions ==
|
109 |
|
110 |
NO. I just ported it to WordPress. For more info on the FancyBox script itself [visit its website](http://fancy.klade.lv/home).
|
111 |
|
112 |
+
= Help translate the plugin to your language =
|
113 |
|
114 |
+
If you want to make a localization you can use the sources in the laguages folder and email me the PO and MO files (or just the PO) at jose (at) moskis.net. I will add it in the next release and if you want me to, i'll send you updated pot file a couple of days before future releases.
|
115 |
|
116 |
+
= The plugin does not work =
|
117 |
|
118 |
+
The most common problem is another plugin or your theme conflicting with the plugin. This is usually caused by some plugin that load jQuery directly instead of using the wp_enqueue_script function. Try following all the guidelines in the options page, and if necesary try the troubleshooting settings.
|
119 |
|
120 |
If the plugin is not working or you find any bug/bad behaviour/conflict deactivate it and email me at jose (at) moskis.net with a description of the problem, and i'll take a look at it.
|
121 |
|
127 |
|
128 |
= How does the plugin exactly work? =
|
129 |
|
130 |
+
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. :)
|
131 |
|
132 |
= The plugin does not work with Mandingo theme =
|
133 |
|
142 |
|
143 |
You can see the plugin working on [my blog](http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/) although there's nothing amazing to see, just a FancyBox simple implementation, that's the point ;)
|
144 |
|
145 |
+
You can take a look at the code if you're curious, though. You will find it in the Head section of the page.
|
screenshot-1.jpg
DELETED
Binary file
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
ADDED
Binary file
|