jQuery Colorbox - Version 3.0.1

Version Description

(2010-03-31) = * BUGFIX: Settings are NOW REALLY not overridden any more every time the plugin gets activated.

Download this release

Release Info

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

Code changes from version 2.0.1 to 3.0.1

Files changed (74) hide show
  1. jquery-colorbox.php +511 -307
  2. localization/jquery-colorbox-ar_AR.mo +0 -0
  3. localization/jquery-colorbox-ar_AR.po +344 -0
  4. localization/jquery-colorbox-bs_BA.mo +0 -0
  5. localization/jquery-colorbox-bs_BA.po +343 -0
  6. localization/jquery-colorbox-de_DE.mo +0 -0
  7. localization/jquery-colorbox-de_DE.po +180 -70
  8. localization/jquery-colorbox-en_EN.mo +0 -0
  9. localization/jquery-colorbox-en_EN.po +160 -61
  10. localization/jquery-colorbox-pt_BR.mo +0 -0
  11. localization/jquery-colorbox-pt_BR.po +342 -0
  12. localization/jquery-colorbox-tr_TR.mo +0 -0
  13. localization/jquery-colorbox-tr_TR.po +344 -0
  14. readme.txt +59 -14
  15. screenshot-1.jpg +0 -0
  16. screenshot-2.jpg +0 -0
  17. screenshot-3.jpg +0 -0
  18. screenshot-4.jpg +0 -0
  19. screenshot-5.jpg +0 -0
  20. screenshot-6.jpg +0 -0
  21. screenshot-7.jpg +0 -0
  22. screenshot-8.jpg +0 -0
  23. themes/theme1/colorbox.css +4 -4
  24. themes/theme1/index.html +0 -86
  25. themes/theme2/colorbox.css +6 -6
  26. themes/theme2/index.html +0 -86
  27. themes/theme3/colorbox.css +2 -2
  28. themes/theme3/index.html +0 -86
  29. themes/theme4/colorbox.css +6 -6
  30. themes/theme4/index.html +0 -86
  31. themes/theme5/colorbox.css +9 -9
  32. themes/theme5/index.html +0 -86
  33. themes/theme6/colorbox.css +43 -0
  34. themes/theme6/images/border.png +0 -0
  35. themes/theme6/images/controls.png +0 -0
  36. themes/theme6/images/internet_explorer/borderBottomCenter.png +0 -0
  37. themes/theme6/images/internet_explorer/borderBottomLeft.png +0 -0
  38. themes/theme6/images/internet_explorer/borderBottomRight.png +0 -0
  39. themes/theme6/images/internet_explorer/borderMiddleLeft.png +0 -0
  40. themes/theme6/images/internet_explorer/borderMiddleRight.png +0 -0
  41. themes/theme6/images/internet_explorer/borderTopCenter.png +0 -0
  42. themes/theme6/images/internet_explorer/borderTopLeft.png +0 -0
  43. themes/theme6/images/internet_explorer/borderTopRight.png +0 -0
  44. themes/theme6/images/loading.gif +0 -0
  45. themes/theme6/images/loading_background.png +0 -0
  46. themes/theme6/images/overlay.png +0 -0
  47. themes/theme7/colorbox.css +43 -0
  48. themes/theme7/images/border.png +0 -0
  49. themes/theme7/images/controls.png +0 -0
  50. themes/theme7/images/internet_explorer/borderBottomCenter.png +0 -0
  51. themes/theme7/images/internet_explorer/borderBottomLeft.png +0 -0
  52. themes/theme7/images/internet_explorer/borderBottomRight.png +0 -0
  53. themes/theme7/images/internet_explorer/borderMiddleLeft.png +0 -0
  54. themes/theme7/images/internet_explorer/borderMiddleRight.png +0 -0
  55. themes/theme7/images/internet_explorer/borderTopCenter.png +0 -0
  56. themes/theme7/images/internet_explorer/borderTopLeft.png +0 -0
  57. themes/theme7/images/internet_explorer/borderTopRight.png +0 -0
  58. themes/theme7/images/loading.gif +0 -0
  59. themes/theme7/images/loading_background.png +0 -0
  60. themes/theme7/images/overlay.png +0 -0
  61. themes/theme8/colorbox.css +43 -0
  62. themes/theme8/images/border.png +0 -0
  63. themes/theme8/images/controls.png +0 -0
  64. themes/theme8/images/internet_explorer/borderBottomCenter.png +0 -0
  65. themes/theme8/images/internet_explorer/borderBottomLeft.png +0 -0
  66. themes/theme8/images/internet_explorer/borderBottomRight.png +0 -0
  67. themes/theme8/images/internet_explorer/borderMiddleLeft.png +0 -0
  68. themes/theme8/images/internet_explorer/borderMiddleRight.png +0 -0
  69. themes/theme8/images/internet_explorer/borderTopCenter.png +0 -0
  70. themes/theme8/images/internet_explorer/borderTopLeft.png +0 -0
  71. themes/theme8/images/internet_explorer/borderTopRight.png +0 -0
  72. themes/theme8/images/loading.gif +0 -0
  73. themes/theme8/images/loading_background.png +0 -0
  74. themes/theme8/images/overlay.png +0 -0
jquery-colorbox.php CHANGED
@@ -6,7 +6,7 @@
6
* Plugin Name: jQuery Colorbox
7
* Plugin URI: http://www.techotronic.de/index.php/plugins/jquery-colorbox/
8
* Description: Used to overlay images on the current page. Images in one post are grouped automatically.
9
- * Version: 2.0.1
10
* Author: Arne Franken
11
* Author URI: http://www.techotronic.de/
12
* License: GPL
@@ -20,36 +20,50 @@
20
<?php
21
22
/**
23
- * define vital constants
24
*/
25
- define( 'JQUERYCOLORBOX_VERSION', '2.0' );
26
27
- if ( ! defined( 'JQUERYCOLORBOX_PLUGIN_BASENAME' ) ) {
28
- define( 'JQUERYCOLORBOX_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
29
}
30
- if ( ! defined( 'JQUERYCOLORBOX_PLUGIN_NAME' ) ) {
31
- define( 'JQUERYCOLORBOX_PLUGIN_NAME', trim( dirname( JQUERYCOLORBOX_PLUGIN_BASENAME ), '/' ) );
32
}
33
- if ( ! defined( 'JQUERYCOLORBOX_NAME' ) ) {
34
- define( 'JQUERYCOLORBOX_NAME', 'jQuery Colorbox' );
35
}
36
- if ( ! defined( 'JQUERYCOLORBOX_TEXTDOMAIN' ) ) {
37
- define( 'JQUERYCOLORBOX_TEXTDOMAIN', 'jquery-colorbox' );
38
}
39
- if ( ! defined( 'JQUERYCOLORBOX_WP_PLUGIN_DIR' ) ) {
40
- define( 'JQUERYCOLORBOX_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME );
41
}
42
- if ( ! defined( 'JQUERYCOLORBOX_PLUGIN_DIR' ) ) {
43
- define( 'JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . PLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME );
44
}
45
- if ( ! defined( 'JQUERYCOLORBOX_PLUGIN_URL' ) ) {
46
- define( 'JQUERYCOLORBOX_PLUGIN_URL', WP_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME );
47
}
48
- if ( ! defined( 'JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR' ) ){
49
- define( 'JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR', JQUERYCOLORBOX_PLUGIN_DIR . '/localization' );
50
}
51
- if ( ! defined( 'JQUERYCOLORBOX_SETTINGSNAME' ) ) {
52
- define( 'JQUERYCOLORBOX_SETTINGSNAME', 'jquery-colorbox_settings' );
53
}
54
55
class jQueryColorbox {
@@ -69,48 +83,60 @@ class jQueryColorbox {
69
* @author Arne Franken
70
*/
71
function jQueryColorbox() {
72
- if ( !function_exists('plugins_url') )
73
return;
74
- // it seems that there is no way to find the plugin dir relative to the WP_PLUGIN_DIR through the Wordpress API...
75
- load_plugin_textdomain(JQUERYCOLORBOX_TEXTDOMAIN, false, '/jquery-colorbox/localization/' );
76
-
77
- add_action('wp_head', array(&$this, 'buildWordpressHeader') );
78
- add_action('admin_post_jQueryColorboxDeleteSettings', array(&$this, 'jQueryColorboxDeleteSettings') );
79
- add_action('admin_post_jQueryColorboxUpdateSettings', array(&$this, 'jQueryColorboxUpdateSettings') );
80
- // add options page
81
- add_action( 'admin_menu', array(&$this, 'registerAdminMenu') );
82
- //register method for uninstall
83
- if ( function_exists('register_uninstall_hook') ){
84
- register_uninstall_hook(__FILE__, array('jQueryColorbox', 'deleteSettingsFromDatabase' ) );
85
}
86
87
- //write "colorbox-postID" to "img"-tags class attribute.
88
- //Priority = 100, hopefully the preg_replace is then executed after other plugins messed with the_content
89
- add_filter('the_content', array(&$this, 'addColorboxGroupIdToImages'), 100);
90
- add_filter('the_excerpt', array(&$this, 'addColorboxGroupIdToImages'), 100);
91
- add_filter('wp_get_attachment_image_attributes', array(&$this, 'wpPostThumbnailClassFilter') );
92
93
94
- if ( !is_admin() ) {
95
- wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.3.6' );
96
}
97
98
- // Create list of themes and their human readable names
99
$this->colorboxThemes = array(
100
- 'theme1' => __( 'Theme #1', JQUERYCOLORBOX_TEXTDOMAIN ),
101
- 'theme2' => __( 'Theme #2', JQUERYCOLORBOX_TEXTDOMAIN ),
102
- 'theme3' => __( 'Theme #3', JQUERYCOLORBOX_TEXTDOMAIN ),
103
- 'theme4' => __( 'Theme #4', JQUERYCOLORBOX_TEXTDOMAIN ),
104
- 'theme5' => __( 'Theme #5', JQUERYCOLORBOX_TEXTDOMAIN ),
105
);
106
107
- // create list of units
108
- $this->colorboxUnits = array (
109
- '%' => __( 'percent', JQUERYCOLORBOX_TEXTDOMAIN ),
110
- 'px' => __( 'pixels', JQUERYCOLORBOX_TEXTDOMAIN )
111
);
112
113
- // Create array of default settings
114
$this->colorboxDefaultSettings = array(
115
'jQueryColorboxVersion' => JQUERYCOLORBOX_VERSION,
116
'colorboxTheme' => 'theme1',
@@ -131,21 +157,28 @@ class jQueryColorbox {
131
'slideshow' => false,
132
'slideshowAuto' => false,
133
'scalePhotos' => false,
134
- 'slideshowSpeed' => '2500'
135
);
136
137
- // Create the settings array by merging the user's settings and the defaults
138
$usersettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
139
- $this->colorboxSettings = wp_parse_args( $usersettings, jQueryColorbox::jQueryColorboxDefaultSettings() );
140
141
- // Enqueue the theme in wordpress
142
- if ( empty($this->colorboxThemes[$this->colorboxSettings['colorboxTheme']]) ) {
143
$defaultArray = jQueryColorbox::jQueryColorboxDefaultSettings();
144
$this->colorboxSettings['colorboxTheme'] = $defaultArray['colorboxTheme'];
145
}
146
- if ( !is_admin() ) {
147
- wp_register_style('colorbox-' . $this->colorboxSettings['colorboxTheme'], plugins_url( 'themes/' . $this->colorboxSettings['colorboxTheme'] . '/colorbox.css', __FILE__ ), array(), '1.3.6', 'screen' );
148
- wp_enqueue_style('colorbox-' . $this->colorboxSettings['colorboxTheme'] );
149
}
150
}
151
@@ -166,13 +199,13 @@ class jQueryColorbox {
166
* @param the_content or the_excerpt
167
* @return replaced content or excerpt
168
*/
169
- function addColorboxGroupIdToImages ($content) {
170
$colorboxSettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
171
- if(isset($colorboxSettings['autoColorbox']) && $colorboxSettings['autoColorbox']){
172
global
173
$post;
174
$pattern = "/<img(.*?)class=('|\")([A-Za-z0-9 \/_\.\~\:-]*?)('|\")([^\>]*?)>/i";
175
- $replacement = '<img$1class=$2$3 colorbox-'.$post->ID.'$4$5>';
176
$content = preg_replace($pattern, $replacement, $content);
177
}
178
return $content;
@@ -192,12 +225,12 @@ class jQueryColorbox {
192
* @param $attr class attribute of the attachment link
193
* @return repaced attributes
194
*/
195
- function wpPostThumbnailClassFilter( $attr ) {
196
$colorboxSettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
197
- if(isset($colorboxSettings['autoColorboxGalleries']) && $colorboxSettings['autoColorboxGalleries']){
198
global
199
$post;
200
- $attr['class'] .= ' colorbox-'.$post->ID.' ';
201
}
202
return $attr;
203
}
@@ -212,9 +245,9 @@ class jQueryColorbox {
212
* @author Arne Franken
213
*/
214
function registerSettingsPage() {
215
- if ( current_user_can('manage_options') ) {
216
- add_filter( 'plugin_action_links_' . JQUERYCOLORBOX_PLUGIN_BASENAME, array(&$this, 'addPluginActionLinks') );
217
- add_options_page( JQUERYCOLORBOX_NAME, JQUERYCOLORBOX_NAME, 'manage_options', JQUERYCOLORBOX_PLUGIN_BASENAME, array(&$this, 'renderSettingsPage') );
218
}
219
}
220
@@ -231,8 +264,8 @@ class jQueryColorbox {
231
* @return action_links with link to settings page
232
*/
233
function addPluginActionLinks($action_links) {
234
- $settings_link = '<a href="options-general.php?page='.JQUERYCOLORBOX_PLUGIN_BASENAME.'">' . __('Settings', JQUERYCOLORBOX_TEXTDOMAIN) . '</a>';
235
- array_unshift( $action_links, $settings_link );
236
237
return $action_links;
238
}
@@ -246,6 +279,7 @@ class jQueryColorbox {
246
* @access private
247
* @author Arne Franken
248
* @author Fabian Wolf (http://usability-idealist.de/)
249
*
250
* @return rewritten content or excerpt
251
*/
@@ -253,11 +287,11 @@ class jQueryColorbox {
253
?>
254
<!-- <?php echo JQUERYCOLORBOX_NAME ?> <?php echo JQUERYCOLORBOX_VERSION ?> | by Arne Franken, http://www.techotronic.de/ -->
255
<?php
256
- if($this->colorboxSettings['colorboxTheme']=='theme1'){
257
?>
258
<!--[if IE]>
259
<style type="text/css">
260
- /*
261
The following fixes png-transparency for IE6.
262
It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
263
@@ -267,6 +301,7 @@ class jQueryColorbox {
267
!! Important Note: AlphaImageLoader src paths are relative to the HTML document,
268
while regular CSS background images are relative to the CSS document.
269
*/
270
.cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
271
.cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
272
.cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
@@ -279,11 +314,11 @@ class jQueryColorbox {
279
<![endif]-->
280
<?php
281
282
- } elseif ($this->colorboxSettings['colorboxTheme']=='theme4'){
283
?>
284
<!--[if IE]>
285
<style type="text/css">
286
- /*
287
The following fixes png-transparency for IE6.
288
It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
289
@@ -293,6 +328,7 @@ class jQueryColorbox {
293
!! Important Note: AlphaImageLoader src paths are relative to the HTML document,
294
while regular CSS background images are relative to the CSS document.
295
*/
296
.cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
297
.cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
298
.cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
@@ -311,48 +347,62 @@ class jQueryColorbox {
311
<script type="text/javascript">
312
// <![CDATA[
313
jQuery(document).ready(function($) {
314
- //gets all "a" elements that have a nested "img"
315
$("a:has(img)").each(function(index, obj) {
316
- //only go on if link points to an image
317
- if ($(obj).attr("href").match('\.(?:jpe?g|gif|png|bmp)')) {
318
- //in this context, the first child is always an image if fundamental Wordpress functions are used
319
var $nestedElement = $(obj).children(0);
320
if ($nestedElement.is("img")) {
321
var $nestedElementClassAttribute = $nestedElement.attr("class");
322
- //either the groupId has to be the automatically created colorbox-123 or the manually added colorbox-manual
323
var $groupId = $nestedElementClassAttribute.match('colorbox-[0-9]+') || $nestedElementClassAttribute.match('colorbox-manual');
324
- //only call Colorbox if there is a groupId for the image and the image is not excluded
325
if ($groupId && !$nestedElementClassAttribute.match('colorbox-off')) {
326
- //convert groupId to string for easier use
327
$groupId = $groupId.toString();
328
- //if groudId is colorbox-manual, set groupId to false so that images with that class are not grouped
329
if ($groupId == "colorbox-manual") {
330
$groupId = false;
331
}
332
- //call Colorbox function on each img. elements with the same groupId in the class attribute are grouped
333
- //the title of the img is used as the title for the Colorbox.
334
$(obj).colorbox({
335
rel:$groupId,
336
title:$nestedElement.attr("title"),
337
- <?php echo $this->colorboxSettings['maxWidth']=="false"?'':'maxWidth:"'.$this->colorboxSettings['maxWidthValue'].$this->colorboxSettings['maxWidthUnit'].'",';
338
- echo $this->colorboxSettings['maxHeight']=="false"?'':'maxHeight:"'.$this->colorboxSettings['maxHeightValue'].$this->colorboxSettings['maxHeightUnit'].'",';
339
- echo $this->colorboxSettings['height']=="false"?'':'height:"'.$this->colorboxSettings['heightValue'].$this->colorboxSettings['heightUnit'].'",';
340
- echo $this->colorboxSettings['width']=="false"?'':'width:"'.$this->colorboxSettings['widthValue'].$this->colorboxSettings['widthUnit'].'",';
341
- echo !$this->colorboxSettings['slideshow']?'':'slideshow:true,';
342
- echo $this->colorboxSettings['slideshowAuto']?'':'slideshowAuto:false,';
343
- echo $this->colorboxSettings['scalePhotos']?'':'scalePhotos:false,'; ?>
344
- slideshowSpeed:"<?php echo $this->colorboxSettings['slideshowSpeed']; ?>",
345
- close:"<?php _e( 'close', JQUERYCOLORBOX_TEXTDOMAIN ); ?>",
346
- next:"<?php _e( 'next', JQUERYCOLORBOX_TEXTDOMAIN ); ?>",
347
- previous:"<?php _e( 'previous', JQUERYCOLORBOX_TEXTDOMAIN ); ?>",
348
- slideshowStart:"<?php _e( 'start slideshow', JQUERYCOLORBOX_TEXTDOMAIN ); ?>",
349
- slideshowStop:"<?php _e( 'stop slideshow', JQUERYCOLORBOX_TEXTDOMAIN ); ?>",
350
- current:"<?php _e( '{current} of {total} images', JQUERYCOLORBOX_TEXTDOMAIN ); ?>"
351
});
352
}
353
}
354
}
355
});
356
});
357
// ]]>
358
</script>
@@ -427,210 +477,313 @@ class jQueryColorbox {
427
$("#jquery-colorbox-autoColorbox").attr("checked", false);
428
}
429
});
430
});
431
//]]>
432
</script>
433
<div class="wrap">
434
<?php screen_icon(); ?>
435
- <h2><?php printf(__( '%1$s Settings', JQUERYCOLORBOX_TEXTDOMAIN ),JQUERYCOLORBOX_NAME); ?></h2>
436
<br class="clear"/>
437
438
<?php settings_fields(JQUERYCOLORBOX_SETTINGSNAME); ?>
439
440
<div id="poststuff" class="ui-sortable meta-box-sortables">
441
- <div id="jquery-colorbox-settings" class="postbox">
442
- <h3 id="settings"><?php _e( 'Settings', JQUERYCOLORBOX_TEXTDOMAIN ); ?></h3>
443
-
444
- <div class="inside">
445
- <form name="jquery-colorbox-settings-update" method="post" action="admin-post.php">
446
- <?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('jquery-colorbox-settings-form'); ?>
447
-
448
- <table class="form-table">
449
- <tr valign="top">
450
- <th scope="row">
451
- <label for="jquery-colorbox-theme"><?php _e('Theme', JQUERYCOLORBOX_TEXTDOMAIN); ?></label>
452
- </th>
453
- <td>
454
- <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[colorboxTheme]" id="jquery-colorbox-theme" class="postform" style="margin:0">
455
- <?php
456
- foreach ( $this->colorboxThemes as $theme => $name ) {
457
- echo '<option value="' . esc_attr($theme) . '"';
458
- selected( $this->colorboxSettings['colorboxTheme'], $theme );
459
- echo '>' . htmlspecialchars($name) . "</option>\n";
460
- }
461
- ?>
462
- </select>
463
- <br/><?php _e( 'Select the theme you want to use on your blog.', JQUERYCOLORBOX_TEXTDOMAIN ); ?>
464
- </td>
465
- </tr>
466
- <tr>
467
- <th scope="row">
468
- <label for="jquery-colorbox-autoColorbox"><?php printf(__('Automate %1$s for all images', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME); ?>:</label>
469
- </th>
470
- <td>
471
- <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorbox]" id="jquery-colorbox-autoColorbox" value="true" <?php echo ($this->colorboxSettings['autoColorbox'])?'checked="checked"':'';?>/>
472
- <br/><?php _e('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.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
473
- </td>
474
- </tr>
475
- <tr>
476
- <th scope="row">
477
- <label for="jquery-colorbox-autoColorboxGalleries"><?php printf(__('Automate %1$s for images in WordPress galleries', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME); ?>:</label>
478
- </th>
479
- <td>
480
- <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorboxGalleries]" id="jquery-colorbox-autoColorboxGalleries" value="true" <?php echo ($this->colorboxSettings['autoColorboxGalleries'])?'checked="checked"':'';?>/>
481
- <br/><?php _e('Automatically add colorbox-class to images in WordPress galleries, but nowhere else. Images in one page or post are grouped automatically.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
482
- </td>
483
- </tr>
484
- <tr>
485
- <th scope="row">
486
- <label for="jquery-colorbox-slideshow"><?php _e('Add Slideshow to groups', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
487
- </th>
488
- <td>
489
- <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshow]" id="jquery-colorbox-slideshow" value="true" <?php echo ($this->colorboxSettings['slideshow'])?'checked="checked"':'';?>/>
490
- <br/><?php printf(__('Add Slideshow functionality for %1$s Groups', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME); ?>
491
- </td>
492
- </tr>
493
- <tr>
494
- <th scope="row">
495
- <label for="jquery-colorbox-slideshowAuto"><?php _e('Start Slideshow automatically', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
496
- </th>
497
- <td>
498
- <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshowAuto]" id="jquery-colorbox-slideshowAuto" value="true" <?php echo ($this->colorboxSettings['slideshowAuto'])?'checked="checked"':'';?>/>
499
- <br/><?php printf(__('Start Slideshow automatically if slideshow functionality is added to %1$s Groups', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME); ?>
500
- </td>
501
- </tr>
502
- <tr>
503
- <th scope="row">
504
- <label for="jquery-colorbox-slideshowSpeed"><?php _e('Speed of the slideshow', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
505
- </th>
506
- <td>
507
- <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshowSpeed]" id="jquery-colorbox-slideshowSpeed" value="<?php echo $this->colorboxSettings['slideshowSpeed'] ?>" size="5" maxlength="5"/>ms
508
- <br/><?php _e('Sets the speed of the slideshow, in milliseconds', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
509
- </td>
510
- </tr>
511
- <tr>
512
- <th scope="row">
513
- <label for="jquery-colorbox-maxWidthValue"><?php _e('Maximum width of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
514
- </th>
515
- <td>
516
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidth]" id="jquery-colorbox-maxWidth-false-radio" value="false" <?php echo ($this->colorboxSettings['maxWidth'])=='false'?'checked="checked"':''; ?>"/>
517
- <label for="jquery-colorbox-maxWidth-false-radio"><?php _e('Do not set width', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
518
- <br/>
519
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidth]" id="jquery-colorbox-maxWidth-custom-radio" value="custom" <?php echo ($this->colorboxSettings['maxWidth'])=='custom'?'checked="checked"':''; ?>"/>
520
- <label for="jquery-colorbox-maxWidth-custom-radio"><?php _e('Set maximum width of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
521
- <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidthValue]" id="jquery-colorbox-maxWidthValue" value="<?php echo $this->colorboxSettings['maxWidthValue'] ?>" size="3" maxlength="3"/>
522
- <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidthUnit]" id="jquery-colorbox-maxWidth-unit" class="postform" style="margin:0">
523
- <?php
524
- foreach ( $this->colorboxUnits as $unit => $name ) {
525
- echo '<option value="' . esc_attr($unit) . '"';
526
- selected( $this->colorboxSettings['maxWidthUnit'], $unit );
527
- echo '>' . htmlspecialchars($name) . "</option>\n";
528
- }
529
- ?>
530
- </select>
531
- <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
532
- </td>
533
- </tr>
534
- <tr>
535
- <th scope="row">
536
- <label for="jquery-colorbox-maxHeightValue"><?php _e('Maximum height of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
537
- </th>
538
- <td>
539
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeight]" id="jquery-colorbox-maxHeight-false-radio" value="false" <?php echo ($this->colorboxSettings['maxHeight'])=='false'?'checked="checked"':''; ?>"/>
540
- <label for="jquery-colorbox-maxHeight-false-radio"><?php _e('Do not set height', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
541
- <br/>
542
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeight]" id="jquery-colorbox-maxHeight-custom-radio" value="custom" <?php echo ($this->colorboxSettings['maxHeight'])=='custom'?'checked="checked"':''; ?>"/>
543
- <label for="jquery-colorbox-maxHeight-custom-radio"><?php _e('Set maximum height of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
544
- <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeightValue]" id="jquery-colorbox-maxHeightValue" value="<?php echo $this->colorboxSettings['maxHeightValue'] ?>" size="3" maxlength="3"/>
545
- <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeightUnit]" id="jquery-colorbox-maxHeight-unit" class="postform" style="margin:0">
546
- <?php
547
- foreach ( $this->colorboxUnits as $unit => $name ) {
548
- echo '<option value="' . esc_attr($unit) . '"';
549
- selected( $this->colorboxSettings['maxHeightUnit'], $unit );
550
- echo '>' . htmlspecialchars($name) . "</option>\n";
551
- }
552
- ?>
553
- </select>
554
- <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
555
- </td>
556
- </tr>
557
- <tr>
558
- <th scope="row">
559
- <label for="jquery-colorbox-widthValue"><?php _e('Maximum width of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
560
- </th>
561
- <td>
562
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[width]" id="jquery-colorbox-width-false-radio" value="false" <?php echo ($this->colorboxSettings['width'])=='false'?'checked="checked"':''; ?>"/>
563
- <label for="jquery-colorbox-width-false-radio"><?php _e('Do not set width', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
564
- <br/>
565
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[width]" id="jquery-colorbox-width-custom-radio" value="custom" <?php echo ($this->colorboxSettings['width'])=='custom'?'checked="checked"':''; ?>"/>
566
- <label for="jquery-colorbox-width-custom-radio"><?php _e('Set width of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
567
- <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[widthValue]" id="jquery-colorbox-widthValue" value="<?php echo $this->colorboxSettings['widthValue'] ?>" size="3" maxlength="3"/>
568
- <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[widthUnit]" id="jquery-colorbox-width-unit" class="postform" style="margin:0">
569
- <?php
570
- foreach ( $this->colorboxUnits as $unit => $name ) {
571
- echo '<option value="' . esc_attr($unit) . '"';
572
- selected( $this->colorboxSettings['widthUnit'], $unit );
573
- echo '>' . htmlspecialchars($name) . "</option>\n";
574
- }
575
- ?>
576
- </select>
577
- <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
578
- </td>
579
- </tr>
580
- <tr>
581
- <th scope="row">
582
- <label for="jquery-colorbox-heightValue"><?php _e('Maximum height of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
583
- </th>
584
- <td>
585
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[height]" id="jquery-colorbox-height-false-radio" value="false" <?php echo ($this->colorboxSettings['height'])=='false'?'checked="checked"':''; ?>"/>
586
- <label for="jquery-colorbox-height-false-radio"><?php _e('Do not set height', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
587
- <br/>
588
- <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[height]" id="jquery-colorbox-height-custom-radio" value="custom" <?php echo ($this->colorboxSettings['height'])=='custom'?'checked="checked"':''; ?>"/>
589
- <label for="jquery-colorbox-height-custom-radio"><?php _e('Set height of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
590
- <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[heightValue]" id="jquery-colorbox-heightValue" value="<?php echo $this->colorboxSettings['heightValue'] ?>" size="3" maxlength="3"/>
591
- <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[heightUnit]" id="jquery-colorbox-height-unit" class="postform" style="margin:0">
592
- <?php
593
- foreach ( $this->colorboxUnits as $unit => $name ) {
594
- echo '<option value="' . esc_attr($unit) . '"';
595
- selected( $this->colorboxSettings['heightUnit'], $unit );
596
- echo '>' . htmlspecialchars($name) . "</option>\n";
597
- }
598
- ?>
599
- </select>
600
- <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
601
- </td>
602
- </tr>
603
- <tr>
604
- <th scope="row">
605
- <label for="jquery-colorbox-scalePhotos"><?php _e('Resize images', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
606
- </th>
607
- <td>
608
- <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[scalePhotos]" id="jquery-colorbox-scalePhotos" value="true" <?php echo ($this->colorboxSettings['scalePhotos'])?'checked="checked"':'';?>/>
609
- <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
610
- </td>
611
- </tr>
612
- </table>
613
- <p class="submit">
614
- <input type="hidden" name="action" value="jQueryColorboxUpdateSettings"/>
615
- <input type="submit" name="jQueryColorboxUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
616
- </p>
617
- </form>
618
</div>
619
- </div>
620
</div>
621
622
<div id="poststuff" class="ui-sortable meta-box-sortables">
623
<div id="jquery-colorbox-delete_settings" class="postbox">
624
- <h3 id="delete_options"><?php _e('Delete Settings',JQUERYCOLORBOX_TEXTDOMAIN) ?></h3>
625
626
<div class="inside">
627
- <p><?php _e('Check the box and click this button to delete settings of this plugin.',JQUERYCOLORBOX_TEXTDOMAIN); ?></p>
628
629
<form name="delete_settings" method="post" action="admin-post.php">
630
<?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('jquery-delete_settings-form'); ?>
631
<p id="submitbutton">
632
<input type="hidden" name="action" value="jQueryColorboxDeleteSettings"/>
633
- <input type="submit" name="jQueryColorboxDeleteSettings" value="<?php _e('Delete Settings',JQUERYCOLORBOX_TEXTDOMAIN); ?> &raquo;" class="button-secondary"/>
634
<input type="checkbox" name="delete_settings-true"/>
635
</p>
636
</form>
@@ -640,7 +793,7 @@ class jQueryColorbox {
640
641
<div id="poststuff" class="ui-sortable meta-box-sortables">
642
<div id="jquery-colorbox-donate" class="postbox">
643
- <h3 id="donate"><?php _e('Donate',JQUERYCOLORBOX_TEXTDOMAIN) ?></h3>
644
645
<div class="inside">
646
<p>
@@ -660,6 +813,16 @@ class jQueryColorbox {
660
</div>
661
</div>
662
</div>
663
</div>
664
<?php
665
@@ -675,13 +838,13 @@ class jQueryColorbox {
675
* @author Arne Franken
676
*/
677
function registerAdminMenu() {
678
- if ( function_exists('add_management_page') && current_user_can('manage_options') ) {
679
680
// update, uninstall message
681
- if ( strpos($_SERVER['REQUEST_URI'], 'jquery-colorbox.php') && isset($_GET['jQueryColorboxUpdateSettings'])) {
682
- $return_message = sprintf(__('Successfully updated %1$s settings.', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME);
683
} elseif (strpos($_SERVER['REQUEST_URI'], 'jquery-colorbox.php') && isset($_GET['jQueryColorboxDeleteSettings'])) {
684
- $return_message = sprintf(__('%1$s settings were successfully deleted.', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME);
685
} else {
686
$return_message = '';
687
}
@@ -700,14 +863,43 @@ class jQueryColorbox {
700
* @access private
701
* @author Arne Franken
702
*/
703
- function registerAdminNotice($notice){
704
- if ( $notice != '' ) {
705
$message = '<div class="updated fade"><p>' . $notice . '</p></div>';
706
- add_action('admin_notices', create_function( '', "echo '$message';" ) );
707
}
708
}
709
710
- static function jQueryColorboxDefaultSettings(){
711
712
// Create and return array of default settings
713
return array(
@@ -730,7 +922,14 @@ class jQueryColorbox {
730
'slideshow' => false,
731
'slideshowAuto' => false,
732
'scalePhotos' => false,
733
- 'slideshowSpeed' => '2500'
734
);
735
}
736
@@ -745,15 +944,18 @@ class jQueryColorbox {
745
*/
746
function jQueryColorboxUpdateSettings() {
747
748
- if ( !current_user_can('manage_options') )
749
- wp_die( __('Did not update settings, you do not have the necessary rights.', JQUERYCOLORBOX_TEXTDOMAIN) );
750
751
- //cross check the given referer for nonce set in settings form
752
check_admin_referer('jquery-colorbox-settings-form');
753
$this->colorboxSettings = $_POST[JQUERYCOLORBOX_SETTINGSNAME];
754
$this->updateSettingsInDatabase();
755
- $referrer = str_replace(array('&jQueryColorboxUpdateSettings','&jQueryColorboxDeleteSettings'), '', $_POST['_wp_http_referer'] );
756
- wp_redirect($referrer . '&jQueryColorboxUpdateSettings' );
757
}
758
759
// jQueryColorboxUpdateSettings()
@@ -784,17 +986,17 @@ class jQueryColorbox {
784
*/
785
function jQueryColorboxDeleteSettings() {
786
787
- if ( current_user_can('manage_options') && isset($_POST['delete_settings-true']) ){
788
//cross check the given referer for nonce set in delete settings form
789
check_admin_referer('jquery-delete_settings-form');
790
$this->deleteSettingsFromDatabase();
791
$this->colorboxSettings = jQueryColorbox::jQueryColorboxDefaultSettings();
792
} else {
793
- wp_die( sprintf(__('Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox.', JQUERYCOLORBOX_TEXTDOMAIN),JQUERYCOLORBOX_NAME) );
794
}
795
- //clean up referrer
796
- $referrer = str_replace(array('&jQueryColorboxUpdateSettings','&jQueryColorboxDeleteSettings'), '', $_POST['_wp_http_referer'] );
797
- wp_redirect($referrer . '&jQueryColorboxDeleteSettings' );
798
}
799
800
// jQueryColorboxDeleteSettings()
@@ -823,13 +1025,15 @@ class jQueryColorbox {
823
*/
824
function activateJqueryColorbox() {
825
$jquery_colorbox_settings = get_option(JQUERYCOLORBOX_SETTINGSNAME);
826
- if($jquery_colorbox_settings){
827
//if jQueryColorboxVersion does not exist, the plugin is a version prior to 2.0
828
//settings are incompatible with 2.0, restore default settings.
829
- if(!array_key_exists('jQueryColorboxVersion',$jquery_colorbox_settings)){
830
- //in case future versions require resetting the settings
831
- //if($jquery_colorbox_settings['jQueryColorboxVersion'] < JQUERYCOLORBOX_VERSION)
832
- update_option(JQUERYCOLORBOX_SETTINGSNAME, jQueryColorbox::jQueryColorboxDefaultSettings());
833
}
834
}
835
}
@@ -855,8 +1059,8 @@ function jQueryColorbox() {
855
//jQueryColorbox()
856
857
// add jQueryColorbox() to WordPress initialization
858
- add_action( 'init', 'jQueryColorbox', 7 );
859
860
//register method for activation
861
- register_activation_hook(__FILE__,array('jQueryColorbox', 'activateJqueryColorbox'));
862
?>
6
* Plugin Name: jQuery Colorbox
7
* Plugin URI: http://www.techotronic.de/index.php/plugins/jquery-colorbox/
8
* Description: Used to overlay images on the current page. Images in one post are grouped automatically.
9
+ * Version: 3.0.1
10
* Author: Arne Franken
11
* Author URI: http://www.techotronic.de/
12
* License: GPL
20
<?php
21
22
/**
23
+ * define constants
24
*/
25
+ define('JQUERYCOLORBOX_VERSION', '3.0.1');
26
27
+ if (! defined('JQUERYCOLORBOX_PLUGIN_BASENAME')) {
28
+ define('JQUERYCOLORBOX_PLUGIN_BASENAME', plugin_basename(__FILE__));
29
}
30
+ if (! defined('JQUERYCOLORBOX_PLUGIN_NAME')) {
31
+ define('JQUERYCOLORBOX_PLUGIN_NAME', trim(dirname(JQUERYCOLORBOX_PLUGIN_BASENAME), '/'));
32
}
33
+ if (! defined('JQUERYCOLORBOX_NAME')) {
34
+ define('JQUERYCOLORBOX_NAME', 'jQuery Colorbox');
35
}
36
+ if (! defined('JQUERYCOLORBOX_TEXTDOMAIN')) {
37
+ define('JQUERYCOLORBOX_TEXTDOMAIN', 'jquery-colorbox');
38
}
39
+ if (! defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
40
+ if (is_dir(WPMU_PLUGIN_DIR)) {
41
+ // WP_MU plugin
42
+ define('JQUERYCOLORBOX_PLUGIN_DIR', WPMU_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
43
+ } else {
44
+ // WP regular plugin
45
+ define('JQUERYCOLORBOX_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
46
+ }
47
}
48
+ if (! defined('JQUERYCOLORBOX_PLUGIN_DIR')) {
49
+ if (is_dir(WPMU_PLUGIN_DIR)) {
50
+ define('JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . MUPLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
51
+ } else {
52
+ define('JQUERYCOLORBOX_PLUGIN_DIR', ABSPATH . '/' . PLUGINDIR . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
53
+ }
54
}
55
+ if (! defined('JQUERYCOLORBOX_PLUGIN_URL')) {
56
+ if (is_dir(WPMU_PLUGIN_DIR)) {
57
+ define('JQUERYCOLORBOX_PLUGIN_URL', WPMU_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
58
+ } else {
59
+ define('JQUERYCOLORBOX_PLUGIN_URL', WP_PLUGIN_URL . '/' . JQUERYCOLORBOX_PLUGIN_NAME);
60
+ }
61
}
62
+ if (! defined('JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR')) {
63
+ define('JQUERYCOLORBOX_PLUGIN_LOCALIZATION_DIR', JQUERYCOLORBOX_PLUGIN_DIR . '/localization');
64
}
65
+ if (! defined('JQUERYCOLORBOX_SETTINGSNAME')) {
66
+ define('JQUERYCOLORBOX_SETTINGSNAME', 'jquery-colorbox_settings');
67
}
68
69
class jQueryColorbox {
83
* @author Arne Franken
84
*/
85
function jQueryColorbox() {
86
+ if (!function_exists('plugins_url')) {
87
return;
88
}
89
90
+ load_plugin_textdomain(JQUERYCOLORBOX_TEXTDOMAIN, false, '/jquery-colorbox/localization/');
91
+
92
+ add_action('wp_head', array(& $this, 'buildWordpressHeader'));
93
+ add_action('admin_post_jQueryColorboxDeleteSettings', array(& $this, 'jQueryColorboxDeleteSettings'));
94
+ add_action('admin_post_jQueryColorboxUpdateSettings', array(& $this, 'jQueryColorboxUpdateSettings'));
95
+ // add options page
96
+ add_action('admin_menu', array(& $this, 'registerAdminMenu'));
97
+ add_action('admin_notices', array(& $this, 'registerAdminWarning'));
98
+ //register method for uninstall
99
+ if (function_exists('register_uninstall_hook')) {
100
+ register_uninstall_hook(__FILE__, array('jQueryColorbox', 'deleteSettingsFromDatabase'));
101
+ }
102
+
103
+ //write "colorbox-postID" to "img"-tags class attribute.
104
+ //Priority = 100, hopefully the preg_replace is then executed after other plugins messed with the_content
105
+ add_filter('the_content', array(& $this, 'addColorboxGroupIdToImages'), 100);
106
+ add_filter('the_excerpt', array(& $this, 'addColorboxGroupIdToImages'), 100);
107
+ add_filter('wp_get_attachment_image_attributes', array(& $this, 'wpPostThumbnailClassFilter'));
108
109
110
+ if (!is_admin()) {
111
+ wp_enqueue_script('colorbox', plugins_url('js/jquery.colorbox-min.js', __FILE__), array('jquery'), '1.3.6');
112
}
113
114
+ // Create list of themes and their human readable names
115
$this->colorboxThemes = array(
116
+ 'theme1' => __('Theme #1', JQUERYCOLORBOX_TEXTDOMAIN),
117
+ 'theme2' => __('Theme #2', JQUERYCOLORBOX_TEXTDOMAIN),
118
+ 'theme3' => __('Theme #3', JQUERYCOLORBOX_TEXTDOMAIN),
119
+ 'theme4' => __('Theme #4', JQUERYCOLORBOX_TEXTDOMAIN),
120
+ 'theme5' => __('Theme #5', JQUERYCOLORBOX_TEXTDOMAIN),
121
+ 'theme6' => __('Theme #6', JQUERYCOLORBOX_TEXTDOMAIN),
122
+ 'theme7' => __('Theme #7', JQUERYCOLORBOX_TEXTDOMAIN),
123
+ 'theme8' => __('Theme #8', JQUERYCOLORBOX_TEXTDOMAIN)
124
+ );
125
+
126
+ // create list of units
127
+ $this->colorboxUnits = array(
128
+ '%' => __('percent', JQUERYCOLORBOX_TEXTDOMAIN),
129
+ 'px' => __('pixels', JQUERYCOLORBOX_TEXTDOMAIN)
130
);
131
132
+ // create list of units
133
+ $this->colorboxTransitions = array(
134
+ 'elastic' => __('elastic', JQUERYCOLORBOX_TEXTDOMAIN),
135
+ 'fade' => __('fade', JQUERYCOLORBOX_TEXTDOMAIN),
136
+ 'none' => __('none', JQUERYCOLORBOX_TEXTDOMAIN)
137
);
138
139
+ // Create array of default settings
140
$this->colorboxDefaultSettings = array(
141
'jQueryColorboxVersion' => JQUERYCOLORBOX_VERSION,
142
'colorboxTheme' => 'theme1',
157
'slideshow' => false,
158
'slideshowAuto' => false,
159
'scalePhotos' => false,
160
+ 'slideshowSpeed' => '2500',
161
+ 'opacity' => '0.85',
162
+ 'preloading' => false,
163
+ 'transition' => 'elastic',
164
+ 'speed' => '350',
165
+ 'overlayClose' => false,
166
+ 'autoHideFlash' => false,
167
+ 'colorboxWarningOff' => false
168
);
169
170
+ // Create the settings array by merging the user's settings and the defaults
171
$usersettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
172
+ $this->colorboxSettings = wp_parse_args($usersettings, jQueryColorbox::jQueryColorboxDefaultSettings());
173
174
+ // Enqueue the theme in wordpress
175
+ if (empty($this->colorboxThemes[$this->colorboxSettings['colorboxTheme']])) {
176
$defaultArray = jQueryColorbox::jQueryColorboxDefaultSettings();
177
$this->colorboxSettings['colorboxTheme'] = $defaultArray['colorboxTheme'];
178
}
179
+ if (!is_admin()) {
180
+ wp_register_style('colorbox-' . $this->colorboxSettings['colorboxTheme'], plugins_url('themes/' . $this->colorboxSettings['colorboxTheme'] . '/colorbox.css', __FILE__), array(), '1.3.6', 'screen');
181
+ wp_enqueue_style('colorbox-' . $this->colorboxSettings['colorboxTheme']);
182
}
183
}
184
199
* @param the_content or the_excerpt
200
* @return replaced content or excerpt
201
*/
202
+ function addColorboxGroupIdToImages($content) {
203
$colorboxSettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
204
+ if (isset($colorboxSettings['autoColorbox']) && $colorboxSettings['autoColorbox']) {
205
global
206
$post;
207
$pattern = "/<img(.*?)class=('|\")([A-Za-z0-9 \/_\.\~\:-]*?)('|\")([^\>]*?)>/i";
208
+ $replacement = '<img$1class=$2$3 colorbox-' . $post->ID . '$4$5>';
209
$content = preg_replace($pattern, $replacement, $content);
210
}
211
return $content;
225
* @param $attr class attribute of the attachment link
226
* @return repaced attributes
227
*/
228
+ function wpPostThumbnailClassFilter($attr) {
229
$colorboxSettings = (array) get_option(JQUERYCOLORBOX_SETTINGSNAME);
230
+ if (isset($colorboxSettings['autoColorboxGalleries']) && $colorboxSettings['autoColorboxGalleries']) {
231
global
232
$post;
233
+ $attr['class'] .= ' colorbox-' . $post->ID . ' ';
234
}
235
return $attr;
236
}
245
* @author Arne Franken
246
*/
247
function registerSettingsPage() {
248
+ if (current_user_can('manage_options')) {
249
+ add_filter('plugin_action_links_' . JQUERYCOLORBOX_PLUGIN_BASENAME, array(& $this, 'addPluginActionLinks'));
250
+ add_options_page(JQUERYCOLORBOX_NAME, JQUERYCOLORBOX_NAME, 'manage_options', JQUERYCOLORBOX_PLUGIN_BASENAME, array(& $this, 'renderSettingsPage'));
251
}
252
}
253
264
* @return action_links with link to settings page
265
*/
266
function addPluginActionLinks($action_links) {
267
+ $settings_link = '<a href="options-general.php?page=' . JQUERYCOLORBOX_PLUGIN_BASENAME . '">' . __('Settings', JQUERYCOLORBOX_TEXTDOMAIN) . '</a>';
268
+ array_unshift($action_links, $settings_link);
269
270
return $action_links;
271
}
279
* @access private
280
* @author Arne Franken
281
* @author Fabian Wolf (http://usability-idealist.de/)
282
+ * @author Jason Stapels (jstapels@realmprojects.com)
283
*
284
* @return rewritten content or excerpt
285
*/
287
?>
288
<!-- <?php echo JQUERYCOLORBOX_NAME ?> <?php echo JQUERYCOLORBOX_VERSION ?> | by Arne Franken, http://www.techotronic.de/ -->
289
<?php
290
+ if ($this->colorboxSettings['colorboxTheme'] == 'theme1') {
291
?>
292
<!--[if IE]>
293
<style type="text/css">
294
+ <?php /*
295
The following fixes png-transparency for IE6.
296
It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
297
301
!! Important Note: AlphaImageLoader src paths are relative to the HTML document,
302
while regular CSS background images are relative to the CSS document.
303
*/
304
+ ?>
305
.cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
306
.cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
307
.cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme1/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
314
<![endif]-->
315
<?php
316
317
+ } elseif ($this->colorboxSettings['colorboxTheme'] == 'theme4') {
318
?>
319
<!--[if IE]>
320
<style type="text/css">
321
+ <?php /*
322
The following fixes png-transparency for IE6.
323
It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
324
328
!! Important Note: AlphaImageLoader src paths are relative to the HTML document,
329
while regular CSS background images are relative to the CSS document.
330
*/
331
+ ?>
332
.cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
333
.cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
334
.cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=<?php echo JQUERYCOLORBOX_PLUGIN_URL ?>/themes/theme4/images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
347
<script type="text/javascript">
348
// <![CDATA[
349
jQuery(document).ready(function($) {
350
+ <?php //gets all "a" elements that have a nested "img" ?>
351
$("a:has(img)").each(function(index, obj) {
352
+ <?php //only go on if link points to an image ?>
353
+ if ($(obj).attr("href").match(/\.(?:jpe?g|gif|png|bmp)/i)) {
354
+ <?php //in this context, the first child is always an image if fundamental Wordpress functions are used ?>
355
var $nestedElement = $(obj).children(0);
356
if ($nestedElement.is("img")) {
357
var $nestedElementClassAttribute = $nestedElement.attr("class");
358
+ <?php //either the groupId has to be the automatically created colorbox-123 or the manually added colorbox-manual ?>
359
var $groupId = $nestedElementClassAttribute.match('colorbox-[0-9]+') || $nestedElementClassAttribute.match('colorbox-manual');
360
+ <?php //only call Colorbox if there is a groupId for the image and the image is not excluded ?>
361
if ($groupId && !$nestedElementClassAttribute.match('colorbox-off')) {
362
+ <?php //convert groupId to string for easier use ?>
363
$groupId = $groupId.toString();
364
+ <?php //if groudId is colorbox-manual, set groupId to false so that images with that class are not grouped ?>
365
if ($groupId == "colorbox-manual") {
366
$groupId = false;
367
}
368
+ <?php //call Colorbox function on each img. elements with the same groupId in the class attribute are grouped
369
+ //the title of the img is used as the title for the Colorbox. ?>
370
$(obj).colorbox({
371
rel:$groupId,
372
title:$nestedElement.attr("title"),
373
+ <?php echo $this->colorboxSettings['maxWidth'] == "false" ? '' : 'maxWidth:"' . $this->colorboxSettings['maxWidthValue'] . $this->colorboxSettings['maxWidthUnit'] . '",';
374
+ echo $this->colorboxSettings['maxHeight'] == "false" ? '' : 'maxHeight:"' . $this->colorboxSettings['maxHeightValue'] . $this->colorboxSettings['maxHeightUnit'] . '",';
375
+ echo $this->colorboxSettings['height'] == "false" ? '' : 'height:"' . $this->colorboxSettings['heightValue'] . $this->colorboxSettings['heightUnit'] . '",';
376
+ echo $this->colorboxSettings['width'] == "false" ? '' : 'width:"' . $this->colorboxSettings['widthValue'] . $this->colorboxSettings['widthUnit'] . '",';
377
+ echo !$this->colorboxSettings['slideshow'] ? '' : 'slideshow:true,';
378
+ echo $this->colorboxSettings['slideshowAuto'] ? '' : 'slideshowAuto:false,';
379
+ echo $this->colorboxSettings['scalePhotos'] ? '' : 'scalePhotos:false,';
380
+ echo $this->colorboxSettings['preloading'] ? '' : 'preloading:false,';
381
+ echo $this->colorboxSettings['overlayClose'] ? '' : 'overlayClose:false,';?>
382
+ opacity:"<?php echo $this->colorboxSettings['opacity']; ?>",
383
+ transition:"<?php echo $this->colorboxSettings['transition']; ?>",
384
+ speed:<?php echo $this->colorboxSettings['speed']; ?>,
385
+ slideshowSpeed:<?php echo $this->colorboxSettings['slideshowSpeed']; ?>,
386
+ close:"<?php _e('close', JQUERYCOLORBOX_TEXTDOMAIN); ?>",
387
+ next:"<?php _e('next', JQUERYCOLORBOX_TEXTDOMAIN); ?>",
388
+ previous:"<?php _e('previous', JQUERYCOLORBOX_TEXTDOMAIN); ?>",
389
+ slideshowStart:"<?php _e('start slideshow', JQUERYCOLORBOX_TEXTDOMAIN); ?>",
390
+ slideshowStop:"<?php _e('stop slideshow', JQUERYCOLORBOX_TEXTDOMAIN); ?>",
391
+ current:"<?php _e('{current} of {total} images', JQUERYCOLORBOX_TEXTDOMAIN); ?>"
392
});
393
}
394
}
395
}
396
});
397
+ <?php if ($this->colorboxSettings['autoHideFlash'] == true) {
398
+ //hide embedded flash objects automatically under Colorbox layer ?>
399
+ $("object").each(function(index,obj) {
400
+ $(obj).append('<param name="wmode" value="transparent" />');
401
+ });
402
+ $("embed").each(function(index,obj) {
403
+ $(obj).attr('wmode','transparent');
404
+ });
405
+ <?php } ?>
406
});
407
// ]]>
408
</script>
477
$("#jquery-colorbox-autoColorbox").attr("checked", false);
478
}
479
});
480
+
481
+ //activate warning if auto Colorbox is activated
482
+ $("input[name='<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorbox]']").click(function() {
483
+ if ($("input[name='<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorbox]']").is(':checked')) {
484
+ $("#jquery-colorbox-colorboxWarningOff").attr("checked", true);
485
+ }
486
+ });
487
+
488
+ //activate warning if auto Colorbox is deactivated
489
+ $("input[name='<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorbox]']").click(function() {
490
+ if (!$("input[name='<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorbox]']").is(':checked')) {
491
+ $("#jquery-colorbox-colorboxWarningOff").attr("checked", false);
492
+ }
493
+ });
494
+
495
+ //change screenshot if new theme is selected
496
+ $("#jquery-colorbox-theme").change(function() {
497
+ var src = $("option:selected", this).val().match(/\d#x2F;i);
498
+ if ( src != "" ){
499
+ $("#jquery-colorbox-theme_screenshot_image").children(0).replaceWith("<img src=\"" + "<?php echo JQUERYCOLORBOX_PLUGIN_URL; echo '/screenshot-' ; ?>" + src + ".jpg\" />");
500
+ }
501
+ });
502
});
503
//]]>
504
</script>
505
<div class="wrap">
506
<?php screen_icon(); ?>
507
+ <h2><?php printf(__('%1$s Settings', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?></h2>
508
<br class="clear"/>
509
510
<?php settings_fields(JQUERYCOLORBOX_SETTINGSNAME); ?>
511
512
<div id="poststuff" class="ui-sortable meta-box-sortables">
513
+ <div id="jquery-colorbox-settings" class="postbox">
514
+ <h3 id="settings"><?php _e('Settings', JQUERYCOLORBOX_TEXTDOMAIN); ?></h3>
515
+
516
+ <div class="inside">
517
+ <form name="jquery-colorbox-settings-update" method="post" action="admin-post.php">
518
+ <?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('jquery-colorbox-settings-form'); ?>
519
+
520
+ <table class="form-table">
521
+ <tr valign="top">
522
+ <th scope="row">
523
+ <label for="jquery-colorbox-theme"><?php _e('Theme', JQUERYCOLORBOX_TEXTDOMAIN); ?></label>
524
+ </th>
525
+ <td>
526
+ <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[colorboxTheme]" id="jquery-colorbox-theme" class="postform" style="margin:0">
527
+ <?php
528
+ foreach ($this->colorboxThemes as $theme => $name) {
529
+ echo '<option value="' . esc_attr($theme) . '"';
530
+ selected($this->colorboxSettings['colorboxTheme'], $theme);
531
+ echo '>' . htmlspecialchars($name) . "</option>\n";
532
+ }
533
+ ?>
534
+ </select>
535
+ <br/><?php _e('Select the theme you want to use on your blog.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
536
+ </td>
537
+ </tr>
538
+ <tr>
539
+ <th scope="row">
540
+ <label for="jquery-colorbox-theme_screenshot_image"><?php _e('Theme screenshot', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
541
+ </th>
542
+ <td height="310px">
543
+ <div id="jquery-colorbox-theme_screenshot_image">
544
+ <img src="<?php echo JQUERYCOLORBOX_PLUGIN_URL; echo '/screenshot-' ; preg_match('/\d#x2F;i',$this->colorboxSettings['colorboxTheme'],$matches); echo $matches[0] ?>.jpg"/>
545
</div>
546
+ </td>
547
+ </tr>
548
+ <tr>
549
+ <th scope="row">
550
+ <label for="jquery-colorbox-autoColorbox"><?php printf(__('Automate %1$s for all images', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?>:</label>
551
+ </th>
552
+ <td>
553
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorbox]" id="jquery-colorbox-autoColorbox" value="true" <?php echo ($this->colorboxSettings['autoColorbox']) ? 'checked="checked"' : '';?>/>
554
+ <br/><?php _e('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.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
555
+ </td>
556
+ </tr>
557
+ <tr>
558
+ <th scope="row">
559
+ <label for="jquery-colorbox-autoColorboxGalleries"><?php printf(__('Automate %1$s for images in WordPress galleries', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?>:</label>
560
+ </th>
561
+ <td>
562
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoColorboxGalleries]" id="jquery-colorbox-autoColorboxGalleries" value="true" <?php echo ($this->colorboxSettings['autoColorboxGalleries']) ? 'checked="checked"' : '';?>/>
563
+ <br/><?php _e('Automatically add colorbox-class to images in WordPress galleries, but nowhere else. Images in one page or post are grouped automatically.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
564
+ </td>
565
+ </tr>
566
+ <tr>
567
+ <th scope="row">
568
+ <label for="jquery-colorbox-slideshow"><?php _e('Add Slideshow to groups', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
569
+ </th>
570
+ <td>
571
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshow]" id="jquery-colorbox-slideshow" value="true" <?php echo ($this->colorboxSettings['slideshow']) ? 'checked="checked"' : '';?>/>
572
+ <br/><?php printf(__('Add Slideshow functionality for %1$s Groups', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?>
573
+ </td>
574
+ </tr>
575
+ <tr>
576
+ <th scope="row">
577
+ <label for="jquery-colorbox-slideshowAuto"><?php _e('Start Slideshow automatically', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
578
+ </th>
579
+ <td>
580
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshowAuto]" id="jquery-colorbox-slideshowAuto" value="true" <?php echo ($this->colorboxSettings['slideshowAuto']) ? 'checked="checked"' : '';?>/>
581
+ <br/><?php printf(__('Start Slideshow automatically if slideshow functionality is added to %1$s Groups', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?>
582
+ </td>
583
+ </tr>
584
+ <tr>
585
+ <th scope="row">
586
+ <label for="jquery-colorbox-slideshowSpeed"><?php _e('Speed of the slideshow', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
587
+ </th>
588
+ <td>
589
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[slideshowSpeed]" id="jquery-colorbox-slideshowSpeed" value="<?php echo $this->colorboxSettings['slideshowSpeed'] ?>" size="5" maxlength="5"/>ms
590
+ <br/><?php _e('Sets the speed of the slideshow, in milliseconds', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
591
+ </td>
592
+ </tr>
593
+ <tr>
594
+ <th scope="row">
595
+ <label for="jquery-colorbox-maxWidthValue"><?php _e('Maximum width of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
596
+ </th>
597
+ <td>
598
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidth]" id="jquery-colorbox-maxWidth-false-radio" value="false" <?php echo ($this->colorboxSettings['maxWidth']) == 'false' ? 'checked="checked"' : ''; ?>"/>
599
+ <label for="jquery-colorbox-maxWidth-false-radio"><?php _e('Do not set width', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
600
+ <br/>
601
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidth]" id="jquery-colorbox-maxWidth-custom-radio" value="custom" <?php echo ($this->colorboxSettings['maxWidth']) == 'custom' ? 'checked="checked"' : ''; ?>"/>
602
+ <label for="jquery-colorbox-maxWidth-custom-radio"><?php _e('Set maximum width of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
603
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidthValue]" id="jquery-colorbox-maxWidthValue" value="<?php echo $this->colorboxSettings['maxWidthValue'] ?>" size="3" maxlength="3"/>
604
+ <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxWidthUnit]" id="jquery-colorbox-maxWidth-unit" class="postform" style="margin:0">
605
+ <?php
606
+ foreach ($this->colorboxUnits as $unit => $name) {
607
+ echo '<option value="' . esc_attr($unit) . '"';
608
+ selected($this->colorboxSettings['maxWidthUnit'], $unit);
609
+ echo '>' . htmlspecialchars($name) . "</option>\n";
610
+ }
611
+ ?>
612
+ </select>
613
+ <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
614
+ </td>
615
+ </tr>
616
+ <tr>
617
+ <th scope="row">
618
+ <label for="jquery-colorbox-maxHeightValue"><?php _e('Maximum height of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
619
+ </th>
620
+ <td>
621
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeight]" id="jquery-colorbox-maxHeight-false-radio" value="false" <?php echo ($this->colorboxSettings['maxHeight']) == 'false' ? 'checked="checked"' : ''; ?>"/>
622
+ <label for="jquery-colorbox-maxHeight-false-radio"><?php _e('Do not set height', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
623
+ <br/>
624
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeight]" id="jquery-colorbox-maxHeight-custom-radio" value="custom" <?php echo ($this->colorboxSettings['maxHeight']) == 'custom' ? 'checked="checked"' : ''; ?>"/>
625
+ <label for="jquery-colorbox-maxHeight-custom-radio"><?php _e('Set maximum height of an image', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
626
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeightValue]" id="jquery-colorbox-maxHeightValue" value="<?php echo $this->colorboxSettings['maxHeightValue'] ?>" size="3" maxlength="3"/>
627
+ <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[maxHeightUnit]" id="jquery-colorbox-maxHeight-unit" class="postform" style="margin:0">
628
+ <?php
629
+ foreach ($this->colorboxUnits as $unit => $name) {
630
+ echo '<option value="' . esc_attr($unit) . '"';
631
+ selected($this->colorboxSettings['maxHeightUnit'], $unit);
632
+ echo '>' . htmlspecialchars($name) . "</option>\n";
633
+ }
634
+ ?>
635
+ </select>
636
+ <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
637
+ </td>
638
+ </tr>
639
+ <tr>
640
+ <th scope="row">
641
+ <label for="jquery-colorbox-widthValue"><?php _e('Maximum width of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
642
+ </th>
643
+ <td>
644
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[width]" id="jquery-colorbox-width-false-radio" value="false" <?php echo ($this->colorboxSettings['width']) == 'false' ? 'checked="checked"' : ''; ?>"/>
645
+ <label for="jquery-colorbox-width-false-radio"><?php _e('Do not set width', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
646
+ <br/>
647
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[width]" id="jquery-colorbox-width-custom-radio" value="custom" <?php echo ($this->colorboxSettings['width']) == 'custom' ? 'checked="checked"' : ''; ?>"/>
648
+ <label for="jquery-colorbox-width-custom-radio"><?php _e('Set width of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
649
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[widthValue]" id="jquery-colorbox-widthValue" value="<?php echo $this->colorboxSettings['widthValue'] ?>" size="3" maxlength="3"/>
650
+ <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[widthUnit]" id="jquery-colorbox-width-unit" class="postform" style="margin:0">
651
+ <?php
652
+ foreach ($this->colorboxUnits as $unit => $name) {
653
+ echo '<option value="' . esc_attr($unit) . '"';
654
+ selected($this->colorboxSettings['widthUnit'], $unit);
655
+ echo '>' . htmlspecialchars($name) . "</option>\n";
656
+ }
657
+ ?>
658
+ </select>
659
+ <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
660
+ </td>
661
+ </tr>
662
+ <tr>
663
+ <th scope="row">
664
+ <label for="jquery-colorbox-heightValue"><?php _e('Maximum height of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
665
+ </th>
666
+ <td>
667
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[height]" id="jquery-colorbox-height-false-radio" value="false" <?php echo ($this->colorboxSettings['height']) == 'false' ? 'checked="checked"' : ''; ?>"/>
668
+ <label for="jquery-colorbox-height-false-radio"><?php _e('Do not set height', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
669
+ <br/>
670
+ <input type="radio" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[height]" id="jquery-colorbox-height-custom-radio" value="custom" <?php echo ($this->colorboxSettings['height']) == 'custom' ? 'checked="checked"' : ''; ?>"/>
671
+ <label for="jquery-colorbox-height-custom-radio"><?php _e('Set height of the Colorbox', JQUERYCOLORBOX_TEXTDOMAIN); ?>.</label>
672
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[heightValue]" id="jquery-colorbox-heightValue" value="<?php echo $this->colorboxSettings['heightValue'] ?>" size="3" maxlength="3"/>
673
+ <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[heightUnit]" id="jquery-colorbox-height-unit" class="postform" style="margin:0">
674
+ <?php
675
+ foreach ($this->colorboxUnits as $unit => $name) {
676
+ echo '<option value="' . esc_attr($unit) . '"';
677
+ selected($this->colorboxSettings['heightUnit'], $unit);
678
+ echo '>' . htmlspecialchars($name) . "</option>\n";
679
+ }
680
+ ?>
681
+ </select>
682
+ <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
683
+ </td>
684
+ </tr>
685
+ <tr>
686
+ <th scope="row">
687
+ <label for="jquery-colorbox-scalePhotos"><?php _e('Resize images', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
688
+ </th>
689
+ <td>
690
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[scalePhotos]" id="jquery-colorbox-scalePhotos" value="true" <?php echo ($this->colorboxSettings['scalePhotos']) ? 'checked="checked"' : '';?>/>
691
+ <br/><?php _e('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', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
692
+ </td>
693
+ </tr>
694
+ <tr>
695
+ <th scope="row">
696
+ <label for="jquery-colorbox-overlayClose"><?php _e('Close Colorbox on overlay click', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
697
+ </th>
698
+ <td>
699
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[overlayClose]" id="jquery-colorbox-overlayClose" value="true" <?php echo ($this->colorboxSettings['overlayClose']) ? 'checked="checked"' : '';?>/>
700
+ <br/><?php _e('If checked, enables closing ColorBox by clicking on the background overlay', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
701
+ </td>
702
+ </tr>
703
+ <tr>
704
+ <th scope="row">
705
+ <label for="jquery-colorbox-preloading"><?php _e('Preload images', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
706
+ </th>
707
+ <td>
708
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[preloading]" id="jquery-colorbox-preloading" value="true" <?php echo ($this->colorboxSettings['preloading']) ? 'checked="checked"' : '';?>/>
709
+ <br/><?php _e('Allows for preloading of "next" and "previous" content in a group, after the current content has finished loading. Uncheck box to disable.', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
710
+ </td>
711
+ </tr>
712
+ <tr>
713
+ <th scope="row">
714
+ <label for="jquery-colorbox-transition"><?php _e('Transition type', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
715
+ </th>
716
+ <td>
717
+ <select name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[transition]" id="jquery-colorbox-transition" class="postform" style="margin:0">
718
+ <?php
719
+ foreach ($this->colorboxTransitions as $unit => $name) {
720
+ echo '<option value="' . esc_attr($unit) . '"';
721
+ selected($this->colorboxSettings['transition'], $unit);
722
+ echo '>' . htmlspecialchars($name) . "</option>\n";
723
+ }
724
+ ?>
725
+ </select>
726
+ <br/><?php _e('The transition type of the Colorbox. Can be set to "elastic", "fade", or "none"', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
727
+ </td>
728
+ </tr>
729
+ <tr>
730
+ <th scope="row">
731
+ <label for="jquery-colorbox-speed"><?php _e('Transition speed', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
732
+ </th>
733
+ <td>
734
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[speed]" id="jquery-colorbox-speed" value="<?php echo $this->colorboxSettings['speed'] ?>" size="5" maxlength="5"/>ms
735
+ <br/><?php _e('Sets the speed of the "fade" and "elastic" transitions, in milliseconds', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
736
+ </td>
737
+ </tr>
738
+ <tr>
739
+ <th scope="row">
740
+ <label for="jquery-colorbox-opacity"><?php _e('Opacity', JQUERYCOLORBOX_TEXTDOMAIN); ?>:</label>
741
+ </th>
742
+ <td>
743
+ <input type="text" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[opacity]" id="jquery-colorbox-opacity" value="<?php echo $this->colorboxSettings['opacity'] ?>" size="4" maxlength="4"/>
744
+ <br/><?php _e('The overlay opacity level. Range: 0 to 1', JQUERYCOLORBOX_TEXTDOMAIN); ?>.
745
+ </td>
746
+ </tr>
747
+ <tr>
748
+ <th scope="row">
749
+ <label for="jquery-colorbox-autoHideFlash"><?php printf(__('Automate hiding of flash objects', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?>:</label>
750
+ </th>
751
+ <td>
752
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[autoHideFlash]" id="jquery-colorbox-autoHideFlash" value="true" <?php echo ($this->colorboxSettings['autoHideFlash']) ? 'checked="checked"' : '';?>/>
753
+ <br/><?php _e('Automatically hide embeded flash objects behind the Colorbox layer. Done by setting the wmode to transparent.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
754
+ </td>
755
+ </tr>
756
+ <tr>
757
+ <th scope="row">
758
+ <label for="jquery-colorbox-colorboxWarningOff"><?php printf(__('Disable warning', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME); ?>:</label>
759
+ </th>
760
+ <td>
761
+ <input type="checkbox" name="<?php echo JQUERYCOLORBOX_SETTINGSNAME ?>[colorboxWarningOff]" id="jquery-colorbox-colorboxWarningOff" value="true" <?php echo ($this->colorboxSettings['colorboxWarningOff']) ? 'checked="checked"' : '';?>/>
762
+ <br/><?php _e('Disables the warning that is displayed if the plugin is activated but the auto-colorbox feature for all images is turned off.', JQUERYCOLORBOX_TEXTDOMAIN); ?>
763
+ </td>
764
+ </tr>
765
+ </table>
766
+ <p class="submit">
767
+ <input type="hidden" name="action" value="jQueryColorboxUpdateSettings"/>
768
+ <input type="submit" name="jQueryColorboxUpdateSettings" class="button-primary" value="<?php _e('Save Changes') ?>"/>
769
+ </p>
770
+ </form>
771
+ </div>
772
+ </div>
773
</div>
774
775
<div id="poststuff" class="ui-sortable meta-box-sortables">
776
<div id="jquery-colorbox-delete_settings" class="postbox">
777
+ <h3 id="delete_options"><?php _e('Delete Settings', JQUERYCOLORBOX_TEXTDOMAIN) ?></h3>
778
779
<div class="inside">
780
+ <p><?php _e('Check the box and click this button to delete settings of this plugin.', JQUERYCOLORBOX_TEXTDOMAIN); ?></p>
781
782
<form name="delete_settings" method="post" action="admin-post.php">
783
<?php if (function_exists('wp_nonce_field') === true) wp_nonce_field('jquery-delete_settings-form'); ?>
784
<p id="submitbutton">
785
<input type="hidden" name="action" value="jQueryColorboxDeleteSettings"/>
786
+ <input type="submit" name="jQueryColorboxDeleteSettings" value="<?php _e('Delete Settings', JQUERYCOLORBOX_TEXTDOMAIN); ?> &raquo;" class="button-secondary"/>
787
<input type="checkbox" name="delete_settings-true"/>
788
</p>
789
</form>
793
794
<div id="poststuff" class="ui-sortable meta-box-sortables">
795
<div id="jquery-colorbox-donate" class="postbox">
796
+ <h3 id="donate"><?php _e('Donate', JQUERYCOLORBOX_TEXTDOMAIN) ?></h3>
797
798
<div class="inside">
799
<p>
813
</div>
814
</div>
815
</div>
816
+
817
+ <div id="poststuff" class="ui-sortable meta-box-sortables">
818
+ <div id="jquery-colorbox-translation" class="postbox">
819
+ <h3 id="translation"><?php _e('Translation', JQUERYCOLORBOX_TEXTDOMAIN) ?></h3>
820
+
821
+ <div class="inside">
822
+ <p><?php _e('The english translation was done by <a href="http://www.techotronic.de">Arne Franken</a>.', JQUERYCOLORBOX_TEXTDOMAIN); ?></p>
823
+ </div>
824
+ </div>
825
+ </div>
826
</div>
827
<?php
828
838
* @author Arne Franken
839
*/
840
function registerAdminMenu() {
841
+ if (function_exists('add_management_page') && current_user_can('manage_options')) {
842
843
// update, uninstall message
844
+ if (strpos($_SERVER['REQUEST_URI'], 'jquery-colorbox.php') && isset($_GET['jQueryColorboxUpdateSettings'])) {
845
+ $return_message = sprintf(__('Successfully updated %1$s settings.', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME);
846
} elseif (strpos($_SERVER['REQUEST_URI'], 'jquery-colorbox.php') && isset($_GET['jQueryColorboxDeleteSettings'])) {
847
+ $return_message = sprintf(__('%1$s settings were successfully deleted.', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME);
848
} else {
849
$return_message = '';
850
}
863
* @access private
864
* @author Arne Franken
865
*/
866
+ function registerAdminNotice($notice) {
867
+ if ($notice != '') {
868
$message = '<div class="updated fade"><p>' . $notice . '</p></div>';
869
+ add_action('admin_notices', create_function('', "echo '$message';"));
870
+ }
871
+ }
872
+
873
+ /**
874
+ * Registers the warning for admins
875
+ *
876
+ * @since 2.5
877
+ * @access private
878
+ * @author Arne Franken
879
+ */
880
+ function registerAdminWarning() {
881
+ if (true == $this->colorboxSettings['colorboxWarningOff'] || true == $this->colorboxSettings['autoColorbox']) {
882
+ return;
883
}
884
+ ?>
885
+
886
+ <div class="updated" style="background-color:#f66;">
887
+ <p>
888
+ <a href="options-general.php?page=<?php echo JQUERYCOLORBOX_PLUGIN_BASENAME ?>"><?php echo JQUERYCOLORBOX_NAME ?></a> <?php _e('needs attention: the plugin is not activated to work for all images.', JQUERYCOLORBOX_TEXTDOMAIN)?>
889
+ </p>
890
+ </div>
891
+ <?php
892
+
893
}
894
895
+ /**
896
+ * Default array of jQuery Colorbox settings
897
+ *
898
+ * @since 2.0
899
+ * @access private
900
+ * @author Arne Franken
901
+ */
902
+ static function jQueryColorboxDefaultSettings() {
903
904
// Create and return array of default settings
905
return array(
922
'slideshow' => false,
923
'slideshowAuto' => false,
924
'scalePhotos' => false,
925
+ 'slideshowSpeed' => '2500',
926
+ 'opacity' => '0.85',
927
+ 'preloading' => false,
928
+ 'transition' => 'elastic',
929
+ 'speed' => '350',
930
+ 'overlayClose' => false,
931
+ 'autoHideFlash' => false,
932
+ 'colorboxWarningOff' => false
933
);
934
}
935
944
*/
945
function jQueryColorboxUpdateSettings() {
946
947
+ if (!current_user_can('manage_options'))
948
+ wp_die(__('Did not update settings, you do not have the necessary rights.', JQUERYCOLORBOX_TEXTDOMAIN));
949
950
+ //cross check the given referer for nonce set in settings form
951
check_admin_referer('jquery-colorbox-settings-form');
952
+ //get settings from plugins admin page
953
$this->colorboxSettings = $_POST[JQUERYCOLORBOX_SETTINGSNAME];
954
+ //have to add jQueryColorboxVersion here because it is not included in the HTML form
955
+ $this->colorboxSettings['jQueryColorboxVersion'] = JQUERYCOLORBOX_VERSION;
956
$this->updateSettingsInDatabase();
957
+ $referrer = str_replace(array('&jQueryColorboxUpdateSettings', '&jQueryColorboxDeleteSettings'), '', $_POST['_wp_http_referer']);
958
+ wp_redirect($referrer . '&jQueryColorboxUpdateSettings');
959
}
960
961
// jQueryColorboxUpdateSettings()
986
*/
987
function jQueryColorboxDeleteSettings() {
988
989
+ if (current_user_can('manage_options') && isset($_POST['delete_settings-true'])) {
990
//cross check the given referer for nonce set in delete settings form
991
check_admin_referer('jquery-delete_settings-form');
992
$this->deleteSettingsFromDatabase();
993
$this->colorboxSettings = jQueryColorbox::jQueryColorboxDefaultSettings();
994
} else {
995
+ wp_die(sprintf(__('Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox.', JQUERYCOLORBOX_TEXTDOMAIN), JQUERYCOLORBOX_NAME));
996
}
997
+ //clean up referrer
998
+ $referrer = str_replace(array('&jQueryColorboxUpdateSettings', '&jQueryColorboxDeleteSettings'), '', $_POST['_wp_http_referer']);
999
+ wp_redirect($referrer . '&jQueryColorboxDeleteSettings');
1000
}
1001
1002
// jQueryColorboxDeleteSettings()
1025
*/
1026
function activateJqueryColorbox() {
1027
$jquery_colorbox_settings = get_option(JQUERYCOLORBOX_SETTINGSNAME);
1028
+ if ($jquery_colorbox_settings) {
1029
//if jQueryColorboxVersion does not exist, the plugin is a version prior to 2.0
1030
//settings are incompatible with 2.0, restore default settings.
1031
+ if (!array_key_exists('jQueryColorboxVersion', $jquery_colorbox_settings)) {
1032
+ if(!array_key_exists('scalePhotos', $jquery_colorbox_settings)){
1033
+ //in case future versions require resetting the settings
1034
+ //if($jquery_colorbox_settings['jQueryColorboxVersion'] < JQUERYCOLORBOX_VERSION)
1035
+ update_option(JQUERYCOLORBOX_SETTINGSNAME, jQueryColorbox::jQueryColorboxDefaultSettings());
1036
+ }
1037
}
1038
}
1039
}
1059
//jQueryColorbox()
1060
1061
// add jQueryColorbox() to WordPress initialization
1062
+ add_action('init', 'jQueryColorbox', 7);
1063
1064
//register method for activation
1065
+ register_activation_hook(__FILE__, array('jQueryColorbox', 'activateJqueryColorbox'));
1066
?>
localization/jquery-colorbox-ar_AR.mo ADDED
Binary file
localization/jquery-colorbox-ar_AR.po ADDED
@@ -0,0 +1,344 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: jQuery-Colorbox 2.0.1 Arabic\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-03-29 13:12+0100\n"
6
+ "PO-Revision-Date: 2010-03-29 13:13+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"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: Arabic\n"
13
+ "X-Poedit-KeywordsList: _e;__\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-Country: SYRIAN ARAB REPUBLIC\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: jquery-colorbox.php:116
19
+ msgid "Theme #1"
20
+ msgstr "القالب الأول"
21
+
22
+ #: jquery-colorbox.php:117
23
+ msgid "Theme #2"
24
+ msgstr "القالب الثاني"
25
+
26
+ #: jquery-colorbox.php:118
27
+ msgid "Theme #3"
28
+ msgstr "القالب الثالث"
29
+
30
+ #: jquery-colorbox.php:119
31
+ msgid "Theme #4"
32
+ msgstr "القالب الرابع"
33
+
34
+ #: jquery-colorbox.php:120
35
+ msgid "Theme #5"
36
+ msgstr "القالب الخامس"
37
+
38
+ #: jquery-colorbox.php:121
39
+ msgid "Theme #6"
40
+ msgstr ""
41
+
42
+ #: jquery-colorbox.php:122
43
+ msgid "Theme #7"
44
+ msgstr ""
45
+
46
+ #: jquery-colorbox.php:123
47
+ msgid "Theme #8"
48
+ msgstr ""
49
+
50
+ #: jquery-colorbox.php:128
51
+ msgid "percent"
52
+ msgstr "بالمئة"
53
+
54
+ #: jquery-colorbox.php:129
55
+ msgid "pixels"
56
+ msgstr "بالبيكسل"
57
+
58
+ #: jquery-colorbox.php:134
59
+ msgid "elastic"
60
+ msgstr ""
61
+
62
+ #: jquery-colorbox.php:135
63
+ msgid "fade"
64
+ msgstr ""
65
+
66
+ #: jquery-colorbox.php:136
67
+ msgid "none"
68
+ msgstr ""
69
+
70
+ #: jquery-colorbox.php:267
71
+ #: jquery-colorbox.php:514
72
+ msgid "Settings"
73
+ msgstr "إعدادات"
74
+
75
+ #: jquery-colorbox.php:386
76
+ msgid "close"
77
+ msgstr "إغلاق"
78
+
79
+ #: jquery-colorbox.php:387
80
+ msgid "next"
81
+ msgstr "التالي"
82
+
83
+ #: jquery-colorbox.php:388
84
+ msgid "previous"
85
+ msgstr "السابق"
86
+
87
+ #: jquery-colorbox.php:389
88
+ msgid "start slideshow"
89
+ msgstr "بدء عرض الشرائح"
90
+
91
+ #: jquery-colorbox.php:390
92
+ msgid "stop slideshow"
93
+ msgstr "إيقاف عرض الشرائح"
94
+
95
+ #: jquery-colorbox.php:391
96
+ msgid "{current} of {total} images"
97
+ msgstr "{current} من {total} إجمالي الصور"
98
+
99
+ #: jquery-colorbox.php:507
100
+ #, php-format
101
+ msgid "%1$s Settings"
102
+ msgstr "%1$s إعدادات"
103
+
104
+ #: jquery-colorbox.php:523
105
+ msgid "Theme"
106
+ msgstr "قالب"
107
+
108
+ #: jquery-colorbox.php:535
109
+ msgid "Select the theme you want to use on your blog."
110
+ msgstr "حدد القالب الذي تريد استخدامه في موقعك من القائمة المنسدلة."
111
+
112
+ #: jquery-colorbox.php:540
113
+ msgid "Theme screenshot"
114
+ msgstr ""
115
+
116
+ #: jquery-colorbox.php:550
117
+ #, php-format
118
+ msgid "Automate %1$s for all images"
119
+ msgstr "شغل تلقائياً %1$s لجميع الصور"
120
+
121
+ #: jquery-colorbox.php:554
122
+ 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."
123
+ msgstr "أضف بشكل تلقائي صندوق عرض الشرائح في جميع المواضيع والصفحات. أيضاً أضف صندوق عرض الشرائح لمعرض الصور. الصور في صفحة واحدة أو موضوع واحد ستندمج بشكل تلقائي."
124
+
125
+ #: jquery-colorbox.php:559
126
+ #, php-format
127
+ msgid "Automate %1$s for images in WordPress galleries"
128
+ msgstr "شغل تلقائياً %1$s لجميع الصور في معرض صور الموقع"
129
+
130
+ #: jquery-colorbox.php:563
131
+ msgid "Automatically add colorbox-class to images in WordPress galleries, but nowhere else. Images in one page or post are grouped automatically."
132
+ msgstr "أضف بشكل تلقائي صندوق عرض الشرائح للصور في معرض ووردبريس، ولكن في أي مكان آخر. الصور في الصفحة أو الموضوع ستندمج تلقائياً."
133
+
134
+ #: jquery-colorbox.php:568
135
+ msgid "Add Slideshow to groups"
136
+ msgstr "إضافة عرض الشرائح للمجموعات"
137
+
138
+ #: jquery-colorbox.php:572
139
+ #, php-format
140
+ msgid "Add Slideshow functionality for %1$s Groups"
141
+ msgstr "إضافة عرض الشرائح ل %1$s مجموعات"
142
+
143
+ #: jquery-colorbox.php:577
144
+ msgid "Start Slideshow automatically"
145
+ msgstr "ابدأ عرض الشرائح تلقائياً"
146
+
147
+ #: jquery-colorbox.php:581
148
+ #, php-format
149
+ msgid "Start Slideshow automatically if slideshow functionality is added to %1$s Groups"
150
+ msgstr "ابدأ عرض الشرائح تلقائياً إذا كانت خصائص عرض الشرائح قد أضيفت ل %1$s المجموعات"
151
+
152
+ #: jquery-colorbox.php:586
153
+ msgid "Speed of the slideshow"
154
+ msgstr "سرعة عرض الشرائح"
155
+
156
+ #: jquery-colorbox.php:590
157
+ msgid "Sets the speed of the slideshow, in milliseconds"
158
+ msgstr "حدد سرعة عرض الشرائح بالميلي"
159
+
160
+ #: jquery-colorbox.php:595
161
+ msgid "Maximum width of an image"
162
+ msgstr "الحد الأقصى لعرض صورة"
163
+
164
+ #: jquery-colorbox.php:599
165
+ #: jquery-colorbox.php:645
166
+ msgid "Do not set width"
167
+ msgstr "عدم تعيين عرض"
168
+
169
+ #: jquery-colorbox.php:602
170
+ msgid "Set maximum width of an image"
171
+ msgstr "تعيين أقصى عرض للصورة"
172
+
173
+ #: jquery-colorbox.php:613
174
+ 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"
175
+ msgstr "حدد العرض الأقصى لصندوق عرض الشرائح بالنسبة المئوية أو بالبيكسل ليتناسب مع متصفحك. إذا لم يتم تعيين العرض، سيكون عرض الصورة مثل عرض صندوق عرض الشرائح."
176
+
177
+ #: jquery-colorbox.php:618
178
+ msgid "Maximum height of an image"
179
+ msgstr "أقصى ارتفاع للصورة"
180
+
181
+ #: jquery-colorbox.php:622
182
+ #: jquery-colorbox.php:668
183
+ msgid "Do not set height"
184
+ msgstr "عدم تعيين الارتفاع"
185
+
186
+ #: jquery-colorbox.php:625
187
+ msgid "Set maximum height of an image"
188
+ msgstr "تعيين الارتفاع الأقصى للصورة"
189
+
190
+ #: jquery-colorbox.php:636
191
+ 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"
192
+ msgstr "حدد الارتفاع الأقصى لصندوق عرض الشرائح بالنسبة المئوية أو بالبيكسل ليتناسب مع متصفحك. إذا لم يتم تعيين الارتفاع، سيكون ارتفاع الصورة مثل ارتفاع صندوق عرض الشرائح."
193
+
194
+ #: jquery-colorbox.php:641
195
+ msgid "Maximum width of the Colorbox"
196
+ msgstr "الحد الأقصى لعرض صندوق عرض الشرائح"
197
+
198
+ #: jquery-colorbox.php:648
199
+ msgid "Set width of the Colorbox"
200
+ msgstr "تعيين عرض صندوق عرض الشرائح"
201
+
202
+ #: jquery-colorbox.php:659
203
+ 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"
204
+ msgstr "حدد العرض الأقصى لصندوق عرض الشرائح بالنسبة المئوية أو بالبيكسل ليتناسب مع متصفحك. إذا كانت الصورة أكبر من صندوق عرض الشرائح، سيتم عرض أشرطة التمرير، وإذا لم يتم تعيين العرض، سيكون صندوق عرض الشرائح عريضاً كعرض الصورة التي بداخله."
205
+
206
+ #: jquery-colorbox.php:664
207
+ msgid "Maximum height of the Colorbox"
208
+ msgstr "الحد الأقصى لارتفاع صندوق عرض الشرائح"
209
+
210
+ #: jquery-colorbox.php:671
211
+ msgid "Set height of the Colorbox"
212
+ msgstr "تعيين ارتفاع صندوق عرض الشرائح"
213
+
214
+ #: jquery-colorbox.php:682
215
+ 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"
216
+ msgstr "حدد الارتفاع الأقصى لصندوق عرض الشرائح بالنسبة المئوية أو بالبيكسل ليتناسب مع متصفحك. إذا كانت الصورة أكبر من صندوق عرض الشرائح، سيتم عرض أشرطة التمرير، وإذا لم يتم تعيين الارتفاع، سيكون صندوق عرض الشرائح طويلاً كطول الصورة التي بداخله."
217
+
218
+ #: jquery-colorbox.php:687
219
+ msgid "Resize images"
220
+ msgstr "تعديل حجم الصورة"
221
+
222
+ #: jquery-colorbox.php:691
223
+ 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"
224
+ msgstr "إذا تم التفعيل وإذا تم تعديل الحد الأقصى لارتفاع وعرض \"الصور وصندوق عرض الشرائح\" سيقوم البرنامج بتصحيح عرض الصور داخل الصندوق ليلائم هذه القيم."
225
+
226
+ #: jquery-colorbox.php:696
227
+ msgid "Close Colorbox on overlay click"
228
+ msgstr ""
229
+
230
+ #: jquery-colorbox.php:700
231
+ msgid "If checked, enables closing ColorBox by clicking on the background overlay"
232
+ msgstr ""
233
+
234
+ #: jquery-colorbox.php:705
235
+ msgid "Preload images"
236
+ msgstr ""
237
+
238
+ #: jquery-colorbox.php:709
239
+ msgid "Allows for preloading of \"next\" and \"previous\" content in a group, after the current content has finished loading. Uncheck box to disable."
240
+ msgstr ""
241
+
242
+ #: jquery-colorbox.php:714
243
+ msgid "Transition type"
244
+ msgstr ""
245
+
246
+ #: jquery-colorbox.php:726
247
+ msgid "The transition type of the Colorbox. Can be set to \"elastic\", \"fade\", or \"none\""
248
+ msgstr ""
249
+
250
+ #: jquery-colorbox.php:731
251
+ msgid "Transition speed"
252
+ msgstr ""
253
+
254
+ #: jquery-colorbox.php:735
255
+ msgid "Sets the speed of the \"fade\" and \"elastic\" transitions, in milliseconds"
256
+ msgstr ""
257
+
258
+ #: jquery-colorbox.php:740
259
+ msgid "Opacity"
260
+ msgstr ""
261
+
262
+ #: jquery-colorbox.php:744
263
+ msgid "The overlay opacity level. Range: 0 to 1"
264
+ msgstr ""
265
+
266
+ #: jquery-colorbox.php:749
267
+ msgid "Automate hiding of flash objects"
268
+ msgstr ""
269
+
270
+ #: jquery-colorbox.php:753
271
+ msgid "Automatically hide embeded flash objects behind the Colorbox layer. Done by setting the wmode to transparent."
272
+ msgstr ""
273
+
274
+ #: jquery-colorbox.php:758
275
+ msgid "Disable warning"
276
+ msgstr ""
277
+
278
+ #: jquery-colorbox.php:762
279
+ msgid "Disables the warning that is displayed if the plugin is activated but the auto-colorbox feature for all images is turned off."
280
+ msgstr ""
281
+
282
+ #: jquery-colorbox.php:768
283
+ msgid "Save Changes"
284
+ msgstr "حفظ التغييرات"
285
+
286
+ #: jquery-colorbox.php:777
287
+ #: jquery-colorbox.php:786
288
+ msgid "Delete Settings"
289
+ msgstr "حذف الإعدادات"
290
+
291
+ #: jquery-colorbox.php:780
292
+ msgid "Check the box and click this button to delete settings of this plugin."
293
+ msgstr "ضع علامة في المربع واضغط على هذا الزر لحذف إعدادات البرنامج."
294
+
295
+ #: jquery-colorbox.php:796
296
+ msgid "Donate"
297
+ msgstr "تبرع"
298
+
299
+ #: jquery-colorbox.php:810
300
+ msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
301
+ msgstr "إذا كنت ترغب بالمساهمة في تنمية تطوير هذا البرنامج فنرجو منك التبرع لنا."
302
+
303
+ #: jquery-colorbox.php:819
304
+ msgid "Translation"
305
+ msgstr ""
306
+
307
+ #: jquery-colorbox.php:822
308
+ msgid "The english translation was done by <a href=\"http://www.techotronic.de\">Arne Franken</a>."
309
+ msgstr ""
310
+
311
+ #: jquery-colorbox.php:845
312
+ #, php-format
313
+ msgid "Successfully updated %1$s settings."
314
+ msgstr "تم تحديث الإعدادات %1$s بنجاح."
315
+
316
+ #: jquery-colorbox.php:847
317
+ #, php-format
318
+ msgid "%1$s settings were successfully deleted."
319
+ msgstr "%1$s تم حذف الإعدادات بنجاح."
320
+
321
+ #: jquery-colorbox.php:888
322
+ msgid "needs attention: the plugin is not activated to work for all images."
323
+ msgstr ""
324
+
325
+ #: jquery-colorbox.php:948
326
+ msgid "Did not update settings, you do not have the necessary rights."
327
+ msgstr "لم يتم تحديث الإعدادات، ليس لديك صلاحيات."
328
+
329
+ #: jquery-colorbox.php:995
330
+ #, php-format
331
+ msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
332
+ msgstr "لا تقم بحذف %1$s الإعدادات. إلا إذا كنت تملك التصريح اللازم بذلك أو بأنك لم تقم بتحديد العلامة داخل المربع الصغير."
333
+
334
+ #~ msgid "maxWidth"
335
+ #~ msgstr "Maximum width of an image"
336
+
337
+ #~ msgid "maxHeight"
338
+ #~ msgstr "Maximum height of an image"
339
+
340
+ #~ msgid "width"
341
+ #~ msgstr "Maxinmum width of the Colorbox"
342
+
343
+ #~ msgid "height"
344
+ #~ msgstr "Maximum height of the Colorbox"
localization/jquery-colorbox-bs_BA.mo ADDED
Binary file
localization/jquery-colorbox-bs_BA.po ADDED
@@ -0,0 +1,343 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: jQuery-Colorbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2010-03-31 23:16+0100\n"
6
+ "PO-Revision-Date: 2010-03-31 23:16+0100\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \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: Bosnian\n"
13
+ "X-Poedit-KeywordsList: _e;__\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+
17
+ #: jquery-colorbox.php:116
18
+ msgid "Theme #1"
19
+ msgstr "Tema #1"
20
+
21
+ #: jquery-colorbox.php:117
22
+ msgid "Theme #2"
23
+ msgstr "Tema #2"
24
+
25
+ #: jquery-colorbox.php:118
26
+ msgid "Theme #3"
27
+ msgstr "Tema #3"
28
+
29
+ #: jquery-colorbox.php:119
30
+ msgid "Theme #4"
31
+ msgstr "Tema #4"
32
+
33
+ #: jquery-colorbox.php:120
34
+ msgid "Theme #5"
35
+ msgstr "Tema #5"
36
+
37
+ #: jquery-colorbox.php:121
38
+ msgid "Theme #6"
39
+ msgstr "Tema #6"
40
+
41
+ #: jquery-colorbox.php:122
42
+ msgid "Theme #7"
43
+ msgstr "Tema #7"
44
+
45
+ #: jquery-colorbox.php:123
46
+ msgid "Theme #8"
47
+ msgstr "Tema #8"
48
+
49
+ #: jquery-colorbox.php:128
50
+ msgid "percent"
51
+ msgstr "procenat"
52
+
53
+ #: jquery-colorbox.php:129
54
+ msgid "pixels"
55
+ msgstr "piksel"
56
+
57
+ #: jquery-colorbox.php:134
58
+ msgid "elastic"
59
+ msgstr "elastično"
60
+
61
+ #: jquery-colorbox.php:135
62
+ msgid "fade"
63
+ msgstr "izblijediti"
64
+
65
+ #: jquery-colorbox.php:136
66
+ msgid "none"
67
+ msgstr "bez efekta"
68
+
69
+ #: jquery-colorbox.php:267
70
+ #: jquery-colorbox.php:514
71
+ msgid "Settings"
72
+ msgstr "Opcije"
73
+
74
+ #: jquery-colorbox.php:386
75
+ msgid "close"
76
+ msgstr "Zatvoriti"
77
+
78
+ #: jquery-colorbox.php:387
79
+ msgid "next"
80
+ msgstr "Naprijed"
81
+
82
+ #: jquery-colorbox.php:388
83
+ msgid "previous"
84
+ msgstr "Nazad"
85
+
86
+ #: jquery-colorbox.php:389
87
+ msgid "start slideshow"
88
+ msgstr "Pokreni slideshow"
89
+
90
+ #: jquery-colorbox.php:390
91
+ msgid "stop slideshow"
92
+ msgstr "Zaustavi slideshow"
93
+
94
+ #: jquery-colorbox.php:391
95
+ msgid "{current} of {total} images"
96
+ msgstr "{current} od {total} slika"
97
+
98
+ #: jquery-colorbox.php:507
99
+ #, php-format
100
+ msgid "%1$s Settings"
101
+ msgstr "%1$s opcija"
102
+
103
+ #: jquery-colorbox.php:523
104
+ msgid "Theme"
105
+ msgstr "Tema"
106
+
107
+ #: jquery-colorbox.php:535
108
+ msgid "Select the theme you want to use on your blog."
109
+ msgstr "Izaberi temu za svoj blog"
110
+
111
+ #: jquery-colorbox.php:540
112
+ msgid "Theme screenshot"
113
+ msgstr "Screenshot teme"
114
+
115
+ #: jquery-colorbox.php:550
116
+ #, php-format
117
+ msgid "Automate %1$s for all images"
118
+ msgstr "Automatiziraj %1$s za sve slike"
119
+
120
+ #: jquery-colorbox.php:554
121
+ 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."
122
+ msgstr "Dodaj automatski colorbox-klasu slikama u člancima i na stranicama. Takođe dodaje colobox-klasu galerijama. Sve slike unutar jednog članka ili jedne stranice če automatski biti grupirane. "
123
+
124
+ #: jquery-colorbox.php:559
125
+ #, php-format
126
+ msgid "Automate %1$s for images in WordPress galleries"
127
+ msgstr "Automatiziraj %1$s za slike u WordPress galeriji."
128
+
129
+ #: jquery-colorbox.php:563
130
+ msgid "Automatically add colorbox-class to images in WordPress galleries, but nowhere else. Images in one page or post are grouped automatically."
131
+ msgstr "Dodaj automatksi colorbox-klasu za slike samo u galerijama, nigdje drugdje. SSe slike unutar jednog članka ili jedne stranice če automatski biti grupirane. "
132
+
133
+ #: jquery-colorbox.php:568
134
+ msgid "Add Slideshow to groups"
135
+ msgstr "Dodaj slideshow grupama"
136
+
137
+ #: jquery-colorbox.php:572
138
+ #, php-format
139
+ msgid "Add Slideshow functionality for %1$s Groups"
140
+ msgstr "Dodaj slideshow funkcionalnost za %1$s grupe"
141
+
142
+ #: jquery-colorbox.php:577
143
+ msgid "Start Slideshow automatically"
144
+ msgstr "Pokreni slideshow automatski"
145
+
146
+ #: jquery-colorbox.php:581
147
+ #, php-format
148
+ msgid "Start Slideshow automatically if slideshow functionality is added to %1$s Groups"
149
+ msgstr "Pokreni slideshow automatski ako je slideshow funkcionalnost dodana %1$s grupama"
150
+
151
+ #: jquery-colorbox.php:586
152
+ msgid "Speed of the slideshow"
153
+ msgstr "Brzina slideshowa"
154
+
155
+ #: jquery-colorbox.php:590
156
+ msgid "Sets the speed of the slideshow, in milliseconds"
157
+ msgstr "Postavi brzinu slideshowa u milisekundama"
158
+
159
+ #: jquery-colorbox.php:595
160
+ msgid "Maximum width of an image"
161
+ msgstr "Maksimalna širina slike"
162
+
163
+ #: jquery-colorbox.php:599
164
+ #: jquery-colorbox.php:645
165
+ msgid "Do not set width"
166
+ msgstr "Ne postavljaj širinu"
167
+
168
+ #: jquery-colorbox.php:602
169
+ msgid "Set maximum width of an image"
170
+ msgstr "Postavi maksimalnu širinu slike"
171
+
172
+ #: jquery-colorbox.php:613
173
+ 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"
174
+ msgstr "Postavi maksimalnu širinu slike u Colorboxu u relaciji prema web pretraživaču u postotcima ili pikselima. Ako maksimalna širina nije postavljenja, slika je iste širine kao Colorbox"
175
+
176
+ #: jquery-colorbox.php:618
177
+ msgid "Maximum height of an image"
178
+ msgstr "Maksimalma visina slike"
179
+
180
+ #: jquery-colorbox.php:622
181
+ #: jquery-colorbox.php:668
182
+ msgid "Do not set height"
183
+ msgstr "Ne postavljaj visinu"
184
+
185
+ #: jquery-colorbox.php:625
186
+ msgid "Set maximum height of an image"
187
+ msgstr "Postavi visinu slike"
188
+
189
+ #: jquery-colorbox.php:636
190
+ 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"
191
+ msgstr "Postavi maksimalnu visinu slike u Colorboxu u relaciji prema web pretraživaču u postotcima ili pikselima. Ako maksimalna visina nije postavljenja, slika je iste visine kao Colorbox"
192
+
193
+ #: jquery-colorbox.php:641
194
+ msgid "Maximum width of the Colorbox"
195
+ msgstr "Maksimalna širina Colorboxa"
196
+
197
+ #: jquery-colorbox.php:648
198
+ msgid "Set width of the Colorbox"
199
+ msgstr "Postavi širinu Colorboxa"
200
+
201
+ #: jquery-colorbox.php:659
202
+ 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"
203
+ msgstr "Postavi maksimalnu širinu Colorboxa u relaciji prema web pretraživaču u postotcima ili pikselima. Ako je slika veća od Colorboxa bit će prikazan scrollbar. Ako širina nije postavljena, Colorbox će biti iste širine kao i sama slika"
204
+
205
+ #: jquery-colorbox.php:664
206
+ msgid "Maximum height of the Colorbox"
207
+ msgstr "Maksimalna visina Colorboxa"
208
+
209
+ #: jquery-colorbox.php:671
210
+ msgid "Set height of the Colorbox"
211
+ msgstr "Postavi visinu Colorboxa"
212
+
213
+ #: jquery-colorbox.php:682
214
+ 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"
215
+ msgstr "Postavi maksimalnu visinu Colorboxa u relaciji prema web pretraživaču u postotcima ili pikselima. Ako je slika veća od Colorboxa bit će prikazan scrollbar. Ako visina nije postavljena, Colorbox će biti iste visine kao i sama slika"
216
+
217
+ #: jquery-colorbox.php:687
218
+ msgid "Resize images"
219
+ msgstr "Promijeni veličinu slike"
220
+
221
+ #: jquery-colorbox.php:691
222
+ 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"
223
+ msgstr "Ako su omogučeni i definirani maksimalna širina slike, maksimalna visina slike, širina Colorboxa ili visina Colorboxa, Clorobox će prilagoditi veličinu slike ovim vrijednostima"
224
+
225
+ #: jquery-colorbox.php:696
226
+ msgid "Close Colorbox on overlay click"
227
+ msgstr "Zatvori Colorbox ako se klikne na overlay."
228
+
229
+ #: jquery-colorbox.php:700
230
+ msgid "If checked, enables closing ColorBox by clicking on the background overlay"
231
+ msgstr "Ako označeno, omogućava zatvaranje Colorboxa klikom na overlay u pozadini"
232
+
233
+ #: jquery-colorbox.php:705
234
+ msgid "Preload images"
235
+ msgstr "Preučitaj slike"
236
+
237
+ #: jquery-colorbox.php:709
238
+ msgid "Allows for preloading of \"next\" and \"previous\" content in a group, after the current content has finished loading. Uncheck box to disable."
239
+ msgstr "Dozvoljava preučitavanje \"next\" i \"previous\" slika unutar jedne grupe nakon učitavanja aktuelnog sadržaja. Da bi deaktivirao ovaj elemenat ukloni kvačicu iz odjeljka. "
240
+
241
+ #: jquery-colorbox.php:714
242
+ msgid "Transition type"
243
+ msgstr "Tip izmjene"
244
+
245
+ #: jquery-colorbox.php:726
246
+ msgid "The transition type of the Colorbox. Can be set to \"elastic\", \"fade\", or \"none\""
247
+ msgstr "Vrsta prijelaza.Može biti postavljena na \"elastic\", \"fade\", ili \"none\""
248
+
249
+ #: jquery-colorbox.php:731
250
+ msgid "Transition speed"
251
+ msgstr "Brzina izjmene"
252
+
253
+ #: jquery-colorbox.php:735
254
+ msgid "Sets the speed of the \"fade\" and \"elastic\" transitions, in milliseconds"
255
+ msgstr "Određuje brzinu \"fade\" i \"elastic\" prijelaza, u milisekundama"
256
+
257
+ #: jquery-colorbox.php:740
258
+ msgid "Opacity"
259
+ msgstr "Prozirnost"
260
+
261
+ #: jquery-colorbox.php:744
262
+ msgid "The overlay opacity level. Range: 0 to 1"
263
+ msgstr "Nivo Neprozirnosti overlaya. Raspon od 0 do 1"
264
+
265
+ #: jquery-colorbox.php:749
266
+ msgid "Automate hiding of flash objects"
267
+ msgstr "Automatsko sakrivanje flash objekata"
268
+
269
+ #: jquery-colorbox.php:753
270
+ msgid "Automatically hide embeded flash objects behind the Colorbox layer. Done by setting the wmode to transparent."
271
+ msgstr "Sakrij automatski flash objekte iza Colorbox layera. Za to će \"wmode\" biti podešen na \"transparent\"."
272
+
273
+ #: jquery-colorbox.php:758
274
+ msgid "Disable warning"
275
+ msgstr "Deaktiviraj upozorenje"
276
+
277
+ #: jquery-colorbox.php:762
278
+ msgid "Disables the warning that is displayed if the plugin is activated but the auto-colorbox feature for all images is turned off."
279
+ msgstr "Onemogućuje opomenu, prikazanu ako je plugin aktiviran ali element \"auto-colorbox\" za sve slike nije."
280
+
281
+ #: jquery-colorbox.php:768
282
+ msgid "Save Changes"
283
+ msgstr "Sačuvaj promjene"
284
+
285
+ #: jquery-colorbox.php:777
286
+ #: jquery-colorbox.php:786
287
+ msgid "Delete Settings"
288
+ msgstr "Izbriši postavke"
289
+
290
+ #: jquery-colorbox.php:780
291
+ msgid "Check the box and click this button to delete settings of this plugin."
292
+ msgstr "Aktiviraj Checkbox i klikni na odgovarajuće dugme da bi izbrisao opcije ovog plugin-a."
293
+
294
+ #: jquery-colorbox.php:796
295
+ msgid "Donate"
296
+ msgstr "Doniraj"
297
+
298
+ #: jquery-colorbox.php:810
299
+ msgid "If you would like to make a small (or large) contribution towards future development please consider making a donation."
300
+ msgstr "Ako bi želio da daš doprinos daljnjem usavršavanju, molim te razmisli o davanju donacije. "
301
+
302
+ #: jquery-colorbox.php:819
303
+ msgid "Translation"
304
+ msgstr ""
305
+
306
+ #: jquery-colorbox.php:822
307
+ msgid "The english translation was done by <a href=\"http://www.techotronic.de\">Arne Franken</a>."
308
+ msgstr ""
309
+
310
+ #: jquery-colorbox.php:845
311
+ #, php-format
312
+ msgid "Successfully updated %1$s settings."
313
+ msgstr "Uspješno ažurirano %1$s promjena."
314
+
315
+ #: jquery-colorbox.php:847
316
+ #, php-format
317
+ msgid "%1$s settings were successfully deleted."
318
+ msgstr "%1$s opcije su uspiješno izbrisane."
319
+
320
+ #: jquery-colorbox.php:888
321
+ msgid "needs attention: the plugin is not activated to work for all images."
322
+ msgstr "Pažnja "
323
+
324
+ #: jquery-colorbox.php:948
325
+ msgid "Did not update settings, you do not have the necessary rights."
326
+ msgstr "Opcije nisu ažurirane, nemaš potrebna ovlaštenja."
327
+
328
+ #: jquery-colorbox.php:995
329
+ #, php-format
330
+ msgid "Did not delete %1$s settings. Either you dont have the nececssary rights or you didnt check the checkbox."
331
+ msgstr " %1$s opcije nisu mogle biti izbrisane. Ili nemaš potrebna ovlaštenja ili si zaboravio da aktiviraš Checkbox."
332
+
333
+ #~ msgid "maxWidth"
334
+ #~ msgstr "Maximum width of an image"
335
+
336
+ #~ msgid "maxHeight"
337
+ #~ msgstr "Maximum height of an image"
338
+
339
+ #~ msgid "width"
340
+ #~ msgstr "Maxinmum width of the Colorbox"
341
+
342
+ #~ msgid "height"
343
+ #~ msgstr "Maximum height of the Colorbox"
localization/jquery-colorbox-de_DE.mo CHANGED
Binary file
localization/jquery-colorbox-de_DE.po CHANGED
@@ -2,266 +2,376 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: jQuery-Colorbox\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2010-02-10 22:12+0100\n"
6
- "PO-Revision-Date: 2010-02-10 22:13+0100\n"
7
- "Last-Translator: Arne Franken <blog@techotronic.de>\n"
8
- "Language-Team: \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: English\n"
13
"X-Poedit-KeywordsList: _e;__\n"
14
"X-Poedit-Basepath: ..\n"
15
"X-Poedit-SearchPath-0: .\n"
16
17
- #: jquery-colorbox.php:101
18
msgid "Theme #1"
19
- msgstr ""
20
21
- #: jquery-colorbox.php:102
22
msgid "Theme #2"
23
- msgstr ""
24
25
- #: jquery-colorbox.php:103
26
msgid "Theme #3"
27
- msgstr ""
28
29
- #: jquery-colorbox.php:104
30
msgid "Theme #4"
31
- msgstr ""
32
33
- #: jquery-colorbox.php:105
34
msgid "Theme #5"
35
- msgstr ""
36
37
- #: jquery-colorbox.php:110
38
msgid "percent"
39
msgstr "Prozent"
40
41
- #: jquery-colorbox.php:111
42
msgid "pixels"
43
msgstr "Pixel"
44
45
- #: jquery-colorbox.php:235
46
- #: jquery-colorbox.php:456
47
msgid "Settings"
48
msgstr "Einstellungen"
49
50
- #: jquery-colorbox.php:359
51
msgid "close"
52
msgstr "Schließen"
53
54
- #: jquery-colorbox.php:360
55
msgid "next"
56
msgstr "Vor"
57
58
- #: jquery-colorbox.php:361
59
msgid "previous"
60
msgstr "Zurück"
61
62
- #: jquery-colorbox.php:362
63
msgid "start slideshow"
64
msgstr "Slideshow starten"
65
66
- #: jquery-colorbox.php:363
67
msgid "stop slideshow"
68
msgstr "Slideshow beenden"
69
70
- #: jquery-colorbox.php:364
71
msgid "{current} of {total} images"
72
msgstr "{current} von {total} Bildern"
73
74
- #: jquery-colorbox.php:449
75
#, php-format
76
msgid "%1$s Settings"
77
msgstr "%1$s Einstellungen"
78
79
- #: jquery-colorbox.php:465
80
msgid "Theme"
81
- msgstr ""
82
83
- #: jquery-colorbox.php:477
84
msgid "Select the theme you want to use on your blog."
85
msgstr "W&auml;hle das Theme aus, das Du auf Deinem Blog benutzen m&ouml;chtest."
86
87
- #: jquery-colorbox.php:482
88
#, php-format
89
msgid "Automate %1$s for all images"
90
msgstr "%1$s f&uuml;r alle Bilder automatisieren"
91
92
- #: jquery-colorbox.php:486
93
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."
94
msgstr "Automatisch die Colorbox-CSS-Klasse f&uuml;r Bilder in Beitr&auml;gen und Seite einf&uuml;gen. F&uuml;gt die Klasse auch f&uuml;r Gallerien ein. Alle Bilder innerhalb eines Beitrags oder einer Seite werden automatisch gruppiert."
95
96
- #: jquery-colorbox.php:491
97
#, php-format
98
msgid "Automate %1$s for images in WordPress galleries"
99
msgstr "%1$s f&uuml;r Bilder in WordPress Gallerien automatisieren"
100
101
- #: jquery-colorbox.php:495
102
msgid "Automatically add colorbox-class to images in WordPress galleries, but nowhere else. Images in one page or post are grouped automatically."
103
msgstr "Automatisch die Colorbox-CSS-Klasse f&uuml;r Bilder in Gallerien einf&uuml;gen, sonst nirgends. Alle Bilder innerhalb eines Beitrags oder einer Seite werden automatisch gruppiert."
104
105
- #: jquery-colorbox.php:500
106
msgid "Add Slideshow to groups"
107
msgstr "Slideshow f&uuml;r Gruppen"
108
109
- #: jquery-colorbox.php:504
110
#, php-format
111
msgid "Add Slideshow functionality for %1$s Groups"
112
msgstr "Slideshow Funktionalit&auml;t zu %1$s Gruppen hinzuf&uuml;gen"
113
114
- #: jquery-colorbox.php:509
115
msgid "Start Slideshow automatically"
116
msgstr "Slideshow automatisch starten"
117
118
- #: jquery-colorbox.php:513
119
#, php-format
120
msgid "Start Slideshow automatically if slideshow functionality is added to %1$s Groups"
121
msgstr "Slideshow automatisch starten, wenn die Slideshow Funktionalit&auml;t zu %1$s Gruppen hinzugef&uuml;gt wird"
122
123
- #: jquery-colorbox.php:518
124
</