FancyBox for WordPress - Version 2.7.4

Version Description

  • Fixed: Little error tagging 2.7.3, a file didn't upload and broke options page.
  • Update: Language POT file
Download this release

Release Info

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

Code changes from version 2.7.3 to 2.7.4

Files changed (5) hide show
  1. fancybox.php +2 -2
  2. js/admin.js +11 -2
  3. lib/admin-tab-info.php +10 -45
  4. lib/admin-tab-support.php +15 -0
  5. readme.txt +5 -5
fancybox.php CHANGED
@@ -3,7 +3,7 @@
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.3
7
  Author: Jos&eacute; Pardilla
8
  Author URI: http://josepardilla.com/
9
 
@@ -22,7 +22,7 @@ define('FBFW_URL', WP_PLUGIN_URL . '/fancybox-for-wordpress');
22
  // When plugin is activated, update version, and set any new settings to default
23
  function mfbfw_install() {
24
 
25
- update_option('mfbfw_active_version', '2.7.3');
26
 
27
  add_option('mfbfw_showTitle', 'on');
28
  add_option('mfbfw_border', '');
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.4
7
  Author: Jos&eacute; Pardilla
8
  Author URI: http://josepardilla.com/
9
 
22
  // When plugin is activated, update version, and set any new settings to default
23
  function mfbfw_install() {
24
 
25
+ update_option('mfbfw_active_version', '2.7.4');
26
 
27
  add_option('mfbfw_showTitle', 'on');
28
  add_option('mfbfw_border', '');
js/admin.js CHANGED
@@ -3,15 +3,24 @@ jQuery(function(){
3
 
4
  // Tabs
5
  jQuery("#fbfwTabs").tabs();
 
 
 
 
 
 
 
 
 
6
 
7
  // Advanced Settings Switcher
8
  jQuery("#advOpsSwitch").click(function(){
9
- jQuery(".advOpts").toggle("slow");
10
  });
11
 
12
  // Troubleshooting & Settings Switcher
13
  jQuery("#troOpsSwitch").click(function(){
14
- jQuery(".troOpts").toggle("slow");
15
  });
16
 
17
  // Hide Custom Expresion textarea if not needed
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("#mfbfwd").hide();
10
+ });
11
+
12
+ jQuery("#show-mfbfwd").click(function(){
13
+ jQuery("#mfbfwd").show();
14
+ });
15
 
16
  // Advanced Settings Switcher
17
  jQuery("#advOpsSwitch").click(function(){
18
+ jQuery(".advOpts").toggle("slow");
19
  });
20
 
21
  // Troubleshooting & Settings Switcher
22
  jQuery("#troOpsSwitch").click(function(){
23
+ jQuery(".troOpts").toggle("slow");
24
  });
25
 
26
  // Hide Custom Expresion textarea if not needed
lib/admin-tab-info.php CHANGED
@@ -1,48 +1,13 @@
1
- <h2><?php _e('Info & Support', 'mfbfw'); ?></h2>
2
 
3
- <p><?php _e('<a href="http://fancy.klade.lv/home">FancyBox</a> developed by <a href="http://kac.klade.lv/">Janis Skarnelis</a>, ported to WordPress by <a href="http://moskis.net/">Jos&eacute; Pardilla</a>. Licensed under the <a target="_blank" href="http://en.wikipedia.org/wiki/MIT_License">MIT License</a>.', 'mfbfw'); ?></p>
4
 
5
- <p><?php _e('As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you want, since the default options should be a good start... :)', 'mfbfw'); ?></p>
6
-
7
- <ul style="list-style-type:disc;padding-left:15px;">
8
-
9
- <li><?php _e('If you have problems or questions about FancyBox, please start with these links: <a href="http://fancy.klade.lv/howto">How-To</a> & <a href="http://fancy.klade.lv/faq">FAQ</a>.<br />If that does not help, go to <a href="http://groups.google.com/group/fancybox">the FancyBox Google Group</a>, use the <strong>Search</strong> option, and if necesary, post your question.', 'mfbfw'); ?></li>
10
-
11
- <li><?php _e('If you are having trouble with this plugin try to localize the problem (switch your theme and/or deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings at the bottom of this page if necesary. If you still can not get the plugin to work, <a href="http://blog.moskis.net/downloads/plugins/fancybox-for-wordpress/">leave a comment here</a> explaining the problem.', 'mfbfw'); ?></li>
12
-
13
- </ul>
14
 
15
- <br /><small><em><?php _e('<strong>Note:</strong> Having a cache plugin may prevent changes from taking effect immidiately, if this happens clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></em></small><br /><br />
16
-
17
- <div style="background-color:#FFFFE0;border:1px solid #E6DB55;padding:0 .6em;margin:5px 15px 2px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;height:110px;float:left;text-align:center;width:200px">
18
- <p style="line-height:1.5em;"><?php _e('If you use FancyBox and like it, buy the author a beer!', 'mfbfw'); ?></p>
19
- <form id="donate_form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
20
- <input name="cmd" value="_donations" type="hidden">
21
- <input name="business" value="janis.skarnelis@gmail.com" type="hidden">
22
- <input name="item_name" value="FancyBox" type="hidden">
23
- <input name="amount" value="10.00" type="hidden">
24
- <input name="no_shipping" value="0" type="hidden">
25
- <input name="logo_custom" value="http://donate.png" type="hidden">
26
- <input name="no_note" value="1" type="hidden">
27
- <input name="currency_code" value="EUR" type="hidden">
28
- <input name="tax" value="0" type="hidden">
29
- <input name="lc" value="LV" type="hidden">
30
- <input name="bn" value="PP-DonationsBF" type="hidden">
31
- <input type="image" border="0" src="<?php echo FBFW_URL ?>/css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
32
- </form>
33
- </div>
34
-
35
- <div style="background-color:#FFFFE0;border:1px solid #E6DB55;padding:0 .6em;margin:5px 15px 2px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;height:110px;float:left;margin-left:10px;text-align:center;width:200px">
36
- <p style="line-height:1.5em;"><?php _e('The author of this WordPress Plugin also likes beer :P', 'mfbfw'); ?></p>
37
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
38
- <input type="hidden" name="cmd" value="_s-xclick"/>
39
- <input type="hidden" name="hosted_button_id" value="3878319"/>
40
- <input type="image" border="0" src="<?php echo FBFW_URL ?>/css/img/extra_donate.png" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
41
- <img height="1" width="1" border="0" alt="" src="https://www.paypal.com/es_ES/i/scr/pixel.gif" />
42
- </form>
43
- </div>
44
-
45
- <div style="background-color:#9DD1F2;border:1px solid #419ED9;padding:0 .6em;margin:5px 15px 2px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;height:110px;float:left;margin-left:10px;text-align:center;width:200px">
46
- <p style="line-height:1.5em;"><a href="http://twitter.com/moskis/"><?php _e('Follow me on Twitter for more WordPress Plugins and Themes', 'mfbfw'); ?></a></p>
47
- <img height="16" width="16" border="0" alt="" src="<?php echo FBFW_URL ?>/css/img/extra_twitter.png" />
48
- </div>
1
+ <h2><?php _e('Information', 'mfbfw'); ?></h2>
2
 
3
+ <p><?php _e('<a target="_blank" href="http://fancybox.net">FancyBox</a> developed by <a target="_blank" href="http://fancybox.net">Janis Skarnelis</a>, ported to WordPress by <a target="_blank" href="http://josepardilla.com/">Jos&eacute; Pardilla</a>. Licensed under the <a target="_blank" href="http://en.wikipedia.org/wiki/MIT_License">MIT License</a>.', 'mfbfw'); ?></p>
4
 
5
+ <p><?php _e('As you can see, this plugin has many options you can edit, but have no fear, you can leave everything as it is if you don\'t want to get your hands dirty, since the default options are a good start... :)', 'mfbfw'); ?></p>
 
 
 
 
 
 
 
 
6
 
7
+ <p><?php _e('If you do encounter any problems, still don\'t panic, check the Troubleshooting and Support sections for help.', 'mfbfw'); ?></p><br />
8
+
9
+ <small><em><?php _e('<strong>Note:</strong> Having a cache plugin may prevent changes from taking effect immidiately, if this happens clear cache after saving changes here or deactivate cache until you finish editing these options.', 'mfbfw'); ?></em></small><br /><br />
10
+
11
+ <h3><?php _e('What\'s New in this version?', 'mfbfw'); ?></h3>
12
+ <p><?php _e('To see what\'s new in this version check the <a href="http://wordpress.org/extend/plugins/fancybox-for-wordpress/changelog/">changelog</a> at WordPress Plugins Directory.', 'mfbfw'); ?></p>
13
+ <p><?php _e('For known bugs or things to come in future versions check the <a href="http://code.google.com/p/fancybox-for-wordpress/issues/list">issues list</a> at Google Code.', 'mfbfw'); ?></p><br /><br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/admin-tab-support.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h2><?php _e('Support', 'mfbfw'); ?></h2>
2
+
3
+ <h3>Help with Fancybox</h3>
4
+ <ul style="list-style-type:disc;padding-left:15px;">
5
+ <li><?php _e('If you have problems or questions about FancyBox itself (and not this WordPress plugin), please start with these links: <a target="_blank" href="http://fancybox.net/howto">How-To</a> & <a target="_blank" href="http://fancybox.net/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>
6
+ </ul>
7
+
8
+ <h3>Help with Fancybox for WordPress plugin</h3>
9
+ <ul style="list-style-type:disc;padding-left:15px;">
10
+ <li><?php _e('If you are having trouble with this plugin try to localize the problem (switch your theme and deactivate plugins until you find the source of the problem). You can also try the Troubleshooting settings of this plugin if necesary.', 'mfbfw'); ?></li>
11
+ <!--<li><?php _e('Try reverting these settings to their defaults with the button below.', 'mfbfw'); ?></li>-->
12
+ <li><?php _e('If you still can not get the plugin to work, <a target="_blank" href="http://wordpress.org/tags/fancybox-for-wordpress?forum_id=10#postform">write a post here</a> explaining the problem or take a look and the <a target="_blank" href="http://wordpress.org/tags/fancybox-for-wordpress?forum_id=10">already posted messages</a>.', 'mfbfw'); ?></li>
13
+ </ul>
14
+
15
+ <p style="font-weight:bold;color:red"><span style="color:#333"><?php _e('IMPORTANT:'); ?></span> <?php _e('When posting your problem please provide a link to your blog, and all relevant information you can, especially your theme, plugins, etc.'); ?></p>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.asmallorange.com/extras/donate/?id=10218
4
  Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures
5
  Requires at least: 2.8
6
  Tested up to: 3.0.4
7
- Stable tag: 2.7.3
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
 
@@ -17,10 +17,6 @@ You can easely customize almost anything you can think about fancybox: the borde
17
 
18
  By default, the plugin will use jQuery to apply [FancyBox](http://fancybox.net/) to ANY thumbnails that link directly to an image. This includes posts, the sidebar, etc, so you can activate it and it will be applied automatically.
19
 
20
- = Known Bugs =
21
- * Shadows not perfect on IE6/7
22
- * Options page doesn't on WordPress MU
23
-
24
  = Demo =
25
 
26
  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 ;) You can take a look at the code if you're curious, though.
@@ -29,6 +25,10 @@ You can see the plugin working on [my blog](http://blog.moskis.net/downloads/plu
29
 
30
  This changelog is for the WordPress plugin. For the Fancybox main changelog go to its [home page](http://fancybox.net/changelog/).
31
 
 
 
 
 
32
  = 2.7.3 =
33
  * Fixed: Settings not saving in some browsers. Thanks to [supertomate](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-save-changes-button-doesnt-submit-form?replies=7#post-1765041)
34
  * Fixed: JS being added to other plugins' configuration pages. Thanks to [Brandon Dove](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-theres-a-problem-with-is_plugin_page?replies=1#post-1888828)
4
  Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures
5
  Requires at least: 2.8
6
  Tested up to: 3.0.4
7
+ Stable tag: 2.7.4
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
 
17
 
18
  By default, the plugin will use jQuery to apply [FancyBox](http://fancybox.net/) to ANY thumbnails that link directly to an image. This includes posts, the sidebar, etc, so you can activate it and it will be applied automatically.
19
 
 
 
 
 
20
  = Demo =
21
 
22
  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 ;) You can take a look at the code if you're curious, though.
25
 
26
  This changelog is for the WordPress plugin. For the Fancybox main changelog go to its [home page](http://fancybox.net/changelog/).
27
 
28
+ = 2.7.4 =
29
+ * Fixed: Little error tagging 2.7.3, a file didn't upload and broke options page.
30
+ * Update: Language POT file
31
+
32
  = 2.7.3 =
33
  * Fixed: Settings not saving in some browsers. Thanks to [supertomate](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-save-changes-button-doesnt-submit-form?replies=7#post-1765041)
34
  * Fixed: JS being added to other plugins' configuration pages. Thanks to [Brandon Dove](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-theres-a-problem-with-is_plugin_page?replies=1#post-1888828)