Version Description
Size issue with fancybox-swf and iframe classes. Quick fix for image overlay size in Google Chrome browser issue with FancyBox 1.3.3
=
Download this release
Release Info
| Developer | RavanH |
| Plugin | |
| Version | 1.3.3.4.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.3.3.4 to 1.3.3.4.2
- easy-fancybox.php +21 -7
- readme.txt +15 -10
easy-fancybox.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Easy FancyBox
|
| 4 |
Plugin URI: http://4visions.nl/en/wordpress-plugins/easy-fancybox/
|
| 5 |
Description: Easily enable the <a href="http://fancybox.net/">FancyBox 1.3.3 jQuery extension</a> on all image, SWF, YouTube and Vimeo links. Multi-Site compatible and supports iFrame and Flash movies in overlay viewport. Happy with it? Please leave me a small <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=1%2e3%2e3&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us">TIP</a> for development and support on this plugin and please consider a DONATION to the <a href="http://fancybox.net/">FancyBox project</a>.
|
| 6 |
-
Version: 1.3.3.4
|
| 7 |
Author: RavanH
|
| 8 |
Author URI: http://4visions.nl/
|
| 9 |
*/
|
|
@@ -61,6 +61,7 @@ function easy_fancybox_settings(){
|
|
| 61 |
'description' => __('Vimeo links.','easy-fancybox')
|
| 62 |
)
|
| 63 |
),
|
|
|
|
| 64 |
'description' => __('Select which external video content sites links should automatically be detected and FancyBox enabled.','easy-fancybox')
|
| 65 |
),
|
| 66 |
'titlePosition' => array (
|
|
@@ -108,15 +109,18 @@ function easy_fancybox_settings(){
|
|
| 108 |
);
|
| 109 |
}
|
| 110 |
|
| 111 |
-
// What about other things than link with img, like: div[rel$="fancybox"] ?
|
| 112 |
function easy_fancybox() {
|
| 113 |
$easy_fancybox_array = easy_fancybox_settings();
|
|
|
|
|
|
|
| 114 |
echo "
|
| 115 |
<!-- Easy FancyBox plugin for WordPress - RavanH (http://4visions.nl/en/wordpress-plugins/easy-fancybox/) -->
|
| 116 |
<script type=\"text/javascript\">
|
| 117 |
jQuery(document).ready(function($){";
|
| 118 |
|
| 119 |
$file_types = array_filter( explode( ' ', get_option( 'fancybox_autoAttribute', $easy_fancybox_array['autoAttribute']['default']) ) );
|
|
|
|
|
|
|
| 120 |
if(!empty($file_types)) {
|
| 121 |
echo "
|
| 122 |
$('";
|
|
@@ -127,16 +131,19 @@ jQuery(document).ready(function($){";
|
|
| 127 |
.addClass('fancybox');";
|
| 128 |
}
|
| 129 |
|
|
|
|
| 130 |
if( "1" == get_option("fancybox_autoAttributeYoutube", $easy_fancybox_array['autoDetect']['options']['autoAttributeYoutube']['default']) )
|
| 131 |
echo "
|
| 132 |
$('a[href*=\"youtube.com/watch\"]').addClass('fancybox-youtube');";
|
| 133 |
|
|
|
|
| 134 |
if( "1" == get_option("fancybox_autoAttributeVimeo", $easy_fancybox_array['autoDetect']['options']['autoAttributeVimeo']['default']) )
|
| 135 |
echo "
|
| 136 |
-
$('a[href*=\"vimeo.com/\"]').addClass('fancybox-vimeo');
|
|
|
|
| 137 |
|
|
|
|
| 138 |
echo "
|
| 139 |
-
|
| 140 |
$('a.fancybox').fancybox({";
|
| 141 |
foreach ($easy_fancybox_array as $key => $values)
|
| 142 |
if('true'!=$values['hide'])
|
|
@@ -145,7 +152,6 @@ jQuery(document).ready(function($){";
|
|
| 145 |
|
| 146 |
if( "over" == get_option("fancybox_titlePosition", $easy_fancybox_array['titlePosition']['default']) )
|
| 147 |
echo"
|
| 148 |
-
'titleFromAlt' : true,
|
| 149 |
'onComplete' : function() {
|
| 150 |
$('#fancybox-wrap').hover(function() {
|
| 151 |
$('#fancybox-title').show();
|
|
@@ -154,7 +160,13 @@ jQuery(document).ready(function($){";
|
|
| 154 |
});
|
| 155 |
},";
|
| 156 |
echo"
|
|
|
|
|
|
|
| 157 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
var fb_opts = {
|
| 159 |
'titleShow' : false,
|
| 160 |
'padding' : 0,
|
|
@@ -169,12 +181,14 @@ jQuery(document).ready(function($){";
|
|
| 169 |
$('a.fancybox-iframe').fancybox(
|
| 170 |
$.extend(fb_opts, {
|
| 171 |
'type' : 'iframe',
|
| 172 |
-
'height' : '90%'
|
|
|
|
| 173 |
})
|
| 174 |
);
|
| 175 |
$('a.fancybox-swf').fancybox(
|
| 176 |
$.extend(fb_opts, {
|
| 177 |
-
'
|
|
|
|
| 178 |
'type' : 'swf'
|
| 179 |
})
|
| 180 |
);
|
| 3 |
Plugin Name: Easy FancyBox
|
| 4 |
Plugin URI: http://4visions.nl/en/wordpress-plugins/easy-fancybox/
|
| 5 |
Description: Easily enable the <a href="http://fancybox.net/">FancyBox 1.3.3 jQuery extension</a> on all image, SWF, YouTube and Vimeo links. Multi-Site compatible and supports iFrame and Flash movies in overlay viewport. Happy with it? Please leave me a small <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=1%2e3%2e3&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us">TIP</a> for development and support on this plugin and please consider a DONATION to the <a href="http://fancybox.net/">FancyBox project</a>.
|
| 6 |
+
Version: 1.3.3.4.2
|
| 7 |
Author: RavanH
|
| 8 |
Author URI: http://4visions.nl/
|
| 9 |
*/
|
| 61 |
'description' => __('Vimeo links.','easy-fancybox')
|
| 62 |
)
|
| 63 |
),
|
| 64 |
+
'hide' => 'true',
|
| 65 |
'description' => __('Select which external video content sites links should automatically be detected and FancyBox enabled.','easy-fancybox')
|
| 66 |
),
|
| 67 |
'titlePosition' => array (
|
| 109 |
);
|
| 110 |
}
|
| 111 |
|
|
|
|
| 112 |
function easy_fancybox() {
|
| 113 |
$easy_fancybox_array = easy_fancybox_settings();
|
| 114 |
+
|
| 115 |
+
// begin output FancyBox settings
|
| 116 |
echo "
|
| 117 |
<!-- Easy FancyBox plugin for WordPress - RavanH (http://4visions.nl/en/wordpress-plugins/easy-fancybox/) -->
|
| 118 |
<script type=\"text/javascript\">
|
| 119 |
jQuery(document).ready(function($){";
|
| 120 |
|
| 121 |
$file_types = array_filter( explode( ' ', get_option( 'fancybox_autoAttribute', $easy_fancybox_array['autoAttribute']['default']) ) );
|
| 122 |
+
|
| 123 |
+
// add auto-detection image/swf links
|
| 124 |
if(!empty($file_types)) {
|
| 125 |
echo "
|
| 126 |
$('";
|
| 131 |
.addClass('fancybox');";
|
| 132 |
}
|
| 133 |
|
| 134 |
+
// add auto-attribution for Youtube links
|
| 135 |
if( "1" == get_option("fancybox_autoAttributeYoutube", $easy_fancybox_array['autoDetect']['options']['autoAttributeYoutube']['default']) )
|
| 136 |
echo "
|
| 137 |
$('a[href*=\"youtube.com/watch\"]').addClass('fancybox-youtube');";
|
| 138 |
|
| 139 |
+
// add auto-attribution for Vimeo links
|
| 140 |
if( "1" == get_option("fancybox_autoAttributeVimeo", $easy_fancybox_array['autoDetect']['options']['autoAttributeVimeo']['default']) )
|
| 141 |
echo "
|
| 142 |
+
$('a[href*=\"vimeo.com/\"]').addClass('fancybox-vimeo');
|
| 143 |
+
";
|
| 144 |
|
| 145 |
+
// image/swf fancybox settings
|
| 146 |
echo "
|
|
|
|
| 147 |
$('a.fancybox').fancybox({";
|
| 148 |
foreach ($easy_fancybox_array as $key => $values)
|
| 149 |
if('true'!=$values['hide'])
|
| 152 |
|
| 153 |
if( "over" == get_option("fancybox_titlePosition", $easy_fancybox_array['titlePosition']['default']) )
|
| 154 |
echo"
|
|
|
|
| 155 |
'onComplete' : function() {
|
| 156 |
$('#fancybox-wrap').hover(function() {
|
| 157 |
$('#fancybox-title').show();
|
| 160 |
});
|
| 161 |
},";
|
| 162 |
echo"
|
| 163 |
+
'autoDimensions': false,
|
| 164 |
+
'titleFromAlt' : true
|
| 165 |
});
|
| 166 |
+
";
|
| 167 |
+
|
| 168 |
+
// iframe/swf/youtube/vimeo settings
|
| 169 |
+
echo"
|
| 170 |
var fb_opts = {
|
| 171 |
'titleShow' : false,
|
| 172 |
'padding' : 0,
|
| 181 |
$('a.fancybox-iframe').fancybox(
|
| 182 |
$.extend(fb_opts, {
|
| 183 |
'type' : 'iframe',
|
| 184 |
+
'height' : '90%',
|
| 185 |
+
'width' : '70%'
|
| 186 |
})
|
| 187 |
);
|
| 188 |
$('a.fancybox-swf').fancybox(
|
| 189 |
$.extend(fb_opts, {
|
| 190 |
+
'width' : 680,
|
| 191 |
+
'height' : 495,
|
| 192 |
'type' : 'swf'
|
| 193 |
})
|
| 194 |
);
|
readme.txt
CHANGED
|
@@ -1,20 +1,18 @@
|
|
| 1 |
=== Easy FancyBox ===
|
| 2 |
Contributors: RavanH
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=1%2e3%2e1&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us
|
| 4 |
-
Tags: fancybox, jquery, images, lightbox, gallery, image overlay, youtube, vimeo
|
| 5 |
Requires at least: 2.7
|
| 6 |
Tested up to: 3.0.1
|
| 7 |
-
Stable tag: 1.3.3.4
|
| 8 |
|
| 9 |
-
Easily enable the FancyBox 1.3.3 jQuery extension on all image, SWF, YouTube and Vimeo links. Multi-Site compatible
|
| 10 |
|
| 11 |
== Description ==
|
| 12 |
|
| 13 |
-
No options to be set. No configuration pages. It just gives you FancyBox-in-a-Box for all links to
|
| 14 |
|
| 15 |
-
See the [Screenshot](http://wordpress.org/extend/plugins/easy-fancybox/screenshots/)
|
| 16 |
-
|
| 17 |
-
See [FAQ's](http://wordpress.org/extend/plugins/easy-fancybox/faq/) for instructions to get YouTube and Vimeo movies (and similar services) and HTML content display in a FancyBox overlay.
|
| 18 |
|
| 19 |
Looking for some basic control? You can find a new section **FancyBox** on your **Settings > Media** admin page:
|
| 20 |
|
|
@@ -23,7 +21,9 @@ Looking for some basic control? You can find a new section **FancyBox** on your
|
|
| 23 |
- *Title Position*: Overlay / Inside / Outside to control the position of the image title. Includes the new "Overlay" position.
|
| 24 |
- *Transition In / Out*: Elastic / Fade / None to control the transition effects during opening and closing of the overlay.
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
= Translations =
|
| 29 |
|
|
@@ -121,11 +121,16 @@ Yes. Designed to work with **Network Activate** and does not require manual acti
|
|
| 121 |
|
| 122 |
== Upgrade Notice ==
|
| 123 |
|
| 124 |
-
= 1.3.3.4 =
|
| 125 |
-
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
= 1.3.3.4 =
|
| 130 |
* upgraded FancyBox script to version 1.3.3 (2010/11/4 - http://fancybox.net/changelog/)
|
| 131 |
* Vimeo support
|
| 1 |
=== Easy FancyBox ===
|
| 2 |
Contributors: RavanH
|
| 3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox&item_number=1%2e3%2e1&no_shipping=0&tax=0&bn=PP%2dDonationsBF&charset=UTF%2d8&lc=us
|
| 4 |
+
Tags: fancybox, jquery, images, flash, lightbox, gallery, image overlay, youtube, vimeo, gallery
|
| 5 |
Requires at least: 2.7
|
| 6 |
Tested up to: 3.0.1
|
| 7 |
+
Stable tag: 1.3.3.4.2
|
| 8 |
|
| 9 |
+
Easily enable the FancyBox 1.3.3 jQuery extension on all image, SWF, YouTube and Vimeo links. Multi-Site compatible. Supports iFrame and Flash movies.
|
| 10 |
|
| 11 |
== Description ==
|
| 12 |
|
| 13 |
+
No options to be set. No new configuration pages. It just gives you FancyBox-in-a-Box for all links to images (.jpg/.bmp/.gif/.png) _and_ Flash movie (.swf) files _and_ Youtube / Vimeo movies _and_ WordPress Galleries. Easy FancyBox uses the packed FancyBox jQuery extension, is WP 3.0 Multi-Site compatible and supports iFrame and Flash movies -including YouTube and others- in an overlay.
|
| 14 |
|
| 15 |
+
See the [Screenshot](http://wordpress.org/extend/plugins/easy-fancybox/screenshots/) for an impression on how images and YouTube movies will be presented on your site as soon as you have installed and (network) activated this simple plugin.
|
|
|
|
|
|
|
| 16 |
|
| 17 |
Looking for some basic control? You can find a new section **FancyBox** on your **Settings > Media** admin page:
|
| 18 |
|
| 21 |
- *Title Position*: Overlay / Inside / Outside to control the position of the image title. Includes the new "Overlay" position.
|
| 22 |
- *Transition In / Out*: Elastic / Fade / None to control the transition effects during opening and closing of the overlay.
|
| 23 |
|
| 24 |
+
See [FAQ's](http://wordpress.org/extend/plugins/easy-fancybox/faq/) for instructions to manage YouTube and Vimeo movies (and similar services) and make HTML content display in a FancyBox overlay.
|
| 25 |
+
|
| 26 |
+
Visit [FancyBox](http://fancybox.net/) for more information, examples and the Support Forum. Please consider a DONATION for continued development of the FancyBox project.
|
| 27 |
|
| 28 |
= Translations =
|
| 29 |
|
| 121 |
|
| 122 |
== Upgrade Notice ==
|
| 123 |
|
| 124 |
+
= 1.3.3.4.2 =
|
| 125 |
+
Size issue with fancybox-swf and iframe classes. Quick fix for image overlay size in Google Chrome browser issue with FancyBox 1.3.3
|
| 126 |
|
| 127 |
== Changelog ==
|
| 128 |
|
| 129 |
+
= 1.3.3.4.2 =
|
| 130 |
+
* Fix: iframe width
|
| 131 |
+
* Fix: image overlay size in Google Chrome browser issue (FancyBox 1.3.3)
|
| 132 |
+
* Fix: fancybox-swf
|
| 133 |
+
|
| 134 |
= 1.3.3.4 =
|
| 135 |
* upgraded FancyBox script to version 1.3.3 (2010/11/4 - http://fancybox.net/changelog/)
|
| 136 |
* Vimeo support
|
