Easy FancyBox - Version 1.9.3

Version Description

Bugfix release.

=

Download this release

Release Info

Developer RavanH
Plugin Icon 128x128 Easy FancyBox
Version 1.9.3
Comparing to
See all releases

Code changes from version 1.9.2 to 1.9.3

Files changed (4) hide show
  1. easy-fancybox.php +3 -7
  2. inc/class-easyfancybox-admin.php +5 -1
  3. readme.txt +15 -229
  4. upgrade.php +3 -1
easy-fancybox.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://status301.net/wordpress-plugins/easy-fancybox/
5
  Description: Easily enable the FancyBox jQuery light box on all media file links. Also supports iframe, inline content and well known video hosts.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
- Version: 1.9.2
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -31,7 +31,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
31
  * CONSTANTS
32
  **************/
33
 
34
- define( 'EASY_FANCYBOX_VERSION', '1.9.2' );
35
  define( 'FANCYBOX_VERSIONS', array(
36
  'legacy' => '1.3.27',
37
  'classic' => '1.5.2',
@@ -63,9 +63,5 @@ if ( is_admin() ) {
63
  */
64
 
65
  add_action( 'init', function() {
66
- $old_version = get_option( 'easy_fancybox_version', 0 );
67
-
68
- if ( 0 !== version_compare( EASY_FANCYBOX_VERSION, $old_version ) ) {
69
- include EASY_FANCYBOX_DIR . '/upgrade.php';
70
- }
71
  } );
5
  Description: Easily enable the FancyBox jQuery light box on all media file links. Also supports iframe, inline content and well known video hosts.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
+ Version: 1.9.3
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
31
  * CONSTANTS
32
  **************/
33
 
34
+ define( 'EASY_FANCYBOX_VERSION', '1.9.3' );
35
  define( 'FANCYBOX_VERSIONS', array(
36
  'legacy' => '1.3.27',
37
  'classic' => '1.5.2',
63
  */
64
 
65
  add_action( 'init', function() {
66
+ 0 === version_compare( EASY_FANCYBOX_VERSION, get_option( 'easy_fancybox_version', 0 ) ) || include EASY_FANCYBOX_DIR . '/upgrade.php';
 
 
 
 
67
  } );
inc/class-easyfancybox-admin.php CHANGED
@@ -435,7 +435,11 @@ class easyFancyBox_Admin {
435
 
436
  if (
437
  class_exists( 'easyFancyBox_Advanced' ) &&
438
- ( ! defined( 'easyFancyBox_Advanced::VERSION' ) || version_compare( easyFancyBox_Advanced::VERSION, self::$compat_pro_min, '<' ) )
 
 
 
 
439
  ) {
440
  self::$do_compat_warning = true;
441
  }
435
 
436
  if (
437
  class_exists( 'easyFancyBox_Advanced' ) &&
438
+ (
439
+ ( ! defined( 'easyFancyBox_Advanced::VERSION' ) && ! defined( 'EASY_FANCYBOX_PRO_VERSION' ) ) ||
440
+ ( defined( 'easyFancyBox_Advanced::VERSION' ) && version_compare( easyFancyBox_Advanced::VERSION, self::$compat_pro_min, '<' ) ) ||
441
+ ( defined( 'EASY_FANCYBOX_PRO_VERSION' ) && version_compare( EASY_FANCYBOX_PRO_VERSION, self::$compat_pro_min, '<' ) )
442
+ )
443
  ) {
444
  self::$do_compat_warning = true;
445
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravan
4
  Tags: fancybox, lightbox, gallery, image, photo, video, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 6.1-RC1
7
- Stable tag: 1.9.2
8
 
9
  Easily enable the FancyBox light box on just about all media links. Multi-Site compatible. Supports iframe, inline content and well known video hosts.
10
 
@@ -36,6 +36,7 @@ Also supports:
36
  - Image maps (see [instructions](https://premium.status301.com/knowledge-base/easy-fancybox/image-maps/))
37
  - WordPress menu items (see [instructions in the FAQs](https://wordpress.org/plugins/easy-fancybox#can%20i%20make%20a%20menu%20item%20open%20in%20a%20fancybox%20overlay%20%3F))
38
  - Jetpack Infinite Scroll
 
39
 
40
  Additional features:
41
 
@@ -76,32 +77,9 @@ If you're happy with this plugin as it is, please consider writing a quick [rati
76
 
77
  If you wish to help build this plugin, you're very welcome to [translate Easy FancyBox into your language](https://translate.wordpress.org/projects/wp-plugins/easy-fancybox/) or contribute bug reports, feature suggestions and/or code on [Github](https://github.com/RavanH/easy-fancybox/).
78
 
79
- **KNOWN ISSUES**
80
 
81
- = General =
82
-
83
- - **Outbound click or Download tracking** in some of the stats plugins can interfere with FancyBox. Disable such options or exclude links manually with a class if possible (see instructions for SlimStat below)
84
- - Most plugins and themes that already include a light box script. Continue reading to see if you are using one of the know ones or follow the troubleshooting steps to find out what is conflicting on your site.
85
- - Any theme that is missing the obligatory `<?php wp_footer();?>` call in the footer.php template.
86
- - When showing an iframe as inline content in FancyBox -- not advised, use fancybox-iframe instead! -- the iframe will become blank after opening and closing it. The solution is to link directly to the iframe source and use `class="fancybox-iframe"` instead.
87
-
88
- = Plugin conflicts =
89
-
90
- - Google Translate plugins like **GTranslate**, **Weglot** and **Google Language Translator** cause the light box to be off-center, pushed downward for logged-in users (with admin bar). A work-around: add `.admin-bar #fancybox-outer{margin-top:-32px}` to Custom CSS in your theme Customizer.
91
- - **WP Slimstat** and **Matomo/Piwik** with Track Outbound Clicks enabled, will break the light box effect on some browsers. Adding `fancybox` (or any of the other classes like `fancybox-youtube,fancybox-iframe,fancybox-inline` depending on which media should be displayed in FancyBox) to the Do Not Track field is reported to solve the issue. Slimstat also might interfere with the YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
92
- - **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
93
- - Both the **uBillBoard** and **Camera slideshow** have their own easing script hard-coded which conflicts with the one in Easy FancyBox. The only way around the conflict is to set both the Easing In and Easing Out options on your Settings > Media page to **Swing**.
94
- - **Wordpress Firewall 2** blocks access to image files needed for proper display of the FancyBox overlay in older IE and other non-css3 browsers.
95
- - **WordPress Amazon Associate**: A script provided by Amazon and the FancyBox script are incompatible. Disabling _Product Preview_ in the **WP - Amazon > Settings** page should work around the issue.
96
- - **WP Supersized** uses the Animate Enhanced jQuery extension which causes a conflict with the Easing extension used by FancyBox resulting in a 0px sized lightbox frame and/or some kind of positioning issue with auto-centering.
97
-
98
- = Theme conflicts =
99
-
100
- - Older versions of **Elegant Themes** have FancyBox integrated in a hard-coded way, making them incompatible with Easy FancyBox. In the latest versions of these themes, there is an option to disable the included FancyBox. Use this option to make your theme compatible with Easy FancyBox :)
101
- - The **Mystique** theme has two options called "Lightbox" and "Optimize website for faster loading" that will break Easy FancyBox. Disable both in Mystique's options > Advanced.
102
- - **Imbalance** and other themes that uses the Photo Galleria jQuery extension: turn of the JSGallery option.
103
- - Themes like **Envisioned**, **Chameleon** and many others have FancyBox baked in. There is no solution other than stripping the theme of all FancyBox related code or better: disable the plugin and use the theme provided version...
104
- - Themes based on the **Thesis** framework might see issues in IE 8, for which [a hack has been proposed](https://voidzonemedia.com/solutions/thesis-ie8-remove-ie7-emulation/)
105
 
106
 
107
  == Installation ==
@@ -130,12 +108,14 @@ Not happy with the default settings? Check out the new options under **Settings
130
 
131
  = Wordpress MU / WordPress 3+ in Multi Site mode =
132
 
133
- Same as above but do a **Network Activate** to activate FancyBox image overlays on each site on your network. No database tables are created or manipulated and no activation hook needs to be run for it to function with default settings.
134
 
 
135
 
136
- == Frequently Asked Questions ==
137
 
138
- = BASIC =
 
139
 
140
  = What's FancyBox? =
141
 
@@ -161,205 +141,12 @@ There is no new settings page but there are many options you can change. You wil
161
 
162
  = Help! It does not work... =
163
 
164
- Please follow the trouble shooting steps near the end of the plugin description above to determine the cause. If that fails, ask for support on the [Easy FancyBox WordPress forum](https://wordpress.org/support/plugin/easy-fancybox) or go to the [development site](https://status301.net/wordpress-plugins/easy-fancybox/)
165
-
166
-
167
- = ADVANCED =
168
-
169
- = Will a WordPress gallery be displayed in a FancyBox overlay? =
170
-
171
- Yes, but _only_ if you used the option **Link To: Media File** when inserting the gallery! The gallery quicktag/shortcode should look something like `[ gallery link="file" ]`.
172
-
173
-
174
- = The lightbox does not look good on mobile devices. What can I do about that? =
175
-
176
- The original FancyBox 1.3.4 script was not developed with mobile devices in mind and although the version used in this plugin has some adaptations for mobile devices, it might still be less optimal for very small screens. The only way around this issue is currently to disable FancyBox for small screen sizes on **Settings > Media** in the section **Miscellaneous > Browser & device compatibility**.
177
-
178
-
179
- = Can I make a slideshow from my gallery? =
180
-
181
- In the [Pro extension](https://premium.status301.com/downloads/easy-fancybox-pro/), there is an Advanced option called "Gallery Auto-rotation" for that.
182
-
183
-
184
- = Can I exclude images or other links from auto-attribution? =
185
-
186
- Yes. All links with class **nolightbox** that would normally get auto-enabled, will be excluded from opening in a FancyBox overlay.
187
-
188
- `<a href="url/to/fullimg.jpg" class="nolightbox"><img src="url/to/thumbnail.jpg" /></a>`
189
-
190
-
191
- = Can NextGEN Gallery work with Easy FancyBox? =
192
-
193
- Yes, see [instructions](https://premium.status301.com/knowledge-base/easy-fancybox/nextgen-gallery/)
194
-
195
-
196
- = Can I use ONE thumbnail to open a complete gallery? =
197
-
198
- Yes, see [instructions](https://premium.status301.com/knowledge-base/easy-fancybox/one-thumbnail-to-open-a-complete-gallery-slideshow/)
199
-
200
-
201
- = Can I play YouTube, Dailymotion and Vimeo movies in a FancyBox overlay? =
202
-
203
- Yes. Simply create a link using the Share URL (the full Page URL, the Short URL with or without options like HD etc.) to the YouTube/Vimeo/Dailymotion page in your post content. If you have Auto-detect enabled, the plugin will take care of the rest for you! :)
204
-
205
- If you have disabled Auto-detection, give the link a class attribute like `class="fancybox-youtube"` for Youtube, `class="fancybox-vimeo"` for Vimeo and `class="fancybox-dailymotion"` for Dailymotion, to manually enable FancyBox for it.
206
-
207
- Both YouTube and Vimeo movies can be made to play immediately after opening by adding the paramer `autoplay=1` to the URL. For example, a short-url YouTube link that should play in HD mode, have the full screen button and auto-start on open, would look like:
208
- `
209
- <a href="https://youtu.be/N_tONWXYviM?hd=1&fs=1&autoplay=1">text or thumbnail</a>
210
- `
211
-
212
-
213
- = Can I show a Youtube playlist in FancyBox? =
214
-
215
- Yes, just go to Youtube page of any movie that's in the playlist and use the Share button to get the share URL just like with single movies, but this time place a checkmark at the 'Share with playlist' option.
216
-
217
-
218
- = Can I link a NextGEN thumbnail to a Youtube movie in FancyBox? =
219
-
220
- Yes, see [instructions](https://premium.status301.com/knowledge-base/easy-fancybox/nextgen-gallery/)
221
-
222
-
223
- = Can I create a gallery of Youtube thumbnails which open in FancyBox? =
224
-
225
- You could do this manually by uploading individual thumbnails that you can retrieve by using the unique movie ID in these URLs for three different sizes:
226
- `
227
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/default.jpg
228
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/mqdefault.jpg
229
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/hqdefault.jpg
230
- `
231
- Other locations might be
232
- `
233
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/0.jpg (same as hqdefault.jpg)
234
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/1.jpg
235
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/2.jpg
236
- https://img.youtube.com/vi/UNIQUE-MOVIE-ID/3.jpg
237
- https://img.youtube.com/vi_webp/UNIQUE-MOVIE-ID/0.webp (same as hqdefault.webp)
238
- etc...
239
-
240
- `
241
-
242
- But an easier method is this one, shared by Shashank Shekhar (thanks!) :
243
-
244
- To create Youtube thumbnail galleries, install https://wordpress.org/plugins/youtube-simplegallery/ and set the 'Effect' option to fancybox. Then disable Youtube autodetection on Settings > Media.
245
-
246
-
247
- = Can I display web pages or HTML files in a FancyBox overlay? =
248
-
249
- Yes. First, enable the iFrame option on Settings > Media. Then, in your post or page content create a link to any web page or .htm(l) file in your content. Then switch to the Text tab in the Classic Editor or to Edit as HTML (under More options in the block menu) in Gutenberg, find the link `<a ... >` tag and give it a `class="fancybox-iframe"` attribute.
250
-
251
- Note: Not all external web pages are allowed to be embedded in an iframe and may be blocked by a server response header or script. The result will be either an empty/blank light box or the target page "breaking out" of the light box and loading in the main browser tab.
252
 
253
 
254
- = Can I show PDF files in a FancyBox overlay? =
255
 
256
- Yes. Just place a link _with the URL ending in .pdf_ to your Portable Document file in the page content.
257
-
258
- If you don't have *Auto-detect* checked under **PDF** on Settings > Media admin page, you will need to add `class="fancybox-pdf"` (to force pdf content recognition) to the link to enable FancyBox for it.
259
-
260
-
261
- = How do I show content with different sizes? =
262
-
263
- FancyBox tries to detect the size of the content automatically but if it can not find a size, it will default to the settings for that particular content type as set on the Settings > Media page.
264
-
265
- The **[Pro extension](https://premium.status301.com/downloads/easy-fancybox-pro/)** provides an extra option to allow you to manually override this by defining the width and height wrapped in curly braces in the class attribute of the link itself. Make sure the option "Include the Metadata jQuery extension script..." under FancyBox | Miscellaneous | Advanced on Settings > Media is enabled.
266
-
267
- For example, an SVG file with different size:
268
-
269
- `
270
- <a class="fancybox-svg {width:1024,height:675}" href="_your_svg_"></a>
271
- `
272
-
273
- = How can I display INLINE content in a FancyBox overlay? =
274
-
275
- Follow the [Inline content instructions](https://premium.status301.com/show-inline-content-in-a-light-box/).
276
-
277
-
278
- = Can I make an image or hidden content to pop up in FancyBox on page load? =
279
-
280
- Yes. A link that has the ID **fancybox-auto** (Note: there can be only ONE link like that on a page!) will be triggered automatically on page load.
281
-
282
- Use the instructions above for inline content but this time give the link also `id="fancybox-auto"` (leave the class too) and remove the anchor text to hide it. Now the hidden div content will pop up automatically when a visitor opens the page.
283
-
284
- Same can be done with any other media or iframe link! But please remember there can be only **one** item using the ID fancybox-auto per page...
285
-
286
-
287
- = Can I have a modal window? =
288
-
289
- Yes, just create a hidden inline content light box (can be auto-popup) as described above and give the link an extra class "modal". This will remove all options to close the light box, like the close button, an overlay click or escape key.
290
-
291
- This means there is NO option to close the light box, unless you create a link like this inside the hidden inline content div:
292
-
293
- `
294
- <a href="" class="fancybox-close">Accept</a>
295
- `
296
-
297
-
298
- = Can I make a popup open from an image map? =
299
-
300
- Yes, see [instructions](https://premium.status301.com/knowledge-base/easy-fancybox/image-maps/)
301
-
302
-
303
- = Can I make a menu item open in a FancyBox overlay? =
304
-
305
- Yes. But it depends on you theme what you need to do to make it work. If you are on WordPress 3+ and your theme supports the new internal Custom Menu feature or if you are using a custom menu in a sidebar widget, it's easy:
306
-
307
- 1. Go to Settings > Media and enable FancyBox iFrame support.
308
- 2. Go to Appearance > Menus and open the little tab "Screen Options" in the top-right corner.
309
- 3. Enable the option "CSS Classes" under Advanced menu properties.
310
- 4. Now give the menu item you want to open in a FancyBox iframe the class `fancybox-iframe`.
311
-
312
- If you are on an older version of WordPress or if you cannot use WP's Menus, you will need to do some heavy theme hacking to get it to work. Basically, what you need to achieve is that the menu item you want opened in a lightbox overlay, should get a `class="fancybox-iframe"` attribute.
313
-
314
-
315
- = How can I make AJAX loaded content be seen by FancyBox? =
316
-
317
- Easy FancyBox initially scans the page source for media links on the "Document Loaded" event. This means right after the page source has become available to and read by the browser. When content is added or modified through AJAX (meaning after initial page load) by your theme or another plugin, then FancyBox will not be aware of any media links in that new content.
318
-
319
- To make Easy FancyBox rescan the updated page source after content has been modified though AJAX, there is an event listener available. This event is also triggered by the Jetpack Infinite Scroll module. To use this event, you'll need to modify the theme or other plugin script that handles the AJAX calls.
320
-
321
- You can trigger the event like this:
322
- `
323
- jQuery(document.body).trigger('post-load');
324
- `
325
-
326
- Note: It completely depends on the AJAX script where this code snippet should be placed. Optimally, right _after_ the DOM modification where content is added or modified. In most cases at the end of the AJAX Success handler.
327
-
328
-
329
- = Is Easy FancyBox multi-site compatible? =
330
-
331
- Yes. Designed to work with **Network Activate** and does not require manual activation on each site in your network.
332
-
333
-
334
- = TROUBLE SHOOTING =
335
-
336
- If, after activation, your images do not open in a FancyBox overlay, there are several possible reasons. Some are easily solved, others are more difficult. Follow these basic checks to make sure everything is in place:
337
-
338
- = Basic checks =
339
-
340
- 1. Make sure that thumbnail images are linked *directly* to their larger counterpart, not to a dynamic WordPress page that includes the larger image. This means when you insert an image in your posts or pages, you need to select **Media File** at the Link option instead of Page URL. You'll have to manually edit your old posts if you have always inserted images with `Page URL` before, FancyBox cannot do this for you.
341
- 1. Make sure you have all the needed media and their *Auto-detect* options activated on your **Settings > Media** admin page. If you are using images in other formats that JPG, GIF or PNG, you need to add the extensions to the Auto-detect field for Images. Please note: The image file names must actaully _end_ with that extension! This means that if you have an image file that (for example) has _no_ extension (does not end with .jpg or any other) even if is in JPEG compressed format, the FancyBox will not be able to detect is as an image. You will need to manually give those links the class `fancybox image` to trigger FancyBox.
342
-
343
- = General trouble shooting steps =
344
-
345
- 1. Switch off all other plugins and switch your sites appearance to the default Twenty Seventeen theme. FancyBox should work now. If so, continue with the next step. If not, re-install the plugin and verify the basic steps above.
346
- 1. Switch back to your original theme and check if FancyBox is still working. If so, continue with the next step. If not, See the Theme Incompatibility checks below.
347
- 1. One by one, switch each plugin that you had running before back ON. Keep checking to see at which point FancyBox starts failing and you will hve found the conflicting plugin.
348
-
349
- = Theme Incompatibility checks =
350
-
351
- 1. See known theme conflicts above first, then continue with these following steps.
352
- 1. Make sure your theme is capable of placing the needed javascript and css in the page header and footer. Open any page on your site and view the source code by right-clicking on an empty section and selecting 'View source...' (or similar). There you will need to check of there are any references to javascript files like `jquery.fancybox.min.js?ver=x.x.x` near the closing `</body>` tag. There should also be a `easy-fancybox.min.css?ver=x.x.x` in the head section... If it's not there, your theme is really out of date. Consider switching to a new theme fast!
353
- 1. Make sure that your theme does not load the main jQuery library file more than once. Look for references to javascript files like `jquery.js?ver=x.x.x` or `jquery.min.js` in the page source code. If you find more than one, try to find out in which theme template file that second reference is hard-coded and remove that line. Usually in header.php or footer.php
354
- 1. Check if your theme loads another or the same lightbox script. Look for references to Thickbox, Prettyphoto, Lightbox2, Colorbox or FancyBox script files or code. These are very likely to cause the incompatibility and you will either have to remove these by hacking your theme or switch to another theme.
355
-
356
- If you still do not get to see your images in FancyBox, ask on the [Easy FancyBox WordPress forum](https://wordpress.org/tags/easy-fancybox) or go to the [development site](https://status301.net/wordpress-plugins/easy-fancybox/)
357
-
358
- = Plugin Incompatibility checks =
359
-
360
- 1. If you followed the general trouble shooting steps above, you should now be aware of which plugin is conflicting whith Easy FancyBox. See known plugin conflicts above first. If the plugin and its solution are not mentioned there, continue with the following steps.
361
- 1. Make sure that the plugins do not make the main jQuery library file load more than once. Look for references to javascript files like `jquery.js?ver=x.x.x` or `jquery.min.js` in the page source code. If you find more than one, try to find out where that comes from.
362
- 1. Check if your theme loads another or the same lightbox script or any other of the needed jQuery extensions like jquery.easing or jquery.mousewheel. Look for references to Thickbox, Prettyphoto, Lightbox2, Colorbox or FancyBox script files or code. These are very likely to cause the incompatibility and you will have to either find a setting in the other plugin to switch OFF the use of the conflicting script (possible in NextGEN for example, see under Advanced below) or choose between the two conflicting plugins.
363
 
364
 
365
  == Screenshots ==
@@ -371,17 +158,16 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
371
 
372
  == Upgrade Notice ==
373
 
374
- = 1.9.2 =
375
 
376
  Bugfix release.
377
 
378
  == Changelog ==
379
 
380
- = 1.9.2 =
 
381
  * FIX: overlay opacity ignored (classic)
382
  * FIX: onStart not a function (legacy)
383
-
384
- = 1.9.1 =
385
  * FIX: Passing event parameters failing
386
  * FIX: Case insesitive selectors failing
387
  * FIX: Admin message display issue
4
  Tags: fancybox, lightbox, gallery, image, photo, video, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 6.1-RC1
7
+ Stable tag: 1.9.3
8
 
9
  Easily enable the FancyBox light box on just about all media links. Multi-Site compatible. Supports iframe, inline content and well known video hosts.
10
 
36
  - Image maps (see [instructions](https://premium.status301.com/knowledge-base/easy-fancybox/image-maps/))
37
  - WordPress menu items (see [instructions in the FAQs](https://wordpress.org/plugins/easy-fancybox#can%20i%20make%20a%20menu%20item%20open%20in%20a%20fancybox%20overlay%20%3F))
38
  - Jetpack Infinite Scroll
39
+ - WordPress Multsite (see Installation instructions)
40
 
41
  Additional features:
42
 
77
 
78
  If you wish to help build this plugin, you're very welcome to [translate Easy FancyBox into your language](https://translate.wordpress.org/projects/wp-plugins/easy-fancybox/) or contribute bug reports, feature suggestions and/or code on [Github](https://github.com/RavanH/easy-fancybox/).
79
 
80
+ = Known conflicts & issues =
81
 
82
+ See [Easy FancyBox Troubleshooting](https://premium.status301.com/knowledge-base/easy-fancybox/troubleshooting/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
 
85
  == Installation ==
108
 
109
  = Wordpress MU / WordPress 3+ in Multi Site mode =
110
 
111
+ Install as above. You can activate the plugin per site, or network wide.
112
 
113
+ When activating the plugin per site, each site will have the Images media type activated and Easy FancyBox will immediately try opening image links in the light box.
114
 
115
+ When activated network wide with **Network Activate**, each sub-site will _not_ have any media type activated. The options will be there for individual site admins, ready to either activate or leave deactivated.
116
 
117
+
118
+ == Frequently Asked Questions ==
119
 
120
  = What's FancyBox? =
121
 
141
 
142
  = Help! It does not work... =
143
 
144
+ Please follow the [trouble shooting steps](https://premium.status301.com/knowledge-base/easy-fancybox/troubleshooting/) to determine the cause. If that fails, ask for support on the [Easy FancyBox WordPress forum](https://wordpress.org/support/plugin/easy-fancybox) or go to the [development site](https://status301.net/wordpress-plugins/easy-fancybox/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
 
146
 
147
+ = I have another question... =
148
 
149
+ See the advanced [Easy FancyBox FAQ's](https://premium.status301.com/knowledge-base/easy-fancybox/faqs/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
 
151
 
152
  == Screenshots ==
158
 
159
  == Upgrade Notice ==
160
 
161
+ = 1.9.3 =
162
 
163
  Bugfix release.
164
 
165
  == Changelog ==
166
 
167
+ = 1.9.3 =
168
+ * FIX: upgrade notice
169
  * FIX: overlay opacity ignored (classic)
170
  * FIX: onStart not a function (legacy)
 
 
171
  * FIX: Passing event parameters failing
172
  * FIX: Case insesitive selectors failing
173
  * FIX: Admin message display issue
upgrade.php CHANGED
@@ -10,8 +10,10 @@
10
  // Exit if not called from within WordPress.
11
  defined( 'ABSPATH' ) || exit();
12
 
 
 
13
  // Upgrade from 1.7 or older.
14
- if ( ! $old_version ) {
15
  delete_option( 'fancybox_PDFclassType' );
16
  }
17
 
10
  // Exit if not called from within WordPress.
11
  defined( 'ABSPATH' ) || exit();
12
 
13
+ $old_version = get_option( 'easy_fancybox_version', 0 );
14
+
15
  // Upgrade from 1.7 or older.
16
+ if ( 0 === $old_version ) {
17
  delete_option( 'fancybox_PDFclassType' );
18
  }
19