jQuery Colorbox - Version 3.3

Version Description

(2010-05-05) = * NEW: Belorussian translation by Marcis G. * NEW: Russian translation by Drive2Life.ru * BUGFIX: Screenshot for Theme#10 is now displayed correctly. * NEW: Added Theme#11, a modified version of Theme#1. * BUGFIX: Theme#7,9 and 11 will work in Internet Explorer 6 now. * CHANGE: Minified CSS and JavaScript * NEW: registered link to plugin page in WordPress Meta widget

Download this release

Release Info

Developer techotronic
Plugin Icon 128x128 jQuery Colorbox
Version 3.3
Comparing to
See all releases

Code changes from version 3.2 to 3.3

Files changed (54) hide show
  1. includes/iefix-theme1.php +8 -19
  2. includes/iefix-theme11.php +23 -0
  3. includes/iefix-theme4.php +10 -21
  4. includes/iefix-theme6.php +23 -0
  5. includes/iefix-theme7.php +23 -0
  6. includes/iefix-theme9.php +23 -0
  7. includes/settings-page.php +2 -2
  8. jquery-colorbox.php +53 -74
  9. js/jquery-colorbox-auto-min.js +1 -0
  10. js/jquery-colorbox-hideFlash-min.js +1 -0
  11. js/jquery.colorbox.js +752 -0
  12. localization/jquery-colorbox-ar.mo +0 -0
  13. localization/jquery-colorbox-ar.po +33 -29
  14. localization/jquery-colorbox-be_BY.mo +0 -0
  15. localization/jquery-colorbox-be_BY.po +382 -0
  16. localization/jquery-colorbox-bs_BA.mo +0 -0
  17. localization/jquery-colorbox-bs_BA.po +32 -28
  18. localization/jquery-colorbox-de_DE.mo +0 -0
  19. localization/jquery-colorbox-de_DE.po +32 -28
  20. localization/jquery-colorbox-en_EN.mo +0 -0
  21. localization/jquery-colorbox-en_EN.po +32 -28
  22. localization/jquery-colorbox-fr_FR.mo +0 -0
  23. localization/jquery-colorbox-fr_FR.po +32 -28
  24. localization/jquery-colorbox-pt_BR.mo +0 -0
  25. localization/jquery-colorbox-pt_BR.po +32 -28
  26. localization/jquery-colorbox-ru_RU.mo +0 -0
  27. localization/jquery-colorbox-ru_RU.po +381 -0
  28. localization/jquery-colorbox-tr_TR.mo +0 -0
  29. localization/jquery-colorbox-tr_TR.po +32 -28
  30. readme.txt +69 -11
  31. screenshot-1.jpg +0 -0
  32. screenshot-11.jpg +0 -0
  33. screenshot-2.jpg +0 -0
  34. screenshot-3.jpg +0 -0
  35. screenshot-4.jpg +0 -0
  36. screenshot-5.jpg +0 -0
  37. screenshot-6.jpg +0 -0
  38. screenshot-7.jpg +0 -0
  39. screenshot-8.jpg +0 -0
  40. screenshot-9.jpg +0 -0
  41. themes/theme11/colorbox.css +43 -0
  42. themes/theme11/images/border.png +0 -0
  43. themes/theme11/images/controls.png +0 -0
  44. themes/theme11/images/internet_explorer/borderBottomCenter.png +0 -0
  45. themes/theme11/images/internet_explorer/borderBottomLeft.png +0 -0
  46. themes/theme11/images/internet_explorer/borderBottomRight.png +0 -0
  47. themes/theme11/images/internet_explorer/borderMiddleLeft.png +0 -0
  48. themes/theme11/images/internet_explorer/borderMiddleRight.png +0 -0
  49. themes/theme11/images/internet_explorer/borderTopCenter.png +0 -0
  50. themes/theme11/images/internet_explorer/borderTopLeft.png +0 -0
  51. themes/theme11/images/internet_explorer/borderTopRight.png +0 -0
  52. themes/theme11/images/loading.gif +0 -0
  53. themes/theme11/images/loading_background.png +0 -0
  54. themes/theme11/images/overlay.png +0 -0
includes/iefix-theme1.php CHANGED
@@ -11,24 +11,13 @@
11
?>
12
<!--[if IE]>
13
<style type="text/css">
14
- <?php /*
15
- The following fixes png-transparency for IE6.
16
- It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
17
-
18
- Since this method does not support CSS background-positioning, it is incompatible with CSS sprites.
19
- Colorbox preloads navigation hover classes to account for this.
20
-
21
- !! Important Note: AlphaImageLoader src paths are relative to the HTML document,
22
- while regular CSS background images are relative to the CSS document.
23
- */
24
- ?>
25
- .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
26
- .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
27
- .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
28
- .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
29
- .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
30
- .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
31
- .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
32
- .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
33
</style>
34
<![endif]-->
11
?>
12
<!--[if IE]>
13
<style type="text/css">
14
+ .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
15
+ .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
16
+ .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
17
+ .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
18
+ .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
19
+ .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
20
+ .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
21
+ .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
22
</style>
23
<![endif]-->
includes/iefix-theme11.php ADDED
@@ -0,0 +1,23 @@
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage jQuery Colorbox
5
+ *
6
+ * @since 3.1
7
+ * @author Arne Franken
8
+ *
9
+ * CSS fixes for IE
10
+ */
11
+ ?>
12
+ <!--[if IE]>
13
+ <style type="text/css">
14
+ .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
15
+ .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
16
+ .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
17
+ .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
18
+ .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
19
+ .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
20
+ .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
21
+ .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme11/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
22
+ </style>
23
+ <![endif]-->
includes/iefix-theme4.php CHANGED
@@ -11,24 +11,13 @@
11
?>
12
<!--[if IE]>
13
<style type="text/css">
14
- <?php /*
15
- The following fixes png-transparency for IE6.
16
- It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
17
-
18
- Since this method does not support CSS background-positioning, it is incompatible with CSS sprites.
19
- Colorbox preloads navigation hover classes to account for this.
20
-
21
- !! Important Note: AlphaImageLoader src paths are relative to the HTML document,
22
- while regular CSS background images are relative to the CSS document.
23
- */
24
- ?>
25
- .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
26
- .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
27
- .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
28
- .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
29
- .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
30
- .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
31
- .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
32
- .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
33
- </style>
34
- <![endif]-->
11
?>
12
<!--[if IE]>
13
<style type="text/css">
14
+ .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
15
+ .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
16
+ .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
17
+ .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
18
+ .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
19
+ .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
20
+ .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
21
+ .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
22
+ </style>
23
+ <![endif]-->
includes/iefix-theme6.php ADDED
@@ -0,0 +1,23 @@
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage jQuery Colorbox
5
+ *
6
+ * @since 3.1
7
+ * @author Arne Franken
8
+ *
9
+ * CSS fixes for IE
10
+ */
11
+ ?>
12
+ <!--[if IE]>
13
+ <style type="text/css">
14
+ .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
15
+ .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
16
+ .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
17
+ .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
18
+ .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
19
+ .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
20
+ .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
21
+ .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme6/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
22
+ </style>
23
+ <![endif]-->
includes/iefix-theme7.php ADDED
@@ -0,0 +1,23 @@
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage jQuery Colorbox
5
+ *
6
+ * @since 3.1
7
+ * @author Arne Franken
8
+ *
9
+ * CSS fixes for IE
10
+ */
11
+ ?>
12
+ <!--[if IE]>
13
+ <style type="text/css">
14
+ .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
15
+ .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
16
+ .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
17
+ .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
18
+ .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
19
+ .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
20
+ .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
21
+ .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme7/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
22
+ </style>
23
+ <![endif]-->
includes/iefix-theme9.php ADDED
@@ -0,0 +1,23 @@
1
+ <?php
2
+ /**
3
+ * @package Techotronic
4
+ * @subpackage jQuery Colorbox
5
+ *
6
+ * @since 3.1
7
+ * @author Arne Franken
8
+ *
9
+ * CSS fixes for IE
10
+ */
11
+ ?>
12
+ <!--[if IE]>
13
+ <style type="text/css">
14
+ .cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
15
+ .cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
16
+ .cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
17
+ .cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
18
+ .cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
19
+ .cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
20
+ .cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
21
+ .cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme9/images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
22
+ </style>
23
+ <![endif]-->
includes/settings-page.php CHANGED
@@ -80,7 +80,7 @@
80
81
//change screenshot if new theme is selected
82
$("#jquery-colorbox-theme").change(function() {
83
- var src = $("option:selected", this).val().match(/\d#x2F;i);
84
if ( src != "" ){
85
var $imgTag = "<img src=\"" + "<?php echo JQUERYCOLORBOX_PLUGIN_URL; echo '/screenshot-' ; ?>" + src + ".jpg\" />";
86
$("#jquery-colorbox-theme_screenshot_image").empty().html($imgTag).fadeIn();
@@ -128,7 +128,7 @@
128
</th>
129
<td height="310px">
130
<div id="jquery-colorbox-theme_screenshot_image">
131
- <img src="<?php echo JQUERYCOLORBOX_PLUGIN_URL; echo '/screenshot-' ; preg_match('/\d#x2F;i',$this->colorboxSettings['colorboxTheme'],$matches); echo $matches[0] ?>.jpg"/>
132
</div>
133
</td>
134
</tr>
80
81
//change screenshot if new theme is selected
82
$("#jquery-colorbox-theme").change(function() {
83
+ var src = $("option:selected", this).val().match(/\d+#x2F;i);
84
if ( src != "" ){
85
var $imgTag = "<img src=\"" + "<?php echo JQUERYCOLORBOX_PLUGIN_URL; echo '/screenshot-' ; ?>" + src + ".jpg\" />";
86
$("#jquery-colorbox-theme_screenshot_image").empty().html($imgTag).fadeIn();
128
</th>
129
<td height="310px">
130
<div id="jquery-colorbox-theme_screenshot_image">
131
+ <img src="<?php echo JQUERYCOLORBOX_PLUGIN_URL; echo '/screenshot-' ; preg_match('/\d+#x2F;i',$this->colorboxSettings['colorboxTheme'],$matches); echo $matches[0] ?>.jpg"/>
132
</div>
133
</td>
134
</tr>
jquery-colorbox.php CHANGED
@@ -6,7 +6,7 @@
6
* Plugin Name: jQuery Colorbox
7
* Plugin URI: http://www.techotronic.de/plugins/jquery-colorbox/
8
* Description: Used to overlay images on the current page. Images in one post are grouped automatically.
9
- * Version: 3.2
10
* Author: Arne Franken
11
* Author URI: http://www.techotronic.de/
12
* License: GPL
@@ -19,21 +19,21 @@
19
?>
20
<?php
21
//define constants
22
- define('JQUERYCOLORBOX_VERSION', '3.2');
23
24
- if (! defined('JQUERYCOLORBOX_PLUGIN_BASENAME')) {
25
define('JQUERYCOLORBOX_PLUGIN_BASENAME', plugin_basename(__FILE__));
26
}
27
- if (! defined('JQUERYCOLORBOX_PLUGIN_NAME')) {
28
define('JQUERYCOLORBOX_PLUGIN_NAME', trim(dirname(JQUERYCOLORBOX_PLUGIN_BASENAME), '/'));
29
}
30
- if (! defined('JQUERYCOLORBOX_NAME')) {
31
define('JQUERYCOLORBOX_NAME', 'jQuery Colorbox');
32
}
33
- if (! defined('JQUERYCOLORBOX_TEXTDOMAIN')) {
34
define('JQUERYCOLORBOX_TEXTDOMAIN', 'jquery-colorbox');
35
}
36
- if (! defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
37
if (is_dir(WPMU_PLUGIN_DIR)) {
38
// WP_MU plugin
39
define('JQUERYCOLORBOX_PLUGIN_DIR', WPMU_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
@@ -42,29 +42,29 @@ if (! defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
42
define('JQUERYCOLORBOX_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
43
}
44
}
45
- if (! defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
46
if (is_dir(WPMU_PLUGIN_DIR)) {
47
define('JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . MUPLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
48
} else {
49
define('JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . PLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
50
}
51
}
52
- if (! defined('JQUERYCOLORBOX_PLUGIN_URL')) {
53
if (is_dir(WPMU_PLUGIN_DIR)) {
54
define('JQUERYCOLORBOX_PLUGIN_URL', WPMU_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
55
} else {
56
define('JQUERYCOLORBOX_PLUGIN_URL', WP_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
57
}
58
}
59
- if (! defined('JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR')) {
60
define('JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR', JQUERYCOLORBOX_PLUGIN_DIR . '/localization');
61
}
62
- if (! defined('JQUERYCOLORBOX_SETTINGSNAME')) {
63
define('JQUERYCOLORBOX_SETTINGSNAME', 'jquery-colorbox_settings');
64
}
65
66
class jQueryColorbox {
67
-
68
var $colorboxThemes = array();
69
70
var $colorboxUnits = array();
@@ -88,6 +88,7 @@ class jQueryColorbox {
88
load_plugin_textdomain(JQUERYCOLORBOX_TEXTDOMAIN, false, '/jquery-colorbox/localization/');
89
90
add_action('wp_head', array(& $this, 'buildWordpressHeader'));
91
add_action('admin_post_jQueryColorboxDeleteSettings', array(& $this, 'jQueryColorboxDeleteSettings'));
92
add_action('admin_post_jQueryColorboxUpdateSettings', array(& $this, 'jQueryColorboxUpdateSettings'));
93
// add options page
@@ -115,11 +116,11 @@ class jQueryColorbox {
115
'theme7' => __('Theme #7', JQUERYCOLORBOX_TEXTDOMAIN),
116
'theme8' => __('Theme #8', JQUERYCOLORBOX_TEXTDOMAIN),
117
'theme9' => __('Theme #9', JQUERYCOLORBOX_TEXTDOMAIN),
118
- 'theme10' => __('Theme #10', JQUERYCOLORBOX_TEXTDOMAIN)
119
);
120
121
- $dummyThemeNumberArray = array (
122
- __('Theme #11', JQUERYCOLORBOX_TEXTDOMAIN),
123
__('Theme #12', JQUERYCOLORBOX_TEXTDOMAIN),
124
__('Theme #13', JQUERYCOLORBOX_TEXTDOMAIN),
125
__('Theme #14', JQUERYCOLORBOX_TEXTDOMAIN),
@@ -139,59 +140,26 @@ class jQueryColorbox {
139
'none' => __('none', JQUERYCOLORBOX_TEXTDOMAIN)
140
);
141
142
- // Create array of default settings
143
- $this->colorboxDefaultSettings = array(
144
- 'jQueryColorboxVersion' => JQUERYCOLORBOX_VERSION,
145
- 'colorboxTheme' => 'theme1',
146
- 'maxWidth' => 'false',
147
- 'maxWidthValue' => '',
148
- 'maxWidthUnit' => '%',
149
- 'maxHeight' => 'false',
150
- 'maxHeightValue' => '',
151
- 'maxHeightUnit' => '%',
152
- 'height' => 'false',
153
- 'heightValue' => '',
154
- 'heightUnit' => '%',
155
- 'width' => 'false',
156
- 'widthValue' => '',
157
- 'widthUnit' => '%',
158
- 'autoColorbox' => false,
159
- 'autoColorboxGalleries' => false,
160
- 'slideshow' => false,
161
- 'slideshowAuto' => false,
162
- 'scalePhotos' => false,
163
- 'slideshowSpeed' => '2500',
164
- 'opacity' => '0.85',
165
- 'preloading' => false,
166
- 'transition' => 'elastic',
167
- 'speed' => '350',
168
- 'overlayClose' => false,
169
- 'autoHideFlash' => false,
170
- 'colorboxWarningOff' => false
171
- );
172
-
173
// Create the settings array by merging the user's settings and the defaults
174
$usersettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
175
- $this->colorboxSettings = wp_parse_args($usersettings, jQueryColorbox::jQueryColorboxDefaultSettings());
176
177
// Enqueue the theme in wordpress
178
if (empty($this->colorboxThemes[$this->colorboxSettings['colorboxTheme']])) {
179
- $defaultArray = jQueryColorbox::jQueryColorboxDefaultSettings();
180
$this->colorboxSettings['colorboxTheme'] = $defaultArray['colorboxTheme'];
181
}
182
if (!is_admin()) {
183
- wp_register_style('colorbox-' . $this->colorboxSettings['colorboxTheme'], plugins_url('themes/' . $this->colorboxSettings['colorboxTheme'] . '/colorbox.css', __FILE__), array(), '1.3.6', 'screen');
184
wp_enqueue_style('colorbox-' . $this->colorboxSettings['colorboxTheme']);
185
- }
186
-
187
- // enqueue javascripts in wordpress
188
- if (!is_admin()) {
189
wp_enqueue_script('colorbox', plugins_url('js/jquery.colorbox-min.js', __FILE__), array('jquery'), '1.3.6');
190
- if($this->colorboxSettings['autoColorbox']) {
191
- wp_enqueue_script('colorbox-auto', plugins_url('js/jquery-colorbox-auto.js', __FILE__), array('colorbox'), '3.1');
192
}
193
if ($this->colorboxSettings['autoHideFlash']) {
194
- wp_enqueue_script('colorbox-hideflash', plugins_url('js/jquery-colorbox-hideFlash.js', __FILE__), array('colorbox'), '3.1');
195
}
196
}
197
}
@@ -199,10 +167,21 @@ class jQueryColorbox {
199
//jQueryColorbox()
200
201
/**
202
- * ugly way to make the images Colorbox-ready by adding the necessary CSS class.
203
*
204
* function is called for every page or post rendering.
205
- *
206
* unfortunately, Wordpress does not offer a convenient way to get certain elements from the_content,
207
* so I had to do this by regexp replacement...
208
*
@@ -210,7 +189,7 @@ class jQueryColorbox {
210
* @access public
211
* @author Arne Franken
212
*
213
- * @param the_content or the_excerpt
214
* @return replaced content or excerpt
215
*/
216
function addColorboxGroupIdToImages($content) {
@@ -220,13 +199,13 @@ class jQueryColorbox {
220
$post;
221
// match all img tags with this pattern
222
$imgPattern = "/<img([^\>]*?)>/i";
223
- if ( preg_match_all ( $imgPattern , $content , $imgTags ) ) {
224
- foreach ( $imgTags[0] as $imgTag ) {
225
- if(!preg_match('/class/i',$imgTag)){
226
$pattern = $imgPattern;
227
$replacement = '<img class="colorbox-' . $post->ID . '" $1>';
228
}
229
- else{
230
$pattern = "/<img(.*?)class=('|\")([A-Za-z0-9 \/_\.\~\:-]*?)('|\")([^\>]*?)>/i";
231
$replacement = '<img$1class=$2$3 colorbox-' . $post->ID . '$4$5>';
232
}
@@ -242,6 +221,7 @@ class jQueryColorbox {
242
243
/**
244
* Add colorbox-CSS-Class to WP Galleries
245
* If wp_get_attachment_image() is called, filters registered for the_content are not applied on the img-tag.
246
* So we'll need to manipulate the class attribute separately.
247
*
@@ -312,15 +292,13 @@ class jQueryColorbox {
312
?>
313
<!-- <?php echo JQUERYCOLORBOX_NAME ?> <?php echo JQUERYCOLORBOX_VERSION ?> | by Arne Franken, http://www.techotronic.de/ -->
314
<?php
315
- // include CSS fixes for IE for certain themes
316
- if ($this->colorboxSettings['colorboxTheme'] == 'theme1') {
317
- include_once 'includes/iefix-theme1.php';
318
- } elseif ($this->colorboxSettings['colorboxTheme'] == 'theme4') {
319
- include_once 'includes/iefix-theme4.php';
320
- }
321
-
322
- // include Colorbox Javascript
323
- include_once 'includes/colorbox-javascript.php';
324
?>
325
<!-- <?php echo JQUERYCOLORBOX_NAME ?> <?php echo JQUERYCOLORBOX_VERSION ?> | by Arne Franken, http://www.techotronic.de/ -->
326
<?php
@@ -441,7 +419,8 @@ class jQueryColorbox {
441
'speed' => '350',
442
'overlayClose' => false,
443
'autoHideFlash' => false,
444
- 'colorboxWarningOff' => false
445
);
446
}
447
@@ -541,7 +520,7 @@ class jQueryColorbox {
541
//if jQueryColorboxVersion does not exist, the plugin is a version prior to 2.0
542
//settings are incompatible with 2.0, restore default settings.
543
if (!array_key_exists('jQueryColorboxVersion', $jquery_colorbox_settings)) {
544
- if(!array_key_exists('scalePhotos', $jquery_colorbox_settings)){
545
//in case future versions require resetting the settings
546
//if($jquery_colorbox_settings['jQueryColorboxVersion'] < JQUERYCOLORBOX_VERSION)
547
update_option(JQUERYCOLORBOX_SETTINGSNAME, jQueryColorbox::jQueryColorboxDefaultSettings());
6
* Plugin Name: jQuery Colorbox
7
* Plugin URI: http://www.techotronic.de/plugins/jquery-colorbox/
8
* Description: Used to overlay images on the current page. Images in one post are grouped automatically.
9
+ * Version: 3.3
10
* Author: Arne Franken
11
* Author URI: http://www.techotronic.de/
12
* License: GPL
19
?>
20
<?php
21
//define constants
22
+ define('JQUERYCOLORBOX_VERSION', '3.3');
23
24
+ if (!defined('JQUERYCOLORBOX_PLUGIN_BASENAME')) {
25
define('JQUERYCOLORBOX_PLUGIN_BASENAME', plugin_basename(__FILE__));
26
}
27
+ if (!defined('JQUERYCOLORBOX_PLUGIN_NAME')) {
28
define('JQUERYCOLORBOX_PLUGIN_NAME', trim(dirname(JQUERYCOLORBOX_PLUGIN_BASENAME), '/'));
29
}
30
+ if (!defined('JQUERYCOLORBOX_NAME')) {
31
define('JQUERYCOLORBOX_NAME', 'jQuery Colorbox');
32
}
33
+ if (!defined('JQUERYCOLORBOX_TEXTDOMAIN')) {
34
define('JQUERYCOLORBOX_TEXTDOMAIN', 'jquery-colorbox');
35
}
36
+ if (!defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
37
if (is_dir(WPMU_PLUGIN_DIR)) {
38
// WP_MU plugin
39
define('JQUERYCOLORBOX_PLUGIN_DIR', WPMU_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
42
define('JQUERYCOLORBOX_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
43
}
44
}
45
+ if (!defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
46
if (is_dir(WPMU_PLUGIN_DIR)) {
47
define('JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . MUPLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
48
} else {
49
define('JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . PLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
50
}
51
}
52
+ if (!defined('JQUERYCOLORBOX_PLUGIN_URL')) {
53
if (is_dir(WPMU_PLUGIN_DIR)) {
54
define('JQUERYCOLORBOX_PLUGIN_URL', WPMU_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
55
} else {
56
define('JQUERYCOLORBOX_PLUGIN_URL', WP_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
57
}
58
}
59
+ if (!defined('JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR')) {
60
define('JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR', JQUERYCOLORBOX_PLUGIN_DIR . '/localization');
61
}
62
+ if (!defined('JQUERYCOLORBOX_SETTINGSNAME')) {
63
define('JQUERYCOLORBOX_SETTINGSNAME', 'jquery-colorbox_settings');
64
}
65
66
class jQueryColorbox {
67
+
68
var $colorboxThemes = array();
69
70
var $colorboxUnits = array();
88
load_plugin_textdomain(JQUERYCOLORBOX_TEXTDOMAIN, false, '/jquery-colorbox/localization/');
89
90
add_action('wp_head', array(& $this, 'buildWordpressHeader'));
91
+ add_action('wp_meta',array(& $this, 'renderMetaLink'));
92
add_action('admin_post_jQueryColorboxDeleteSettings', array(& $this, 'jQueryColorboxDeleteSettings'));
93
add_action('admin_post_jQueryColorboxUpdateSettings', array(& $this, 'jQueryColorboxUpdateSettings'));
94
// add options page
116
'theme7' => __('Theme #7', JQUERYCOLORBOX_TEXTDOMAIN),
117
'theme8' => __('Theme #8', JQUERYCOLORBOX_TEXTDOMAIN),
118
'theme9' => __('Theme #9', JQUERYCOLORBOX_TEXTDOMAIN),
119
+ 'theme10' => __('Theme #10', JQUERYCOLORBOX_TEXTDOMAIN),
120
+ 'theme11' => __('Theme #11', JQUERYCOLORBOX_TEXTDOMAIN)
121
);
122
123
+ $dummyThemeNumberArray = array(
124
__('Theme #12', JQUERYCOLORBOX_TEXTDOMAIN),
125
__('Theme #13', JQUERYCOLORBOX_TEXTDOMAIN),
126
__('Theme #14', JQUERYCOLORBOX_TEXTDOMAIN),
140
'none' => __('none', JQUERYCOLORBOX_TEXTDOMAIN)
141
);
142
143
// Create the settings array by merging the user's settings and the defaults
144
$usersettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
145
+ $defaultArray = jQueryColorbox::jQueryColorboxDefaultSettings();
146
+ $this->colorboxSettings = wp_parse_args($usersettings, $defaultArray);
147
148
// Enqueue the theme in wordpress
149
if (empty($this->colorboxThemes[$this->colorboxSettings['colorboxTheme']])) {
150
$this->colorboxSettings['colorboxTheme'] = $defaultArray['colorboxTheme'];
151
}
152
+
153
if (!is_admin()) {
154
+ // enqueue javascripts in wordpress
155
+ wp_register_style('colorbox-' . $this->colorboxSettings['colorboxTheme'], plugins_url('themes/' . $this->colorboxSettings['colorboxTheme'] . '/colorbox.css', __FILE__), array(), JQUERYCOLORBOX_VERSION, 'screen');
156
wp_enqueue_style('colorbox-' . $this->colorboxSettings['colorboxTheme']);
157
wp_enqueue_script('colorbox', plugins_url('js/jquery.colorbox-min.js', __FILE__), array('jquery'), '1.3.6');
158
+ if ($this->colorboxSettings['autoColorbox']) {
159
+ wp_enqueue_script('colorbox-auto', plugins_url('js/jquery-colorbox-auto-min.js', __FILE__), array('colorbox'), JQUERYCOLORBOX_VERSION);
160
}
161
if ($this->colorboxSettings['autoHideFlash']) {
162
+ wp_enqueue_script('colorbox-hideflash', plugins_url('js/jquery-colorbox-hideFlash-min.js', __FILE__), array('colorbox'), JQUERYCOLORBOX_VERSION);
163
}
164
}
165
}
167
//jQueryColorbox()
168
169
/**
170
+ * Renders plugin link in Meta widget
171
*
172
+ * @since 1.0
173
+ * @access private
174
+ * @author Arne Franken
175
+ */
176
+ function renderMetaLink() { ?>
177
+ <li><?php _e('Using',JQUERYCOLORBOX_TEXTDOMAIN);?> <a href="http://www.techotronic.de/plugins/jquery-colorbox/" title="<?php echo JQUERYCOLORBOX_NAME ?>"><?php echo JQUERYCOLORBOX_NAME ?></a></li>
178
+ <?php }
179
+
180
+ /**
181
+ * Add Colorbox group Id to images.
182
* function is called for every page or post rendering.
183
+ *
184
+ * ugly way to make the images Colorbox-ready by adding the necessary CSS class.
185
* unfortunately, Wordpress does not offer a convenient way to get certain elements from the_content,
186
* so I had to do this by regexp replacement...
187
*
189
* @access public
190
* @author Arne Franken
191
*
192
+ * @param $content
193
* @return replaced content or excerpt
194
*/
195
function addColorboxGroupIdToImages($content) {
199
$post;
200
// match all img tags with this pattern
201
$imgPattern = "/<img([^\>]*?)>/i";
202
+ if (preg_match_all($imgPattern, $content, $imgTags)) {
203
+ foreach ($imgTags[0] as $imgTag) {
204
+ if (!preg_match('/class/i', $imgTag)) {
205
$pattern = $imgPattern;
206
$replacement = '<img class="colorbox-' . $post->ID . '" $1>';
207
}
208
+ else {
209
$pattern = "/<img(.*?)class=('|\")([A-Za-z0-9 \/_\.\~\:-]*?)('|\")([^\>]*?)>/i";
210
$replacement = '<img$1class=$2$3 colorbox-' . $post->ID . '$4$5>';
211
}
221
222
/**
223
* Add colorbox-CSS-Class to WP Galleries
224
+ *
225
* If wp_get_attachment_image() is called, filters registered for the_content are not applied on the img-tag.
226
* So we'll need to manipulate the class attribute separately.
227
*
292
?>
293
<!-- <?php echo JQUERYCOLORBOX_NAME ?> <?php echo JQUERYCOLORBOX_VERSION ?> | by Arne Franken, http://www.techotronic.de/ -->
294
<?php
295
+ // include CSS fixes for IE for certain themes
296
+ preg_match('/\d+#x2F;i',$this->colorboxSettings['colorboxTheme'],$themeNumbers);
297
+ if(in_array($themeNumbers[0],array(1,4,6,7,9,11))){
298
+ include_once 'includes/iefix-theme'.$themeNumbers[0].'.php';
299
+ }
300
+ // include Colorbox Javascript
301
+ include_once 'includes/colorbox-javascript.php';
302
?>
303
<!-- <?php echo JQUERYCOLORBOX_NAME ?> <?php echo JQUERYCOLORBOX_VERSION ?> | by Arne Franken, http://www.techotronic.de/ -->
304
<?php
419
'speed' => '350',
420
'overlayClose' => false,
421
'autoHideFlash' => false,
422
+ 'colorboxWarningOff' => false,
423
+ 'colorboxMetaLinkOff' => false
424
);
425
}
426
520
//if jQueryColorboxVersion does not exist, the plugin is a version prior to 2.0
521
//settings are incompatible with 2.0, restore default settings.
522
if (!array_key_exists('jQueryColorboxVersion', $jquery_colorbox_settings)) {
523
+ if (!array_key_exists('scalePhotos', $jquery_colorbox_settings)) {
524
//in case future versions require resetting the settings
525
//if($jquery_colorbox_settings['jQueryColorboxVersion'] < JQUERYCOLORBOX_VERSION)
526
update_option(JQUERYCOLORBOX_SETTINGSNAME, jQueryColorbox::jQueryColorboxDefaultSettings());
js/jquery-colorbox-auto-min.js ADDED
@@ -0,0 +1 @@
1
+ jQuery(document).ready(function(a){a("img").each(function(b,c){$classValue=a(c).attr("class");if(!$classValue){a(c).attr("class","colorbox-manual")}if(!$classValue.match("colorbox")){$classValue+=" colorbox-manual";a(c).attr("class",$classValue)}})});
js/jquery-colorbox-hideFlash-min.js ADDED
@@ -0,0 +1 @@
1
+ jQuery(document).ready(function(a){a(document).bind("cbox_open",function(){var c=document.getElementsByTagName("object");for(i=0;i<c.length;i++){c[i].style.visibility="hidden"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}});a(document).bind("cbox_closed",function(){var c=document.getElementsByTagName("object");for(i=0;i<c.length;i++){c[i].style.visibility="visible"}var b=document.getElementsByTagName("embed");for(i=0;i<b.length;i++){b[i].style.visibility="visible"}})});
js/jquery.colorbox.js ADDED
@@ -0,0 +1,752 @@
1
+ // ColorBox v1.3.6 - a full featured, light-weight, customizable lightbox based on jQuery 1.3
2
+ // c) 2009 Jack Moore - www.colorpowered.com - jack@colorpowered.com
3
+ // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
4
+
5
+ (function ($) {
6
+ // Shortcuts (to increase compression)
7
+ var colorbox = 'colorbox',
8
+ hover = 'hover',
9
+ TRUE = true,
10
+ FALSE = false,
11
+ cboxPublic,
12
+ isIE = !$.support.opacity,
13
+ isIE6 = isIE && !window.XMLHttpRequest,
14
+
15
+ // Event Strings (to increase compression)
16
+ cbox_open = 'cbox_open',
17
+ cbox_load = 'cbox_load',
18
+ cbox_complete = 'cbox_complete',
19
+ cbox_cleanup = 'cbox_cleanup',
20
+ cbox_closed = 'cbox_closed',
21
+ cbox_resize = 'resize.cbox_resize',
22
+
23
+ // Cached jQuery Object Variables
24
+ $overlay,
25
+ $cbox,
26
+ $wrap,
27
+ $content,
28
+ $topBorder,
29
+ $leftBorder,
30
+ $rightBorder,
31
+ $bottomBorder,
32
+ $related,
33
+ $window,
34
+ $loaded,
35
+ $loadingBay,
36
+ $loadingOverlay,
37
+ $loadingGraphic,
38
+ $title,
39
+ $current,
40
+ $slideshow,
41
+ $next,
42
+ $prev,
43
+ $close,
44
+
45
+ // Variables for cached values or use across multiple functions
46
+ interfaceHeight,
47
+ interfaceWidth,
48
+ loadedHeight,
49
+ loadedWidth,
50
+ element,
51
+ bookmark,
52
+ index,
53
+ settings,
54
+ open,
55
+ active,
56
+
57
+ // ColorBox Default Settings.
58
+ // See http://colorpowered.com/colorbox for details.
59
+ defaults = {
60
+ transition: "elastic",
61
+ speed: 350,
62
+ width: FALSE,
63
+ height: FALSE,
64
+ innerWidth: FALSE,
65
+ innerHeight: FALSE,
66
+ initialWidth: "400",
67
+ initialHeight: "400",
68
+ maxWidth: FALSE,
69
+ maxHeight: FALSE,
70
+ scalePhotos: TRUE,
71
+ scrolling: TRUE,
72
+ inline: FALSE,
73
+ html: FALSE,
74
+ iframe: FALSE,
75
+ photo: FALSE,
76
+ href: FALSE,
77
+ title: FALSE,
78
+ rel: FALSE,
79
+ opacity: 0.9,
80
+ preloading: TRUE,
81
+ current: "image {current} of {total}",
82
+ previous: "previous",
83
+ next: "next",
84
+ close: "close",
85
+ open: FALSE,
86
+ overlayClose: TRUE,
87
+
88
+ slideshow: FALSE,
89
+ slideshowAuto: TRUE,
90
+ slideshowSpeed: 2500,
91
+ slideshowStart: "start slideshow",
92
+ slideshowStop: "stop slideshow",
93
+
94
+ onOpen: FALSE,
95
+ onLoad: FALSE,
96
+ onComplete: FALSE,
97
+ onCleanup: FALSE,
98
+ onClosed: FALSE
99
+ };
100
+
101
+ // ****************
102
+ // HELPER FUNCTIONS
103
+ // ****************
104
+
105
+ // Convert % values to pixels
106
+ function setSize(size, dimension) {
107
+ dimension = dimension === 'x' ? $window.width() : $window.height();//document.documentElement.clientWidth : document.documentElement.clientHeight;
108
+ return (typeof size === 'string') ? Math.round((size.match(/%/) ? (dimension / 100) * parseInt(size, 10) : parseInt(size, 10))) : size;
109
+ }
110
+
111
+ // Checks an href to see if it is a photo.
112
+ // There is a force photo option (photo: true) for hrefs that cannot be matched by this regex.
113
+ function isImage(url) {
114
+ url = $.isFunction(url) ? url.call(element) : url;
115
+ return settings.photo || url.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?#x2F;i);
116
+ }
117
+
118
+ // Assigns functions results to their respective settings. This allows functions to be used to set ColorBox options.
119
+ function process() {
120
+ for (var i in settings) {
121
+ if ($.isFunction(settings[i]) && i.substring(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time.
122
+ settings[i] = settings[i].call(element);
123
+ }
124
+ }
125
+ settings.rel = settings.rel || element.rel;
126
+ settings.href = settings.href || element.href;
127
+ settings.title = settings.title || element.title;
128
+ }
129
+
130
+ function launch(elem) {
131
+
132
+ element = elem;
133
+
134
+ settings = $(element).data(colorbox);
135
+
136
+ process(); // Convert functions to their returned values.
137
+
138
+ if (settings.rel && settings.rel !== 'nofollow') {
139
+ $related = $('.cboxElement').filter(function () {
140
+ var relRelated = $(this).data(colorbox).rel || this.rel;
141
+ return (relRelated === settings.rel);
142
+ });
143
+ index = $related.index(element);
144
+
145
+ // Check direct calls to ColorBox.
146
+ if (index < 0) {
147
+ $related = $related.add(element);
148
+ index = $related.length - 1;
149
+ }
150
+ } else {
151
+ $related = $(element);
152
+ index = 0;
153
+ }
154
+
155
+ if (!open) {
156
+ open = TRUE;
157
+
158
+ active = TRUE; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
159
+
160
+ bookmark = element;
161
+
162
+ bookmark.blur(); // Remove the focus from the calling element.
163
+
164
+ // Set Navigation Key Bindings
165
+ $(document).bind("keydown.cbox_close", function (e) {
166
+ if (e.keyCode === 27) {
167
+ e.preventDefault();
168
+ cboxPublic.close();
169
+ }
170
+ }).bind("keydown.cbox_arrows", function (e) {
171
+ if ($related.length > 1) {
172
+ if (e.keyCode === 37) {
173
+ e.preventDefault();
174
+ $prev.click();
175
+ } else if (e.keyCode === 39) {
176
+ e.preventDefault();
177
+ $next.click();
178
+ }
179
+ }
180
+ });
181
+
182
+ if (settings.overlayClose) {
183
+ $overlay.css({"cursor": "pointer"}).one('click', cboxPublic.close);
184
+ }
185
+
186
+ $.event.trigger(cbox_open);
187
+ if (settings.onOpen) {
188
+ settings.onOpen.call(element);
189
+ }
190
+
191
+ $overlay.css({"opacity": settings.opacity}).show();
192
+
193
+ // Opens inital empty ColorBox prior to content being loaded.
194
+ settings.w = setSize(settings.initialWidth, 'x');
195
+ settings.h = setSize(settings.initialHeight, 'y');
196
+ cboxPublic.position(0);
197
+
198
+ if (isIE6) {
199
+ $window.bind('resize.cboxie6 scroll.cboxie6', function () {
200
+ $overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()});
201
+ }).trigger("scroll.cboxie6");
202
+ }
203
+ }
204
+
205
+ $current.add($prev).add($next).add($slideshow).add($title).hide();
206
+
207
+ $close.html(settings.close).show();
208
+
209
+ cboxPublic.slideshow();
210
+
211
+ cboxPublic.load();
212
+ }
213
+
214
+ // ****************
215
+ // PUBLIC FUNCTIONS
216
+ // Usage format: $.fn.colorbox.close();
217
+ // Usage from within an iframe: parent.$.fn.colorbox.close();
218
+ // ****************
219
+
220
+ cboxPublic = $.fn.colorbox = function (options, callback) {
221
+ var $this = this;
222
+
223
+ if (!$this.length) {
224
+ if ($this.selector === '') { // empty selector means a direct call, ie: $.fn.colorbox();
225
+ $this = $('<a/>');
226
+ options.open = TRUE;
227
+ } else { // else the selector didn't match anything, and colorbox should go ahead and return.
228
+ return this;
229
+ }
230
+ }
231
+
232
+ $this.each(function () {
233
+ var data = $.extend({}, $(this).data(colorbox) ? $(this).data(colorbox) : defaults, options);
234
+
235
+ $(this).data(colorbox, data).addClass("cboxElement");
236
+
237
+ if (callback) {
238
+ $(this).data(colorbox).onComplete = callback;
239
+ }
240
+ });
241
+
242
+ if (options && options.open) {
243
+ launch($this);
244
+ }
245
+
246
+ return this;
247
+ };
248
+
249
+ // Initialize ColorBox: store common calculations, preload the interface graphics, append the html.
250
+ // This preps colorbox for a speedy open when clicked, and lightens the burdon on the browser by only
251
+ // having to run once, instead of each time colorbox is opened.
252
+ cboxPublic.init = function () {
253
+
254
+ // jQuery object generator to save a bit of space
255
+ function $div(id) {
256
+ return $('<div id="cbox' + id + '"/>');
257
+ }
258
+
259
+ // Create & Append jQuery Objects
260
+ $window = $(window);
261
+ $cbox = $('<div id="colorbox"/>');
262
+ $overlay = $div("Overlay").hide();
263
+ $wrap = $div("Wrapper");
264
+ $content = $div("Content").append(
265
+ $loaded = $div("LoadedContent").css({width: 0, height: 0}),
266
+ $loadingOverlay = $div("LoadingOverlay"),
267
+ $loadingGraphic = $div("LoadingGraphic"),
268
+ $title = $div("Title"),
269
+ $current = $div("Current"),
270
+ $slideshow = $div("Slideshow"),
271
+ $next = $div("Next"),
272
+ $prev = $div("Previous"),
273
+ $close = $div("Close")
274
+ );
275
+ $wrap.append( // The 3x3 Grid that makes up ColorBox
276
+ $('<div/>').append(
277
+ $div("TopLeft"),
278
+ $topBorder = $div("TopCenter"),
279
+ $div("TopRight")
280
+ ),
281
+ $('<div/>').append(
282
+ $leftBorder = $div("MiddleLeft"),
283
+ $content,
284
+ $rightBorder = $div("MiddleRight")
285
+ ),
286
+ $('<div/>').append(
287
+ $div("BottomLeft"),
288
+ $bottomBorder = $div("BottomCenter"),
289
+ $div("BottomRight")
290
+ )
291
+ ).children().children().css({'float': 'left'});
292
+
293
+ $loadingBay = $("<div style='position:absolute; top:0; left:0; width:9999px; height:0;'/>");
294
+
295
+ $('body').prepend($overlay, $cbox.append($wrap, $loadingBay));
296
+
297
+ if (isIE) {
298
+ $cbox.addClass('cboxIE');
299
+ if (isIE6) {
300
+ $overlay.css('position', 'absolute');
301
+ }
302
+ }
303
+
304
+ // Add rollover event to navigation elements
305
+ $content.children()
306
+ .bind('mouseover mouseout', function(){
307
+ $(this).toggleClass(hover);
308
+ }).addClass(hover);
309
+
310
+ // Cache values needed for size calculations
311
+ interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(TRUE) - $content.height();//Subtraction needed for IE6
312
+ interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(TRUE) - $content.width();
313
+ loadedHeight = $loaded.outerHeight(TRUE);
314
+ loadedWidth = $loaded.outerWidth(TRUE);
315
+
316
+ // Setting padding to remove the need to do size conversions during the animation step.
317
+ $cbox.css({"padding-bottom": interfaceHeight, "padding-right": interfaceWidth}).hide();
318
+
319
+ // Setup button & key events.
320
+ $next.click(cboxPublic.next);
321
+ $prev.click(cboxPublic.prev);
322
+ $close.click(cboxPublic.close);
323
+
324
+ // Adding the 'hover' class allowed the browser to load the hover-state
325
+ // background graphics. The class can now can be removed.
326
+ $content.children().removeClass(hover);
327
+
328
+ $('.cboxElement').live('click', function (e) {
329
+ if (e.button !== 0 && typeof e.button !== 'undefined') {// checks to see if it was a non-left mouse-click.
330
+ return TRUE;
331
+ } else {
332
+ launch(this);
333
+ return FALSE;
334
+ }
335
+ });
336
+ };
337
+
338
+ cboxPublic.position = function (speed, loadedCallback) {
339
+ var
340
+ animate_speed,
341
+ winHeight = $window.height(),
342
+ // keeps the top and left positions within the browser's viewport.
343
+ posTop = Math.max(winHeight - settings.h - loadedHeight - interfaceHeight,0)/2 + $window.scrollTop(),
344
+ posLeft = Math.max(document.documentElement.clientWidth - settings.w - loadedWidth - interfaceWidth,0)/2 + $window.scrollLeft();
345
+
346
+ // setting the speed to 0 to reduce the delay between same-sized content.
347
+ animate_speed = ($cbox.width() === settings.w+loadedWidth && $cbox.height() === settings.h+loadedHeight) ? 0 : speed;
348
+
349
+ // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
350
+ // but it has to be shrank down around the size of div#colorbox when it's done. If not,
351
+ // it can invoke an obscure IE bug when using iframes.
352
+ $wrap[0].style.width = $wrap[0].style.height = "9999px";
353
+
354
+ function modalDimensions (that) {
355
+ // loading overlay size has to be sure that IE6 uses the correct height.
356
+ $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = that.style.width;
357
+ $loadingGraphic[0].style.height = $loadingOverlay[0].style.height = $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = that.style.height;
358
+ }
359
+
360
+ $cbox.dequeue().animate({width:settings.w+loadedWidth, height:settings.h+loadedHeight, top:posTop, left:posLeft}, {duration: animate_speed,
361
+ complete: function(){
362
+ modalDimensions(this);
363
+
364
+ active = FALSE;
365
+
366
+ // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
367
+ $wrap[0].style.width = (settings.w+loadedWidth+interfaceWidth) + "px";
368
+ $wrap[0].style.height = (settings.h+loadedHeight+interfaceHeight) + "px";
369
+
370
+ if (loadedCallback) {loadedCallback();}
371
+ },
372
+ step: function(){
373
+ modalDimensions(this);
374
+ }
375
+ });
376
+ };
377
+
378
+ cboxPublic.resize = function (object) {
379
+ if(!open){ return; }
380
+
381
+ var topMargin,
382
+ prev,
383
+ prevSrc,
384
+ next,
385
+ nextSrc,
386
+ photo,
387
+ timeout,
388
+ speed = settings.transition==="none" ? 0 : settings.speed;
389
+
390
+ $window.unbind(cbox_resize);
391
+
392
+ if(!object){
393
+ timeout = setTimeout(function(){ // timer allows IE to render the dimensions before attempting to calculate the height
394
+ var $child = $loaded.wrapInner("<div style='overflow:auto'></div>").children(); // temporary wrapper to get an accurate estimate of just how high the total content should be.
395
+ settings.h = $child.height();
396
+ $loaded.css({height:settings.h});
397
+ $child.replaceWith($child.children()); // ditch the temporary wrapper div used in height calculation
398
+ cboxPublic.position(speed);
399
+ }, 1);
400
+ return;
401
+ }
402
+
403
+ $loaded.remove();
404
+ $loaded = $('<div id="cboxLoadedContent"/>').html(object);
405
+
406
+ function getWidth(){
407
+ settings.w = settings.w || $loaded.width();
408
+ settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
409
+ return settings.w;
410
+ }
411
+ function getHeight(){
412
+ settings.h = settings.h || $loaded.height();
413
+ settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
414
+ return settings.h;
415
+ }
416
+
417
+ $loaded.hide()
418
+ .appendTo($loadingBay)// content has to be appended to the DOM for accurate size calculations. Appended to an absolutely positioned element, rather than BODY, which avoids an extremely brief display of the vertical scrollbar in Firefox that can occur for a small minority of websites.
419
+ .css({width:getWidth(), overflow:settings.scrolling ? 'auto' : 'hidden'})
420
+ .css({height:getHeight()})// sets the height independently from the width in case the new width influences the value of height.
421
+ .prependTo($content);
422
+
423
+ $('#cboxPhoto').css({cssFloat:'none'});// floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
424
+
425
+ // Hides SELECT elements in IE6 because they would otherwise sit on top of the overlay.
426
+ if (isIE6) {
427
+ $('select:not(#colorbox select)').filter(function(){
428
+ return this.style.visibility !== 'hidden';
429
+ }).css({'visibility':'hidden'}).one(cbox_cleanup, function(){
430
+ this.style.visibility = 'inherit';
431
+ });
432
+ }
433
+
434
+ function setPosition (s) {
435
+ cboxPublic.position(s, function(){
436
+ if (!open) { return; }
437
+
438
+ if (isIE) {
439
+ //This fadeIn helps the bicubic resampling to kick-in.
440
+ if( photo ){$loaded.fadeIn(100);}
441
+ //IE adds a filter when ColorBox fades in and out that can cause problems if the loaded content contains transparent pngs.
442
+ $cbox[0].style.removeAttribute("filter");
443
+ }
444
+
445
+ //Waited until the iframe is added to the DOM & it is visible before setting the src.
446
+ //This increases compatability with pages using DOM dependent JavaScript.
447
+ if(settings.iframe){
448
+ $loaded.append("<iframe id='cboxIframe'" + (settings.scrolling ? " " : "scrolling='no'") + " name='iframe_"+new Date().getTime()+"' frameborder=0 src='"+settings.href+"' " + (isIE ? "allowtransparency='true'" : '') + " />");
449
+ }
450
+
451
+ $loaded.show();
452
+
453
+ $title.show().html(settings.title);
454
+
455
+ if ($related.length>1) {
456
+ $current.html(settings.current.replace(/\{current\}/, index+1).replace(/\{total\}/, $related.length)).show();
457
+ $next.html(settings.next).show();
458
+ $prev.html(settings.previous).show();
459
+
460
+ if(settings.slideshow){
461
+ $slideshow.show();
462
+ }
463
+ }
464
+
465
+ $loadingOverlay.hide();
466
+ $loadingGraphic.hide();
467
+
468
+ $.event.trigger(cbox_complete);
469
+ if (settings.onComplete) {
470
+ settings.onComplete.call(element);
471
+ }
472
+
473
+ if (settings.transition === 'fade'){
474
+ $cbox.fadeTo(speed, 1, function(){
475
+ if(isIE){$cbox[0].style.removeAttribute("filter");}
476
+ });
477
+ }
478
+
479
+ $window.bind(cbox_resize, function(){
480
+ cboxPublic.position(0);
481
+ });
482
+ });
483
+ }
484
+
485
+ if((settings.transition === 'fade' && $cbox.fadeTo(speed, 0, function(){setPosition(0);})) || setPosition(speed)){}
486
+
487
+ // Preloads images within a rel group
488
+ if (settings.preloading && $related.length>1) {
489
+ prev = index > 0 ? $related[index-1] : $related[$related.length-1];
490
+ next = index < $related.length-1 ? $related[index+1] : $related[0];
491
+ nextSrc = $(next).data(colorbox).href || next.href;
492
+ prevSrc = $(prev).data(colorbox).href || prev.href;
493
+
494
+ if(isImage(nextSrc)){
495
+ $('<img />').attr('src', nextSrc);
496
+ }
497
+
498
+ if(isImage(prevSrc)){
499
+ $('<img />').attr('src', prevSrc);
500
+ }
501
+ }
502
+ };
503
+
504
+ cboxPublic.load = function () {
505
+ var href, img, setResize, resize = cboxPublic.resize;
506
+
507
+ active = TRUE;
508
+
509
+ /*
510
+
511
+ // I decided to comment this out because I can see it causing problems as users
512
+ // really should just set the dimensions on their IMG elements instead,
513
+ // but I'm leaving the code in as it may be useful to someone.
514
+ // To use, uncomment the function and change 'if(textStatus === "success"){ resize(this); }'
515
+ // to 'if(textStatus === "success"){ preload(this); }'
516
+
517
+ // Preload loops through the HTML to find IMG elements and loads their sources.
518
+ // This allows the resize method to accurately estimate the dimensions of the new content.
519
+ function preload(html){
520
+ var
521
+ $ajax = $(html),
522
+ $imgs = $ajax.find('img'),
523
+ x = $imgs.length;
524
+
525
+ function loadloop(){
526
+ var img = new Image();
527
+ x = x-1;
528
+ if(x >= 0){
529
+ img.onload = loadloop;
530
+ img.src = $imgs[x].src;
531
+ } else {
532
+ resize($ajax);
533
+ }
534
+ }
535
+
536
+ loadloop();
537
+ }
538
+ */
539
+
540
+ element = $related[index];
541
+
542
+ settings = $(element).data(colorbox);
543
+
544
+ //convert functions to static values
545
+ process();
546
+
547
+ $.event.trigger(cbox_load);
548
+ if (settings.onLoad) {
549
+ settings.onLoad.call(element);
550
+ }
551
+
552
+ // Evaluate the height based on the optional height and width settings.
553
+ settings.h = settings.height ?
554
+ setSize(settings.height, 'y') - loadedHeight - interfaceHeight :
555
+ settings.innerHeight ?
556
+ setSize(settings.innerHeight, 'y') :
557
+ FALSE;
558
+ settings.w = settings.width ?
559
+ setSize(settings.width, 'x') - loadedWidth - interfaceWidth :
560
+ settings.innerWidth ?
561
+ setSize(settings.innerWidth, 'x') :
562
+ FALSE;
563
+
564
+ // Sets the minimum dimensions for use in image scaling
565
+ settings.mw = settings.w;
566
+ settings.mh = settings.h;
567
+
568
+ // Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
569
+ // If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
570
+ if(settings.maxWidth){
571
+ settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth;
572
+ settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
573
+ }
574
+ if(settings.maxHeight){
575
+ settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight;
576
+ settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
577
+ }
578
+
579
+ href = settings.href;
580
+
581
+ $loadingOverlay.show();
582
+ $loadingGraphic.show();
583
+
584
+ if (settings.inline) {
585
+ // Inserts an empty placeholder where inline content is being pulled from.
586
+ // An event is bound to put inline content back when ColorBox closes or loads new content.
587
+ $('<div id="cboxInlineTemp" />').hide().insertBefore($(href)[0]).bind(cbox_load+' '+cbox_cleanup, function(){
588
+ $(this).replaceWith($loaded.children());
589
+ });
590
+ resize($(href));
591
+ } else if (settings.iframe) {
592
+ // IFrame element won't be added to the DOM until it is ready to be displayed,
593
+ // to avoid problems with DOM-ready JS that might be trying to run in that iframe.
594
+ resize(" ");
595
+ } else if (settings.html) {
596
+ resize(settings.html);
597
+ } else if (isImage(href)){
598
+ img = new Image();
599
+ img.onload = function(){
600
+ var percent;
601
+
602
+ img.onload = null;
603
+
604
+ img.id = 'cboxPhoto';
605
+
606
+ $(img).css({margin:'auto', border:'none', display:'block', cssFloat:'left'});
607
+
608
+ if(settings.scalePhotos){
609
+ setResize = function(){
610
+ img.height -= img.height * percent;
611
+ img.width -= img.width * percent;
612
+ };
613
+ if(settings.mw && img.width > settings.mw){
614
+ percent = (img.width - settings.mw) / img.width;
615
+ setResize();
616
+ }
617
+ if(settings.mh && img.height > settings.mh){
618
+ percent = (img.height - settings.mh) / img.height;
619
+ setResize();
620
+ }
621
+ }
622
+
623
+ if (settings.h) {
624
+ img.style.marginTop = Math.max(settings.h - img.height,0)/2 + 'px';
625
+ }
626
+
627
+ resize(img);
628
+
629
+ if($related.length > 1){
630
+ $(img).css({cursor:'pointer'}).click(cboxPublic.next);
631
+ }
632
+
633
+ if(isIE){
634
+ img.style.msInterpolationMode='bicubic';
635
+ }
636
+ };
637
+ img.src = href;
638
+ } else {
639
+ $('<div />').appendTo($loadingBay).load(href, function(data, textStatus){
640
+ if(textStatus === "success"){
641
+ resize(this);
642
+ } else {
643
+ resize($("<p>Request unsuccessful.</p>"));
644
+ }
645
+ });
646
+ }
647
+ };
648
+
649
+ // Navigates to the next page/image in a set.
650
+ cboxPublic.next = function () {
651
+ if(!active){
652
+ index = index < $related.length-1 ? index+1 : 0;
653
+ cboxPublic.load();
654
+ }
655
+ };
656
+
657
+ cboxPublic.prev = function () {
658
+ if(!active){
659
+ index = index > 0 ? index-1 : $related.length-1;
660
+ cboxPublic.load();
661
+ }
662
+ };
663
+
664
+ cboxPublic.slideshow = function () {
665
+ var stop, timeOut, className = 'cboxSlideshow_';
666
+
667
+ $slideshow.bind(cbox_closed, function(){
668
+ $slideshow.unbind();
669
+ clearTimeout(timeOut);
670
+ $cbox.removeClass(className+"off"+" "+className+"on");
671
+ });
672
+
673
+ function start(){
674
+ $slideshow
675
+ .text(settings.slideshowStop)
676
+ .bind(cbox_complete, function(){
677
+ timeOut = setTimeout(cboxPublic.next, settings.slideshowSpeed);
678
+ })
679
+ .bind(cbox_load, function(){
680
+ clearTimeout(timeOut);
681
+ }).one("click", function(){
682
+ stop();
683
+ $(this).removeClass(hover);
684
+ });
685
+ $cbox.removeClass(className+"off").addClass(className+"on");
686
+ }
687
+
688
+ stop = function(){
689
+ clearTimeout(timeOut);
690
+ $slideshow
691
+ .text(settings.slideshowStart)
692
+ .unbind(cbox_complete+' '+cbox_load)
693
+ .one("click", function(){
694
+ start();
695
+ timeOut = setTimeout(cboxPublic.next, settings.slideshowSpeed);
696
+ $(this).removeClass(hover);
697
+ });
698
+ $cbox.removeClass(className+"on").addClass(className+"off");
699
+ };
700
+
701
+ if(settings.slideshow && $related.length>1){
702
+ if(settings.slideshowAuto){
703
+ start();
704
+ } else {
705
+ stop();
706
+ }
707
+ }
708
+ };
709
+
710
+ // Note: to use this within an iframe use the following format: parent.$.fn.colorbox.close();
711
+ cboxPublic.close = function () {
712
+
713
+ $.event.trigger(cbox_cleanup);
714
+ if (settings.onCleanup) {
715
+ settings.onCleanup.call(element);
716
+ }
717
+
718
+ open = FALSE;
719
+ $(document).unbind("keydown.cbox_close keydown.cbox_arrows");
720
+ $window.unbind(cbox_resize+' resize.cboxie6 scroll.cboxie6');
721
+ $overlay.css({cursor: 'auto'}).fadeOut('fast');
722
+
723
+ $cbox
724
+ .stop(TRUE, FALSE)
725
+ .fadeOut('fast', function () {
726
+ $('#colorbox iframe').attr('src', 'about:blank');
727
+ $loaded.remove();
728
+ $cbox.css({'opacity': 1});
729
+
730
+ try{
731
+ bookmark.focus();
732
+ } catch (er){
733
+ // do nothing
734
+ }
735
+
736
+ $.event.trigger(cbox_closed);
737
+ if (settings.onClosed) {
738
+ settings.onClosed.call(element);
739
+ }
740
+ });
741
+ };
742
+
743
+ // A method for fetching the current element ColorBox is referencing.
744
+ // returns a jQuery object.
745
+ cboxPublic.element = function(){ return $(element); };
746
+
747
+ cboxPublic.settings = defaults;
748
+
749
+ // Initializes ColorBox when the DOM has loaded
750
+ $(cboxPublic.init);
751
+
752
+ }(jQuery));
localization/jquery-colorbox-ar.mo CHANGED
Binary file
localization/jquery-colorbox-ar.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: jQuery-Colorbox 3.2 Arabic\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-04-12 23:34+0100\n"
6
- "PO-Revision-Date: 2010-04-13 10:46+0200\n"
7
- "Last-Translator: Modar <modarsoos@yahoo.com>\n"
8
"Language-Team: Mickey Mouse <modarsoos@yahoo.com>\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
@@ -15,110 +15,114 @@ msgstr ""
15
"X-Poedit-Country: SYRIAN ARAB REPUBLIC\n"
16
"X-Poedit-SearchPath-0: .\n"
17
18
- #: jquery-colorbox.php:109
19
msgid "Theme #1"
20
msgstr "القالب الأول"
21
22
- #: jquery-colorbox.php:110
23
msgid "Theme #2"
24
msgstr "القالب الثاني"
25
26
- #: jquery-colorbox.php:111
27
msgid "Theme #3"
28
msgstr "القالب الثالث"
29
30
- #: jquery-colorbox.php:112
31
msgid "Theme #4"
32
msgstr "القالب الرابع"
33
34
- #: jquery-colorbox.php:113
35
msgid "Theme #5"
36
msgstr "القالب الخامس"
37
38
- #: jquery-colorbox.php:114
39
msgid "Theme #6"
40
msgstr "القالب السادس"
41
42
- #: jquery-colorbox.php:115
43
msgid "Theme #7"
44
msgstr "القالب السابع"
45
46
- #: jquery-colorbox.php:116
47
msgid "Theme #8"
48
msgstr "القالب الثامن"
49
50
- #: jquery-colorbox.php:117
51
msgid "Theme #9"
52
msgstr "القالب التاسع"
53
54
- #: jquery-colorbox.php:121
55
msgid "Theme #10"
56
msgstr "القالب العاشر"
57
58
- #: jquery-colorbox.php:122
59
msgid "Theme #11"
60
msgstr "القالب الحادي عشر"
61
62
- #: jquery-colorbox.php:123
63
msgid "Theme #12"
64
msgstr "القالب الثاني عشر"
65
66
- #: jquery-colorbox.php:124
67
msgid "Theme #13"
68
msgstr "القالب الثالث عشر"
69
70
- #: jquery-colorbox.php:125
71
msgid "Theme #14"
72
msgstr "القالب الرابع عشر"
73
74
- #: jquery-colorbox.php:126
75
msgid "Theme #15"
76
msgstr "القالب الخامس عشر"
77
78
- #: jquery-colorbox.php:131
79
msgid "percent"
80
msgstr "بالمئة"
81
82
- #: jquery-colorbox.php:132
83
msgid "pixels"
84
msgstr "بيكسل"
85
86
- #: jquery-colorbox.php:137
87
msgid "elastic"
88
msgstr "تمدد"
89
90
- #: jquery-colorbox.php:138
91
msgid "fade"
92
msgstr "تضاءل"
93
94
- #: jquery-colorbox.php:139
95
msgid "none"
96
msgstr "بدون تأثير"
97
98
- #: jquery-colorbox.php:294
99
#: includes/settings-page.php:101
100
msgid "Settings"
101
msgstr "إعدادات"
102
103
- #: jquery-colorbox.php:357
104
#, php-format
105
msgid "Successfully updated %1$s settings."
106
msgstr "تم تحديث إعدادات برنامج %1$s بنجاح."
107
108
- #: jquery-colorbox.php:359
109
#, php-format
110
msgid "%1$s settings were successfully deleted."
111
msgstr "%1$s تم حذف الإعدادات بنجاح."
112
113
- #: jquery-colorbox.php:400
114
msgid "needs attention: the plugin is not activated to work for all images."
115
msgstr "تنبيه: لم يتم تنشيط برنامج صندوق عرض الشرائح ليعمل على جميع الصور."
116
117
- #: jquery-colorbox.php:460
118
msgid "Did not update settings, you do not have the necessary rights."
119
msgstr "لم يتم تحديث الإعدادات، ليس لديك الصلاحيات الكافية."
120
121
- #: jquery-colorbox.php:507
122
#, php-format
123
msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
124
msgstr "لم يتم حذف إعدادات %1$s أو ليس لديك الصلاحيات الكافية أو بأنك لم تقم بتحديد العلامة داخل المربع الصغير قبل الضغط على زر حذف الإعدادات."
2
msgstr ""
3
"Project-Id-Version: jQuery-Colorbox 3.2 Arabic\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-05-04 00:11+0100\n"
6
+ "PO-Revision-Date: 2010-05-04 00:11+0100\n"
7
+ "Last-Translator: \n"
8
"Language-Team: Mickey Mouse <modarsoos@yahoo.com>\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
15
"X-Poedit-Country: SYRIAN ARAB REPUBLIC\n"
16
"X-Poedit-SearchPath-0: .\n"
17
18
+ #: jquery-colorbox.php:110
19
msgid "Theme #1"
20
msgstr "القالب الأول"
21
22
+ #: jquery-colorbox.php:111
23
msgid "Theme #2"
24
msgstr "القالب الثاني"
25
26
+ #: jquery-colorbox.php:112
27
msgid "Theme #3"
28
msgstr "القالب الثالث"
29
30
+ #: jquery-colorbox.php:113
31
msgid "Theme #4"
32
msgstr "القالب الرابع"
33
34
+ #: jquery-colorbox.php:114
35
msgid "Theme #5"
36
msgstr "القالب الخامس"
37
38
+ #: jquery-colorbox.php:115
39
msgid "Theme #6"
40
msgstr "القالب السادس"
41
42
+ #: jquery-colorbox.php:116
43
msgid "Theme #7"
44
msgstr "القالب السابع"
45
46
+ #: jquery-colorbox.php:117
47
msgid "Theme #8"
48
msgstr "القالب الثامن"
49
50
+ #: jquery-colorbox.php:118
51
msgid "Theme #9"
52
msgstr "القالب التاسع"
53
54
+ #: jquery-colorbox.php:119
55
msgid "Theme #10"
56
msgstr "القالب العاشر"
57
58
+ #: jquery-colorbox.php:120
59
msgid "Theme #11"
60
msgstr "القالب الحادي عشر"
61
62
+ #: jquery-colorbox.php:124
63
msgid "Theme #12"
64
msgstr "القالب الثاني عشر"
65
66
+ #: jquery-colorbox.php:125
67
msgid "Theme #13"
68
msgstr "القالب الثالث عشر"
69
70
+ #: jquery-colorbox.php:126
71
msgid "Theme #14"
72
msgstr "القالب الرابع عشر"
73
74
+ #: jquery-colorbox.php:127
75
msgid "Theme #15"
76
msgstr "القالب الخامس عشر"
77
78
+ #: jquery-colorbox.php:132
79
msgid "percent"
80
msgstr "بالمئة"
81
82
+ #: jquery-colorbox.php:133
83
msgid "pixels"
84
msgstr "بيكسل"
85
86
+ #: jquery-colorbox.php:138
87
msgid "elastic"
88
msgstr "تمدد"
89
90
+ #: jquery-colorbox.php:139
91
msgid "fade"
92
msgstr "تضاءل"
93
94
+ #: jquery-colorbox.php:140
95
msgid "none"
96
msgstr "بدون تأثير"
97
98
+ #: jquery-colorbox.php:177
99
+ msgid "Using"
100
+ msgstr ""
101
+
102
+ #: jquery-colorbox.php:274
103
#: includes/settings-page.php:101
104
msgid "Settings"
105
msgstr "إعدادات"
106
107
+ #: jquery-colorbox.php:335
108
#, php-format
109
msgid "Successfully updated %1$s settings."
110
msgstr "تم تحديث إعدادات برنامج %1$s بنجاح."
111
112
+ #: jquery-colorbox.php:337
113
#, php-format
114
msgid "%1$s settings were successfully deleted."
115
msgstr "%1$s تم حذف الإعدادات بنجاح."
116
117
+ #: jquery-colorbox.php:378
118
msgid "needs attention: the plugin is not activated to work for all images."
119
msgstr "تنبيه: لم يتم تنشيط برنامج صندوق عرض الشرائح ليعمل على جميع الصور."
120
121
+ #: jquery-colorbox.php:439
122
msgid "Did not update settings, you do not have the necessary rights."
123
msgstr "لم يتم تحديث الإعدادات، ليس لديك الصلاحيات الكافية."
124
125
+ #: jquery-colorbox.php:486
126
#, php-format
127
msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
128
msgstr "لم يتم حذف إعدادات %1$s أو ليس لديك الصلاحيات الكافية أو بأنك لم تقم بتحديد العلامة داخل المربع الصغير قبل الضغط على زر حذف الإعدادات."
localization/jquery-colorbox-be_BY.mo ADDED
Binary file
localization/jquery-colorbox-be_BY.po ADDED
@@ -0,0 +1,382 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: jQuery-Colorbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-05-04 00:11+0100\n"
6
+ "PO-Revision-Date: 2010-05-04 00:11+0100\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: Marcis G <by.marcis@gmail.com>\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: Belarusian\n"
13
+ "X-Poedit-KeywordsList: _e;__\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-Country: BELARUS\n"
16
+ "X-Poedit-SourceCharset: utf8\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: jquery-colorbox.php:110
20
+ msgid "Theme #1"
21
+ msgstr "Тэма #1"
22
+
23
+ #: jquery-colorbox.php:111
24
+ msgid "Theme #2"
25
+ msgstr "Тэма #2"
26
+
27
+ #: jquery-colorbox.php:112
28
+ msgid "Theme #3"
29
+ msgstr "Тэма #3"
30
+
31
+ #: jquery-colorbox.php:113
32
+ msgid "Theme #4"
33
+ msgstr "Тэма #4"
34
+
35
+ #: jquery-colorbox.php:114
36
+ msgid "Theme #5"
37
+ msgstr "Тэма #5"
38
+
39
+ #: jquery-colorbox.php:115
40
+ msgid "Theme #6"
41
+ msgstr "Тэма #6"
42
+
43
+ #: jquery-colorbox.php:116
44
+ msgid "Theme #7"
45
+ msgstr "Тэма #7"
46
+
47
+ #: jquery-colorbox.php:117
48
+ msgid "Theme #8"
49
+ msgstr "Тэма #8"
50
+
51
+ #: jquery-colorbox.php:118
52
+ msgid "Theme #9"
53
+ msgstr "Тэма #9"
54
+
55
+ #: jquery-colorbox.php:119
56
+ msgid "Theme #10"
57
+ msgstr "Тэма #10"
58
+
59
+ #: jquery-colorbox.php:120
60
+ msgid "Theme #11"
61
+ msgstr "Тэма #11"
62
+
63
+ #: jquery-colorbox.php:124
64
+ msgid "Theme #12"
65
+ msgstr "Тэма #12"
66
+
67
+ #: jquery-colorbox.php:125
68
+ msgid "Theme #13"
69
+ msgstr "Тэма #13"
70
+
71
+ #: jquery-colorbox.php:126
72
+ msgid "Theme #14"
73
+ msgstr "Тэма #14"
74
+
75
+ #: jquery-colorbox.php:127
76
+ msgid "Theme #15"
77
+ msgstr "Тэма #15"
78
+
79
+ #: jquery-colorbox.php:132
80
+ msgid "percent"
81
+ msgstr "адсотак"
82
+
83
+ #: jquery-colorbox.php:133
84
+ msgid "pixels"
85
+ msgstr "пікселяў"
86
+
87
+ #: jquery-colorbox.php:138
88
+ msgid "elastic"
89
+ msgstr "эластычн."
90
+
91
+ #: jquery-colorbox.php:139
92
+ msgid "fade"
93
+ msgstr "знікненне"
94
+
95
+ #: jquery-colorbox.php:140
96
+ msgid "none"
97
+ msgstr "не"
98
+
99
+ #: jquery-colorbox.php:177
100
+ msgid "Using"
101
+ msgstr ""
102
+
103
+ #: jquery-colorbox.php:274
104
+ #: includes/settings-page.php:101
105
+ msgid "Settings"
106
+ msgstr "Налады"
107
+
108
+ #: jquery-colorbox.php:335
109
+ #, php-format
110
+ msgid "Successfully updated %1$s settings."
111
+ msgstr "Налады%1$s паспяхова абноўлены."
112
+
113
+ #: jquery-colorbox.php:337
114
+ #, php-format
115
+ msgid "%1$s settings were successfully deleted."
116
+ msgstr "%1$s налады цалкам выдалены."
117
+
118
+ #: jquery-colorbox.php:378
119
+ msgid "needs attention: the plugin is not activated to work for all images."
120
+ msgstr "патрабуе ўвагі: убудова не актываваны для працы для ўсіх малюнкаў."
121
+
122
+ #: jquery-colorbox.php:439
123
+ msgid "Did not update settings, you do not have the necessary rights."
124
+ msgstr "Немагчыма абнавіць налады, вы не валодаеце неабходнымі правамі."
125
+
126
+ #: jquery-colorbox.php:486
127
+ #, php-format
128
+ msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
129
+ msgstr "Немагчыма абнавіць%1$s налады. Магчыма, вам бракуе мае рацыю, праверце, ці адзначаны адпаведны чекбокс."
130
+
131
+ #: includes/colorbox-javascript.php:53
132
+ msgid "close"
133
+ msgstr "зачыніць"
134
+
135
+ #: includes/colorbox-javascript.php:54
136
+ msgid "next"
137
+ msgstr "след."
138
+
139
+ #: includes/colorbox-javascript.php:55
140
+ msgid "previous"
141
+ msgstr "прад."
142
+
143
+ #: includes/colorbox-javascript.php:56
144
+ msgid "start slideshow"
145
+ msgstr "пачаць паказ слайдшоў"
146
+
147
+ #: includes/colorbox-javascript.php:57
148
+ msgid "stop slideshow"
149
+ msgstr "спыніць слайдшоў"
150
+
151
+ #: includes/colorbox-javascript.php:58
152
+ msgid "{current} of {total} images"
153
+ msgstr "{current} / {total}"
154
+
155
+ #: includes/settings-page.php:94
156
+ #, php-format
157
+ msgid "%1$s Settings"
158
+ msgstr "%1$s Налады"
159
+
160
+ #: includes/settings-page.php:110
161
+ msgid "Theme"
162
+ msgstr "Тэма"
163
+
164
+ #: includes/settings-page.php:122
165
+ msgid "Select the theme you want to use on your blog."
166
+ msgstr "Абярыце тэмы, якія вы жадаеце выкарыстоўваць на сваім блогу."
167
+
168
+ #: includes/settings-page.php:127
169
+ msgid "Theme screenshot"
170
+ msgstr "Скрыншот тэмы"
171
+
172
+ #: includes/settings-page.php:137
173
+ #, php-format
174
+ msgid "Automate %1$s for all images"
175
+ msgstr "Аўтаматызацыя %1$s для ўсіх малюнкаў"
176
+
177
+ #: includes/settings-page.php:141
178
+ msgid "Automatically add colorbox-class to images in posts and pages. Also adds colorbox-class to galleries. Images in one page or post are grouped automatically."
179
+ msgstr "Аўтаматычна дадаваць colorbox-клас малюнкаў у паведамленні і старонкі. Акрамя таго, colorbox-клас дадаецца да галерэй. Малюнкі на адной старонцы ці ў адным пасту групуюцца аўтаматычна."
180
+
181
+ #: includes/settings-page.php:146
182
+ #, php-format
183
+ msgid "Automate %1$s for images in WordPress galleries"
184
+ msgstr "Аўтаматызацыя %1$s для малюнкаў WordPress галерэй"
185
+
186
+ #: includes/settings-page.php:150
187
+ msgid "Automatically add colorbox-class to images in WordPress galleries, but nowhere else. Images in one page or post are grouped automatically."
188
+ msgstr "Аўтаматычна дадаваць colorbox-клас малюнкаў у WordPress галерэі. Малюнкі на адной старонцы ці Ў пасту групуюцца аўтаматычна."
189
+
190
+ #: includes/settings-page.php:155
191
+ msgid "Add Slideshow to groups"
192
+ msgstr "Дадаць Slideshow у групы"
193
+
194
+ #: includes/settings-page.php:159
195
+ #, php-format
196
+ msgid "Add Slideshow functionality for %1$s Groups"
197
+ msgstr "Дадаць функцыянальнасць Slideshow для %1$s груп"
198
+
199
+ #: includes/settings-page.php:164
200
+ msgid "Start Slideshow automatically"
201
+ msgstr "Пачаць слайдшоў аўтаматычна"
202
+
203
+ #: includes/settings-page.php:168
204
+ #, php-format
205
+ msgid "Start Slideshow automatically if slideshow functionality is added to %1$s Groups"
206
+ msgstr "Пачаць слайдшоў аўтаматычна, калі функцыянал %1$s груп"
207
+
208
+ #: includes/settings-page.php:173
209
+ msgid "Speed of the slideshow"
210
+ msgstr "Хуткасць слайдшоў"
211
+
212
+ #: includes/settings-page.php:176
213
+ #: includes/settings-page.php:321
214
+ msgid "milliseconds"
215
+ msgstr "милиисекунд"
216
+
217
+ #: includes/settings-page.php:177
218
+ msgid "Sets the speed of the slideshow, in milliseconds"
219
+ msgstr "Усталёўвае хуткасць слайд-шоў, у мілісекундах"
220
+
221
+ #: includes/settings-page.php:182
222
+ msgid "Maximum width of an image"
223
+ msgstr "Максімальная шырыня малюнка"
224
+
225
+ #: includes/settings-page.php:186
226
+ #: includes/settings-page.php:232
227
+ msgid "Do not set width"
228
+ msgstr "Не ўсталёўваць шырыню"
229
+
230
+ #: includes/settings-page.php:189
231
+ msgid "Set maximum width of an image"
232
+ msgstr "Усталяваць шырыню для малюнка"
233
+
234
+ #: includes/settings-page.php:200
235
+ msgid "Set the maximum width of the image in the Colorbox in relation to the browser window in percent or pixels. If maximum width is not set, image is as wide as the Colorbox"
236
+ msgstr "Усталяваць максімальную шырыню Colorbox у адносінах да акна браўзара ў адсотках ці пікселях. Калі максімальная шырыня не ўсталявана, малюнкі шырокія ў адпаведнасці з Colorbox"
237
+
238
+ #: includes/settings-page.php:205
239
+ msgid "Maximum height of an image"
240
+ msgstr "Максімальная вышыня малюнка"
241
+
242
+ #: includes/settings-page.php:209
243
+ #: includes/settings-page.php:255
244
+ msgid "Do not set height"
245
+ msgstr "Не ўсталёўваць вышыню"
246
+
247
+ #: includes/settings-page.php:212
248
+ msgid "Set maximum height of an image"
249
+ msgstr "Усталяваць максімальную вышыню малюнка"
250
+
251
+ #: includes/settings-page.php:223
252
+ msgid "Set the maximum height of the image in the Colorbox in relation to the browser window to a value in percent or pixels. If maximum height is not set, the image is as high as the Colorbox"
253
+ msgstr "Усталяваць максімальную вышыню Colorbox у адносінах да акна браўзара ў адсотках ці пікселях. Калі мінімальная вышыня не ўсталявана, вышыня малюнка робіцца ў адпаведнасці з Colorbox"
254
+
255
+ #: includes/settings-page.php:228
256
+ msgid "Maximum width of the Colorbox"
257
+ msgstr "Максімальная вышыня Colorbox"
258
+
259
+ #: includes/settings-page.php:235
260
+ msgid "Set width of the Colorbox"
261
+ msgstr "Усталяваць шырыню для Colorbox"
262
+
263
+ #: includes/settings-page.php:246
264
+ msgid "Set the maximum width of the Colorbox itself in relation to the browser window to a value between in percent or pixels. If the image is bigger than the colorbox, scrollbars are displayed. If width is not set, the Colorbox will be as wide as the picture in it"
265
+ msgstr "Усталяваць максімальную шырыню Colorbox у адносінах да акна браўзара, паміж адсоткамі ці пікселямі. Калі малюнак больш, чым Colorbox , палосы прагорткі адлюстроўваюцца. Калі шырыня не зададзена, Colorbox будзе такой велічыні, як фатаграфія"
266
+
267
+ #: includes/settings-page.php:251
268
+ msgid "Maximum height of the Colorbox"
269
+ msgstr "Максімальная вышыня Colorbox"
270
+
271
+ #: includes/settings-page.php:258
272
+ msgid "Set height of the Colorbox"
273
+ msgstr "Максімальная вышыня Colorbox"
274
+
275
+ #: includes/settings-page.php:269
276
+ msgid "Set the maximum height of the Colorbox itself in relation to the browser window to a value between in percent or pixels. If the image is bigger than the colorbox, scrollbars are displayed. If height is not set, the Colorbox will be as high as the picture in it"
277
+ msgstr "Усталяваць максімальную вышыню Colorbox у адносінах да акна браўзара, паміж адсоткамі ці пікселямі. Калі малюнак больш, чым Colorbox , палосы прагорткі адлюстроўваюцца. Калі вышыня не зададзена, Colorbox будзе такой вышыні, як фатаграфія"
278
+
279
+ #: includes/settings-page.php:274
280
+ msgid "Resize images"
281
+ msgstr "Змена памеру малюнкаў"
282
+
283
+ #: includes/settings-page.php:278
284
+ msgid "If enabled and if maximum width of images, maximum height of images, width of the Colorbox, or height of the Colorbox have been defined, ColorBox will scale photos to fit within the those values"
285
+ msgstr "Калі ўключаны і калі максімальная шырыня малюнка, максімальная вышыня малюнка, шырыня ці вышыня Colorbox былі вызначаны, Colorbox будзе пашыраць фатаграфіі ў адпаведнасці з гэтымі значэннямі"
286
+
287
+ #: includes/settings-page.php:283
288
+ msgid "Close Colorbox on overlay click"
289
+ msgstr "Зачыніць Colorbox пры націску на фон"
290
+
291
+ #: includes/settings-page.php:287
292
+ msgid "If checked, enables closing ColorBox by clicking on the background overlay"
293
+ msgstr "Калі адзначана, дазваляе зачыняць ColorBox па націску на фон"
294
+
295
+ #: includes/settings-page.php:292
296
+ msgid "Preload images"
297
+ msgstr "Падгрузка малюнкаў"
298
+
299
+ #: includes/settings-page.php:296
300
+ msgid "Allows for preloading of \"next\" and \"previous\" content in a group, after the current content has finished loading. Uncheck box to disable."
301
+ msgstr "Дазваляе загружаць пры старце з \"след.\" and \"прад.\" утрыманні ў групе, пасля бягучага ўтрымання завяршэння загрузкі. Зніміце сцяжок, каб адключыць."
302
+
303
+ #: includes/settings-page.php:301
304
+ msgid "Transition type"
305
+ msgstr "Тып пераходу"
306
+
307
+ #: includes/settings-page.php:313
308
+ msgid "The transition type of the Colorbox. Can be set to \"elastic\", \"fade\", or \"none\""
309
+ msgstr "Тып пераходу для Colorbox. Можна ўсталяваць як \"эластычны\", \"знікненне\" ці \"не\""
310
+
311
+ #: includes/settings-page.php:318
312
+ msgid "Transition speed"
313
+ msgstr "Хуткасць пераходу"
314
+
315
+ #: includes/settings-page.php:322
316
+ msgid "Sets the speed of the \"fade\" and \"elastic\" transitions, in milliseconds"
317
+ msgstr "Усталяваць хуткасць \"знікненні\" and \"эластычнасці\", у мілісекундах"
318
+
319
+ #: includes/settings-page.php:327
320
+ msgid "Opacity"
321
+ msgstr "Празрыстасць"
322
+
323
+ #: includes/settings-page.php:331
324
+ msgid "The overlay opacity level. Range: 0 to 1"
325
+ msgstr "Узровень накладання непразрыстасці. Дыяпазон: ад 0 да 1"
326
+
327
+ #: includes/settings-page.php:336
328
+ msgid "Automate hiding of flash objects"
329
+ msgstr "Аўтаматычнае ўтойванне флэш-аб'ектаў"
330
+
331
+ #: includes/settings-page.php:340
332
+ msgid "Automatically hide embeded flash objects behind the Colorbox layer. Done by setting the wmode to transparent."
333
+ msgstr "Аўтаматычна хаваць флэш-аб'екты за пластом Colorbox . Робіцца ўсталёўкай wmode да празрыстага."
334
+
335
+ #: includes/settings-page.php:345
336
+ msgid "Disable warning"
337
+ msgstr "Адключыць папярэджанні"
338
+
339
+ #: includes/settings-page.php:349
340
+ msgid "Disables the warning that is displayed if the plugin is activated but the auto-colorbox feature for all images is turned off."
341
+ msgstr "Адключэнне папярэджанне, якое адлюстроўваецца, калі ўбудова будзе актываваны, але аўта-colorbox функцыя для ўсіх малюнкаў выключана."
342
+
343
+ #: includes/settings-page.php:355
344
+ msgid "Save Changes"
345
+ msgstr "Захаваць змены"
346
+
347
+ #: includes/settings-page.php:364
348
+ #: includes/settings-page.php:373
349
+ msgid "Delete Settings"
350
+ msgstr "Выдаліць налады"
351
+
352
+ #: includes/settings-page.php:367
353
+ msgid "Check the box and click this button to delete settings of this plugin."
354
+ msgstr "Усталюеце сцяжок і націсніце на гэту кнопку, каб выдаліць налады гэтай убудовы."
355
+
356
+ #: includes/settings-page.php:383
357
+ msgid "Donate"
358
+ msgstr "Ахвяраваць"
359
+
360
+ #: includes/settings-page.php:397
361
+ msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
362
+ msgstr "Калі вы жадалі б зрабіць невялікі (ці вялікі) унёсак у далейшае развіццё калі ласка, разгледзіце магчымасць ахвяравання."
363
+
364
+ #: includes/settings-page.php:406
365
+ msgid "Translation"
366
+ msgstr "Пераклад"
367
+
368
+ #: includes/settings-page.php:409
369
+ msgid "The english translation was done by <a href=\"http://www.techotronic.de\">Arne Franken</a>."
370
+ msgstr "Беларускі пераклад быў зроблены <a href=\"http://www.pc.de\">Marcis G</a>."
371
+
372
+ #~ msgid "maxWidth"
373
+ #~ msgstr "Maximum width of an image"
374
+
375
+ #~ msgid "maxHeight"
376
+ #~ msgstr "Maximum height of an image"
377
+
378
+ #~ msgid "width"
379
+ #~ msgstr "Maxinmum width of the Colorbox"
380
+
381
+ #~ msgid "height"
382
+ #~ msgstr "Maximum height of the Colorbox"
localization/jquery-colorbox-bs_BA.mo CHANGED
Binary file
localization/jquery-colorbox-bs_BA.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: jQuery-Colorbox\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-04-12 19:54+0100\n"
6
- "PO-Revision-Date: 2010-04-20 22:21+0100\n"
7
"Last-Translator: \n"
8
"Language-Team: \n"
9
"MIME-Version: 1.0\n"
@@ -14,110 +14,114 @@ msgstr ""
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SearchPath-0: .\n"
16
17
- #: jquery-colorbox.php:109
18
msgid "Theme #1"
19
msgstr "Tema #1"
20
21
- #: jquery-colorbox.php:110
22
msgid "Theme #2"
23
msgstr "Tema #2"
24
25
- #: jquery-colorbox.php:111
26
msgid "Theme #3"
27
msgstr "Tema #3"
28
29
- #: jquery-colorbox.php:112
30
msgid "Theme #4"
31
msgstr "Tema #4"
32
33
- #: jquery-colorbox.php:113
34
msgid "Theme #5"
35
msgstr "Tema #5"
36
37
- #: jquery-colorbox.php:114
38
msgid "Theme #6"
39
msgstr "Tema #6"
40
41
- #: jquery-colorbox.php:115
42
msgid "Theme #7"
43
msgstr "Tema #7"
44
45
- #: jquery-colorbox.php:116
46
msgid "Theme #8"
47
msgstr "Tema #8"
48
49
- #: jquery-colorbox.php:117
50
msgid "Theme #9"
51
msgstr "Tema #9"
52
53
- #: jquery-colorbox.php:118
54
msgid "Theme #10"
55
msgstr "Tema #10"
56
57
- #: jquery-colorbox.php:122
58
msgid "Theme #11"
59
msgstr "Tema #11"
60
61
- #: jquery-colorbox.php:123
62
msgid "Theme #12"
63
msgstr "Tema #12"
64
65
- #: jquery-colorbox.php:124
66
msgid "Theme #13"
67
msgstr "Tema #13"
68
69
- #: jquery-colorbox.php:125
70
msgid "Theme #14"
71
msgstr "Tema #14"
72
73
- #: jquery-colorbox.php:126
74
msgid "Theme #15"
75
msgstr "Tema #15"
76
77
- #: jquery-colorbox.php:131
78
msgid "percent"
79
msgstr "procenat"
80
81
- #: jquery-colorbox.php:132
82
msgid "pixels"
83
msgstr "piksel"
84
85
- #: jquery-colorbox.php:137
86
msgid "elastic"
87
msgstr "elastično"
88
89
- #: jquery-colorbox.php:138
90
msgid "fade"
91
msgstr "izblijediti"
92
93
- #: jquery-colorbox.php:139
94
msgid "none"
95
msgstr "bez efekta"
96
97
- #: jquery-colorbox.php:281
98
#: includes/settings-page.php:101
99
msgid "Settings"
100
msgstr "Opcije"
101
102
- #: jquery-colorbox.php:344
103
#, php-format
104
msgid "Successfully updated %1$s settings."
105
msgstr "Uspješno ažurirano %1$s promjena."
106
107
- #: jquery-colorbox.php:346
108
#, php-format
109
msgid "%1$s settings were successfully deleted."
110
msgstr "%1$s opcije su uspiješno izbrisane."
111
112
- #: jquery-colorbox.php:387
113
msgid "needs attention: the plugin is not activated to work for all images."
114
msgstr "Pažnja "
115
116
- #: jquery-colorbox.php:447
117
msgid "Did not update settings, you do not have the necessary rights."
118
msgstr "Opcije nisu ažurirane, nemaš potrebna ovlaštenja."
119
120
- #: jquery-colorbox.php:494
121
#, php-format
122
msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
123
msgstr " %1$s opcije nisu mogle biti izbrisane. Ili nemaš potrebna ovlaštenja ili si zaboravio da aktiviraš Checkbox."
2
msgstr ""
3
"Project-Id-Version: jQuery-Colorbox\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-05-04 00:11+0100\n"
6
+ "PO-Revision-Date: 2010-05-04 00:11+0100\n"
7
"Last-Translator: \n"
8
"Language-Team: \n"
9
"MIME-Version: 1.0\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SearchPath-0: .\n"
16
17
+ #: jquery-colorbox.php:110
18
msgid "Theme #1"
19
msgstr "Tema #1"
20
21
+ #: jquery-colorbox.php:111
22
msgid "Theme #2"
23
msgstr "Tema #2"
24
25
+ #: jquery-colorbox.php:112
26
msgid "Theme #3"
27
msgstr "Tema #3"
28
29
+ #: jquery-colorbox.php:113
30
msgid "Theme #4"
31
msgstr "Tema #4"
32
33
+ #: jquery-colorbox.php:114
34
msgid "Theme #5"
35
msgstr "Tema #5"
36
37
+ #: jquery-colorbox.php:115
38
msgid "Theme #6"
39
msgstr "Tema #6"
40
41
+ #: jquery-colorbox.php:116
42
msgid "Theme #7"
43
msgstr "Tema #7"
44
45
+ #: jquery-colorbox.php:117
46
msgid "Theme #8"
47
msgstr "Tema #8"
48
49
+ #: jquery-colorbox.php:118
50
msgid "Theme #9"
51
msgstr "Tema #9"
52
53
+ #: jquery-colorbox.php:119
54
msgid "Theme #10"
55
msgstr "Tema #10"
56
57
+ #: jquery-colorbox.php:120
58
msgid "Theme #11"
59
msgstr "Tema #11"
60
61
+ #: jquery-colorbox.php:124
62
msgid "Theme #12"
63
msgstr "Tema #12"
64
65
+ #: jquery-colorbox.php:125
66
msgid "Theme #13"
67
msgstr "Tema #13"
68
69
+ #: jquery-colorbox.php:126
70
msgid "Theme #14"
71
msgstr "Tema #14"
72
73
+ #: jquery-colorbox.php:127
74
msgid "Theme #15"
75
msgstr "Tema #15"
76
77
+ #: jquery-colorbox.php:132
78
msgid "percent"
79
msgstr "procenat"
80
81
+ #: jquery-colorbox.php:133
82
msgid "pixels"
83
msgstr "piksel"