Version Description
- Fixes to JavaScript code for showing and hiding elements as they are needed in Settings page. (Thanks to jono55 for reporting)
Download this release
Release Info
Developer | moskis |
Plugin | FancyBox for WordPress |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- fancybox.php +2 -2
- js/admin.js +20 -17
- readme.txt +4 -1
fancybox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: FancyBox for WordPress
|
4 |
Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
|
5 |
Description: Integrates <a href="http://fancybox.net/">FancyBox</a> by <a href="http://klade.lv/">Janis Skarnelis</a> into WordPress.
|
6 |
-
Version: 3.0.
|
7 |
Author: José Pardilla
|
8 |
Author URI: http://twitter.com/moskis
|
9 |
|
@@ -20,7 +20,7 @@ Author URI: http://twitter.com/moskis
|
|
20 |
* Constants
|
21 |
*/
|
22 |
|
23 |
-
define( 'FBFW_VERSION', '3.0.
|
24 |
define( 'FBFW_PATH', plugin_dir_path(__FILE__) );
|
25 |
define( 'FBFW_URL', plugin_dir_url(__FILE__) );
|
26 |
|
3 |
Plugin Name: FancyBox for WordPress
|
4 |
Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
|
5 |
Description: Integrates <a href="http://fancybox.net/">FancyBox</a> by <a href="http://klade.lv/">Janis Skarnelis</a> into WordPress.
|
6 |
+
Version: 3.0.6
|
7 |
Author: José Pardilla
|
8 |
Author URI: http://twitter.com/moskis
|
9 |
|
20 |
* Constants
|
21 |
*/
|
22 |
|
23 |
+
define( 'FBFW_VERSION', '3.0.6' );
|
24 |
define( 'FBFW_PATH', plugin_dir_path(__FILE__) );
|
25 |
define( 'FBFW_URL', plugin_dir_url(__FILE__) );
|
26 |
|
js/admin.js
CHANGED
@@ -1,26 +1,29 @@
|
|
1 |
|
2 |
-
jQuery(function(){
|
3 |
|
4 |
// Tabs
|
5 |
jQuery("#fbfwTabs").tabs();
|
6 |
|
7 |
// Hide Donation and twitter stuff on tabs other than Info
|
8 |
-
jQuery("#fbfwTabs li a").click(function(){
|
9 |
-
jQuery("#
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
});
|
15 |
|
16 |
|
17 |
// Hide form fields when not needed (swithed by checkbox)
|
18 |
function switchBlock(block,button) {
|
19 |
-
var buttonValue = jQuery(button + "
|
20 |
-
if (buttonValue == "on") {
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
24 |
jQuery(block).animate({opacity: "toggle", height: "toggle"}, 500);
|
25 |
});
|
26 |
}
|
@@ -44,11 +47,11 @@ jQuery(function(){
|
|
44 |
jQuery("#titleColorBlock").css("display", "none");
|
45 |
}
|
46 |
|
47 |
-
jQuery("#titlePositionFloat, #titlePositionOutside, #titlePositionOver").click(function
|
48 |
jQuery("#titleColorBlock").hide("slow");
|
49 |
});
|
50 |
|
51 |
-
jQuery("#titlePositionInside").click(function
|
52 |
jQuery("#titleColorBlock").show("slow");
|
53 |
});
|
54 |
|
@@ -63,18 +66,18 @@ jQuery(function(){
|
|
63 |
jQuery("#customExpressionBlock").css("display", "none");
|
64 |
}
|
65 |
|
66 |
-
jQuery("#galleryTypeAll, #galleryTypeNone, #galleryTypePost").click(function
|
67 |
jQuery("#customExpressionBlock").hide("slow");
|
68 |
});
|
69 |
|
70 |
-
jQuery("#galleryTypeCustom").click(function
|
71 |
jQuery("#customExpressionBlock").show("slow");
|
72 |
});
|
73 |
|
74 |
})
|
75 |
|
76 |
function confirmDefaults() {
|
77 |
-
if (confirm(defaults_prompt) == true)
|
78 |
return true;
|
79 |
else
|
80 |
return false;
|
1 |
|
2 |
+
jQuery(function() {
|
3 |
|
4 |
// Tabs
|
5 |
jQuery("#fbfwTabs").tabs();
|
6 |
|
7 |
// Hide Donation and twitter stuff on tabs other than Info
|
8 |
+
jQuery("#fbfwTabs li a").click(function() {
|
9 |
+
if ( jQuery(this).is("#ui-id-1") ) {
|
10 |
+
jQuery("#mfbfwd").show();
|
11 |
+
} else {
|
12 |
+
jQuery("#mfbfwd").hide();
|
13 |
+
}
|
14 |
});
|
15 |
|
16 |
|
17 |
// Hide form fields when not needed (swithed by checkbox)
|
18 |
function switchBlock(block,button) {
|
19 |
+
var buttonValue = jQuery(button + ":checked").val();
|
20 |
+
if ( buttonValue == "on" ) {
|
21 |
+
jQuery(block).css("display", "inline");
|
22 |
+
} else {
|
23 |
+
jQuery(block).css("display", "none");
|
24 |
+
}
|
25 |
+
|
26 |
+
jQuery(button).click(function() {
|
27 |
jQuery(block).animate({opacity: "toggle", height: "toggle"}, 500);
|
28 |
});
|
29 |
}
|
47 |
jQuery("#titleColorBlock").css("display", "none");
|
48 |
}
|
49 |
|
50 |
+
jQuery("#titlePositionFloat, #titlePositionOutside, #titlePositionOver").click(function() {
|
51 |
jQuery("#titleColorBlock").hide("slow");
|
52 |
});
|
53 |
|
54 |
+
jQuery("#titlePositionInside").click(function() {
|
55 |
jQuery("#titleColorBlock").show("slow");
|
56 |
});
|
57 |
|
66 |
jQuery("#customExpressionBlock").css("display", "none");
|
67 |
}
|
68 |
|
69 |
+
jQuery("#galleryTypeAll, #galleryTypeNone, #galleryTypePost").click(function() {
|
70 |
jQuery("#customExpressionBlock").hide("slow");
|
71 |
});
|
72 |
|
73 |
+
jQuery("#galleryTypeCustom").click(function() {
|
74 |
jQuery("#customExpressionBlock").show("slow");
|
75 |
});
|
76 |
|
77 |
})
|
78 |
|
79 |
function confirmDefaults() {
|
80 |
+
if ( confirm(defaults_prompt) == true )
|
81 |
return true;
|
82 |
else
|
83 |
return false;
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: moskis
|
|
3 |
Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.1
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPL/MIT
|
8 |
|
9 |
Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. Additional configuration optional.
|
@@ -26,6 +26,9 @@ You can see the plugin working on [this blog](http://blog.moskis.net/2012/01/20/
|
|
26 |
|
27 |
This changelog is for the WordPress plugin. For the Fancybox main changelog go to its [home page](http://fancybox.net/changelog/).
|
28 |
|
|
|
|
|
|
|
29 |
= 3.0.5 =
|
30 |
* Fixed the Revert Options button.
|
31 |
* Fixed wrong version number being shown on the plugin's settings page.
|
3 |
Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 4.1
|
6 |
+
Stable tag: 3.0.6
|
7 |
License: GPL/MIT
|
8 |
|
9 |
Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. Additional configuration optional.
|
26 |
|
27 |
This changelog is for the WordPress plugin. For the Fancybox main changelog go to its [home page](http://fancybox.net/changelog/).
|
28 |
|
29 |
+
= 3.0.6 =
|
30 |
+
* Fixes to JavaScript code for showing and hiding elements as they are needed in Settings page. (Thanks to jono55 for reporting)
|
31 |
+
|
32 |
= 3.0.5 =
|
33 |
* Fixed the Revert Options button.
|
34 |
* Fixed wrong version number being shown on the plugin's settings page.
|