NextGEN Gallery – WordPress Gallery Plugin - Version 0.41

Version Description

Download this release

Release Info

Developer alexrabe
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 0.41
Comparing to
See all releases

Code changes from version 0.40 to 0.41

admin/about.php CHANGED
@@ -8,10 +8,17 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
8
  <div class="wrap">
9
  <h2><?php _e('Copyright notes / Credits', 'nggallery') ;?></h2>
10
  <fieldset class="options">
11
- <legend><?php _e("About this plugin", 'nggallery'); ?></legend>
12
- <p><?php _e('This plugin is written as last study on WordPress. I took the chance to learn PHP, WordPress and programming technics with this plugin.
13
- If you study the code of this plugin, you will find out that I mixed a lot of good already existing code and ideas together.', 'nggallery') ;?></p>
14
- <p><?php _e('So, I would like to thank the following people for their pioneer work (without this work it\'s impossible to create such a plugin so fast)', 'nggallery') ;?></p>
 
 
 
 
 
 
 
15
  <ul>
16
  <li><a href="http://wordpress.org" target="_blank">The WordPress Team</a> <?php _e('for their great documented code', 'nggallery') ;?></li>
17
  <li><a href="http://jquery.com" target="_blank">The jQuery Team</a> <?php _e('for jQuery, which is the best Web2.0 framework', 'nggallery') ;?></li>
@@ -25,11 +32,11 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
25
  </ul>
26
  <p><?php _e('If you didn\'t find your name on this list and there is some code which I integrate in my plugin, don\'t hesitate to send me a mail.', 'nggallery') ;?></p>
27
  <legend><?php _e("How to support ?", 'nggallery'); ?></legend>
28
- <p><?php _e('There exist several ways to contribute, help or support me in this work. Non of them are mandatory.', 'nggallery') ;?></p>
29
  <ul>
30
- <li><strong><?php _e('Send me bugfixes / code changes', 'nggallery') ;?></strong><br /><?php _e('The most motivated support for this plugin are your ideas and brain work', 'nggallery') ;?></li>
31
- <li><strong><?php _e('Translate my plugin', 'nggallery') ;?></strong><br /><?php _e('To help people to work with this plugin, I would like to have it in all avaivable languages', 'nggallery') ;?></li>
32
- <li><strong><?php _e('Donate my work via paypal', 'nggallery') ;?></strong><br />
33
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" >
34
  <input type="hidden" name="cmd" value="_xclick"/><input type="hidden" name="business" value="alterego@boelinger.com"/>
35
  <input type="hidden" name="item_name" value="WordPress Plugins www.alexrabe.boelinger.com"/>
@@ -39,12 +46,12 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
39
  <input type="hidden" name="tax" value="0"/>
40
  <input type="hidden" name="bn" value="PP-DonationsBF"/>
41
  <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border: none;"/>
42
- </form><?php _e('No doubt a very usefull and easy motivation :-) I send you an email , when I can buy my first Audi S3 with this money...', 'nggallery') ;?>
43
  </li>
44
- <li><strong><?php _e('Place a link to my plugin in your blog/webpage', 'nggallery') ;?></strong><br /><?php _e('Yes, share and trackback is also a good support for this work ', 'nggallery') ;?></li>
45
  </ul>
46
  <legend><?php _e("Thanks!", 'nggallery'); ?></legend>
47
- <p><?php _e('I would like to thank this people which support me in my work :', 'nggallery') ;?></p>
48
  <p><a href="http://www.boelinger.com/heike/" target="_blank">HEIKE</a>, <?php ngg_list_support(); ?></p>
49
  </fieldset>
50
  </div>
@@ -67,8 +74,18 @@ function ngg_list_support() {
67
  "Alakhnor" => "http://www.alakhnor.info",
68
  "Rod" => "http://www.le-hiboo.com",
69
  "Ttancm" => "http://www.ttancm.com/",
70
- "Francoise Pescatore" => ""
 
 
 
 
 
 
 
 
71
  );
 
 
72
 
73
  ksort($supporter);
74
  $i = count($supporter);
8
  <div class="wrap">
9
  <h2><?php _e('Copyright notes / Credits', 'nggallery') ;?></h2>
10
  <fieldset class="options">
11
+ <legend><?php _e("NextGEN DEV Team", 'nggallery'); ?></legend>
12
+ <p><?php _e('This plugin is a team work of a virtual developer team around the world. Follow persons take part at the development till now :', 'nggallery') ;?></p>
13
+ <ul>
14
+ <li><a href="http://alexrabe.boelinger.com" target="_blank">Alex Rabe</a> <?php _e('(Lead developer)', 'nggallery') ;?></li>
15
+ <li><a href="http://blog.arctic-media.de" target="_blank">Christian Arnold</a> <?php _e('(Core developer)', 'nggallery') ;?></li>
16
+ <li><a href="http://mufuschnu.mu.funpic.de" target="_blank">Thomas Matzke</a> <?php _e('(Core developer)', 'nggallery') ;?></li>
17
+ <li><a href="http://www.kev.hu" target="_blank">KeViN</a> <?php _e('(Sidebar Widget developer)', 'nggallery') ;?></li>
18
+ </ul>
19
+ <legend><?php _e("Contributors / Tribute to", 'nggallery'); ?></legend>
20
+ <p><?php _e('If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together.', 'nggallery') ;?>
21
+ <?php _e('So, we would like to thank the following people for their pioneer work (without this work it\'s impossible to create such a plugin so fast)', 'nggallery') ;?></p>
22
  <ul>
23
  <li><a href="http://wordpress.org" target="_blank">The WordPress Team</a> <?php _e('for their great documented code', 'nggallery') ;?></li>
24
  <li><a href="http://jquery.com" target="_blank">The jQuery Team</a> <?php _e('for jQuery, which is the best Web2.0 framework', 'nggallery') ;?></li>
32
  </ul>
33
  <p><?php _e('If you didn\'t find your name on this list and there is some code which I integrate in my plugin, don\'t hesitate to send me a mail.', 'nggallery') ;?></p>
34
  <legend><?php _e("How to support ?", 'nggallery'); ?></legend>
35
+ <p><?php _e('There exist several ways to contribute, help or support us in this work. Non of them are mandatory.', 'nggallery') ;?></p>
36
  <ul>
37
+ <li><strong><?php _e('Send us bugfixes / code changes', 'nggallery') ;?></strong><br /><?php _e('The most motivated support for this plugin are your ideas and brain work', 'nggallery') ;?></li>
38
+ <li><strong><?php _e('Translate the plugin', 'nggallery') ;?></strong><br /><?php _e('To help people to work with this plugin, I would like to have it in all avaivable languages', 'nggallery') ;?></li>
39
+ <li><strong><?php _e('Donate the work via paypal', 'nggallery') ;?></strong><br />
40
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" >
41
  <input type="hidden" name="cmd" value="_xclick"/><input type="hidden" name="business" value="alterego@boelinger.com"/>
42
  <input type="hidden" name="item_name" value="WordPress Plugins www.alexrabe.boelinger.com"/>
46
  <input type="hidden" name="tax" value="0"/>
47
  <input type="hidden" name="bn" value="PP-DonationsBF"/>
48
  <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border: none;"/>
49
+ </form><?php _e('No doubt a very usefull and easy motivation :-)', 'nggallery') ;?>
50
  </li>
51
+ <li><strong><?php _e('Place a link to the plugin in your blog/webpage', 'nggallery') ;?></strong><br /><?php _e('Yes, share and trackback is also a good support for this work ', 'nggallery') ;?></li>
52
  </ul>
53
  <legend><?php _e("Thanks!", 'nggallery'); ?></legend>
54
+ <p><?php _e('We would like to thank this people which support us in the work :', 'nggallery') ;?></p>
55
  <p><a href="http://www.boelinger.com/heike/" target="_blank">HEIKE</a>, <?php ngg_list_support(); ?></p>
56
  </fieldset>
57
  </div>
74
  "Alakhnor" => "http://www.alakhnor.info",
75
  "Rod" => "http://www.le-hiboo.com",
76
  "Ttancm" => "http://www.ttancm.com/",
77
+ "Francoise Pescatore" => "" ,
78
+ "Andreas (die-andis)" => "http://www.rummel-platz.de/",
79
+ "Andreas" => "http://blog.friedlandreas.de/",
80
+ "Joern Kretzschmar" => "http://diekretzschmars.de/",
81
+ "Mike" => "http://www.mikemuscroft.com/",
82
+ "Sabine (Haselina)" => "http://www.haselina.de/",
83
+ "Milemann" => "",
84
+ "Lazy (German Translation)" => "http://www.lazychris.de/",
85
+ "Lise Tauber (French Translation)" => "http://liseweb.fr/"
86
  );
87
+
88
+
89
 
90
  ksort($supporter);
91
  $i = count($supporter);
admin/addgallery.php CHANGED
@@ -291,7 +291,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
291
  while(false !== ($file = readdir($handle)))
292
  for($i=0;$i<sizeof($ext);$i++)
293
  if(stristr($file, ".".$ext[$i]))
294
- $files[] = $file;
295
  closedir($handle);
296
  }
297
  return($files);
@@ -366,13 +366,18 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
366
  if (is_array($pictures)) {
367
  foreach($pictures as $picture) {
368
 
369
- $thumb = new Thumbnail($gallery_absfolder."/".$picture, TRUE);
370
 
371
  // echo $thumb->errmsg;
372
  // skip if file is not there
373
  if (!$thumb->error) {
374
- if ($ngg_options[thumbcrop]) $thumb->cropFromCenter($ngg_options[thumbwidth],$ngg_options[thumbResampleMode]);
375
- else $thumb->resize($ngg_options[thumbwidth],$ngg_options[thumbheight],$ngg_options[thumbResampleMode]);
 
 
 
 
 
376
  $thumb->save($gallery_absfolder.$thumbfolder.$prefix.$picture,$ngg_options[thumbquality]);
377
  }
378
  $thumb->destruct();
291
  while(false !== ($file = readdir($handle)))
292
  for($i=0;$i<sizeof($ext);$i++)
293
  if(stristr($file, ".".$ext[$i]))
294
+ $files[] = utf8_encode($file);
295
  closedir($handle);
296
  }
297
  return($files);
366
  if (is_array($pictures)) {
367
  foreach($pictures as $picture) {
368
 
369
+ $thumb = new Thumbnail($gallery_absfolder."/".utf8_decode($picture), TRUE);
370
 
371
  // echo $thumb->errmsg;
372
  // skip if file is not there
373
  if (!$thumb->error) {
374
+ if ($ngg_options[thumbresizebefore]) {
375
+ $thumb->resize($ngg_options[thumbwidth],$ngg_options[thumbheight],$ngg_options[thumbResampleMode]);
376
+ $thumb->cropFromCenter($ngg_options[thumbwidth],$ngg_options[thumbResampleMode]);
377
+ } else {
378
+ if ($ngg_options[thumbcrop]) $thumb->cropFromCenter($ngg_options[thumbwidth],$ngg_options[thumbResampleMode]);
379
+ else $thumb->resize($ngg_options[thumbwidth],$ngg_options[thumbheight],$ngg_options[thumbResampleMode]);
380
+ }
381
  $thumb->save($gallery_absfolder.$thumbfolder.$prefix.$picture,$ngg_options[thumbquality]);
382
  }
383
  $thumb->destruct();
admin/album.php CHANGED
@@ -53,6 +53,12 @@ function nggallery_admin_manage_album() {
53
  $(document).ready(
54
  function()
55
  {
 
 
 
 
 
 
56
  $('div.groupWrapper').Sortable(
57
  {
58
  accept: 'groupItem',
@@ -60,25 +66,38 @@ $(document).ready(
60
  opacity: 0.7,
61
  tolerance: 'intersect'
62
  }
63
- ),
64
-
65
  $('.textarea1').Autoexpand([230,400]);
66
  }
67
  );
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  function serialize(s)
70
  {
71
  serial = $.SortSerialize(s);
72
  $('input[@name=sortorder]').val(serial.hash);
73
- };
74
  </script>
75
- <div class="wrap">
76
- <h2><?php _e('Manage Albums', 'nggallery') ?></h2>
77
  <form id="selectalbum" method="POST" onsubmit="serialize('galleryContainer')">
78
  <input name="sortorder" type="hidden" />
79
- <table width="60%" border="0" cellspacing="3" cellpadding="3" >
80
  <tr>
81
- <th align="right">Select album</th>
82
  <td>
83
  <select id="act_album" name="act_album" onchange="this.form.submit();">
84
  <option value="0" ><?php _e('No album selected', 'nggallery') ?></option>
@@ -94,17 +113,21 @@ function serialize(s)
94
  ?>
95
  </select>
96
  </td>
97
- <th align="right">Add new album</th>
98
  <td><input id="newalbum" name="newalbum" value="" /></td>
 
 
 
 
 
 
99
  </tr>
100
  </table>
101
- <p class="submit">
102
- <?php if ($_POST['act_album'] > 0){ ?>
103
- <input type="submit" name="delete" class="button delete" value="<?php _e('Delete') ?> &raquo;" onclick="javascript:check=confirm('<?php _e('Delete album ?','nggallery'); ?>');if(check==false) return false;"/>
104
- <?php } ?>
105
- <input type="submit" name="update" value="<?php _e('Update') ?> &raquo;" /><p>
106
- </form>
107
  <br class="clear"/>
 
108
  <div class="container">
109
  <div id="selectContainer" class="groupWrapper">
110
  <h3><?php _e('Select Gallery', 'nggallery') ?></h3>
@@ -149,8 +172,12 @@ function serialize(s)
149
  }
150
  }
151
  }
152
- } else echo '<h3>'.__('No Album selected', 'nggallery').'</h3>'."\n";
153
- ?>
 
 
 
 
154
  </div><!-- /#gallery container -->
155
 
156
  </div><!-- /#container -->
@@ -175,19 +202,21 @@ function getgallerycontainer($galleryid = 0) {
175
  $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$gallery->previewpic'");
176
  if ($filename) $img = '<img src="'.$act_thumbnail_url.$act_thumb_prefix.$filename.'" />';
177
  else $img = '';
178
- echo '
179
- <div id="gid-'.$gallery->gid.'" class="groupItem">
180
- <div class="innerhandle">
181
- <div class="itemContent">
182
- <div class="inlinepicture">'.$img.'</div>
183
- <p><strong>'.__('ID', 'nggallery').' : </strong>'.$gallery->gid.'</p>
184
- <p><strong>'.__('Name', 'nggallery').' : </strong>'.$gallery->name.'</p>
185
- <p><strong>'.__('Title', 'nggallery').' : </strong>'.$gallery->title.'</p>
186
- <p><strong>'.__('Page', 'nggallery').' : </strong>'.$pagename.'</p>
 
 
 
 
187
  </div>
188
- </div>
189
- </div>
190
- ';
191
  }
192
  }
193
  ?>
53
  $(document).ready(
54
  function()
55
  {
56
+ //updating the height of the white backround box, it does not work without this stupid lines
57
+ //problem: absolute positioning of the minimizing links in item_top does not work :(
58
+ //position: absolute; right:5px; top:0px; border-bottom: 2px solid #003333; css lines of .groupItem .item_top a
59
+ var hei = $('.wrap').height();
60
+ $('.wrap').height(hei);
61
+
62
  $('div.groupWrapper').Sortable(
63
  {
64
  accept: 'groupItem',
66
  opacity: 0.7,
67
  tolerance: 'intersect'
68
  }
69
+ )
70
+ $('a.min').bind('click', toggleContent);
71
  $('.textarea1').Autoexpand([230,400]);
72
  }
73
  );
74
 
75
+ var toggleContent = function(e)
76
+ {
77
+ var targetContent = $('div.itemContent', this.parentNode.parentNode);
78
+ if (targetContent.css('display') == 'none') {
79
+ targetContent.slideDown(300);
80
+ $(this).html('[-]');
81
+ } else {
82
+ targetContent.slideUp(300);
83
+ $(this).html('[+]');
84
+ }
85
+ return false;
86
+ }
87
+
88
  function serialize(s)
89
  {
90
  serial = $.SortSerialize(s);
91
  $('input[@name=sortorder]').val(serial.hash);
92
+ }
93
  </script>
94
+ <div class="wrap" id="wrap" >
95
+ <h3><?php _e('Manage Albums', 'nggallery') ?></h3>
96
  <form id="selectalbum" method="POST" onsubmit="serialize('galleryContainer')">
97
  <input name="sortorder" type="hidden" />
98
+ <table width="100%" border="0" cellspacing="3" cellpadding="3" >
99
  <tr>
100
+ <th align="right"><?php _e('Select album', 'nggallery') ?></th>
101
  <td>
102
  <select id="act_album" name="act_album" onchange="this.form.submit();">
103
  <option value="0" ><?php _e('No album selected', 'nggallery') ?></option>
113
  ?>
114
  </select>
115
  </td>
116
+ <th align="right"><?php _e('Add new album', 'nggallery') ?></th>
117
  <td><input id="newalbum" name="newalbum" value="" /></td>
118
+ <td><p class="submit">
119
+ <?php if ($_POST['act_album'] > 0){ ?>
120
+ <input type="submit" name="delete" class="button delete" value="<?php _e('Delete') ?> &raquo;" onclick="javascript:check=confirm('<?php _e('Delete album ?','nggallery'); ?>');if(check==false) return false;"/>
121
+ <?php } ?>
122
+ <input type="submit" name="update" value="<?php _e('Update') ?> &raquo;" />
123
+ <p></td>
124
  </tr>
125
  </table>
126
+
127
+ </form>
128
+ <p><?php _e('After you create and select a album, you can drag and drop a gallery into your album below','nggallery'); ?></p>
 
 
 
129
  <br class="clear"/>
130
+
131
  <div class="container">
132
  <div id="selectContainer" class="groupWrapper">
133
  <h3><?php _e('Select Gallery', 'nggallery') ?></h3>
172
  }
173
  }
174
  }
175
+ }
176
+ else
177
+ {
178
+ echo '<h3>'.__('No album selected!', 'nggallery').'</h3>';
179
+ }
180
+ ?>
181
  </div><!-- /#gallery container -->
182
 
183
  </div><!-- /#container -->
202
  $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$gallery->previewpic'");
203
  if ($filename) $img = '<img src="'.$act_thumbnail_url.$act_thumb_prefix.$filename.'" />';
204
  else $img = '';
205
+ echo '<div id="gid-'.$gallery->gid.'" class="groupItem">
206
+ <div class="innerhandle">
207
+ <div class="item_top">
208
+ <a href="#" class="min" title="close">[-]</a>
209
+ ID: '.$gallery->gid.' || Title: '.$gallery->title.'
210
+ </div>
211
+ <div class="itemContent">
212
+ <div class="inlinepicture">'.$img.'</div>
213
+ <p><strong>'.__('ID', 'nggallery').' : </strong>'.$gallery->gid.'</p>
214
+ <p><strong>'.__('Name', 'nggallery').' : </strong>'.$gallery->name.'</p>
215
+ <p><strong>'.__('Title', 'nggallery').' : </strong>'.$gallery->title.'</p>
216
+ <p><strong>'.__('Page', 'nggallery').' : </strong>'.$pagename.'</p>
217
+ </div>
218
  </div>
219
+ </div>';
 
 
220
  }
221
  }
222
  ?>
admin/js/portlets.css CHANGED
@@ -1,8 +1,12 @@
 
 
 
 
 
1
  .groupItem
2
  {
3
  background-color:#FBFBFB;
4
  border:1px solid #CCCCCC;
5
- cursor:move;
6
  display:block;
7
  line-height:75px;
8
  cursor: move;
@@ -10,6 +14,27 @@
10
  width: 390px;
11
  }
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  .innerhandle {
14
  border-color:#F2F2F2 rgb(232, 232, 232) rgb(232, 232, 232) rgb(242, 242, 242);
15
  border-style:solid;
@@ -46,7 +71,6 @@
46
  border:1px solid #BBBBBB;
47
  margin:10px 440px 10px 10px;
48
  padding:0px 10px 10px 10px;
49
- height:500px;
50
  }
51
 
52
  #selectContainer {
1
+ html
2
+ {
3
+ height:100%;
4
+ }
5
+
6
  .groupItem
7
  {
8
  background-color:#FBFBFB;
9
  border:1px solid #CCCCCC;
 
10
  display:block;
11
  line-height:75px;
12
  cursor: move;
14
  width: 390px;
15
  }
16
 
17
+ .groupItem .item_top
18
+ {
19
+ background-color:#669999;
20
+ color: white;
21
+ font-weight:bold;
22
+ line-height: 28px;
23
+ height: 28px;
24
+ border-bottom: 2px solid #003333;
25
+ cursor: move;
26
+ padding: 0 5px;
27
+ position: static;
28
+ }
29
+
30
+ .groupItem .item_top a
31
+ {
32
+ float:right;
33
+ text-decoration: none;
34
+ color: white;
35
+ border-bottom: 2px solid #003333;
36
+ }
37
+
38
  .innerhandle {
39
  border-color:#F2F2F2 rgb(232, 232, 232) rgb(232, 232, 232) rgb(242, 242, 242);
40
  border-style:solid;
71
  border:1px solid #BBBBBB;
72
  margin:10px 440px 10px 10px;
73
  padding:0px 10px 10px 10px;
 
74
  }
75
 
76
  #selectContainer {
admin/manage.php CHANGED
@@ -135,8 +135,9 @@ function nggallery_admin_manage_gallery() {
135
  if ($_POST['scanfolder']) {
136
  // Rescan folder
137
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
138
- $old_imageslist = array();
139
- $old_imageslist[] = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ");
 
140
  // read list of images in folder
141
  $new_imageslist = ngg_scandir(WINABSPATH.$gallerypath);
142
  // check difference
@@ -251,7 +252,7 @@ function nggallery_pciturelist() {
251
  */
252
  });
253
  </script>
254
- <script type="text/javascript"> var LoadingImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimation.gif';</script>
255
  <script type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.js"></script>
256
  <style type="text/css" media="all">@import "<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.css";</style>
257
  <style type="text/css" media="all">
@@ -470,4 +471,4 @@ function ngg_update_pictures( $nggdescription, $nggalttext, $nggexclude, $nggall
470
  return $update_ok;
471
  }
472
 
473
- ?>
135
  if ($_POST['scanfolder']) {
136
  // Rescan folder
137
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
138
+ $old_imageslist = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ");
139
+ // if no images are there, create empty array
140
+ if ($old_imageslist == NULL) $old_imageslist = array();
141
  // read list of images in folder
142
  $new_imageslist = ngg_scandir(WINABSPATH.$gallerypath);
143
  // check difference
252
  */
253
  });
254
  </script>
255
+ <script type="text/javascript"> var tb_pathToImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimationv2.gif';</script>
256
  <script type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.js"></script>
257
  <style type="text/css" media="all">@import "<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.css";</style>
258
  <style type="text/css" media="all">
471
  return $update_ok;
472
  }
473
 
474
+ ?>
admin/settings.php CHANGED
@@ -160,7 +160,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
160
  <div id="thumbnails" style="display:none">
161
  <h2><?php _e('Thumbnail settings','nggallery'); ?></h2>
162
  <form name="thumbnailsettings" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#thumbnails-slider'; ?>" >
163
- <input type="hidden" name="page_options" value="thumbwidth,thumbheight,thumbfix,thumbcrop,thumbquality,thumbResampleMode" />
164
  <fieldset class="options">
165
  <table class="optiontable editform">
166
  <tr valign="top">
@@ -178,6 +178,11 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
178
  <td><input type="checkbox" name="thumbcrop" value="1" <?php checked('1', $ngg_options[thumbcrop]); ?> /><br />
179
  <?php _e('Create square thumbnails from the center','nggallery') ?></td>
180
  </tr>
 
 
 
 
 
181
  <tr valign="top">
182
  <th align="left"><?php _e('Thumbnail quality','nggallery') ?></th>
183
  <td><input type="text" size="3" maxlength="3" name="thumbquality" value="<?php echo $ngg_options[thumbquality]; ?>" /> %</td>
160
  <div id="thumbnails" style="display:none">
161
  <h2><?php _e('Thumbnail settings','nggallery'); ?></h2>
162
  <form name="thumbnailsettings" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#thumbnails-slider'; ?>" >
163
+ <input type="hidden" name="page_options" value="thumbwidth,thumbheight,thumbfix,thumbcrop,thumbresizebefore,thumbquality,thumbResampleMode" />
164
  <fieldset class="options">
165
  <table class="optiontable editform">
166
  <tr valign="top">
178
  <td><input type="checkbox" name="thumbcrop" value="1" <?php checked('1', $ngg_options[thumbcrop]); ?> /><br />
179
  <?php _e('Create square thumbnails from the center','nggallery') ?></td>
180
  </tr>
181
+ <tr valign="top">
182
+ <th align="left"><?php _e('Do resize before cropping','nggallery') ?></th>
183
+ <td><input type="checkbox" name="thumbresizebefore" value="1" <?php checked('1', $ngg_options[thumbresizebefore]); ?> /><br />
184
+ <?php _e('Generates square thumbnails without cropping to much','nggallery') ?></td>
185
+ </tr>
186
  <tr valign="top">
187
  <th align="left"><?php _e('Thumbnail quality','nggallery') ?></th>
188
  <td><input type="text" size="3" maxlength="3" name="thumbquality" value="<?php echo $ngg_options[thumbquality]; ?>" /> %</td>
admin/style.php CHANGED
@@ -8,15 +8,18 @@ $ngg_options = get_option('ngg_options');
8
  if (isset($_POST['css'])) {
9
  $act_cssfile = $_POST['css'];
10
  if (isset($_POST['activate'])) {
11
- // save option now
12
- $ngg_options[activateCSS] = $_POST['activateCSS'];
13
- $ngg_options[CSSfile] = $act_cssfile;
14
- update_option('ngg_options', $ngg_options);
15
- $messagetext = '<font color="green">'.__('Update successfully','nggallery').'</font>';
16
  }
17
  } else {
18
  // get the options
19
- $act_cssfile = $ngg_options[CSSfile];
 
 
 
20
  }
21
 
22
  // set the path
@@ -28,6 +31,7 @@ if (isset($_POST['updatecss'])) {
28
  wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
29
 
30
  $newcontent = stripslashes($_POST['newcontent']);
 
31
  if (is_writeable($real_file)) {
32
  $f = fopen($real_file, 'w+');
33
  fwrite($f, $newcontent);
@@ -38,13 +42,14 @@ if (isset($_POST['updatecss'])) {
38
  }
39
 
40
  // get the content of the file
 
41
  if (!is_file($real_file))
42
  $error = 1;
43
 
44
  if (!$error && filesize($real_file) > 0) {
45
  $f = fopen($real_file, 'r');
46
  $content = fread($f, filesize($real_file));
47
- $content = htmlspecialchars($content);
48
  }
49
 
50
  // message window
8
  if (isset($_POST['css'])) {
9
  $act_cssfile = $_POST['css'];
10
  if (isset($_POST['activate'])) {
11
+ // save option now
12
+ $ngg_options[activateCSS] = $_POST['activateCSS'];
13
+ $ngg_options[CSSfile] = $act_cssfile;
14
+ update_option('ngg_options', $ngg_options);
15
+ $messagetext = '<font color="green">'.__('Update successfully','nggallery').'</font>';
16
  }
17
  } else {
18
  // get the options
19
+ if (isset($_POST['file']))
20
+ $act_cssfile = $_POST['file'];
21
+ else
22
+ $act_cssfile = $ngg_options[CSSfile];
23
  }
24
 
25
  // set the path
31
  wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
32
 
33
  $newcontent = stripslashes($_POST['newcontent']);
34
+
35
  if (is_writeable($real_file)) {
36
  $f = fopen($real_file, 'w+');
37
  fwrite($f, $newcontent);
42
  }
43
 
44
  // get the content of the file
45
+ //TODO: BUG : Read failed after write a file, maybe a Cache problem
46
  if (!is_file($real_file))
47
  $error = 1;
48
 
49
  if (!$error && filesize($real_file) > 0) {
50
  $f = fopen($real_file, 'r');
51
  $content = fread($f, filesize($real_file));
52
+ $content = htmlspecialchars($content);
53
  }
54
 
55
  // message window
changelog.txt CHANGED
@@ -1,5 +1,24 @@
1
  NextGEN Gallery
2
- by Alex Rabe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  V0.40 - 29.04.2007
5
  - NEW : TinyMCE Button integration
1
  NextGEN Gallery
2
+ by Alex Rabe & NextGEN DEV Team
3
+
4
+ V0.41 - 17.05.2007
5
+ - NEW : Sidebar widget from KeViN
6
+ - Update : Better album management for more galleries
7
+ - Update : Thickbox v3 integrated
8
+ - Added : Float selection for singlepic
9
+ - Added : CSS class for widget
10
+ - Added : CSS file for K2 theme
11
+ - Added : German translation (THX to Lazy)
12
+ - Added : Better check for safe-mode
13
+ - Added : CSS Class for single-pic : class="ngg-singlepic"
14
+ - Added : Option to resize image before cropping it (Setting reset of
15
+ prior versions needed! Setup -> Reset Settings)
16
+ - Changed : Image quality by default 85% (THX to ArizonaGroovejet)
17
+ - Bugfix : Update wrong file when select other style
18
+ - Bugfix : Fixed Permalink in album (THX to Helene D.)
19
+ - Bugfix : Scan folder in empty gallery
20
+ - Bugfix : Swfobjects only added with Thickbox effect
21
+ - Bugfix : Umlauts are now handled correctly
22
 
23
  V0.40 - 29.04.2007
24
  - NEW : TinyMCE Button integration
css/Black_Minimalism .css CHANGED
@@ -2,7 +2,7 @@
2
  CSS Name: Black Minimalism Theme
3
  Description: For Black Minimalism Theme
4
  Author: Alex Rabe
5
- Version: 1.00
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
@@ -165,4 +165,39 @@ it's only a template design
165
 
166
  .slideshowlink {
167
 
168
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  CSS Name: Black Minimalism Theme
3
  Description: For Black Minimalism Theme
4
  Author: Alex Rabe
5
+ Version: 1.10
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
165
 
166
  .slideshowlink {
167
 
168
+ }
169
+
170
+ /* ----------- Single picture -------------*/
171
+ .ngg-singlepic {
172
+ background-color:#FFFFFF;
173
+ border:1px solid #A9A9A9;
174
+ display:block;
175
+ margin:5px;
176
+ padding:4px;
177
+ position:relative;
178
+ }
179
+
180
+ /* ----------- Sidebar widget -------------*/
181
+ .ngg-widget {
182
+
183
+ }
184
+
185
+ ul.ngg-randomlist {
186
+ background:transparent none repeat scroll 0% !important;
187
+ display:inline;
188
+ margin:0pt;
189
+ padding:0pt 0px 0px 0pt;
190
+ }
191
+
192
+ ul.ngg-randomlist img {
193
+ border:2px solid #A9A9A9;
194
+ margin:0pt 2px 2px 0px;
195
+ padding:1px;
196
+ }
197
+
198
+ ul.ngg-randomlist li {
199
+ display:block;
200
+ float:left;
201
+ padding:0pt 2px 0px 0px;
202
+ position:relative;
203
+ }
css/ngg_k2.css ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ CSS Name: K2 Theme
3
+ Description: NextGEN Style for K2 Theme
4
+ Author: Alex Rabe
5
+ Version: 1.10
6
+
7
+ This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
+ styles with a default theme Kubrick. Modify it when your theme struggle with it,
9
+ it's only a template design
10
+
11
+ */
12
+
13
+ /* ----------- Album Styles Extend -------------*/
14
+
15
+ .ngg-albumoverview {
16
+ margin: 10px 0px 0px 0px !important;
17
+ width: 100%;
18
+ clear:both;
19
+ display:block !important;
20
+ }
21
+
22
+ .ngg-album {
23
+ margin: 0px 0px 5px !important;
24
+ height: 130px;
25
+ padding: 5px;
26
+ border: 1px solid #cccccc;
27
+ }
28
+
29
+ .ngg-albumtitle {
30
+ text-align: left;
31
+ font-weight: bold;
32
+ padding:0px;
33
+ font-size: 1.4em;
34
+ margin: 0px 0px 10px 0px !important;
35
+ }
36
+
37
+ .ngg-albumcontent {
38
+ margin: 0px !important;
39
+ }
40
+
41
+ .ngg-thumbnail {
42
+ margin:0px 12px 0px 0px !important;
43
+ float: left;
44
+ }
45
+
46
+ .ngg-thumbnail img {
47
+ background-color:#FFFFFF;
48
+ border:1px solid #A9A9A9;
49
+ margin:4px 0px 4px 5px !important;
50
+ padding:4px;
51
+ position:relative;
52
+ }
53
+
54
+ .ngg-thumbnail img:hover {
55
+ background-color: #A9A9A9;
56
+ }
57
+
58
+ .ngg-description {
59
+ text-align: left;
60
+ }
61
+
62
+ /* ----------- Album Styles Compact -------------*/
63
+
64
+ .ngg-album-compact {
65
+ float:left;
66
+ height:180px;
67
+ padding-right:6px !important;
68
+ margin:0px !important;
69
+ text-align:left;
70
+ width:120px;
71
+ }
72
+
73
+ .ngg-album-compactbox {
74
+ background:transparent url(albumset.gif) no-repeat scroll 0%;
75
+ height:86px;
76
+ margin:0pt 0pt 6px !important;
77
+ padding:12px 0pt 0pt 7px !important;
78
+ width:120px;
79
+ }
80
+
81
+ .ngg-album-link {
82
+ margin:0px !important;
83
+ }
84
+
85
+ .ngg-album-compactbox .Thumb {
86
+ border:1px solid #000000;
87
+ margin:0px !important;
88
+ padding:0px !important;
89
+ }
90
+
91
+ .ngg-album-compact h4 {
92
+ font-size:15px;
93
+ font-weight:bold;
94
+ margin-bottom:0px !important;
95
+ margin-top:0px !important;
96
+ width:110px;
97
+ padding:0px !important;
98
+ }
99
+
100
+ .ngg-album-compact p {
101
+ font-size:11px;
102
+ margin-top:2px;
103
+ }
104
+
105
+ /* ----------- Gallery style -------------*/
106
+
107
+ .ngg-galleryoverview {
108
+ margin-top: 10px;
109
+ width: 100%;
110
+ clear:both;
111
+ display:block !important;
112
+ }
113
+
114
+ .ngg-gallery-thumbnail-box {
115
+ margin:0px !important;
116
+ float: left;
117
+ }
118
+
119
+ .ngg-gallery-thumbnail {
120
+ float: left;
121
+ background: url(shadowAlpha.png) no-repeat bottom right !important;
122
+ background: url(shadow.gif) no-repeat bottom right;
123
+ margin: 10px 0 0 10px !important;
124
+ }
125
+
126
+ .ngg-gallery-thumbnail img {
127
+ margin: -6px 6px 6px -6px !important;
128
+ background-color:#FFFFFF;
129
+ border:1px solid #A9A9A9;
130
+ display:block;
131
+ padding:4px;
132
+ position:relative;
133
+ }
134
+
135
+ .ngg-gallery-thumbnail img:hover {
136
+ background-color: #A9A9A9;
137
+ }
138
+
139
+ /* ----------- Gallery navigation -------------*/
140
+
141
+ .ngg-navigation {
142
+ font-size:0.9em !important;
143
+ clear:both !important;
144
+ display:block !important;
145
+ padding-top:15px;
146
+ text-align:center;
147
+ }
148
+
149
+ .ngg-navigation span {
150
+ font-weight:bold;
151
+ margin:0pt 6px;
152
+ }
153
+
154
+ .ngg-navigation a.page-numbers, a.next, a.prev {
155
+ border:1px solid #DDDDDD;
156
+ margin-right:3px;
157
+ padding:3px 7px;
158
+ }
159
+
160
+ .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover {
161
+ background-color: #0066CC;
162
+ color: #FFFFFF;
163
+ text-decoration: none;
164
+ }
165
+
166
+ /* ----------- Slideshow -------------*/
167
+ .slideshow {
168
+ margin-left: auto;
169
+ margin-right: auto;
170
+ text-align:center;
171
+ }
172
+
173
+ .slideshowlink {
174
+
175
+ }
176
+
177
+ /* ----------- Single picture -------------*/
178
+ .ngg-singlepic {
179
+ background-color:#FFFFFF;
180
+ border:1px solid #A9A9A9;
181
+ display:block;
182
+ margin:5px;
183
+ padding:4px;
184
+ position:relative;
185
+ }
186
+
187
+ /* ----------- Sidebar widget -------------*/
188
+ .ngg-widget {
189
+
190
+ }
191
+
192
+ ul.ngg-randomlist {
193
+ background:transparent none repeat scroll 0% !important;
194
+ display:inline;
195
+ margin:0pt;
196
+ padding:0pt 0px 0px 0pt;
197
+ }
198
+
199
+ ul.ngg-randomlist img {
200
+ border:2px solid #A9A9A9;
201
+ margin:0pt 2px 2px 0px;
202
+ padding:1px;
203
+ }
204
+
205
+ ul.ngg-randomlist li {
206
+ display:block;
207
+ float:left;
208
+ padding:0pt 2px 0px 0px;
209
+ position:relative;
210
+ }
css/ngg_shadow.css CHANGED
@@ -2,7 +2,7 @@
2
  CSS Name: Shadow Effect
3
  Description: NextGEN Default Style with a Shadow effect
4
  Author: Alex Rabe
5
- Version: 1.00
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
@@ -164,4 +164,40 @@ it's only a template design
164
 
165
  .slideshowlink {
166
 
167
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  CSS Name: Shadow Effect
3
  Description: NextGEN Default Style with a Shadow effect
4
  Author: Alex Rabe
5
+ Version: 1.10
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
164
 
165
  .slideshowlink {
166
 
167
+ }
168
+
169
+ /* ----------- Single picture -------------*/
170
+ .ngg-singlepic {
171
+ background-color:#FFFFFF;
172
+ border:1px solid #A9A9A9;
173
+ display:block;
174
+ margin:5px;
175
+ padding:4px;
176
+ position:relative;
177
+ }
178
+
179
+ /* ----------- Sidebar widget -------------*/
180
+ .ngg-widget {
181
+
182
+ }
183
+
184
+ ul.ngg-randomlist {
185
+ background:transparent none repeat scroll 0% !important;
186
+ display:inline;
187
+ margin:0pt;
188
+ padding:0pt 0px 0px 0pt;
189
+ }
190
+
191
+ ul.ngg-randomlist img {
192
+ border:2px solid #A9A9A9;
193
+ margin:0pt 2px 2px 0px;
194
+ padding:1px;
195
+ }
196
+
197
+ ul.ngg-randomlist li {
198
+ display:block;
199
+ float:left;
200
+ padding:0pt 2px 0px 0px;
201
+ position:relative;
202
+ }
203
+
css/nggallery.css CHANGED
@@ -1,8 +1,8 @@
1
  /*
2
- CSS Name: Default Style
3
  Description: NextGEN Default Gallery Stylesheet
4
  Author: Alex Rabe
5
- Version: 1.000
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
@@ -163,4 +163,40 @@ it's only a template design
163
 
164
  .slideshowlink {
165
 
166
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*
2
+ CSS Name: Default Styles
3
  Description: NextGEN Default Gallery Stylesheet
4
  Author: Alex Rabe
5
+ Version: 1.10
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
163
 
164
  .slideshowlink {
165
 
166
+ }
167
+
168
+ /* ----------- Single picture -------------*/
169
+ .ngg-singlepic {
170
+ background-color:#FFFFFF;
171
+ border:1px solid #A9A9A9;
172
+ display:block;
173
+ margin:5px;
174
+ padding:4px;
175
+ position:relative;
176
+ }
177
+
178
+ /* ----------- Sidebar widget -------------*/
179
+ .ngg-widget {
180
+
181
+ }
182
+
183
+ ul.ngg-randomlist {
184
+ background:transparent none repeat scroll 0% !important;
185
+ display:inline;
186
+ margin:0pt;
187
+ padding:0pt 0px 0px 0pt;
188
+ }
189
+
190
+ ul.ngg-randomlist img {
191
+ border:2px solid #A9A9A9;
192
+ margin:0pt 2px 2px 0px;
193
+ padding:1px;
194
+ }
195
+
196
+ ul.ngg-randomlist li {
197
+ display:block;
198
+ float:left;
199
+ padding:0pt 2px 0px 0px;
200
+ position:relative;
201
+ }
202
+
index.html ADDED
File without changes
js/tinymce.js CHANGED
@@ -51,12 +51,14 @@ function insertNGGLink() {
51
  var singlepicid = document.getElementById('singlepictag').value;
52
  var imgWidth = document.getElementById('imgWidth').value;
53
  var imgHeight = document.getElementById('imgHeight').value;
54
- var imgeffect = getCheckedValue(document.getElementsByName('imgeffect'));
 
 
55
  if (singlepicid != 0 ) {
56
  if (imgeffect == "none")
57
- tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "]";
58
  else
59
- tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "," + imgeffect + "]";
60
  } else {
61
  tinyMCEPopup.close();
62
  }
51
  var singlepicid = document.getElementById('singlepictag').value;
52
  var imgWidth = document.getElementById('imgWidth').value;
53
  var imgHeight = document.getElementById('imgHeight').value;
54
+ var imgeffect = document.getElementById('imgeffect').value;
55
+ var imgfloat = document.getElementById('imgfloat').value;
56
+
57
  if (singlepicid != 0 ) {
58
  if (imgeffect == "none")
59
+ tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + ",," + imgfloat + "]";
60
  else
61
+ tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "," + imgeffect + "," + imgfloat + "]";
62
  } else {
63
  tinyMCEPopup.close();
64
  }
lang/nggallery.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-04-29 00:11+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -15,229 +15,333 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
- #: ../nggallery.php:241
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
22
- #: ../nggbutton.php:33
23
  #: ../admin/addgallery.php:231
24
  #: ../admin/addgallery.php:282
25
  #: ../admin/admin.php:13
26
  #: ../admin/manage.php:44
27
- #: ../admin/manage.php:304
28
  #: ../admin/settings.php:119
29
  msgid "Gallery"
30
  msgstr ""
31
 
32
- #: ../nggbutton.php:34
33
  #: ../admin/admin.php:16
34
  msgid "Album"
35
  msgstr ""
36
 
37
- #: ../nggbutton.php:35
38
  #: ../admin/manage.php:63
39
  msgid "Picture"
40
  msgstr ""
41
 
42
- #: ../nggbutton.php:45
43
  msgid "Select gallery"
44
  msgstr ""
45
 
46
- #: ../nggbutton.php:47
47
  msgid "No gallery"
48
  msgstr ""
49
 
50
- #: ../nggbutton.php:59
51
- #: ../nggbutton.php:86
52
  msgid "Show as"
53
  msgstr ""
54
 
55
- #: ../nggbutton.php:60
56
  msgid "Image list"
57
  msgstr ""
58
 
59
- #: ../nggbutton.php:61
60
  #: ../admin/settings.php:122
61
- #: ../admin/settings.php:256
62
- #: ../admin/settings.php:412
63
  msgid "Slideshow"
64
  msgstr ""
65
 
66
- #: ../nggbutton.php:72
 
67
  msgid "Select album"
68
  msgstr ""
69
 
70
- #: ../nggbutton.php:74
71
  msgid "No album"
72
  msgstr ""
73
 
74
- #: ../nggbutton.php:87
75
  msgid "Extended version"
76
  msgstr ""
77
 
78
- #: ../nggbutton.php:88
79
  msgid "Compact version"
80
  msgstr ""
81
 
82
- #: ../nggbutton.php:99
83
  msgid "Select picture"
84
  msgstr ""
85
 
86
- #: ../nggbutton.php:101
87
  msgid "No picture"
88
  msgstr ""
89
 
90
- #: ../nggbutton.php:113
91
  msgid "Width x Height"
92
  msgstr ""
93
 
94
- #: ../nggbutton.php:117
95
  msgid "Effect"
96
  msgstr ""
97
 
98
- #: ../nggbutton.php:118
99
  msgid "No effect"
100
  msgstr ""
101
 
102
- #: ../nggbutton.php:119
103
  #: ../admin/settings.php:121
104
- #: ../admin/settings.php:310
105
  msgid "Watermark"
106
  msgstr ""
107
 
108
- #: ../nggbutton.php:120
109
  msgid "Web 2.0"
110
  msgstr ""
111
 
112
  #: ../nggbutton.php:130
113
- msgid "Cancel"
 
 
 
 
114
  msgstr ""
115
 
116
  #: ../nggbutton.php:134
 
 
 
 
 
 
 
 
 
 
 
 
117
  msgid "Insert"
118
  msgstr ""
119
 
120
- #: ../nggfunctions.php:267
121
- #: ../nggfunctions.php:283
122
  msgid "Watch gallery"
123
  msgstr ""
124
 
125
- #: ../nggfunctions.php:277
126
  msgid "Photos"
127
  msgstr ""
128
 
129
- #: ../ngginstall.php:97
130
  msgid "[Show as slideshow]"
131
  msgstr ""
132
 
133
- #: ../ngginstall.php:98
134
  msgid "[Show picture list]"
135
  msgstr ""
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  #: ../admin/about.php:9
138
  msgid "Copyright notes / Credits"
139
  msgstr ""
140
 
141
  #: ../admin/about.php:11
142
- msgid "About this plugin"
143
  msgstr ""
144
 
145
  #: ../admin/about.php:12
146
- msgid ""
147
- "This plugin is written as last study on WordPress. I took the chance to learn PHP, WordPress and programming technics with this plugin.\n"
148
- "\t\tIf you study the code of this plugin, you will find out that I mixed a lot of good already existing code and ideas together."
149
  msgstr ""
150
 
151
  #: ../admin/about.php:14
152
- msgid "So, I would like to thank the following people for their pioneer work (without this work it's impossible to create such a plugin so fast)"
153
  msgstr ""
154
 
 
155
  #: ../admin/about.php:16
156
- msgid "for their great documented code"
157
  msgstr ""
158
 
159
  #: ../admin/about.php:17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  msgid "for jQuery, which is the best Web2.0 framework"
161
  msgstr ""
162
 
163
- #: ../admin/about.php:18
164
  msgid "for the fantastic PHP Thumbnail Class"
165
  msgstr ""
166
 
167
- #: ../admin/about.php:19
168
  msgid "for PclZip , a PHP library that manage ZIP archives"
169
  msgstr ""
170
 
171
- #: ../admin/about.php:20
172
  msgid "for a lot of very useful plugins and ideas"
173
  msgstr ""
174
 
175
- #: ../admin/about.php:21
176
  msgid "for RS-Discuss, it saved me a lot of time"
177
  msgstr ""
178
 
179
- #: ../admin/about.php:22
180
  msgid "for the best Media Flash Scripts on earth"
181
  msgstr ""
182
 
183
- #: ../admin/about.php:23
184
  msgid "for the Watermark plugin"
185
  msgstr ""
186
 
187
- #: ../admin/about.php:24
188
  msgid "for MyGallery, the best gallery plugin concept"
189
  msgstr ""
190
 
191
- #: ../admin/about.php:26
192
  msgid "If you didn't find your name on this list and there is some code which I integrate in my plugin, don't hesitate to send me a mail."
193
  msgstr ""
194
 
195
- #: ../admin/about.php:27
196
  msgid "How to support ?"
197
  msgstr ""
198
 
199
- #: ../admin/about.php:28
200
- msgid "There exist several ways to contribute, help or support me in this work. Non of them are mandatory."
201
  msgstr ""
202
 
203
- #: ../admin/about.php:30
204
- msgid "Send me bugfixes / code changes"
205
  msgstr ""
206
 
207
- #: ../admin/about.php:30
208
  msgid "The most motivated support for this plugin are your ideas and brain work"
209
  msgstr ""
210
 
211
- #: ../admin/about.php:31
212
- msgid "Translate my plugin"
213
  msgstr ""
214
 
215
- #: ../admin/about.php:31
216
  msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
217
  msgstr ""
218
 
219
- #: ../admin/about.php:32
220
- msgid "Donate my work via paypal"
221
  msgstr ""
222
 
223
- #: ../admin/about.php:42
224
- msgid "No doubt a very usefull and easy motivation :-) I send you an email , when I can buy my first Audi S3 with this money..."
225
  msgstr ""
226
 
227
- #: ../admin/about.php:44
228
- msgid "Place a link to my plugin in your blog/webpage"
229
  msgstr ""
230
 
231
- #: ../admin/about.php:44
232
  msgid "Yes, share and trackback is also a good support for this work "
233
  msgstr ""
234
 
235
- #: ../admin/about.php:46
236
  msgid "Thanks!"
237
  msgstr ""
238
 
239
- #: ../admin/about.php:47
240
- msgid "I would like to thank this people which support me in my work :"
241
  msgstr ""
242
 
243
  #: ../admin/addgallery.php:23
@@ -351,14 +455,14 @@ msgstr ""
351
  #: ../admin/addgallery.php:220
352
  #: ../admin/addgallery.php:222
353
  #: ../admin/addgallery.php:261
354
- #: ../admin/addgallery.php:418
355
- #: ../admin/addgallery.php:420
356
  msgid "Unable to create directory "
357
  msgstr ""
358
 
359
  #: ../admin/addgallery.php:221
360
- #: ../admin/addgallery.php:419
361
- #: ../admin/addgallery.php:421
362
  msgid "Unable to set directory permissions "
363
  msgstr ""
364
 
@@ -419,44 +523,44 @@ msgstr ""
419
  msgid " pictures added."
420
  msgstr ""
421
 
422
- #: ../admin/addgallery.php:409
423
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
424
  msgstr ""
425
 
426
- #: ../admin/addgallery.php:424
427
  msgid "Directory already exists, please rename zip file"
428
  msgstr ""
429
 
430
- #: ../admin/addgallery.php:429
431
  msgid "Unable to unlink zip file "
432
  msgstr ""
433
 
434
- #: ../admin/addgallery.php:431
435
  msgid "Zip-File successfully unpacked"
436
  msgstr ""
437
 
438
- #: ../admin/addgallery.php:451
439
- #: ../admin/addgallery.php:458
440
  msgid "Unable to unlink file "
441
  msgstr ""
442
 
443
- #: ../admin/addgallery.php:452
444
  msgid "No gallery selected !"
445
  msgstr ""
446
 
447
- #: ../admin/addgallery.php:459
448
  msgid "Failure in database, no gallery path set !"
449
  msgstr ""
450
 
451
- #: ../admin/addgallery.php:465
452
  msgid "Error, the file could not moved to : "
453
  msgstr ""
454
 
455
- #: ../admin/addgallery.php:466
456
  msgid "Error, the file permissions could not set"
457
  msgstr ""
458
 
459
- #: ../admin/addgallery.php:483
460
  msgid "Images successfully added"
461
  msgstr ""
462
 
@@ -501,64 +605,66 @@ msgstr ""
501
  msgid "Album deleted"
502
  msgstr ""
503
 
504
- #: ../admin/album.php:76
505
  msgid "Manage Albums"
506
  msgstr ""
507
 
508
- #: ../admin/album.php:84
509
  msgid "No album selected"
510
  msgstr ""
511
 
512
- #: ../admin/album.php:103
513
- #: ../admin/manage.php:205
514
- #: ../admin/manage.php:411
 
 
 
 
515
  msgid "Delete"
516
  msgstr ""
517
 
518
- #: ../admin/album.php:103
519
  msgid "Delete album ?"
520
  msgstr ""
521
 
522
- #: ../admin/album.php:105
523
  #: ../admin/settings.php:153
524
- #: ../admin/settings.php:191
525
- #: ../admin/settings.php:228
526
- #: ../admin/settings.php:265
527
- #: ../admin/settings.php:296
528
- #: ../admin/settings.php:402
529
- #: ../admin/settings.php:484
530
  msgid "Update"
531
  msgstr ""
532
 
533
- #: ../admin/album.php:110
 
 
 
 
534
  msgid "Select Gallery"
535
  msgstr ""
536
 
537
- #: ../admin/album.php:143
538
  msgid "Album Page ID"
539
  msgstr ""
540
 
541
- #: ../admin/album.php:152
542
- msgid "No Album selected"
543
  msgstr ""
544
 
545
- #: ../admin/album.php:183
546
- #: ../admin/manage.php:179
547
- #: ../admin/manage.php:376
548
  msgid "ID"
549
  msgstr ""
550
 
551
- #: ../admin/album.php:184
552
  msgid "Name"
553
  msgstr ""
554
 
555
- #: ../admin/album.php:185
556
- #: ../admin/manage.php:181
557
- #: ../admin/manage.php:311
558
- msgid "Title"
559
- msgstr ""
560
-
561
- #: ../admin/album.php:186
562
  msgid "Page"
563
  msgstr ""
564
 
@@ -589,110 +695,110 @@ msgstr ""
589
  msgid "Update successfully"
590
  msgstr ""
591
 
592
- #: ../admin/manage.php:153
593
  msgid " picture(s) successfully added"
594
  msgstr ""
595
 
596
- #: ../admin/manage.php:175
597
  msgid "Gallery Overview"
598
  msgstr ""
599
 
600
- #: ../admin/manage.php:180
601
  msgid "Gallery name"
602
  msgstr ""
603
 
604
- #: ../admin/manage.php:182
605
- #: ../admin/manage.php:330
606
- #: ../admin/manage.php:379
607
- #: ../admin/style.php:92
608
  msgid "Description"
609
  msgstr ""
610
 
611
- #: ../admin/manage.php:183
612
  msgid "Page ID"
613
  msgstr ""
614
 
615
- #: ../admin/manage.php:184
616
  msgid "Quantity"
617
  msgstr ""
618
 
619
- #: ../admin/manage.php:185
620
- #: ../admin/manage.php:382
621
  msgid "Action"
622
  msgstr ""
623
 
624
- #: ../admin/manage.php:204
625
  msgid "Edit"
626
  msgstr ""
627
 
628
- #: ../admin/manage.php:205
629
- #: ../admin/manage.php:411
630
  msgid "Delete this file ?"
631
  msgstr ""
632
 
633
- #: ../admin/manage.php:210
634
- #: ../admin/manage.php:416
635
  msgid "No entries found"
636
  msgstr ""
637
 
638
- #: ../admin/manage.php:313
639
  msgid "Page Link to"
640
  msgstr ""
641
 
642
- #: ../admin/manage.php:316
643
  msgid "Not linked"
644
  msgstr ""
645
 
646
- #: ../admin/manage.php:332
647
  msgid "Preview image"
648
  msgstr ""
649
 
650
- #: ../admin/manage.php:335
651
  msgid "No Picture"
652
  msgstr ""
653
 
654
- #: ../admin/manage.php:350
655
  msgid "Path"
656
  msgstr ""
657
 
658
- #: ../admin/manage.php:358
659
  msgid "Scan Folder for new images"
660
  msgstr ""
661
 
662
- #: ../admin/manage.php:359
663
- #: ../admin/manage.php:423
664
  msgid "Save Changes"
665
  msgstr ""
666
 
667
- #: ../admin/manage.php:364
668
  msgid "No action"
669
  msgstr ""
670
 
671
- #: ../admin/manage.php:365
672
  msgid "Set watermark"
673
  msgstr ""
674
 
675
- #: ../admin/manage.php:366
676
  msgid "Create new thumbnails"
677
  msgstr ""
678
 
679
- #: ../admin/manage.php:367
680
  msgid "Resize images"
681
  msgstr ""
682
 
683
- #: ../admin/manage.php:368
684
  msgid "Delete images"
685
  msgstr ""
686
 
687
- #: ../admin/manage.php:370
688
  msgid "OK"
689
  msgstr ""
690
 
691
- #: ../admin/manage.php:370
692
  msgid "No images selected"
693
  msgstr ""
694
 
695
- #: ../admin/manage.php:370
696
  #, php-format
697
  msgid ""
698
  "You are about to start the bulk edit for %s images \n"
@@ -700,24 +806,24 @@ msgid ""
700
  " 'Cancel' to stop, 'OK' to proceed."
701
  msgstr ""
702
 
703
- #: ../admin/manage.php:377
704
- #: ../admin/settings.php:261
705
  msgid "File name"
706
  msgstr ""
707
 
708
- #: ../admin/manage.php:378
709
  msgid "Thumbnail"
710
  msgstr ""
711
 
712
- #: ../admin/manage.php:380
713
  msgid "Alt &amp; Title Text"
714
  msgstr ""
715
 
716
- #: ../admin/manage.php:381
717
  msgid "exclude"
718
  msgstr ""
719
 
720
- #: ../admin/manage.php:410
721
  msgid "View"
722
  msgstr ""
723
 
@@ -869,7 +975,7 @@ msgid "General Options"
869
  msgstr ""
870
 
871
  #: ../admin/settings.php:117
872
- #: ../admin/settings.php:255
873
  msgid "Thumbnails"
874
  msgstr ""
875
 
@@ -878,7 +984,7 @@ msgid "Images"
878
  msgstr ""
879
 
880
  #: ../admin/settings.php:120
881
- #: ../admin/settings.php:273
882
  msgid "Effects"
883
  msgstr ""
884
 
@@ -935,269 +1041,273 @@ msgid "Create square thumbnails from the center"
935
  msgstr ""
936
 
937
  #: ../admin/settings.php:182
 
 
 
 
 
 
 
 
938
  msgid "Thumbnail quality"
939
  msgstr ""
940
 
941
- #: ../admin/settings.php:186
942
- #: ../admin/settings.php:216
943
  msgid "Resample Mode"
944
  msgstr ""
945
 
946
- #: ../admin/settings.php:188
947
- #: ../admin/settings.php:219
948
  msgid "Value between 1-5 (higher value, more CPU load)"
949
  msgstr ""
950
 
951
- #: ../admin/settings.php:199
952
  msgid "Image settings"
953
  msgstr ""
954
 
955
- #: ../admin/settings.php:205
956
  msgid "Resize Images"
957
  msgstr ""
958
 
959
- #: ../admin/settings.php:208
960
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
961
  msgstr ""
962
 
963
- #: ../admin/settings.php:211
964
  msgid "Image quality"
965
  msgstr ""
966
 
967
- #: ../admin/settings.php:222
968
  msgid "Add link in [singlepic] tag "
969
  msgstr ""
970
 
971
- #: ../admin/settings.php:225
972
  msgid "Add the fullsize picture as link. Didn't support watermark mode on the fly."
973
  msgstr ""
974
 
975
- #: ../admin/settings.php:236
976
  msgid "Gallery settings"
977
  msgstr ""
978
 
979
- #: ../admin/settings.php:242
980
  msgid "Number of images per page"
981
  msgstr ""
982
 
983
- #: ../admin/settings.php:244
984
  msgid "0 will disable pagination, all images on one page"
985
  msgstr ""
986
 
987
- #: ../admin/settings.php:247
988
  msgid "Integrate slideshow"
989
  msgstr ""
990
 
991
- #: ../admin/settings.php:254
992
  msgid "Show first"
993
  msgstr ""
994
 
995
- #: ../admin/settings.php:259
996
  msgid "Sort thumbnails"
997
  msgstr ""
998
 
999
- #: ../admin/settings.php:260
1000
  msgid "Image ID"
1001
  msgstr ""
1002
 
1003
- #: ../admin/settings.php:262
1004
  msgid "Alt / Title text"
1005
  msgstr ""
1006
 
1007
- #: ../admin/settings.php:276
1008
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme."
1009
  msgstr ""
1010
 
1011
- #: ../admin/settings.php:277
1012
  msgid "With the placeholder"
1013
  msgstr ""
1014
 
1015
- #: ../admin/settings.php:277
1016
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1017
  msgstr ""
1018
 
1019
- #: ../admin/settings.php:281
1020
  msgid "JavaScript Thumbnail effect"
1021
  msgstr ""
1022
 
1023
- #: ../admin/settings.php:284
1024
  msgid "None"
1025
  msgstr ""
1026
 
1027
- #: ../admin/settings.php:285
1028
  msgid "Thickbox"
1029
  msgstr ""
1030
 
1031
- #: ../admin/settings.php:286
1032
  msgid "Lightbox"
1033
  msgstr ""
1034
 
1035
- #: ../admin/settings.php:287
1036
  msgid "Highslide"
1037
  msgstr ""
1038
 
1039
- #: ../admin/settings.php:288
1040
  msgid "Custom"
1041
  msgstr ""
1042
 
1043
- #: ../admin/settings.php:292
1044
  msgid "Link Code line"
1045
  msgstr ""
1046
 
1047
- #: ../admin/settings.php:314
1048
  msgid "Preview"
1049
  msgstr ""
1050
 
1051
- #: ../admin/settings.php:316
1052
- #: ../admin/settings.php:320
1053
  msgid "Position"
1054
  msgstr ""
1055
 
1056
- #: ../admin/settings.php:340
1057
  msgid "Offset"
1058
  msgstr ""
1059
 
1060
- #: ../admin/settings.php:358
1061
  msgid "Use image as watermark"
1062
  msgstr ""
1063
 
1064
- #: ../admin/settings.php:361
1065
  msgid "URL to file"
1066
  msgstr ""
1067
 
1068
- #: ../admin/settings.php:368
1069
  msgid "Use text as watermark"
1070
  msgstr ""
1071
 
1072
- #: ../admin/settings.php:371
1073
  msgid "Font"
1074
  msgstr ""
1075
 
1076
- #: ../admin/settings.php:379
1077
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1078
  msgstr ""
1079
 
1080
- #: ../admin/settings.php:383
1081
  msgid "Size"
1082
  msgstr ""
1083
 
1084
- #: ../admin/settings.php:387
1085
  msgid "Color"
1086
  msgstr ""
1087
 
1088
- #: ../admin/settings.php:389
1089
  msgid "(hex w/o #)"
1090
  msgstr ""
1091
 
1092
- #: ../admin/settings.php:392
1093
  msgid "Text"
1094
  msgstr ""
1095
 
1096
- #: ../admin/settings.php:396
1097
  msgid "Opaque"
1098
  msgstr ""
1099
 
1100
- #: ../admin/settings.php:414
1101
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1102
  msgstr ""
1103
 
1104
- #: ../admin/settings.php:415
1105
  msgid "The settings are used in the Flash Image Rotator Version 3.2 ."
1106
  msgstr ""
1107
 
1108
- #: ../admin/settings.php:416
1109
  msgid "See more information for the Flash Player on the web page"
1110
  msgstr ""
1111
 
1112
- #: ../admin/settings.php:419
1113
  msgid "Default size (W x H)"
1114
  msgstr ""
1115
 
1116
- #: ../admin/settings.php:424
1117
  msgid "Shuffle mode"
1118
  msgstr ""
1119
 
1120
- #: ../admin/settings.php:428
1121
  msgid "Show next image on click"
1122
  msgstr ""
1123
 
1124
- #: ../admin/settings.php:432
1125
  msgid "Show navigation bar"
1126
  msgstr ""
1127
 
1128
- #: ../admin/settings.php:436
1129
  msgid "Show loading icon"
1130
  msgstr ""
1131
 
1132
- #: ../admin/settings.php:440
1133
  msgid "Stretch image"
1134
  msgstr ""
1135
 
1136
- #: ../admin/settings.php:443
1137
  msgid "true"
1138
  msgstr ""
1139
 
1140
- #: ../admin/settings.php:444
1141
  msgid "false"
1142
  msgstr ""
1143
 
1144
- #: ../admin/settings.php:445
1145
  msgid "fit"
1146
  msgstr ""
1147
 
1148
- #: ../admin/settings.php:446
1149
- msgid "none"
1150
- msgstr ""
1151
-
1152
- #: ../admin/settings.php:451
1153
  msgid "Duration time"
1154
  msgstr ""
1155
 
1156
- #: ../admin/settings.php:452
1157
  msgid "sec."
1158
  msgstr ""
1159
 
1160
- #: ../admin/settings.php:455
1161
  msgid "Transition / Fade effect"
1162
  msgstr ""
1163
 
1164
- #: ../admin/settings.php:458
1165
  msgid "fade"
1166
  msgstr ""
1167
 
1168
- #: ../admin/settings.php:459
1169
  msgid "bgfade"
1170
  msgstr ""
1171
 
1172
- #: ../admin/settings.php:460
1173
  msgid "circles"
1174
  msgstr ""
1175
 
1176
- #: ../admin/settings.php:461
1177
  msgid "blocks"
1178
  msgstr ""
1179
 
1180
- #: ../admin/settings.php:462
1181
  msgid "fluids"
1182
  msgstr ""
1183
 
1184
- #: ../admin/settings.php:463
1185
  msgid "lines"
1186
  msgstr ""
1187
 
1188
- #: ../admin/settings.php:464
1189
  msgid "random"
1190
  msgstr ""
1191
 
1192
- #: ../admin/settings.php:468
1193
  msgid "Background Color"
1194
  msgstr ""
1195
 
1196
- #: ../admin/settings.php:473
1197
  msgid "Texts / Buttons Color"
1198
  msgstr ""
1199
 
1200
- #: ../admin/settings.php:478
1201
  msgid "Rollover / Active Color"
1202
  msgstr ""
1203
 
@@ -1264,49 +1374,49 @@ msgid ""
1264
  "Choose [Cancel] to Stop, [OK] to Uninstall.\\n"
1265
  msgstr ""
1266
 
1267
- #: ../admin/style.php:28
1268
  msgid "You do not have sufficient permissions to edit templates for this blog."
1269
  msgstr ""
1270
 
1271
- #: ../admin/style.php:36
1272
  msgid "CSS file successfully updated"
1273
  msgstr ""
1274
 
1275
- #: ../admin/style.php:57
1276
  msgid "Activate and use style sheet:"
1277
  msgstr ""
1278
 
1279
- #: ../admin/style.php:76
1280
  msgid "Activate"
1281
  msgstr ""
1282
 
1283
- #: ../admin/style.php:83
1284
  #, php-format
1285
  msgid "Editing <strong>%s</strong>"
1286
  msgstr ""
1287
 
1288
- #: ../admin/style.php:85
1289
  #, php-format
1290
  msgid "Browsing <strong>%s</strong>"
1291
  msgstr ""
1292
 
1293
- #: ../admin/style.php:90
1294
  msgid "Author"
1295
  msgstr ""
1296
 
1297
- #: ../admin/style.php:91
1298
  msgid "Version"
1299
  msgstr ""
1300
 
1301
- #: ../admin/style.php:107
1302
  msgid "Update File &raquo;"
1303
  msgstr ""
1304
 
1305
- #: ../admin/style.php:111
1306
  msgid "If this file were writable you could edit it."
1307
  msgstr ""
1308
 
1309
- #: ../admin/style.php:116
1310
  msgid "Oops, no such file exists! Double check the name and try again, merci."
1311
  msgstr ""
1312
 
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-05-17 17:34+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
+ #: ../nggallery.php:247
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
22
+ #: ../nggbutton.php:36
23
  #: ../admin/addgallery.php:231
24
  #: ../admin/addgallery.php:282
25
  #: ../admin/admin.php:13
26
  #: ../admin/manage.php:44
27
+ #: ../admin/manage.php:306
28
  #: ../admin/settings.php:119
29
  msgid "Gallery"
30
  msgstr ""
31
 
32
+ #: ../nggbutton.php:37
33
  #: ../admin/admin.php:16
34
  msgid "Album"
35
  msgstr ""
36
 
37
+ #: ../nggbutton.php:38
38
  #: ../admin/manage.php:63
39
  msgid "Picture"
40
  msgstr ""
41
 
42
+ #: ../nggbutton.php:48
43
  msgid "Select gallery"
44
  msgstr ""
45
 
46
+ #: ../nggbutton.php:50
47
  msgid "No gallery"
48
  msgstr ""
49
 
50
+ #: ../nggbutton.php:62
51
+ #: ../nggbutton.php:89
52
  msgid "Show as"
53
  msgstr ""
54
 
55
+ #: ../nggbutton.php:63
56
  msgid "Image list"
57
  msgstr ""
58
 
59
+ #: ../nggbutton.php:64
60
  #: ../admin/settings.php:122
61
+ #: ../admin/settings.php:261
62
+ #: ../admin/settings.php:417
63
  msgid "Slideshow"
64
  msgstr ""
65
 
66
+ #: ../nggbutton.php:75
67
+ #: ../admin/album.php:100
68
  msgid "Select album"
69
  msgstr ""
70
 
71
+ #: ../nggbutton.php:77
72
  msgid "No album"
73
  msgstr ""
74
 
75
+ #: ../nggbutton.php:90
76
  msgid "Extended version"
77
  msgstr ""
78
 
79
+ #: ../nggbutton.php:91
80
  msgid "Compact version"
81
  msgstr ""
82
 
83
+ #: ../nggbutton.php:102
84
  msgid "Select picture"
85
  msgstr ""
86
 
87
+ #: ../nggbutton.php:104
88
  msgid "No picture"
89
  msgstr ""
90
 
91
+ #: ../nggbutton.php:116
92
  msgid "Width x Height"
93
  msgstr ""
94
 
95
+ #: ../nggbutton.php:120
96
  msgid "Effect"
97
  msgstr ""
98
 
99
+ #: ../nggbutton.php:123
100
  msgid "No effect"
101
  msgstr ""
102
 
103
+ #: ../nggbutton.php:124
104
  #: ../admin/settings.php:121
105
+ #: ../admin/settings.php:315
106
  msgid "Watermark"
107
  msgstr ""
108
 
109
+ #: ../nggbutton.php:125
110
  msgid "Web 2.0"
111
  msgstr ""
112
 
113
  #: ../nggbutton.php:130
114
+ msgid "Float"
115
+ msgstr ""
116
+
117
+ #: ../nggbutton.php:133
118
+ msgid "No float"
119
  msgstr ""
120
 
121
  #: ../nggbutton.php:134
122
+ msgid "Left"
123
+ msgstr ""
124
+
125
+ #: ../nggbutton.php:135
126
+ msgid "Right"
127
+ msgstr ""
128
+
129
+ #: ../nggbutton.php:147
130
+ msgid "Cancel"
131
+ msgstr ""
132
+
133
+ #: ../nggbutton.php:151
134
  msgid "Insert"
135
  msgstr ""
136
 
137
+ #: ../nggfunctions.php:271
138
+ #: ../nggfunctions.php:287
139
  msgid "Watch gallery"
140
  msgstr ""
141
 
142
+ #: ../nggfunctions.php:281
143
  msgid "Photos"
144
  msgstr ""
145
 
146
+ #: ../ngginstall.php:98
147
  msgid "[Show as slideshow]"
148
  msgstr ""
149
 
150
+ #: ../ngginstall.php:99
151
  msgid "[Show picture list]"
152
  msgstr ""
153
 
154
+ #: ../nggwidget.php:183
155
+ msgid "NextGEN Random Image"
156
+ msgstr ""
157
+
158
+ #: ../nggwidget.php:220
159
+ #: ../admin/album.php:215
160
+ #: ../admin/manage.php:183
161
+ #: ../admin/manage.php:313
162
+ msgid "Title"
163
+ msgstr ""
164
+
165
+ #: ../nggwidget.php:222
166
+ msgid "Number of pics"
167
+ msgstr ""
168
+
169
+ #: ../nggwidget.php:233
170
+ msgid "Width"
171
+ msgstr ""
172
+
173
+ #: ../nggwidget.php:234
174
+ msgid "Height"
175
+ msgstr ""
176
+
177
+ #: ../nggwidget.php:236
178
+ msgid "Mode"
179
+ msgstr ""
180
+
181
+ #: ../nggwidget.php:238
182
+ #: ../admin/settings.php:451
183
+ msgid "none"
184
+ msgstr ""
185
+
186
+ #: ../nggwidget.php:239
187
+ msgid "web2.0"
188
+ msgstr ""
189
+
190
+ #: ../nggwidget.php:248
191
+ msgid "Show in the main page"
192
+ msgstr ""
193
+
194
+ #: ../nggwidget.php:250
195
+ msgid "yes"
196
+ msgstr ""
197
+
198
+ #: ../nggwidget.php:251
199
+ msgid "no"
200
+ msgstr ""
201
+
202
+ #: ../nggwidget.php:254
203
+ msgid "Show in"
204
+ msgstr ""
205
+
206
+ #: ../nggwidget.php:256
207
+ msgid "All categories"
208
+ msgstr ""
209
+
210
+ #: ../nggwidget.php:257
211
+ msgid "Only which are not listed"
212
+ msgstr ""
213
+
214
+ #: ../nggwidget.php:258
215
+ msgid "Only which are listed"
216
+ msgstr ""
217
+
218
+ #: ../nggwidget.php:261
219
+ msgid "Categories (id (use , to seperate))"
220
+ msgstr ""
221
+
222
  #: ../admin/about.php:9
223
  msgid "Copyright notes / Credits"
224
  msgstr ""
225
 
226
  #: ../admin/about.php:11
227
+ msgid "NextGEN DEV Team"
228
  msgstr ""
229
 
230
  #: ../admin/about.php:12
231
+ msgid "This plugin is a team work of a virtual developer team around the world. Follow persons take part at the development till now :"
 
 
232
  msgstr ""
233
 
234
  #: ../admin/about.php:14
235
+ msgid "(Lead developer)"
236
  msgstr ""
237
 
238
+ #: ../admin/about.php:15
239
  #: ../admin/about.php:16
240
+ msgid "(Core developer)"
241
  msgstr ""
242
 
243
  #: ../admin/about.php:17
244
+ msgid "(Sidebar Widget developer)"
245
+ msgstr ""
246
+
247
+ #: ../admin/about.php:19
248
+ msgid "Contributors / Tribute to"
249
+ msgstr ""
250
+
251
+ #: ../admin/about.php:20
252
+ msgid "If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together."
253
+ msgstr ""
254
+
255
+ #: ../admin/about.php:21
256
+ msgid "So, we would like to thank the following people for their pioneer work (without this work it's impossible to create such a plugin so fast)"
257
+ msgstr ""
258
+
259
+ #: ../admin/about.php:23
260
+ msgid "for their great documented code"
261
+ msgstr ""
262
+
263
+ #: ../admin/about.php:24
264
  msgid "for jQuery, which is the best Web2.0 framework"
265
  msgstr ""
266
 
267
+ #: ../admin/about.php:25
268
  msgid "for the fantastic PHP Thumbnail Class"
269
  msgstr ""
270
 
271
+ #: ../admin/about.php:26
272
  msgid "for PclZip , a PHP library that manage ZIP archives"
273
  msgstr ""
274
 
275
+ #: ../admin/about.php:27
276
  msgid "for a lot of very useful plugins and ideas"
277
  msgstr ""
278
 
279
+ #: ../admin/about.php:28
280
  msgid "for RS-Discuss, it saved me a lot of time"
281
  msgstr ""
282
 
283
+ #: ../admin/about.php:29
284
  msgid "for the best Media Flash Scripts on earth"
285
  msgstr ""
286
 
287
+ #: ../admin/about.php:30
288
  msgid "for the Watermark plugin"
289
  msgstr ""
290
 
291
+ #: ../admin/about.php:31
292
  msgid "for MyGallery, the best gallery plugin concept"
293
  msgstr ""
294
 
295
+ #: ../admin/about.php:33
296
  msgid "If you didn't find your name on this list and there is some code which I integrate in my plugin, don't hesitate to send me a mail."
297
  msgstr ""
298
 
299
+ #: ../admin/about.php:34
300
  msgid "How to support ?"
301
  msgstr ""
302
 
303
+ #: ../admin/about.php:35
304
+ msgid "There exist several ways to contribute, help or support us in this work. Non of them are mandatory."
305
  msgstr ""
306
 
307
+ #: ../admin/about.php:37
308
+ msgid "Send us bugfixes / code changes"
309
  msgstr ""
310
 
311
+ #: ../admin/about.php:37
312
  msgid "The most motivated support for this plugin are your ideas and brain work"
313
  msgstr ""
314
 
315
+ #: ../admin/about.php:38
316
+ msgid "Translate the plugin"
317
  msgstr ""
318
 
319
+ #: ../admin/about.php:38
320
  msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
321
  msgstr ""
322
 
323
+ #: ../admin/about.php:39
324
+ msgid "Donate the work via paypal"
325
  msgstr ""
326
 
327
+ #: ../admin/about.php:49
328
+ msgid "No doubt a very usefull and easy motivation :-)"
329
  msgstr ""
330
 
331
+ #: ../admin/about.php:51
332
+ msgid "Place a link to the plugin in your blog/webpage"
333
  msgstr ""
334
 
335
+ #: ../admin/about.php:51
336
  msgid "Yes, share and trackback is also a good support for this work "
337
  msgstr ""
338
 
339
+ #: ../admin/about.php:53
340
  msgid "Thanks!"
341
  msgstr ""
342
 
343
+ #: ../admin/about.php:54
344
+ msgid "We would like to thank this people which support us in the work :"
345
  msgstr ""
346
 
347
  #: ../admin/addgallery.php:23
455
  #: ../admin/addgallery.php:220
456
  #: ../admin/addgallery.php:222
457
  #: ../admin/addgallery.php:261
458
+ #: ../admin/addgallery.php:423
459
+ #: ../admin/addgallery.php:425
460
  msgid "Unable to create directory "
461
  msgstr ""
462
 
463
  #: ../admin/addgallery.php:221
464
+ #: ../admin/addgallery.php:424
465
+ #: ../admin/addgallery.php:426
466
  msgid "Unable to set directory permissions "
467
  msgstr ""
468
 
523
  msgid " pictures added."
524
  msgstr ""
525
 
526
+ #: ../admin/addgallery.php:414
527
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
528
  msgstr ""
529
 
530
+ #: ../admin/addgallery.php:429
531
  msgid "Directory already exists, please rename zip file"
532
  msgstr ""
533
 
534
+ #: ../admin/addgallery.php:434
535
  msgid "Unable to unlink zip file "
536
  msgstr ""
537
 
538
+ #: ../admin/addgallery.php:436
539
  msgid "Zip-File successfully unpacked"
540
  msgstr ""
541
 
542
+ #: ../admin/addgallery.php:456
543
+ #: ../admin/addgallery.php:463
544
  msgid "Unable to unlink file "
545
  msgstr ""
546
 
547
+ #: ../admin/addgallery.php:457
548
  msgid "No gallery selected !"
549
  msgstr ""
550
 
551
+ #: ../admin/addgallery.php:464
552
  msgid "Failure in database, no gallery path set !"
553
  msgstr ""
554
 
555
+ #: ../admin/addgallery.php:470
556
  msgid "Error, the file could not moved to : "
557
  msgstr ""
558
 
559
+ #: ../admin/addgallery.php:471
560
  msgid "Error, the file permissions could not set"
561
  msgstr ""
562
 
563
+ #: ../admin/addgallery.php:488
564
  msgid "Images successfully added"
565
  msgstr ""
566
 
605
  msgid "Album deleted"
606
  msgstr ""
607
 
608
+ #: ../admin/album.php:95
609
  msgid "Manage Albums"
610
  msgstr ""
611
 
612
+ #: ../admin/album.php:103
613
  msgid "No album selected"
614
  msgstr ""
615
 
616
+ #: ../admin/album.php:116
617
+ msgid "Add new album"
618
+ msgstr ""
619
+
620
+ #: ../admin/album.php:120
621
+ #: ../admin/manage.php:207
622
+ #: ../admin/manage.php:413
623
  msgid "Delete"
624
  msgstr ""
625
 
626
+ #: ../admin/album.php:120
627
  msgid "Delete album ?"
628
  msgstr ""
629
 
630
+ #: ../admin/album.php:122
631
  #: ../admin/settings.php:153
632
+ #: ../admin/settings.php:196
633
+ #: ../admin/settings.php:233
634
+ #: ../admin/settings.php:270
635
+ #: ../admin/settings.php:301
636
+ #: ../admin/settings.php:407
637
+ #: ../admin/settings.php:489
638
  msgid "Update"
639
  msgstr ""
640
 
641
+ #: ../admin/album.php:128
642
+ msgid "After you create and select a album, you can drag and drop a gallery into your album below"
643
+ msgstr ""
644
+
645
+ #: ../admin/album.php:133
646
  msgid "Select Gallery"
647
  msgstr ""
648
 
649
+ #: ../admin/album.php:166
650
  msgid "Album Page ID"
651
  msgstr ""
652
 
653
+ #: ../admin/album.php:178
654
+ msgid "No album selected!"
655
  msgstr ""
656
 
657
+ #: ../admin/album.php:213
658
+ #: ../admin/manage.php:181
659
+ #: ../admin/manage.php:378
660
  msgid "ID"
661
  msgstr ""
662
 
663
+ #: ../admin/album.php:214
664
  msgid "Name"
665
  msgstr ""
666
 
667
+ #: ../admin/album.php:216
 
 
 
 
 
 
668
  msgid "Page"
669
  msgstr ""
670
 
695
  msgid "Update successfully"
696
  msgstr ""
697
 
698
+ #: ../admin/manage.php:155
699
  msgid " picture(s) successfully added"
700
  msgstr ""
701
 
702
+ #: ../admin/manage.php:177
703
  msgid "Gallery Overview"
704
  msgstr ""
705
 
706
+ #: ../admin/manage.php:182
707
  msgid "Gallery name"
708
  msgstr ""
709
 
710
+ #: ../admin/manage.php:184
711
+ #: ../admin/manage.php:332
712
+ #: ../admin/manage.php:381
713
+ #: ../admin/style.php:97
714
  msgid "Description"
715
  msgstr ""
716
 
717
+ #: ../admin/manage.php:185
718
  msgid "Page ID"
719
  msgstr ""
720
 
721
+ #: ../admin/manage.php:186
722
  msgid "Quantity"
723
  msgstr ""
724
 
725
+ #: ../admin/manage.php:187
726
+ #: ../admin/manage.php:384
727
  msgid "Action"
728
  msgstr ""
729
 
730
+ #: ../admin/manage.php:206
731
  msgid "Edit"
732
  msgstr ""
733
 
734
+ #: ../admin/manage.php:207
735
+ #: ../admin/manage.php:413
736
  msgid "Delete this file ?"
737
  msgstr ""
738
 
739
+ #: ../admin/manage.php:212
740
+ #: ../admin/manage.php:418
741
  msgid "No entries found"
742
  msgstr ""
743
 
744
+ #: ../admin/manage.php:315
745
  msgid "Page Link to"
746
  msgstr ""
747
 
748
+ #: ../admin/manage.php:318
749
  msgid "Not linked"
750
  msgstr ""
751
 
752
+ #: ../admin/manage.php:334
753
  msgid "Preview image"
754
  msgstr ""
755
 
756
+ #: ../admin/manage.php:337
757
  msgid "No Picture"
758
  msgstr ""
759
 
760
+ #: ../admin/manage.php:352
761
  msgid "Path"
762
  msgstr ""
763
 
764
+ #: ../admin/manage.php:360
765
  msgid "Scan Folder for new images"
766
  msgstr ""
767
 
768
+ #: ../admin/manage.php:361
769
+ #: ../admin/manage.php:425
770
  msgid "Save Changes"
771
  msgstr ""
772
 
773
+ #: ../admin/manage.php:366
774
  msgid "No action"
775
  msgstr ""
776
 
777
+ #: ../admin/manage.php:367
778
  msgid "Set watermark"
779
  msgstr ""
780
 
781
+ #: ../admin/manage.php:368
782
  msgid "Create new thumbnails"
783
  msgstr ""
784
 
785
+ #: ../admin/manage.php:369
786
  msgid "Resize images"
787
  msgstr ""
788
 
789
+ #: ../admin/manage.php:370
790
  msgid "Delete images"
791
  msgstr ""
792
 
793
+ #: ../admin/manage.php:372
794
  msgid "OK"
795
  msgstr ""
796
 
797
+ #: ../admin/manage.php:372
798
  msgid "No images selected"
799
  msgstr ""
800
 
801
+ #: ../admin/manage.php:372
802
  #, php-format
803
  msgid ""
804
  "You are about to start the bulk edit for %s images \n"
806
  " 'Cancel' to stop, 'OK' to proceed."
807
  msgstr ""
808
 
809
+ #: ../admin/manage.php:379
810
+ #: ../admin/settings.php:266
811
  msgid "File name"
812
  msgstr ""
813
 
814
+ #: ../admin/manage.php:380
815
  msgid "Thumbnail"
816
  msgstr ""
817
 
818
+ #: ../admin/manage.php:382
819
  msgid "Alt &amp; Title Text"
820
  msgstr ""
821
 
822
+ #: ../admin/manage.php:383
823
  msgid "exclude"
824
  msgstr ""
825
 
826
+ #: ../admin/manage.php:412
827
  msgid "View"
828
  msgstr ""
829
 
975
  msgstr ""
976
 
977
  #: ../admin/settings.php:117
978
+ #: ../admin/settings.php:260
979
  msgid "Thumbnails"
980
  msgstr ""
981
 
984
  msgstr ""
985
 
986
  #: ../admin/settings.php:120
987
+ #: ../admin/settings.php:278
988
  msgid "Effects"
989
  msgstr ""
990
 
1041
  msgstr ""
1042
 
1043
  #: ../admin/settings.php:182
1044
+ msgid "Do resize before cropping"
1045
+ msgstr ""
1046
+
1047
+ #: ../admin/settings.php:184
1048
+ msgid "Generates square thumbnails without cropping to much"
1049
+ msgstr ""
1050
+
1051
+ #: ../admin/settings.php:187
1052
  msgid "Thumbnail quality"
1053
  msgstr ""
1054
 
1055
+ #: ../admin/settings.php:191
1056
+ #: ../admin/settings.php:221
1057
  msgid "Resample Mode"
1058
  msgstr ""
1059
 
1060
+ #: ../admin/settings.php:193
1061
+ #: ../admin/settings.php:224
1062
  msgid "Value between 1-5 (higher value, more CPU load)"
1063
  msgstr ""
1064
 
1065
+ #: ../admin/settings.php:204
1066
  msgid "Image settings"
1067
  msgstr ""
1068
 
1069
+ #: ../admin/settings.php:210
1070
  msgid "Resize Images"
1071
  msgstr ""
1072
 
1073
+ #: ../admin/settings.php:213
1074
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1075
  msgstr ""
1076
 
1077
+ #: ../admin/settings.php:216
1078
  msgid "Image quality"
1079
  msgstr ""
1080
 
1081
+ #: ../admin/settings.php:227
1082
  msgid "Add link in [singlepic] tag "
1083
  msgstr ""
1084
 
1085
+ #: ../admin/settings.php:230
1086
  msgid "Add the fullsize picture as link. Didn't support watermark mode on the fly."
1087
  msgstr ""
1088
 
1089
+ #: ../admin/settings.php:241
1090
  msgid "Gallery settings"
1091
  msgstr ""
1092
 
1093
+ #: ../admin/settings.php:247
1094
  msgid "Number of images per page"
1095
  msgstr ""
1096
 
1097
+ #: ../admin/settings.php:249
1098
  msgid "0 will disable pagination, all images on one page"
1099
  msgstr ""
1100
 
1101
+ #: ../admin/settings.php:252
1102
  msgid "Integrate slideshow"
1103
  msgstr ""
1104
 
1105
+ #: ../admin/settings.php:259
1106
  msgid "Show first"
1107
  msgstr ""
1108
 
1109
+ #: ../admin/settings.php:264
1110
  msgid "Sort thumbnails"
1111
  msgstr ""
1112
 
1113
+ #: ../admin/settings.php:265
1114
  msgid "Image ID"
1115
  msgstr ""
1116
 
1117
+ #: ../admin/settings.php:267
1118
  msgid "Alt / Title text"
1119
  msgstr ""
1120
 
1121
+ #: ../admin/settings.php:281
1122
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme."
1123
  msgstr ""
1124
 
1125
+ #: ../admin/settings.php:282
1126
  msgid "With the placeholder"
1127
  msgstr ""
1128
 
1129
+ #: ../admin/settings.php:282
1130
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1131
  msgstr ""
1132
 
1133
+ #: ../admin/settings.php:286
1134
  msgid "JavaScript Thumbnail effect"
1135
  msgstr ""
1136
 
1137
+ #: ../admin/settings.php:289
1138
  msgid "None"
1139
  msgstr ""
1140
 
1141
+ #: ../admin/settings.php:290
1142
  msgid "Thickbox"
1143
  msgstr ""
1144
 
1145
+ #: ../admin/settings.php:291
1146
  msgid "Lightbox"
1147
  msgstr ""
1148
 
1149
+ #: ../admin/settings.php:292
1150
  msgid "Highslide"
1151
  msgstr ""
1152
 
1153
+ #: ../admin/settings.php:293
1154
  msgid "Custom"
1155
  msgstr ""
1156
 
1157
+ #: ../admin/settings.php:297
1158
  msgid "Link Code line"
1159
  msgstr ""
1160
 
1161
+ #: ../admin/settings.php:319
1162
  msgid "Preview"
1163
  msgstr ""
1164
 
1165
+ #: ../admin/settings.php:321
1166
+ #: ../admin/settings.php:325
1167
  msgid "Position"
1168
  msgstr ""
1169
 
1170
+ #: ../admin/settings.php:345
1171
  msgid "Offset"
1172
  msgstr ""
1173
 
1174
+ #: ../admin/settings.php:363
1175
  msgid "Use image as watermark"
1176
  msgstr ""
1177
 
1178
+ #: ../admin/settings.php:366
1179
  msgid "URL to file"
1180
  msgstr ""
1181
 
1182
+ #: ../admin/settings.php:373
1183
  msgid "Use text as watermark"
1184
  msgstr ""
1185
 
1186
+ #: ../admin/settings.php:376
1187
  msgid "Font"
1188
  msgstr ""
1189
 
1190
+ #: ../admin/settings.php:384
1191
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1192
  msgstr ""
1193
 
1194
+ #: ../admin/settings.php:388
1195
  msgid "Size"
1196
  msgstr ""
1197
 
1198
+ #: ../admin/settings.php:392
1199
  msgid "Color"
1200
  msgstr ""
1201
 
1202
+ #: ../admin/settings.php:394
1203
  msgid "(hex w/o #)"
1204
  msgstr ""
1205
 
1206
+ #: ../admin/settings.php:397
1207
  msgid "Text"
1208
  msgstr ""
1209
 
1210
+ #: ../admin/settings.php:401
1211
  msgid "Opaque"
1212
  msgstr ""
1213
 
1214
+ #: ../admin/settings.php:419
1215
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1216
  msgstr ""
1217
 
1218
+ #: ../admin/settings.php:420
1219
  msgid "The settings are used in the Flash Image Rotator Version 3.2 ."
1220
  msgstr ""
1221
 
1222
+ #: ../admin/settings.php:421
1223
  msgid "See more information for the Flash Player on the web page"
1224
  msgstr ""
1225
 
1226
+ #: ../admin/settings.php:424
1227
  msgid "Default size (W x H)"
1228
  msgstr ""
1229
 
1230
+ #: ../admin/settings.php:429
1231
  msgid "Shuffle mode"
1232
  msgstr ""
1233
 
1234
+ #: ../admin/settings.php:433
1235
  msgid "Show next image on click"
1236
  msgstr ""
1237
 
1238
+ #: ../admin/settings.php:437
1239
  msgid "Show navigation bar"
1240
  msgstr ""
1241
 
1242
+ #: ../admin/settings.php:441
1243
  msgid "Show loading icon"
1244
  msgstr ""
1245
 
1246
+ #: ../admin/settings.php:445
1247
  msgid "Stretch image"
1248
  msgstr ""
1249
 
1250
+ #: ../admin/settings.php:448
1251
  msgid "true"
1252
  msgstr ""
1253
 
1254
+ #: ../admin/settings.php:449
1255
  msgid "false"
1256
  msgstr ""
1257
 
1258
+ #: ../admin/settings.php:450
1259
  msgid "fit"
1260
  msgstr ""
1261
 
1262
+ #: ../admin/settings.php:456
 
 
 
 
1263
  msgid "Duration time"
1264
  msgstr ""
1265
 
1266
+ #: ../admin/settings.php:457
1267
  msgid "sec."
1268
  msgstr ""
1269
 
1270
+ #: ../admin/settings.php:460
1271
  msgid "Transition / Fade effect"
1272
  msgstr ""
1273
 
1274
+ #: ../admin/settings.php:463
1275
  msgid "fade"
1276
  msgstr ""
1277
 
1278
+ #: ../admin/settings.php:464
1279
  msgid "bgfade"
1280
  msgstr ""
1281
 
1282
+ #: ../admin/settings.php:465
1283
  msgid "circles"
1284
  msgstr ""
1285
 
1286
+ #: ../admin/settings.php:466
1287
  msgid "blocks"
1288
  msgstr ""
1289
 
1290
+ #: ../admin/settings.php:467
1291
  msgid "fluids"
1292
  msgstr ""
1293
 
1294
+ #: ../admin/settings.php:468
1295
  msgid "lines"
1296
  msgstr ""
1297
 
1298
+ #: ../admin/settings.php:469
1299
  msgid "random"
1300
  msgstr ""
1301
 
1302
+ #: ../admin/settings.php:473
1303
  msgid "Background Color"
1304
  msgstr ""
1305
 
1306
+ #: ../admin/settings.php:478
1307
  msgid "Texts / Buttons Color"
1308
  msgstr ""
1309
 
1310
+ #: ../admin/settings.php:483
1311
  msgid "Rollover / Active Color"
1312
  msgstr ""
1313
 
1374
  "Choose [Cancel] to Stop, [OK] to Uninstall.\\n"
1375
  msgstr ""
1376
 
1377
+ #: ../admin/style.php:31
1378
  msgid "You do not have sufficient permissions to edit templates for this blog."
1379
  msgstr ""
1380
 
1381
+ #: ../admin/style.php:40
1382
  msgid "CSS file successfully updated"
1383
  msgstr ""
1384
 
1385
+ #: ../admin/style.php:62
1386
  msgid "Activate and use style sheet:"
1387
  msgstr ""
1388
 
1389
+ #: ../admin/style.php:81
1390
  msgid "Activate"
1391
  msgstr ""
1392
 
1393
+ #: ../admin/style.php:88
1394
  #, php-format
1395
  msgid "Editing <strong>%s</strong>"
1396
  msgstr ""
1397
 
1398
+ #: ../admin/style.php:90
1399
  #, php-format
1400
  msgid "Browsing <strong>%s</strong>"
1401
  msgstr ""
1402
 
1403
+ #: ../admin/style.php:95
1404
  msgid "Author"
1405
  msgstr ""
1406
 
1407
+ #: ../admin/style.php:96
1408
  msgid "Version"
1409
  msgstr ""
1410
 
1411
+ #: ../admin/style.php:112
1412
  msgid "Update File &raquo;"
1413
  msgstr ""
1414
 
1415
+ #: ../admin/style.php:116
1416
  msgid "If this file were writable you could edit it."
1417
  msgstr ""
1418
 
1419
+ #: ../admin/style.php:121
1420
  msgid "Oops, no such file exists! Double check the name and try again, merci."
1421
  msgstr ""
1422
 
nggadmintab.php CHANGED
@@ -1,3 +1,4 @@
 
1
  <?php
2
  function ngg_upload_tab_content() {
3
  // this is the content of the "Gallery" admin tab
1
+ //svn-test, by mufuschnu
2
  <?php
3
  function ngg_upload_tab_content() {
4
  // this is the content of the "Gallery" admin tab
nggallery.php CHANGED
@@ -2,13 +2,13 @@
2
  /*
3
  Plugin Name: NextGEN Gallery
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
- Description: A NextGENeration Photo gallery for the WEB2.0(beta). At the moment only poor Web1.0 :-(
6
- Author: Alex Rabe
7
- Version: 0.40a
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
11
- Copyright 2007 by Alex Rabe
12
 
13
  The NextGEN button is taken from the Silk set of FamFamFam. See more at
14
  http://www.famfamfam.com/lab/icons/silk/
@@ -38,11 +38,11 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
38
 
39
  global $wpdb, $wp_version;
40
 
41
- //This work only in WP2.1
42
  if (version_compare($wp_version, '2.1', '>=')) {
43
 
44
  // Version and path to check version
45
- define('NGGVERSION', "0.40");
46
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
47
 
48
  // define URL
@@ -55,7 +55,12 @@ define('NGGALLERY_URLPATH', get_option('siteurl').'/wp-content/plugins/' . NGGFO
55
  // look for imagerotator
56
  define('NGGALLERY_IREXIST', file_exists(NGGALLERY_ABSPATH.'imagerotator.swf'));
57
 
58
- //get value for safe mode
 
 
 
 
 
59
  define('SAFE_MODE', ini_get('safe_mode'));
60
 
61
  //read the options
@@ -84,12 +89,13 @@ function integrate_nggheader() {
84
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'css/'.$ngg_options[CSSfile].'";</style>';
85
  if ($ngg_options[thumbEffect] == "thickbox") {
86
  echo "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'admin/js/jquery.js"></script>';
87
- echo "\n".'<script type="text/javascript"> var LoadingImage = "'.NGGALLERY_URLPATH.'thickbox/loadingAnimation.gif";</script>';
 
88
  echo "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'thickbox/thickbox.js"></script>';
89
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'thickbox/thickbox.css";</style>'."\n";
 
90
  if (!function_exists('integrate_swfobject'))
91
  echo "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'js/swfobject.js'.'"></script>'."\n";
92
- }
93
  }
94
  // Filter hook to activate CSS in header
95
  if ($ngg_options[activateCSS]) add_filter('wp_head', 'integrate_nggheader');
2
  /*
3
  Plugin Name: NextGEN Gallery
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
+ Description: A NextGENeration Photo gallery for the WEB2.0(beta).
6
+ Author: NextGEN DEV-Team
7
+ Version: 0.41a
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
11
+ Copyright 2007 by Alex Rabe & NextGEN DEV-Team
12
 
13
  The NextGEN button is taken from the Silk set of FamFamFam. See more at
14
  http://www.famfamfam.com/lab/icons/silk/
38
 
39
  global $wpdb, $wp_version;
40
 
41
+ //This works only in WP2.1 or higher
42
  if (version_compare($wp_version, '2.1', '>=')) {
43
 
44
  // Version and path to check version
45
+ define('NGGVERSION', "0.41");
46
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
47
 
48
  // define URL
55
  // look for imagerotator
56
  define('NGGALLERY_IREXIST', file_exists(NGGALLERY_ABSPATH.'imagerotator.swf'));
57
 
58
+ // get value for safe mode
59
+ if ((gettype(ini_get('safe_mode')) == 'string')) {
60
+ // if sever did in in a other way
61
+ if (ini_get('safe_mode') == 'off') define('SAFE_MODE', FALSE);
62
+ else define('SAFE_MODE', TRUE);
63
+ } else
64
  define('SAFE_MODE', ini_get('safe_mode'));
65
 
66
  //read the options
89
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'css/'.$ngg_options[CSSfile].'";</style>';
90
  if ($ngg_options[thumbEffect] == "thickbox") {
91
  echo "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'admin/js/jquery.js"></script>';
92
+ //TODO: select v2 or v3 via option
93
+ echo "\n".'<script type="text/javascript"> var tb_pathToImage = "'.NGGALLERY_URLPATH.'thickbox/loadingAnimationv2.gif";</script>';
94
  echo "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'thickbox/thickbox.js"></script>';
95
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'thickbox/thickbox.css";</style>'."\n";
96
+ }
97
  if (!function_exists('integrate_swfobject'))
98
  echo "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'js/swfobject.js'.'"></script>'."\n";
 
99
  }
100
  // Filter hook to activate CSS in header
101
  if ($ngg_options[activateCSS]) add_filter('wp_head', 'integrate_nggheader');
nggbutton.php CHANGED
@@ -118,9 +118,23 @@ $ngg_options = get_option('ngg_options');
118
  </tr>
119
  <tr>
120
  <td nowrap="nowrap" valign="top"><?php _e("Effect", 'nggallery'); ?></td>
121
- <td><label><input name="imgeffect" type="radio" value="none" checked="checked" /> <?php _e('No effect', 'nggallery') ;?></label><br />
122
- <label><input name="imgeffect" type="radio" value="watermark" /> <?php _e('Watermark', 'nggallery') ;?></label><br />
123
- <label><input name="imgeffect" type="radio" value="web20" /> <?php _e('Web 2.0', 'nggallery') ;?></label></td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  </tr>
125
 
126
  </table>
118
  </tr>
119
  <tr>
120
  <td nowrap="nowrap" valign="top"><?php _e("Effect", 'nggallery'); ?></td>
121
+ <td>
122
+ <label><select id="imgeffect" name="imgeffect">
123
+ <option value="none"><?php _e("No effect", 'nggallery'); ?></option>
124
+ <option value="watermark"><?php _e("Watermark", 'nggallery'); ?></option>
125
+ <option value="web20"><?php _e("Web 2.0", 'nggallery'); ?></option>
126
+ </select></label>
127
+ </td>
128
+ </tr>
129
+ <tr>
130
+ <td nowrap="nowrap" valign="top"><?php _e("Float", 'nggallery'); ?></td>
131
+ <td>
132
+ <label><select id="imgfloat" name="imgfloat">
133
+ <option value=""><?php _e("No float", 'nggallery'); ?></option>
134
+ <option value="left"><?php _e("Left", 'nggallery'); ?></option>
135
+ <option value="right"><?php _e("Right", 'nggallery'); ?></option>
136
+ </select></label>
137
+ </td>
138
  </tr>
139
 
140
  </table>
nggfunctions.php CHANGED
@@ -212,10 +212,14 @@ function nggShowGallery($galleryID) {
212
  }
213
 
214
  foreach ($picturelist as $picture) {
215
-
 
 
 
 
216
  $gallerycontent .= '<div class="ngg-gallery-thumbnail-box">'."\n\t";
217
  $gallerycontent .= '<div class="ngg-gallery-thumbnail">'."\n\t";
218
- $gallerycontent .= '<a href="'.$folder_url.$picture->filename.'" title="'.$picture->alttext.'" '.$thumbcode.' >';
219
  $gallerycontent .= '<img title="'.$picture->alttext.'" alt="'.$picture->alttext.'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
220
  $gallerycontent .= '</a>'."\n".'</div>'."\n".'</div>'."\n";
221
  }
@@ -269,11 +273,11 @@ function nggCreateGalleryDiv($galleryID,$mode = "extend") {
269
  $galleryoutput = '
270
  <div class="ngg-album-compact">
271
  <div class="ngg-album-compactbox">
272
- <div class="setLinkDiv">
273
- <a class="Link" href="'.get_bloginfo('wpurl').'/?page_id='.$gallerycontent->pageid.'">'.$insertpic.'</a>
274
  </div>
275
  </div>
276
- <h4><a class="Seta" title="'.$gallerycontent->title.'" href="'.get_bloginfo('wpurl').'/?page_id='.$gallerycontent->pageid.'">'.$gallerycontent->title.'</a></h4>
277
  <p><b>'.$counter.'</b> '.__('Photos', 'nggallery').'</p></div>';
278
  } else {
279
  // mode extend
@@ -283,9 +287,9 @@ function nggCreateGalleryDiv($galleryID,$mode = "extend") {
283
  $insertpic = __('Watch gallery', 'nggallery');
284
  $galleryoutput = '
285
  <div class="ngg-album">
286
- <div class="ngg-albumtitle"><a href="'.get_bloginfo('wpurl').'/?page_id='.$gallerycontent->pageid.'">'.$gallerycontent->title.'</a></div>
287
  <div class="ngg-albumcontent">
288
- <div class="ngg-thumbnail"><a href="'.get_bloginfo('wpurl').'/?page_id='.$gallerycontent->pageid.'">'.$insertpic.'</a></div>
289
  <div class="ngg-description"><p>'.$gallerycontent->description.'</p></div>'."\n".'</div>'."\n".'</div>';
290
 
291
  }
@@ -324,7 +328,7 @@ function nggSinglePicture($imageID,$width=250,$height=250,$mode="") {
324
  $link = '<a href="'.$folder_url.$picture->filename.'" title="'.$picture->alttext.'" '.$thumbcode.' >';
325
  }
326
 
327
- $content = $link . '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$width.'&amp;height='.$height.'&amp;mode='.$mode.'" alt="'.$picture->alttext.'" title="'.$picture->alttext.'" />';
328
 
329
  if ($ngg_options[imgSinglePicLink]) $content .= '</a>';
330
 
@@ -362,7 +366,7 @@ function ngg_get_image_url($imageID){
362
  $picturepath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
363
 
364
  // set gallery url
365
- $imageURL = get_option ('siteurl')."/".$picturepath.$fileName;
366
 
367
  return $imageURL;
368
  }
@@ -374,7 +378,10 @@ function ngg_get_thumbnail_folder($gallerypath, $include_Abspath = TRUE) {
374
  if (!$include_Abspath) $gallerypath = WINABSPATH.$gallerypath;
375
  if (is_dir($gallerypath."/thumbs")) return "/thumbs/";
376
  if (is_dir($gallerypath."/tumbs")) return "/tumbs/";
377
-
 
 
 
378
  return FALSE;
379
 
380
  }
@@ -391,4 +398,4 @@ function ngg_get_thumbnail_prefix($gallerypath, $include_Abspath = TRUE) {
391
 
392
  }
393
 
394
- ?>
212
  }
213
 
214
  foreach ($picturelist as $picture) {
215
+ $picturefile = str_replace(
216
+ array('�', '�', '�', '�', '�', '�', '�', ' '),
217
+ array('%E4', '%F6', '%FC', '%C4', '%D6', '%DC', '%DF', '%20'),
218
+ utf8_decode($picture->filename)
219
+ );
220
  $gallerycontent .= '<div class="ngg-gallery-thumbnail-box">'."\n\t";
221
  $gallerycontent .= '<div class="ngg-gallery-thumbnail">'."\n\t";
222
+ $gallerycontent .= '<a href="'.$folder_url.$picturefile.'" title="'.$picture->alttext.'" '.$thumbcode.' >';
223
  $gallerycontent .= '<img title="'.$picture->alttext.'" alt="'.$picture->alttext.'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
224
  $gallerycontent .= '</a>'."\n".'</div>'."\n".'</div>'."\n";
225
  }
273
  $galleryoutput = '
274
  <div class="ngg-album-compact">
275
  <div class="ngg-album-compactbox">
276
+ <div class="ngg-album-link">
277
+ <a class="Link" href="'.get_permalink($gallerycontent->pageid).'">'.$insertpic.'</a>
278
  </div>
279
  </div>
280
+ <h4><a class="ngg-album-desc" title="'.$gallerycontent->title.'" href="'.get_permalink($gallerycontent->pageid).'">'.$gallerycontent->title.'</a></h4>
281
  <p><b>'.$counter.'</b> '.__('Photos', 'nggallery').'</p></div>';
282
  } else {
283
  // mode extend
287
  $insertpic = __('Watch gallery', 'nggallery');
288
  $galleryoutput = '
289
  <div class="ngg-album">
290
+ <div class="ngg-albumtitle"><a href="'.get_permalink($gallerycontent->pageid).'">'.$gallerycontent->title.'</a></div>
291
  <div class="ngg-albumcontent">
292
+ <div class="ngg-thumbnail"><a href="'.get_permalink($gallerycontent->pageid).'">'.$insertpic.'</a></div>
293
  <div class="ngg-description"><p>'.$gallerycontent->description.'</p></div>'."\n".'</div>'."\n".'</div>';
294
 
295
  }
328
  $link = '<a href="'.$folder_url.$picture->filename.'" title="'.$picture->alttext.'" '.$thumbcode.' >';
329
  }
330
 
331
+ $content = $link . '<img class="ngg-singlepic" src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$width.'&amp;height='.$height.'&amp;mode='.$mode.'" alt="'.$picture->alttext.'" title="'.$picture->alttext.'" />';
332
 
333
  if ($ngg_options[imgSinglePicLink]) $content .= '</a>';
334
 
366
  $picturepath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
367
 
368
  // set gallery url
369
+ $imageURL = get_option ('siteurl')."/".$picturepath."/".$fileName;
370
 
371
  return $imageURL;
372
  }
378
  if (!$include_Abspath) $gallerypath = WINABSPATH.$gallerypath;
379
  if (is_dir($gallerypath."/thumbs")) return "/thumbs/";
380
  if (is_dir($gallerypath."/tumbs")) return "/tumbs/";
381
+ if (!is_dir($gallerypath."/thumbs")) {
382
+ mkdir($gallerypath."/thumbs");
383
+ return "/thumbs/";
384
+ }
385
  return FALSE;
386
 
387
  }
398
 
399
  }
400
 
401
+ ?>
ngginstall.php CHANGED
@@ -80,6 +80,7 @@ function ngg_default_options() {
80
  $ngg_options[thumbheight] = 75; // Thumb height
81
  $ngg_options[thumbfix] = true; // Fix the dimension
82
  $ngg_options[thumbcrop] = false; // Crop thumbnail
 
83
  $ngg_options[thumbquality] = 100; // Thumb Quality
84
  $ngg_options[thumbResampleMode] = 3; // Resample speed value 1 - 5
85
 
@@ -87,7 +88,7 @@ function ngg_default_options() {
87
  $ngg_options[imgResize] = false; // Activate resize
88
  $ngg_options[imgWidth] = 800; // Image Width
89
  $ngg_options[imgHeight] = 600; // Image height
90
- $ngg_options[imgQuality] = 100; // Image Quality
91
  $ngg_options[imgResampleMode] = 4; // Resample speed value 1 - 5
92
  $ngg_options[imgSinglePicLink] = false; // Add a link to the full size picture
93
 
80
  $ngg_options[thumbheight] = 75; // Thumb height
81
  $ngg_options[thumbfix] = true; // Fix the dimension
82
  $ngg_options[thumbcrop] = false; // Crop thumbnail
83
+ $ngg_options[thumbresizebefore] = true; // Resize the Thumb before do cropping
84
  $ngg_options[thumbquality] = 100; // Thumb Quality
85
  $ngg_options[thumbResampleMode] = 3; // Resample speed value 1 - 5
86
 
88
  $ngg_options[imgResize] = false; // Activate resize
89
  $ngg_options[imgWidth] = 800; // Image Width
90
  $ngg_options[imgHeight] = 600; // Image height
91
+ $ngg_options[imgQuality] = 85; // Image Quality
92
  $ngg_options[imgResampleMode] = 4; // Resample speed value 1 - 5
93
  $ngg_options[imgSinglePicLink] = false; // Add a link to the full size picture
94
 
nggwidget.php ADDED
@@ -0,0 +1,278 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: NextGEN Gallery Widget
4
+ Description: Adds a sidebar widget to see random images in your NextGEN Gallery!
5
+ Author: KeViN
6
+ Version: 0.9b
7
+ Author URI: http://www.kev.hu
8
+ Plugin URI: http://www.kev.hu
9
+
10
+ This program is free software; you can redistribute it and/or modify
11
+ it under the terms of the GNU General Public License as published by
12
+ the Free Software Foundation; either version 2 of the License, or
13
+ (at your option) any later version.
14
+
15
+ This program is distributed in the hope that it will be useful,
16
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+ GNU General Public License for more details.
19
+
20
+ You should have received a copy of the GNU General Public License
21
+ along with this program; if not, write to the Free Software
22
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
+
24
+ */
25
+
26
+ function getCSVValues($string,$separator=",")
27
+ {
28
+ $string = str_replace('""', "'", $string);
29
+ // split the string at double quotes "
30
+ $bits = explode('"',$string);
31
+ $elements = array();
32
+ for ( $i=0; $i < count($bits) ; $i++ ) {
33
+ /*
34
+ odd numbered elements would have been
35
+ enclosed by double quotes
36
+ even numbered elements would not have been
37
+ */
38
+ if (($i%2) == 1) {
39
+ /* if the element number is odd add the
40
+ whole string to the output array */
41
+ $elements[] = $bits[$i];
42
+ } else
43
+ {
44
+ /* otherwise split the unquoted stuff at commas
45
+ and add the elements to the array */
46
+ $rest = $bits[$i];
47
+ $rest = preg_replace("/^".$separator."/","",$rest);
48
+ $rest = preg_replace("/".$separator."$/","",$rest);
49
+ $elements = array_merge($elements,explode($separator,$rest));
50
+ }
51
+ }
52
+ return $elements;
53
+ }
54
+
55
+ function widget_nextgenimage_init() {
56
+
57
+ // Check for the required plugin functions. This will prevent fatal
58
+ // errors occurring when you deactivate the dynamic-sidebar plugin.
59
+ if ( !function_exists('register_sidebar_widget') )
60
+ return;
61
+
62
+ // This is the function that outputs our little Google search form.
63
+ function widget_nextgenimage($args) {
64
+
65
+ // $args is an array of strings that help widgets to conform to
66
+ // the active theme: before_widget, before_title, after_widget,
67
+ // and after_title are the array keys. Default tags: li and h2.
68
+ extract($args);
69
+
70
+ // Each widget can store its own options. We keep strings here.
71
+ $options = get_option('widget_NextGenimage');
72
+ $title = $options['title'];
73
+ $number = $options['number'];
74
+ $sizeX = $options['sizeX'];
75
+ $sizeY = $options['sizeY'];
76
+ $mode = $options['mode'];
77
+ // $border = $options['border'];
78
+ // $bordercolor = $options['bordercolor'];
79
+ // $margin = $options['margin'];
80
+
81
+ $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
82
+ $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
83
+ $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
84
+
85
+ //origy ngg options
86
+ $ngg_options = get_option('ngg_options');
87
+
88
+ // get the effect code
89
+ if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
90
+ if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
91
+ else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
92
+
93
+ // checking display status (category or home)
94
+ $show_widget = false;
95
+
96
+ // Make array for checking the categories
97
+ $categorieslist = getCSVValues($categorylist,',');
98
+
99
+ // Denied list -> enable everywhere and make false if found!
100
+ if (($showcategory == "denied")) {
101
+ $show_widget = true;
102
+ foreach((get_the_category()) as $cat)
103
+ { if ((in_array($cat->cat_ID , $categorieslist)))
104
+ $show_widget = false;
105
+ }
106
+ }
107
+
108
+ // Allow list -> false is the default -> enable if found
109
+ if (($showcategory == "allow"))
110
+ foreach((get_the_category()) as $cat)
111
+ { if ((in_array($cat->cat_ID , $categorieslist)))
112
+ $show_widget = true;
113
+ }
114
+
115
+ // All categories -> if it's not the home -> enable
116
+ if (($showcategory == "all"))
117
+ if ((is_home() != true))
118
+ $show_widget = true;
119
+
120
+
121
+ // Home page -> If yes -> enable
122
+ if (($showinhome == "yes"))
123
+ if ((is_home()))
124
+ $show_widget = true;
125
+
126
+ // here comes the display (v.08)
127
+
128
+ // These lines generate our output. Widgets can be very complex
129
+ // but as you can see here, they can also be very, very simple.
130
+ $url_parts = parse_url(get_bloginfo('home'));
131
+
132
+ // Null parameters check
133
+ if ( ($number == '') ) $number = 1;
134
+ if ( ($sizeX == '') ) $sizeX = 190;
135
+ if ( ($sizeY == '') ) $sizeY = 190;
136
+ // if ( ($border == '') ) $border = 0;
137
+ // if ( ($bordercolor == '') ) $bordercolor = "#dadada";
138
+ // if ( ($margin == '') ) $margin = 5;
139
+
140
+ if ($show_widget) {
141
+
142
+ echo $before_widget . $before_title . $title . $after_title;
143
+ echo "\n".'<div class="ngg-widget"><ul class="ngg-randomlist">'."\n";
144
+
145
+ for ($i=1; $i<=$number; $i++) {
146
+
147
+ global $wpdb;
148
+
149
+ // Get a random image from the database
150
+ $imageID = $wpdb->get_var("SELECT pid FROM $wpdb->nggpictures ORDER by rand() limit 1");
151
+
152
+ //if web20
153
+ if ( ($mode == 'web20') ) {
154
+ echo '<li><a href="'.ngg_get_image_url($imageID).'" title="" '.$thumbcode.'>';
155
+ echo '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.'&amp;mode=web20" />';
156
+ echo '</a></li>'."\n";
157
+ }
158
+ else {
159
+ echo '<li><a href="'.ngg_get_image_url($imageID).'" title="" '.$thumbcode.'>';
160
+ echo '<img src="'.ngg_get_thumbnail_url($imageID).'" style="width:'.$sizeX.'px;height:'.$sizeY.'px;" />';
161
+ echo '</a></li>'."\n";
162
+ }
163
+
164
+ //echo '</div>'."\n";
165
+ }
166
+
167
+ echo '</ul></div>'."\n";
168
+ echo '<div style="clear:both;"></div>'."\n";
169
+ echo $after_widget;
170
+ }
171
+ }
172
+
173
+ /**
174
+ * @desc Output of plugin�s editform in te adminarea
175
+ * @author KeViN
176
+ */
177
+
178
+ function widget_nextgenimage_control($number=1) {
179
+
180
+ $options = get_option('widget_NextGenimage');
181
+
182
+ if ( !is_array($options) )
183
+ $options = array('title'=>'', 'buttontext'=>__('NextGEN Random Image','nggallery'));
184
+
185
+ if ( $_POST['nextgen-submit'] ) {
186
+ // Remember to sanitize and format use input appropriately.
187
+ $options = "";
188
+ $options['title'] = strip_tags(stripslashes($_POST['nextgen-title']));
189
+ $options['number'] = strip_tags(stripslashes($_POST['nextgen-number']));
190
+ $options['sizeX'] = /* 90; */ strip_tags(stripslashes($_POST['nextgen-sizeX']));
191
+ $options['sizeY'] = /* 90; */ strip_tags(stripslashes($_POST['nextgen-sizeY']));
192
+ $options['mode'] = /* "web20" ; */ strip_tags(stripslashes($_POST['nextgen-mode']));
193
+ // $options['border'] = strip_tags(stripslashes($_POST['nextgen-border']));
194
+ // $options['bordercolor'] = strip_tags(stripslashes($_POST['nextgen-bordercolor']));
195
+ // $options['margin'] = strip_tags(stripslashes($_POST['nextgen-margin']));
196
+
197
+ // Category controll (v0.8b)
198
+ $options['showinhome'] = strip_tags(stripslashes($_POST['nextgen-showinhome']));
199
+ $options['showcategory'] = strip_tags(stripslashes($_POST['nextgen-showcategory']));
200
+ $options['categorylist'] = strip_tags(stripslashes($_POST['nextgen-categorylist']));
201
+ update_option('widget_NextGenimage', $options);
202
+ }
203
+
204
+
205
+ // Be sure you format your options to be valid HTML attributes.
206
+ $title = htmlspecialchars($options['title'], ENT_QUOTES);
207
+ $number = htmlspecialchars($options['number'], ENT_QUOTES);
208
+ $sizeX = htmlspecialchars($options['sizeX'], ENT_QUOTES);
209
+ $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
210
+ $mode = htmlspecialchars($options['mode'], ENT_QUOTES);
211
+ // $border = htmlspecialchars($options['border'], ENT_QUOTES);
212
+ // $bordercolor = htmlspecialchars($options['bordercolor'], ENT_QUOTES);
213
+ // $margin = htmlspecialchars($options['margin'], ENT_QUOTES);
214
+
215
+ $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
216
+ $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
217
+ $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
218
+ // Here comes the form
219
+
220
+ echo'<p style="text-align:right;"><label for="nextgen-title">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-title" name="nextgen-title" type="text" value="'.$title.'" /></label></p>';
221
+
222
+ echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Number of pics','nggallery').':';
223
+ echo ' <select name="nextgen-number" size="1">';
224
+ echo ' <option id="1" ';if (($number == 1)) echo 'selected="selected"'; echo ' value="1">1</option>';
225
+ echo ' <option id="2" ';if (($number == 2)) echo 'selected="selected"'; echo ' value="2">2</option>';
226
+ echo ' <option id="3" ';if (($number == 3)) echo 'selected="selected"'; echo ' value="3">3</option>';
227
+ echo ' <option id="4" ';if (($number == 4)) echo 'selected="selected"'; echo ' value="4">4</option>';
228
+ echo ' <option id="6" ';if (($number == 6)) echo 'selected="selected"'; echo ' value="6">6</option>';
229
+ echo ' <option id="8" ';if (($number == 8)) echo 'selected="selected"'; echo ' value="8">8</option>';
230
+ echo ' <option id="10" ';if (($number == 10)) echo 'selected="selected"'; echo ' value="10">10</option>';
231
+ echo ' </select></label></p>';
232
+
233
+ echo '<p style="text-align:right;"><label for="nextgen-sizeX">' . __('Width (px)','nggallery') . ': <input style="width: 150px;" id="nextgen-sizeX" name="nextgen-sizeX" type="text" value="'.$sizeX.'" /></label></p>';
234
+
235
+ echo '<p style="text-align:right;"><label for="nextgen-sizeY">' . __('Height (px)','nggallery') . ': <input style="width: 150px;" id="nextgen-sizeY" name="nextgen-sizeY" type="text" value="'.$sizeY.'" /></label></p>';
236
+
237
+ echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Mode','nggallery').':';
238
+ echo ' <select name="nextgen-mode" size="1">';
239
+ echo ' <option id="none" ';if (($mode == "")) echo 'selected="selected"'; echo ' value="">'. __('none','nggallery').'</option>';
240
+ echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
241
+ echo ' </select></label></p>';
242
+
243
+ // moved to CSS file
244
+ // echo '<p style="text-align:right;"><label for="nextgen-border">' . __('Border (px):') . ' <input style="width: 150px;" id="nextgen-border" name="nextgen-border" type="text" value="'.$border.'" /></label></p>';
245
+ // echo '<p style="text-align:right;"><label for="nextgen-bordercolor">' . __('Border color:') . ' <input style="width: 150px;" id="nextgen-bordercolor" name="nextgen-bordercolor" type="text" value="'.$bordercolor.'" /></label></p>';
246
+ // echo '<p style="text-align:right;"><label for="nextgen-margin">' . __('Margin (px):') . ' <input style="width: 150px;" id="nextgen-margin" name="nextgen-margin" type="text" value="'.$margin.'" /></label></p>';
247
+
248
+ // v0.8 - category control
249
+ echo '<p style="text-align:right;"><label for="nextgen-showinhome">' . __('Show in the main page','nggallery').':';
250
+ echo ' <select name="nextgen-showinhome" size="1">';
251
+ echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
252
+ echo ' <option id="2" ';if ($showinhome == "no") echo 'selected="selected"'; echo ' value="no" >'. __('no','nggallery').'</option>';
253
+ echo ' </select></label></p>';
254
+
255
+ echo '<p style="text-align:right;"><label for="nextgen-showcategory">' . __('Show in','nggallery').':';
256
+ echo ' <select name="nextgen-showcategory" size="1">';
257
+ echo ' <option id="1" ';if (($showcategory == "all")) echo 'selected="selected"'; echo ' value="all" >'. __('All categories','nggallery').'</option>';
258
+ echo ' <option id="2" ';if (($showcategory == "denied")) echo 'selected="selected"'; echo ' value="denied" >'. __('Only which are not listed','nggallery').'</option>';
259
+ echo ' <option id="3" ';if (($showcategory == "allow")) echo 'selected="selected"'; echo ' value="allow" >'. __('Only which are listed','nggallery').'</option>';
260
+ echo ' </select></label></p>';
261
+
262
+ echo '<p style="text-align:right;"><label for="nextgen-categorylist">' . __('Categories (id (use , to seperate)','nggallery') . ': <input style="width: 150px;" id="nextgen-categorylist" name="nextgen-categorylist" type="text" value="'.$categorylist.'" /></label></p>';
263
+
264
+
265
+ echo '<input type="hidden" id="nextgen-submit" name="nextgen-submit" value="1" />';
266
+ }
267
+
268
+
269
+ // This registers our widget so it appears with the other available
270
+ // widgets and can be dragged and dropped into any active sidebars.
271
+ register_sidebar_widget(array('NextGEN Random Image', 'widgets'), 'widget_nextgenimage');
272
+ register_widget_control(array('NextGEN Random Image', 'widgets'), 'widget_nextgenimage_control', 300, 400);
273
+ }
274
+
275
+ // Run our code later in case this loads prior to any required plugins.
276
+ add_action('widgets_init', 'widget_nextgenimage_init');
277
+
278
+ ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://alexrabe.boelinger.com/?page_id=80
4
  Tags: flash, slideshow, images, gallery, media, admin, post
5
  Requires at least: 2.1.3
6
  Tested up to: 2.2
7
- Stable tag:
8
 
9
  NextGEN Gallery is a Image Gallery plugin for WordPress.
10
 
@@ -21,13 +21,15 @@ Features:
21
  * JavaScript Effect : Use any available popular image effect : Thickbox, Lightbox or Highslide
22
  * Multiple CSS Stylesheet : Use a nice shadow effect for your thumbnails with your own CSS file
23
  * Slideshow : Full integrated flash slideshow
 
 
24
 
25
 
26
  PLEASE NOTE !! This gallery plugin is still in development, it can be contain many bugs !
27
 
28
  == Credits ==
29
 
30
- Copyright 2007 Alex Rabe
31
 
32
  The NextGEN button is taken from the Silk set of FamFamFam. See more at
33
  http://www.famfamfam.com/lab/icons/silk/
@@ -58,7 +60,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
58
 
59
  5. Add a gallery and upload some images (the main gallery folder must have permission 777)
60
 
61
- 6. Go to your post an enter the tag [Gallery=ID] or [Slideshow=ID].
 
62
 
63
  That's it ... Have fun
64
 
@@ -87,7 +90,7 @@ For a gallery : **[gallery=id]**
87
 
88
  Example : http://nextgen.boelinger.com/gallery-page/
89
 
90
- For a single picture : **[singlepic=id,width,height,mode]**
91
 
92
  Example : http://nextgen.boelinger.com/singlepic/
93
 
4
  Tags: flash, slideshow, images, gallery, media, admin, post
5
  Requires at least: 2.1.3
6
  Tested up to: 2.2
7
+ Stable tag: 0.41
8
 
9
  NextGEN Gallery is a Image Gallery plugin for WordPress.
10
 
21
  * JavaScript Effect : Use any available popular image effect : Thickbox, Lightbox or Highslide
22
  * Multiple CSS Stylesheet : Use a nice shadow effect for your thumbnails with your own CSS file
23
  * Slideshow : Full integrated flash slideshow
24
+ * TinyMCE : Button integration for easy adding the gallery tags
25
+ * Sidebar Widget : Show a random picture at your sidebar
26
 
27
 
28
  PLEASE NOTE !! This gallery plugin is still in development, it can be contain many bugs !
29
 
30
  == Credits ==
31
 
32
+ Copyright 2007 Alex Rabe & NextGEN DEV-Team
33
 
34
  The NextGEN button is taken from the Silk set of FamFamFam. See more at
35
  http://www.famfamfam.com/lab/icons/silk/
60
 
61
  5. Add a gallery and upload some images (the main gallery folder must have permission 777)
62
 
63
+ 6. Go to your post/page an enter the tag [gallery=ID] or [slideshow=ID].
64
+ See more tags in the FAQ section
65
 
66
  That's it ... Have fun
67
 
90
 
91
  Example : http://nextgen.boelinger.com/gallery-page/
92
 
93
+ For a single picture : **[singlepic=id,width,height,mode,float]**
94
 
95
  Example : http://nextgen.boelinger.com/singlepic/
96
 
thickbox/{loadingAnimation.gif → loadingAnimationv2.gif} RENAMED
File without changes
thickbox/loadingAnimationv3.gif ADDED
Binary file
thickbox/thickbox.css CHANGED
@@ -1,15 +1,8 @@
1
  /* ----------------------------------------------------------------------------------------------------------------*/
2
  /* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
3
  /* ----------------------------------------------------------------------------------------------------------------*/
4
-
5
  /* *{padding: 0; margin: 0;} */
6
 
7
- html, body {
8
- min-height: 100%;
9
- height: auto !important;
10
- height: 100%
11
- }
12
-
13
  /* ----------------------------------------------------------------------------------------------------------------*/
14
  /* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
15
  /* ----------------------------------------------------------------------------------------------------------------*/
@@ -33,27 +26,41 @@ height: 100%
33
  /* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
34
  /* ----------------------------------------------------------------------------------------------------------------*/
35
  #TB_overlay {
36
- position: absolute;
37
  z-index:100;
38
  top: 0px;
39
  left: 0px;
40
  background-color:#000;
41
- filter:alpha(opacity=60);
42
- -moz-opacity: 0.6;
43
- opacity: 0.6;
 
 
 
 
 
 
 
44
  }
45
 
46
  #TB_window {
47
- position: absolute;
48
  background: #ffffff;
49
  z-index: 102;
50
  color:#000000;
51
  display:none;
52
  border: 4px solid #525252;
53
  text-align:left;
 
 
 
 
 
 
 
54
  }
55
 
56
- #TB_window img {
57
  display:block;
58
  margin: 15px 0 0 15px;
59
  border-right: 1px solid #ccc;
@@ -75,7 +82,7 @@ height: 100%
75
  }
76
 
77
  #TB_closeAjaxWindow{
78
- padding:5px 10px 7px 0;
79
  margin-bottom:1px;
80
  text-align:right;
81
  float:right;
@@ -100,21 +107,33 @@ height: 100%
100
  line-height:1.4em;
101
  }
102
 
 
 
 
 
103
  #TB_ajaxContent p{
104
  padding:5px 0px 5px 0px;
105
  }
106
 
107
  #TB_load{
108
- position: absolute;
109
  display:none;
110
- height:100px;
111
- width:100px;
112
- z-index:101;
 
 
 
 
 
 
 
 
113
  }
114
 
115
  #TB_HideSelect{
116
  z-index:99;
117
- position:absolute;
118
  top: 0;
119
  left: 0;
120
  background-color:#fff;
@@ -122,6 +141,13 @@ height: 100%
122
  filter:alpha(opacity=0);
123
  -moz-opacity: 0;
124
  opacity: 0;
 
 
 
 
 
 
 
125
  }
126
 
127
  #TB_iframeContent{
1
  /* ----------------------------------------------------------------------------------------------------------------*/
2
  /* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
3
  /* ----------------------------------------------------------------------------------------------------------------*/
 
4
  /* *{padding: 0; margin: 0;} */
5
 
 
 
 
 
 
 
6
  /* ----------------------------------------------------------------------------------------------------------------*/
7
  /* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
8
  /* ----------------------------------------------------------------------------------------------------------------*/
26
  /* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
27
  /* ----------------------------------------------------------------------------------------------------------------*/
28
  #TB_overlay {
29
+ position: fixed;
30
  z-index:100;
31
  top: 0px;
32
  left: 0px;
33
  background-color:#000;
34
+ filter:alpha(opacity=75);
35
+ -moz-opacity: 0.75;
36
+ opacity: 0.75;
37
+ height:100%;
38
+ width:100%;
39
+ }
40
+
41
+ * html #TB_overlay { /* ie6 hack */
42
+ position: absolute;
43
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
44
  }
45
 
46
  #TB_window {
47
+ position: fixed;
48
  background: #ffffff;
49
  z-index: 102;
50
  color:#000000;
51
  display:none;
52
  border: 4px solid #525252;
53
  text-align:left;
54
+ top:50%;
55
+ left:50%;
56
+ }
57
+
58
+ * html #TB_window { /* ie6 hack */
59
+ position: absolute;
60
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
61
  }
62
 
63
+ #TB_window img#TB_Image {
64
  display:block;
65
  margin: 15px 0 0 15px;
66
  border-right: 1px solid #ccc;
82
  }
83
 
84
  #TB_closeAjaxWindow{
85
+ padding:7px 10px 5px 0;
86
  margin-bottom:1px;
87
  text-align:right;
88
  float:right;
107
  line-height:1.4em;
108
  }
109
 
110
+ #TB_ajaxContent.TB_modal{
111
+ padding:15px;
112
+ }
113
+
114
  #TB_ajaxContent p{
115
  padding:5px 0px 5px 0px;
116
  }
117
 
118
  #TB_load{
119
+ position: fixed;
120
  display:none;
121
+ height:13px;
122
+ width:208px;
123
+ z-index:103;
124
+ top: 50%;
125
+ left: 50%;
126
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
127
+ }
128
+
129
+ * html #TB_load { /* ie6 hack */
130
+ position: absolute;
131
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
132
  }
133
 
134
  #TB_HideSelect{
135
  z-index:99;
136
+ position:fixed;
137
  top: 0;
138
  left: 0;
139
  background-color:#fff;
141
  filter:alpha(opacity=0);
142
  -moz-opacity: 0;
143
  opacity: 0;
144
+ height:100%;
145
+ width:100%;
146
+ }
147
+
148
+ * html #TB_HideSelect { /* ie6 hack */
149
+ position: absolute;
150
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
151
  }
152
 
153
  #TB_iframeContent{
thickbox/thickbox.js CHANGED
@@ -1,342 +1,8 @@
1
  /*
2
- * Thickbox 2.1 - jQuery plugin for displaying content in a box above the page
3
- *
4
- * Copyright (c) 2006, 2007 Cody Lindley (http://www.codylindley.com)
5
- *
6
- * Licensed under the MIT License:
7
- * http://www.opensource.org/licenses/mit-license.php
8
- */
9
 
10
- // on page load call TB_init
11
- $(document).ready(TB_init);
12
-
13
- // add thickbox to href elements that have a class of .thickbox
14
- function TB_init(){
15
- $("a.thickbox").click(function(event){
16
- // stop default behaviour
17
- event.preventDefault();
18
- // remove click border
19
- this.blur();
20
-
21
- // get caption: either title or name attribute
22
- var caption = this.title || this.name || "";
23
-
24
- // get rel attribute for image groups
25
- var group = this.rel || false;
26
-
27
- // display the box for the elements href
28
- TB_show(caption, this.href, group);
29
- });
30
- }
31
-
32
- // called when the user clicks on a thickbox link
33
- function TB_show(caption, url, rel) {
34
-
35
- // create iframe, overlay and box if non-existent
36
- if ( !$("#TB_HideSelect").length ) {
37
- $("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
38
- $("#TB_overlay").click(TB_remove);
39
- }
40
- // TODO replace or check if event is already assigned
41
- $(window).scroll(TB_position);
42
-
43
- // TODO replace
44
- TB_overlaySize();
45
-
46
- // TODO create loader only once, hide and show on demand
47
- // $("body").append("<div id='TB_load'><img src='loadingAnimation.gif' /></div>");
48
- $("body").append("<div id='TB_load'><img src='"+ LoadingImage +"' /></div>");
49
- TB_load_position();
50
-
51
- // check if a query string is involved
52
- var baseURL = url.match(/(.+)?/)[1] || url;
53
-
54
- // regex to check if a href refers to an image
55
- var imageURL = /\.(jpe?g|png|gif|bmp)/gi;
56
-
57
- // check for images
58
- if ( baseURL.match(imageURL) ) {
59
- var dummy = { caption: "", url: "", html: "" };
60
-
61
- var prev = dummy,
62
- next = dummy,
63
- imageCount = "";
64
-
65
- // if an image group is given
66
- if ( rel ) {
67
- function getInfo(image, id, label) {
68
- return {
69
- caption: image.title,
70
- url: image.href,
71
- html: "<span id='TB_" + id + "'>&nbsp;&nbsp;<a href='#'>" + label + "</a></span>"
72
- }
73
- }
74
-
75
- // find the anchors that point to the group
76
- var imageGroup = $("a[@rel="+rel+"]").get();
77
- var foundSelf = false;
78
-
79
- // loop through the anchors, looking for ourself, saving information about previous and next image
80
- for (var i = 0; i < imageGroup.length; i++) {
81
- var image = imageGroup[i];
82
- var urlTypeTemp = image.href.match(imageURL);
83
-
84
- // look for ourself
85
- if ( image.href == url ) {
86
- foundSelf = true;
87
- imageCount = "Image " + (i + 1) + " of "+ (imageGroup.length);
88
- } else {
89
- // when we found ourself, the current is the next image
90
- if ( foundSelf ) {
91
- next = getInfo(image, "next", "Next &gt;");
92
- // stop searching
93
- break;
94
- } else {
95
- // didn't find ourself yet, so this may be the one before ourself
96
- prev = getInfo(image, "prev", "&lt; Prev");
97
- }
98
- }
99
- }
100
- }
101
-
102
- imgPreloader = new Image();
103
- imgPreloader.onload = function() {
104
- imgPreloader.onload = null;
105
-
106
- // Resizing large images
107
- var pagesize = TB_getPageSize();
108
- var x = pagesize[0] - 150;
109
- var y = pagesize[1] - 150;
110
- var imageWidth = imgPreloader.width;
111
- var imageHeight = imgPreloader.height;
112
- if (imageWidth > x) {
113
- imageHeight = imageHeight * (x / imageWidth);
114
- imageWidth = x;
115
- if (imageHeight > y) {
116
- imageWidth = imageWidth * (y / imageHeight);
117
- imageHeight = y;
118
- }
119
- } else if (imageHeight > y) {
120
- imageWidth = imageWidth * (y / imageHeight);
121
- imageHeight = y;
122
- if (imageWidth > x) {
123
- imageHeight = imageHeight * (x / imageWidth);
124
- imageWidth = x;
125
- }
126
- }
127
- // End Resizing
128
-
129
- // TODO don't use globals
130
- TB_WIDTH = imageWidth + 30;
131
- TB_HEIGHT = imageHeight + 60;
132
-
133
- // TODO empty window content instead
134
- $("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + imageCount + prev.html + next.html + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div>");
135
-
136
- $("#TB_closeWindowButton").click(TB_remove);
137
-
138
- function buildClickHandler(image) {
139
- return function() {
140
- $("#TB_window").remove();
141
- $("body").append("<div id='TB_window'></div>");
142
- TB_show(image.caption, image.url, rel);
143
- return false;
144
- };
145
- }
146
- var goPrev = buildClickHandler(prev);
147
- var goNext = buildClickHandler(next);
148
- if ( prev.html ) {
149
- $("#TB_prev").click(goPrev);
150
- }
151
-
152
- if ( next.html ) {
153
- $("#TB_next").click(goNext);
154
- }
155
-
156
- // TODO use jQuery, maybe with event fix plugin, or just get the necessary parts of it
157
- document.onkeydown = function(e) {
158
- if (e == null) { // ie
159
- keycode = event.keyCode;
160
- } else { // mozilla
161
- keycode = e.which;
162
- }
163
- switch(keycode) {
164
- case 27:
165
- TB_remove();
166
- break;
167
- case 190:
168
- if( next.html ) {
169
- document.onkeydown = null;
170
- goNext();
171
- }
172
- break;
173
- case 188:
174
- if( prev.html ) {
175
- document.onkeydown = null;
176
- goPrev();
177
- }
178
- break;
179
- }
180
- }
181
-
182
- // TODO don't remove loader etc., just hide and show later
183
- TB_position();
184
- $("#TB_load").remove();
185
- $("#TB_ImageOff").click(TB_remove);
186
-
187
- // for safari using css instead of show
188
- // TODO is that necessary? can't test safari
189
- $("#TB_window").css({display:"block"});
190
- }
191
- imgPreloader.src = url;
192
-
193
- } else { //code to show html pages
194
-
195
- var queryString = url.match(/\?(.+)/)[1];
196
- var params = TB_parseQuery( queryString );
197
-
198
- TB_WIDTH = (params['width']*1) + 30;
199
- TB_HEIGHT = (params['height']*1) + 40;
200
-
201
- var ajaxContentW = TB_WIDTH - 30,
202
- ajaxContentH = TB_HEIGHT - 45;
203
-
204
- if(url.indexOf('TB_iframe') != -1){
205
- urlNoQuery = url.split('TB_');
206
- $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='TB_showIframe()'> </iframe>");
207
- } else {
208
- $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
209
- }
210
-
211
- $("#TB_closeWindowButton").click(TB_remove);
212
-
213
- if(url.indexOf('TB_inline') != -1){
214
- $("#TB_ajaxContent").html($('#' + params['inlineId']).html());
215
- TB_position();
216
- $("#TB_load").remove();
217
- $("#TB_window").css({display:"block"});
218
- }else if(url.indexOf('TB_iframe') != -1){
219
- TB_position();
220
- if(frames['TB_iframeContent'] == undefined){//be nice to safari
221
- $("#TB_load").remove();
222
- $("#TB_window").css({display:"block"});
223
- $(document).keyup( function(e){ var key = e.keyCode; if(key == 27){TB_remove()} });
224
- }
225
- }else{
226
- $("#TB_ajaxContent").load(url, function(){
227
- TB_position();
228
- $("#TB_load").remove();
229
- $("#TB_window").css({display:"block"});
230
- });
231
- }
232
-
233
- }
234
-
235
- $(window).resize(TB_position);
236
-
237
- document.onkeyup = function(e){
238
- if (e == null) { // ie
239
- keycode = event.keyCode;
240
- } else { // mozilla
241
- keycode = e.which;
242
- }
243
- if(keycode == 27){ // close
244
- TB_remove();
245
- }
246
- }
247
-
248
- }
249
-
250
- //helper functions below
251
-
252
- function TB_showIframe(){
253
- $("#TB_load").remove();
254
- $("#TB_window").css({display:"block"});
255
- }
256
-
257
- function TB_remove() {
258
- $("#TB_imageOff").unbind("click");
259
- $("#TB_overlay").unbind("click");
260
- $("#TB_closeWindowButton").unbind("click");
261
- $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
262
- $("#TB_load").remove();
263
- return false;
264
- }
265
-
266
- function TB_position() {
267
- var pagesize = TB_getPageSize();
268
- var arrayPageScroll = TB_getPageScrollTop();
269
- var style = {width: TB_WIDTH, left: (arrayPageScroll[0] + (pagesize[0] - TB_WIDTH)/2), top: (arrayPageScroll[1] + (pagesize[1]-TB_HEIGHT)/2)};
270
- $("#TB_window").css(style);
271
- }
272
-
273
- function TB_overlaySize(){
274
- if (window.innerHeight && window.scrollMaxY || window.innerWidth && window.scrollMaxX) {
275
- yScroll = window.innerHeight + window.scrollMaxY;
276
- xScroll = window.innerWidth + window.scrollMaxX;
277
- var deff = document.documentElement;
278
- var wff = (deff&&deff.clientWidth) || document.body.clientWidth || window.innerWidth || self.innerWidth;
279
- var hff = (deff&&deff.clientHeight) || document.body.clientHeight || window.innerHeight || self.innerHeight;
280
- xScroll -= (window.innerWidth - wff);
281
- yScroll -= (window.innerHeight - hff);
282
- } else if (document.body.scrollHeight > document.body.offsetHeight || document.body.scrollWidth > document.body.offsetWidth){ // all but Explorer Mac
283
- yScroll = document.body.scrollHeight;
284
- xScroll = document.body.scrollWidth;
285
- } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
286
- yScroll = document.body.offsetHeight;
287
- xScroll = document.body.offsetWidth;
288
- }
289
- $("#TB_overlay").css({"height": yScroll, "width": xScroll});
290
- $("#TB_HideSelect").css({"height": yScroll,"width": xScroll});
291
- }
292
-
293
- function TB_load_position() {
294
- var pagesize = TB_getPageSize();
295
- var arrayPageScroll = TB_getPageScrollTop();
296
- $("#TB_load")
297
- .css({left: (arrayPageScroll[0] + (pagesize[0] - 100)/2), top: (arrayPageScroll[1] + ((pagesize[1]-100)/2)) })
298
- .css({display:"block"});
299
- }
300
-
301
- function TB_parseQuery ( query ) {
302
- // return empty object
303
- if( !query )
304
- return {};
305
- var params = {};
306
-
307
- // parse query
308
- var pairs = query.split(/[;&]/);
309
- for ( var i = 0; i < pairs.length; i++ ) {
310
- var pair = pairs[i].split('=');
311
- if ( !pair || pair.length != 2 )
312
- continue;
313
- // unescape both key and value, replace "+" with spaces in value
314
- params[unescape(pair[0])] = unescape(pair[1]).replace(/\+/g, ' ');
315
- }
316
- return params;
317
- }
318
-
319
- function TB_getPageScrollTop(){
320
- var yScrolltop;
321
- var xScrollleft;
322
- if (self.pageYOffset || self.pageXOffset) {
323
- yScrolltop = self.pageYOffset;
324
- xScrollleft = self.pageXOffset;
325
- } else if (document.documentElement && document.documentElement.scrollTop || document.documentElement.scrollLeft ){ // Explorer 6 Strict
326
- yScrolltop = document.documentElement.scrollTop;
327
- xScrollleft = document.documentElement.scrollLeft;
328
- } else if (document.body) {// all other Explorers
329
- yScrolltop = document.body.scrollTop;
330
- xScrollleft = document.body.scrollLeft;
331
- }
332
- arrayPageScroll = new Array(xScrollleft,yScrolltop)
333
- return arrayPageScroll;
334
- }
335
-
336
- function TB_getPageSize(){
337
- var de = document.documentElement;
338
- var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
339
- var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight
340
- arrayPageSize = new Array(w,h)
341
- return arrayPageSize;
342
- }
1
  /*
2
+ * Thickbox 3 - One Box To Rule Them All.
3
+ * By Cody Lindley (http://www.codylindley.com)
4
+ * Copyright (c) 2007 cody lindley
5
+ * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
+ */
 
 
7
 
8
+ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(9).2t(8(){1o(\'a.15, 3a.15, 33.15\');1r=1s 1x();1r.P=2p});8 1o(b){$(b).o(8(){6 t=T.R||T.1U||I;6 a=T.q||T.1P;6 g=T.1F||O;1c(t,a,g);T.2l();L O})}8 1c(d,f,g){38{3(1y 9.r.J.20==="1t"){$("r","K").p({C:"1V%",v:"1V%"});$("K").p("2i","2A");3(9.1Z("1A")===I){$("r").z("<18 5=\'1A\'></18><4 5=\'F\'></4><4 5=\'7\'></4>");$("#F").o(A)}}n{3(9.1Z("F")===I){$("r").z("<4 5=\'F\'></4><4 5=\'7\'>");$("#F").o(A)}}3(d===I){d=""}$("r").z("<4 5=\'G\'><1C P=\'"+1r.P+"\' /></4>");$(\'#G\').2k();6 h;3(f.W("?")!==-1){h=f.2j(0,f.W("?"))}n{h=f}6 i=/\\.2f|\\.2d|\\.2b|\\.28|\\.26/g;6 j=h.25().24(i);3(j==\'.2f\'||j==\'.2d\'||j==\'.2b\'||j==\'.28\'||j==\'.26\'){1h="";1v="";Y="";1u="";1m="";Q="";1l="";1q=O;3(g){B=$("a[@1F="+g+"]").2Q();1T(u=0;((u<B.1b)&&(Q===""));u++){6 k=B[u].q.25().24(i);3(!(B[u].q==f)){3(1q){1u=B[u].R;1m=B[u].q;Q="<1a 5=\'1W\'>&19;&19;<a q=\'#\'>2C &2z;</a></1a>"}n{1h=B[u].R;1v=B[u].q;Y="<1a 5=\'21\'>&19;&19;<a q=\'#\'>&2w; 2u</a></1a>"}}n{1q=1O;1l="1x "+(u+1)+" 2s "+(B.1b)}}}V=1s 1x();V.1j=8(){V.1j=I;6 a=1I();6 x=a[0]-1H;6 y=a[1]-1H;6 b=V.v;6 c=V.C;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}Z=b+30;16=c+2r;$("#7").z("<a q=\'\' 5=\'1E\' R=\'1i\'><1C 5=\'2q\' P=\'"+f+"\' v=\'"+b+"\' C=\'"+c+"\' 1P=\'"+d+"\'/></a>"+"<4 5=\'2o\'>"+d+"<4 5=\'2n\'>"+1l+Y+Q+"</4></4><4 5=\'2m\'><a q=\'#\' 5=\'M\' R=\'1i\'>1g</a> 1f 1e 1n</4>");$("#M").o(A);3(!(Y==="")){8 X(){3($(9).S("o",X)){$(9).S("o",X)}$("#7").D();$("r").z("<4 5=\'7\'></4>");1c(1h,1v,g);L O}$("#21").o(X)}3(!(Q==="")){8 1d(){$("#7").D();$("r").z("<4 5=\'7\'></4>");1c(1u,1m,g);L O}$("#1W").o(1d)}9.14=8(e){3(e==I){E=1B.1z}n{E=e.2g}3(E==27){A()}n 3(E==39){3(!(Q=="")){9.14="";1d()}}n 3(E==37){3(!(Y=="")){9.14="";X()}}};13();$("#G").D();$("#1E").o(A);$("#7").p({N:"U"})};V.P=f}n{6 l=f.2a(/^[^\\?]+\\??/,\'\');6 m=2e(l);Z=(m[\'v\']*1)+30||36;16=(m[\'C\']*1)+35||34;12=Z-30;11=16-32;3(f.W(\'23\')!=-1){1D=f.1w(\'2Z\');$("#7").z("<4 5=\'22\'><4 5=\'1k\'>"+d+"</4><4 5=\'1G\'><a q=\'#\' 5=\'M\' R=\'1i\'>1g</a> 1f 1e 1n</4></4><18 2Y=\'0\' 2W=\'0\' P=\'"+1D[0]+"\' 5=\'1p\' 1U=\'1p\' J=\'v:"+(12+29)+"s;C:"+(11+17)+"s;\' 1j=\'1Q()\'> </18>")}n{3($("#7").p("N")!="U"){3(m[\'1X\']!="1O"){$("#7").z("<4 5=\'22\'><4 5=\'1k\'>"+d+"</4><4 5=\'1G\'><a q=\'#\' 5=\'M\'>1g</a> 1f 1e 1n</4></4><4 5=\'H\' J=\'v:"+12+"s;C:"+11+"s\'></4>")}n{$("#F").S();$("#7").z("<4 5=\'H\' 2U=\'2T\' J=\'v:"+12+"s;C:"+11+"s;\'></4>")}}n{$("#H")[0].J.v=12+"s";$("#H")[0].J.C=11+"s";$("#H")[0].2S=0;$("#1k").K(d)}}$("#M").o(A);3(f.W(\'2R\')!=-1){$("#H").K($(\'#\'+m[\'2P\']).K());13();$("#G").D();$("#7").p({N:"U"})}n 3(f.W(\'23\')!=-1){13();3(2O[\'1p\']===1t){$("#G").D();$("#7").p({N:"U"});$(9).2L(8(e){6 a=e.1z;3(a==27){A()}})}}n{$("#H").2K(f+="&2J="+(1s 2I().2H()),8(){13();$("#G").D();1o("#H a.15");$("#7").p({N:"U"})})}}3(!m[\'1X\']){9.2G=8(e){3(e==I){E=1B.1z}n{E=e.2g}3(E==27){A()}}}}2M(e){}}8 1Q(){$("#G").D();$("#7").p({N:"U"})}8 A(){$("#2N").S("o");$("#F").S("o");$("#M").S("o");$("#7").2F("2E",8(){$(\'#7,#F,#1A\').D()});$("#G").D();3(1y 9.r.J.20=="1t"){$("r","K").p({C:"1S",v:"1S"});$("K").p("2i","")}9.14="";L O}8 13(){$("#7").p({2D:\'-\'+1R((Z/2),10)+\'s\',v:Z+\'s\'});3(!(2B.2y.2V&&1y 2x==\'8\')){$("#7").p({2X:\'-\'+1R((16/2),10)+\'s\'})}}8 2e(a){6 b={};3(!a){L b}6 c=a.1w(/[;&]/);1T(6 i=0;i<c.1b;i++){6 d=c[i].1w(\'=\');3(!d||d.1b!=2){2v}6 e=1Y(d[0]);6 f=1Y(d[1]);f=f.2a(/\\+/g,\' \');b[e]=f}L b}8 1I(){6 a=9.31;6 w=1N.1M||1L.1M||(a&&a.2c)||9.r.2c;6 h=1N.1K||1L.1K||(a&&a.1J)||9.r.1J;2h=[w,h];L 2h}',62,197,'|||if|div|id|var|TB_window|function|document||||||||||||||else|click|css|href|body|px||TB_Counter|width||||append|tb_remove|TB_TempArray|height|remove|keycode|TB_overlay|TB_load|TB_ajaxContent|null|style|html|return|TB_closeWindowButton|display|false|src|TB_NextHTML|title|unbind|this|block|imgPreloader|indexOf|goPrev|TB_PrevHTML|TB_WIDTH||ajaxContentH|ajaxContentW|tb_position|onkeydown|thickbox|TB_HEIGHT||iframe|nbsp|span|length|tb_show|goNext|Esc|or|close|TB_PrevCaption|Close|onload|TB_ajaxWindowTitle|TB_imageCount|TB_NextURL|Key|tb_init|TB_iframeContent|TB_FoundURL|imgLoader|new|undefined|TB_NextCaption|TB_PrevURL|split|Image|typeof|keyCode|TB_HideSelect|event|img|urlNoQuery|TB_ImageOff|rel|TB_closeAjaxWindow|150|tb_getPageSize|clientHeight|innerHeight|self|innerWidth|window|true|alt|tb_showIframe|parseInt|auto|for|name|100|TB_next|modal|unescape|getElementById|maxHeight|TB_prev|TB_title|TB_iframe|match|toLowerCase|bmp||gif||replace|png|clientWidth|jpeg|tb_parseQuery|jpg|which|arrayPageSize|overflow|substr|show|blur|TB_closeWindow|TB_secondLine|TB_caption|tb_pathToImage|TB_Image|60|of|ready|Prev|continue|lt|XMLHttpRequest|browser|gt|hidden|jQuery|Next|marginLeft|fast|fadeOut|onkeyup|getTime|Date|random|load|keyup|catch|TB_imageOff|frames|inlineId|get|TB_inline|scrollTop|TB_modal|class|msie|hspace|marginTop|frameborder|TB_||documentElement|45|input|440|40|630|188|try|190|area'.split('|'),0,{}))