NextGEN Gallery – WordPress Gallery Plugin - Version 0.60

Version Description

Download this release

Release Info

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

Code changes from version 0.52 to 0.60

admin/about.php CHANGED
@@ -88,10 +88,18 @@ function ngg_list_support() {
88
  "Kees de Bruin" => "http://www.kdbruin.net/fotoalbum/",
89
  "Gaspard Tseng / SillyCCSmile (Chinese Translation)" => "",
90
  "Mika Pennanen (Finnish Translation)" => "http://kapsi.fi/~penni",
91
- "Wojciech Owczarek (Polish Translation)" => "http://www.owczi.net"
 
 
 
 
 
 
 
 
 
92
  );
93
 
94
-
95
 
96
  ksort($supporter);
97
  $i = count($supporter);
88
  "Kees de Bruin" => "http://www.kdbruin.net/fotoalbum/",
89
  "Gaspard Tseng / SillyCCSmile (Chinese Translation)" => "",
90
  "Mika Pennanen (Finnish Translation)" => "http://kapsi.fi/~penni",
91
+ "Wojciech Owczarek (Polish Translation)" => "http://www.owczi.net",
92
+ "Dilip Ramirez (Spanish Translation)" => "http://jmtd.110mb.com/blog",
93
+ "Oleinikov Vedmak Evgeny (Russian Translation)" => "http://ka-2-03.mirea.org/",
94
+ "Helene D." => "http://supernatural.hellioness.com/imagegallery/",
95
+ "Sebastien MALHERBE (Logo design)" => "http://www.7vision.com/",
96
+ "Claudia (German documentation)" => "http://www.blog-werkstatt.de/",
97
+ "Robert (German documentation)" => "http://www.curlyrob.de/",
98
+ "Pierpaolo Mannone (Italian Translation)" => "http://www.interscambiocasa.com/",
99
+ "Mattias Tengblad (Swedish Translation)" => "http://www.eyesx.com/",
100
+ "Joe Pharis" => "http://www.southernstylecruisers.com/"
101
  );
102
 
 
103
 
104
  ksort($supporter);
105
  $i = count($supporter);
admin/addgallery.php CHANGED
@@ -8,7 +8,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
8
  global $wpdb;
9
  $ngg_options = get_option('ngg_options');
10
 
11
- $defaultpath = $ngg_options[gallerypath];
12
 
13
  if ($_POST['addgallery']){
14
  $newgallery = attribute_escape($_POST['galleryname']);
@@ -121,7 +121,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
121
  <!-- create gallery -->
122
  <div id="addgallery" class="wrap" style="display:none">
123
  <h2><?php _e('Add new gallery', 'nggallery') ;?></h2>
124
- <form name="addgallery" id="addgallery" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" >
125
  <fieldset class="options">
126
  <table class="optiontable">
127
  <tr valign="top">
@@ -138,7 +138,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
138
  <!-- zip-file operation -->
139
  <div id="zipupload" class="wrap" style="display:none">
140
  <h2><?php _e('Upload a Zip-File', 'nggallery') ;?></h2>
141
- <form name="zipupload" id="zipupload" method="POST" enctype="multipart/form-data" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#zipupload-slider'; ?>" >
142
  <fieldset class="options">
143
  <table class="optiontable">
144
  <tr valign="top">
@@ -154,7 +154,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
154
  <!-- import folder -->
155
  <div id="importfolder" class="wrap" style="display:none">
156
  <h2><?php _e('Import image folder', 'nggallery') ;?></h2>
157
- <form name="importfolder" id="importfolder" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#importfolder-slider'; ?>" >
158
  <fieldset class="options">
159
  <table class="optiontable">
160
  <tr valign="top">
@@ -171,7 +171,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
171
  <!-- upload images -->
172
  <div id="uploadimage" class="wrap" style="display:none">
173
  <h2><?php _e('Upload Images', 'nggallery') ;?></h2>
174
- <form name="uploadimage" id="uploadimage" method="POST" enctype="multipart/form-data" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#uploadimage-slider'; ?>" >
175
  <fieldset class="options">
176
  <table class="optiontable">
177
  <tr valign="top">
@@ -434,13 +434,16 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
434
  $thumb->save($gallery_absfolder.$thumbfolder.$prefix.$picture,$ngg_options[thumbquality]);
435
  // didn't work under safe mode, but I want to set it if possible
436
  @chmod ($gallery_absfolder.$thumbfolder.$prefix.$picture, NGGFILE_PERMISSION);
 
 
437
  }
438
  $thumb->destruct();
439
  }
440
  }
441
 
 
442
  if(!empty($messagetext)) echo '<div id="message-error" class="error fade"><p><strong>'.__('Some thumbnails are not writeable :','nggallery').'</strong><br /><ul>'.$messagetext.'</ul></p></div>';
443
-
444
  return;
445
  }
446
 
8
  global $wpdb;
9
  $ngg_options = get_option('ngg_options');
10
 
11
+ $defaultpath = $ngg_options['gallerypath'];
12
 
13
  if ($_POST['addgallery']){
14
  $newgallery = attribute_escape($_POST['galleryname']);
121
  <!-- create gallery -->
122
  <div id="addgallery" class="wrap" style="display:none">
123
  <h2><?php _e('Add new gallery', 'nggallery') ;?></h2>
124
+ <form name="addgallery" id="addgallery" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" accept-charset="utf-8" >
125
  <fieldset class="options">
126
  <table class="optiontable">
127
  <tr valign="top">
138
  <!-- zip-file operation -->
139
  <div id="zipupload" class="wrap" style="display:none">
140
  <h2><?php _e('Upload a Zip-File', 'nggallery') ;?></h2>
141
+ <form name="zipupload" id="zipupload" method="POST" enctype="multipart/form-data" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#zipupload-slider'; ?>" accept-charset="utf-8" >
142
  <fieldset class="options">
143
  <table class="optiontable">
144
  <tr valign="top">
154
  <!-- import folder -->
155
  <div id="importfolder" class="wrap" style="display:none">
156
  <h2><?php _e('Import image folder', 'nggallery') ;?></h2>
157
+ <form name="importfolder" id="importfolder" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#importfolder-slider'; ?>" accept-charset="utf-8" >
158
  <fieldset class="options">
159
  <table class="optiontable">
160
  <tr valign="top">
171
  <!-- upload images -->
172
  <div id="uploadimage" class="wrap" style="display:none">
173
  <h2><?php _e('Upload Images', 'nggallery') ;?></h2>
174
+ <form name="uploadimage" id="uploadimage" method="POST" enctype="multipart/form-data" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#uploadimage-slider'; ?>" accept-charset="utf-8" >
175
  <fieldset class="options">
176
  <table class="optiontable">
177
  <tr valign="top">
434
  $thumb->save($gallery_absfolder.$thumbfolder.$prefix.$picture,$ngg_options[thumbquality]);
435
  // didn't work under safe mode, but I want to set it if possible
436
  @chmod ($gallery_absfolder.$thumbfolder.$prefix.$picture, NGGFILE_PERMISSION);
437
+ } else {
438
+ $errortext .= $picture." <strong>(Error : ".$thumb->errmsg .")</strong><br />";
439
  }
440
  $thumb->destruct();
441
  }
442
  }
443
 
444
+ if(!empty($errortext)) echo '<div id="message-error" class="error fade"><p><strong>'.__('Follow thumbnails could not created.','nggallery').'</strong><br /><ul>'.$errortext.'</ul></p></div>';
445
  if(!empty($messagetext)) echo '<div id="message-error" class="error fade"><p><strong>'.__('Some thumbnails are not writeable :','nggallery').'</strong><br /><ul>'.$messagetext.'</ul></p></div>';
446
+
447
  return;
448
  }
449
 
admin/admin.php CHANGED
@@ -32,6 +32,9 @@ function ngg_add_admin_js() {
32
  wp_enqueue_script('mutlifile', NGGALLERY_URLPATH .'admin/js/jquery.MultiFile.js', array('jquery'), '1.1.1');
33
  break;
34
  }
 
 
 
35
  }
36
 
37
  // add to menu
@@ -45,21 +48,20 @@ add_action('admin_menu', 'add_nextgen_gallery_menu');
45
  add_submenu_page( NGGFOLDER , __('Album', 'nggallery'), __('Album', 'nggallery'), 'edit_others_posts', 'nggallery-manage-album', 'nggallery_admin_manage_album');
46
  add_submenu_page( NGGFOLDER , __('Options', 'nggallery'), __('Options', 'nggallery'), 'manage_options', 'nggallery-options', 'nggallery_admin_options');
47
  add_submenu_page( NGGFOLDER , __('Style', 'nggallery'), __('Style', 'nggallery'), 'manage_options', 'nggallery-style', 'nggallery_admin_style');
48
- add_submenu_page( NGGFOLDER , __('Setup Gallery', 'nggallery'), __('Setup', 'nggallery'), 'manage_options', 'nggallery-setup', 'nggallery_admin_setup');
49
  add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'edit_others_posts', 'nggallery-about', 'nggallery_admin_about');
50
  }
51
- //TODO: Check Rights and Role
52
 
53
  /************************************************************************/
54
 
55
- include 'overview.php'; // nggallery_admin_overview
56
- include 'addgallery.php'; // nggallery_admin_add_gallery
57
- include 'manage.php'; // nggallery_admin_manage_gallery
58
- include 'album.php'; // nggallery_admin_manage_album
59
- include 'settings.php'; // nggallery_admin_options
60
- include 'style.php'; // nggallery_admin_style
61
- include 'setup.php'; // nggallery_admin_setup
62
- include 'about.php'; // nggallery_admin_about
63
 
64
  /**************************************************************************/
65
 
32
  wp_enqueue_script('mutlifile', NGGALLERY_URLPATH .'admin/js/jquery.MultiFile.js', array('jquery'), '1.1.1');
33
  break;
34
  }
35
+
36
+ if ( ($_GET['tab'] == 'ngg_gallery') && ($_GET['style'] != 'inline') )
37
+ wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.0.2');
38
  }
39
 
40
  // add to menu
48
  add_submenu_page( NGGFOLDER , __('Album', 'nggallery'), __('Album', 'nggallery'), 'edit_others_posts', 'nggallery-manage-album', 'nggallery_admin_manage_album');
49
  add_submenu_page( NGGFOLDER , __('Options', 'nggallery'), __('Options', 'nggallery'), 'manage_options', 'nggallery-options', 'nggallery_admin_options');
50
  add_submenu_page( NGGFOLDER , __('Style', 'nggallery'), __('Style', 'nggallery'), 'manage_options', 'nggallery-style', 'nggallery_admin_style');
51
+ add_submenu_page( NGGFOLDER , __('Setup Gallery', 'nggallery'), __('Setup', 'nggallery'), 'activate_plugins', 'nggallery-setup', 'nggallery_admin_setup');
52
  add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'edit_others_posts', 'nggallery-about', 'nggallery_admin_about');
53
  }
 
54
 
55
  /************************************************************************/
56
 
57
+ include (dirname (__FILE__). '/overview.php'); // nggallery_admin_overview
58
+ include (dirname (__FILE__). '/addgallery.php'); // nggallery_admin_add_gallery
59
+ include (dirname (__FILE__). '/manage.php'); // nggallery_admin_manage_gallery
60
+ include (dirname (__FILE__). '/album.php'); // nggallery_admin_manage_album
61
+ include (dirname (__FILE__). '/settings.php'); // nggallery_admin_options
62
+ include (dirname (__FILE__). '/style.php'); // nggallery_admin_style
63
+ include (dirname (__FILE__). '/setup.php'); // nggallery_admin_setup
64
+ include (dirname (__FILE__). '/about.php'); // nggallery_admin_about
65
 
66
  /**************************************************************************/
67
 
admin/album.php CHANGED
@@ -91,7 +91,7 @@ function ngg_serialize(s)
91
  </script>
92
  <div class="wrap" id="wrap" >
93
  <h3><?php _e('Manage Albums', 'nggallery') ?></h3>
94
- <form id="selectalbum" method="POST" onsubmit="ngg_serialize('galleryContainer')">
95
  <input name="sortorder" type="hidden" />
96
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
97
  <tr>
91
  </script>
92
  <div class="wrap" id="wrap" >
93
  <h3><?php _e('Manage Albums', 'nggallery') ?></h3>
94
+ <form id="selectalbum" method="POST" onsubmit="ngg_serialize('galleryContainer')" accept-charset="utf-8">
95
  <input name="sortorder" type="hidden" />
96
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
97
  <tr>
admin/manage.php CHANGED
@@ -47,24 +47,25 @@ function nggallery_admin_manage_gallery() {
47
 
48
  if ($mode == 'delpic') {
49
  // Delete a picture
50
- $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
51
- if ($gallerypath){
52
- $thumb_folder = ngg_get_thumbnail_folder($gallerypath, FALSE);
53
- $thumb_prefix = ngg_get_thumbnail_prefix($gallerypath, FALSE);
54
- $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$act_pid' ");
55
- if ($ngg_options[deleteImg]) {
56
- unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
57
- unlink(WINABSPATH.$gallerypath.'/'.$filename);
58
- }
59
- }
60
- $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $act_pid");
61
-
 
62
  if($delete_pic)
63
  $messagetext = '<font color="green">'.__('Picture','nggallery').' \''.$act_pid.'\' '.__('deleted successfully','nggallery').'</font>';
64
  $mode = 'edit'; // show pictures
65
  }
66
 
67
- if (isset($_POST['bulkaction'])) {
68
  // do bulk update
69
 
70
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
@@ -83,17 +84,17 @@ function nggallery_admin_manage_gallery() {
83
  case 1:
84
  // Set watermark
85
  ngg_generateWatermark(WINABSPATH.$gallerypath,$imageslist);
86
- $messagetext = '<font color="green">'.__('Watermark successfully added','nggallery').'</font>';
87
  break;
88
  case 2:
89
  // Create new thumbnails
90
  ngg_generatethumbnail(WINABSPATH.$gallerypath,$imageslist);
91
- $messagetext = '<font color="green">'.__('Thumbnails successfully created. Please refresh your browser cache.','nggallery').'</font>';
92
  break;
93
  case 3:
94
  // Resample images
95
  ngg_resizeImages(WINABSPATH.$gallerypath,$imageslist);
96
- $messagetext = '<font color="green">'.__('Images successfully resized','nggallery').'</font>';
97
  break;
98
  case 4:
99
  // Delete images
@@ -111,13 +112,13 @@ function nggallery_admin_manage_gallery() {
111
  }
112
  }
113
  if($delete_pic)
114
- $messagetext = '<font color="green">'.__('Pictures deleted successfully ','nggallery').'</font>';
115
  }
116
  break;
117
  }
118
  }
119
 
120
- if ($_POST['updatepictures']) {
121
  // Update pictures
122
 
123
  $gallery_title = attribute_escape($_POST[title]);
@@ -129,10 +130,10 @@ function nggallery_admin_manage_gallery() {
129
  $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', path= '$gallery_path', description = '$gallery_desc', pageid = '$gallery_pageid', previewpic = '$gallery_preview' WHERE gid = '$act_gid'");
130
  $result = ngg_update_pictures(attribute_escape($_POST[description]), attribute_escape($_POST[alttext]), attribute_escape($_POST[exclude]), $act_gid );
131
 
132
- $messagetext = '<font color="green">'.__('Update successfully','nggallery').'</font>';
133
  }
134
 
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' ");
@@ -155,6 +156,43 @@ function nggallery_admin_manage_gallery() {
155
  }
156
  }
157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
158
  // message windows
159
  if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
160
 
@@ -162,7 +200,7 @@ function nggallery_admin_manage_gallery() {
162
  nggallery_manage_gallery_main();
163
 
164
  if ($mode == 'edit')
165
- nggallery_picturelist();
166
 
167
  }//nggallery_admin_manage_gallery
168
 
@@ -218,7 +256,7 @@ if($gallerylist) {
218
  <?php
219
  } //nggallery_manage_gallery_main
220
 
221
- function nggallery_picturelist() {
222
  // *** show picture list
223
  global $wpdb;
224
 
@@ -302,7 +340,10 @@ function getNumChecked(form)
302
  <div class="wrap">
303
  <h2><?php _e('Gallery', 'nggallery') ?> : <?php echo $act_gallery->name; ?></h2>
304
 
305
- <form id="updategallery" method="POST">
 
 
 
306
 
307
  <fieldset class="options">
308
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
@@ -333,7 +374,7 @@ function getNumChecked(form)
333
  <select name="previewpic" >
334
  <option value="0" ><?php _e('No Picture', 'nggallery') ?></option>
335
  <?php
336
- $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ORDER BY '$ngg_options[galSort]' ASC");
337
  if(is_array($picturelist)) {
338
  foreach($picturelist as $picture) {
339
  if ($picture->pid == $act_gallery->previewpic) $selected = 'selected="selected" ';
@@ -348,8 +389,15 @@ function getNumChecked(form)
348
  <tr>
349
  <th align="left"><?php _e('Path', 'nggallery') ?>:</th>
350
  <th align="left"><input type="text" size="50" name="path" value="<?php echo $act_gallery->path; ?>" /></th>
351
- <th></th>
352
- <th></th>
 
 
 
 
 
 
 
353
  </tr>
354
 
355
  </table>
@@ -366,7 +414,14 @@ function getNumChecked(form)
366
  <option value="3" ><?php _e("Resize images",'nggallery')?></option>
367
  <option value="4" ><?php _e("Delete images",'nggallery')?></option>
368
  </select>
 
369
  <input type="submit" name="doaction" value="<?php _e("OK",'nggallery')?>" onclick="var numchecked = getNumChecked(document.getElementById('updategallery')); if(numchecked < 1) { alert('<?php echo js_escape(__("No images selected",'nggallery')); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to start the bulk edit for %s images \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>')" />
 
 
 
 
 
 
370
  </p>
371
  <table id="listimages" width="100%" cellspacing="2" cellpadding="5" class="widefat" >
372
  <thead>
@@ -374,10 +429,16 @@ function getNumChecked(form)
374
  <th scope="col" style="text-align: center"><input name="checkall" type="checkbox" onclick="checkAll(document.getElementById('updategallery'));" /></th>
375
  <th scope="col" style="text-align: center"><?php _e('ID') ?></th>
376
  <th scope="col" style="text-align: center"><?php _e('File name', 'nggallery') ?></th>
 
377
  <th scope="col" style="text-align: center"><?php _e('Thumbnail', 'nggallery') ?></th>
 
 
378
  <th scope="col" style="text-align: center"><?php _e('Description', 'nggallery') ?></th>
379
  <th scope="col" style="text-align: center"><?php _e('Alt &amp; Title Text', 'nggallery') ?></th>
380
  <th scope="col" style="text-align: center"><?php _e('exclude', 'nggallery') ?></th>
 
 
 
381
  <th scope="col" colspan="2" style="text-align: center"><?php _e('Action') ?></th>
382
  </tr>
383
  </thead>
@@ -402,10 +463,16 @@ if($picturelist) {
402
  <td><input name="doaction[]" type="checkbox" value="<?php echo $pid ?>" /></td>
403
  <th scope="row" style="text-align: center"><?php echo $pid ?></th>
404
  <td><?php echo $picture->filename ?></td>
 
405
  <td><img class="thumb" src="<?php echo $act_thumbnail_url.$act_thumb_prefix.$picture->filename ?>" /></td>
 
 
406
  <td><textarea name="description[<?php echo $pid ?>]" class="textarea1" cols="30" rows="3" ><?php echo stripslashes($picture->description) ?></textarea></td>
407
  <td><input name="alttext[<?php echo $pid ?>]" type="text" size="20" value="<?php echo $picture->alttext ?>" /></td>
408
  <td><input name="exclude[<?php echo $pid ?>]" type="checkbox" value="1" <?php echo $exclude ?> /></td>
 
 
 
409
  <td><a href="<?php echo $act_gallery_url.$picture->filename ?>" class="thickbox" title="<?php echo $picture->alttext ?>" ><?php _e('View') ?></a></td>
410
  <td><a href="admin.php?page=nggallery-manage-gallery&amp;mode=delpic&amp;gid=<?php echo $act_gid ?>&amp;pid=<?php echo $pid ?>" class="delete" onclick="javascript:check=confirm( '<?php _e("Delete this file ?",'nggallery')?>');if(check==false) return false;" ><?php _e('Delete') ?></a></td>
411
  </tr>
@@ -435,13 +502,15 @@ function ngg_update_pictures( $nggdescription, $nggalttext, $nggexclude, $nggall
435
 
436
  if (is_array($nggdescription)) {
437
  foreach($nggdescription as $key=>$value) {
438
- $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET description = '$value' WHERE pid = $key");
 
439
  if($result) $update_ok = $result;
440
  }
441
  }
442
  if (is_array($nggalttext)){
443
  foreach($nggalttext as $key=>$value) {
444
- $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET alttext = '$value' WHERE pid = $key");
 
445
  if($result) $update_ok = $result;
446
  }
447
  }
47
 
48
  if ($mode == 'delpic') {
49
  // Delete a picture
50
+ $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$act_pid' ");
51
+ if ($filename) {
52
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
53
+ if ($gallerypath){
54
+ $thumb_folder = ngg_get_thumbnail_folder($gallerypath, FALSE);
55
+ $thumb_prefix = ngg_get_thumbnail_prefix($gallerypath, FALSE);
56
+ if ($ngg_options[deleteImg]) {
57
+ unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
58
+ unlink(WINABSPATH.$gallerypath.'/'.$filename);
59
+ }
60
+ }
61
+ $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $act_pid");
62
+ }
63
  if($delete_pic)
64
  $messagetext = '<font color="green">'.__('Picture','nggallery').' \''.$act_pid.'\' '.__('deleted successfully','nggallery').'</font>';
65
  $mode = 'edit'; // show pictures
66
  }
67
 
68
+ if (isset ($_POST['bulkaction'])) {
69
  // do bulk update
70
 
71
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
84
  case 1:
85
  // Set watermark
86
  ngg_generateWatermark(WINABSPATH.$gallerypath,$imageslist);
87
+ nggallery::show_message(__('Watermark successfully added',"nggallery"));
88
  break;
89
  case 2:
90
  // Create new thumbnails
91
  ngg_generatethumbnail(WINABSPATH.$gallerypath,$imageslist);
92
+ nggallery::show_message(__('Thumbnails successfully created. Please refresh your browser cache.',"nggallery"));
93
  break;
94
  case 3:
95
  // Resample images
96
  ngg_resizeImages(WINABSPATH.$gallerypath,$imageslist);
97
+ nggallery::show_message(__('Images successfully resized',"nggallery"));
98
  break;
99
  case 4:
100
  // Delete images
112
  }
113
  }
114
  if($delete_pic)
115
+ nggallery::show_message(__('Pictures deleted successfully ',"nggallery"));
116
  }
117
  break;
118
  }
119
  }
120
 
121
+ if (isset ($_POST['updatepictures'])) {
122
  // Update pictures
123
 
124
  $gallery_title = attribute_escape($_POST[title]);
130
  $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', path= '$gallery_path', description = '$gallery_desc', pageid = '$gallery_pageid', previewpic = '$gallery_preview' WHERE gid = '$act_gid'");
131
  $result = ngg_update_pictures(attribute_escape($_POST[description]), attribute_escape($_POST[alttext]), attribute_escape($_POST[exclude]), $act_gid );
132
 
133
+ nggallery::show_message(__('Update successfully',"nggallery"));
134
  }
135
 
136
+ if (isset ($_POST['scanfolder'])) {
137
  // Rescan folder
138
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
139
  $old_imageslist = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ");
156
  }
157
  }
158
 
159
+ if (isset ($_POST['addnewpage'])) {
160
+ // Add a new page
161
+ $parent_id = attribute_escape($_POST[parent_id]);
162
+ $gallery_title = attribute_escape($_POST[title]);
163
+ $gallery_name = $wpdb->get_var("SELECT name FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
164
+
165
+ // Create a WP page
166
+ global $user_ID;
167
+
168
+ $page['post_type'] = 'page';
169
+ $page['post_content'] = '[gallery='.$act_gid.']';
170
+ $page['post_parent'] = $parent_id;
171
+ $page['post_author'] = $user_ID;
172
+ $page['post_status'] = 'publish';
173
+ $page['post_title'] = $gallery_title == '' ? $gallery_name : $gallery_title;
174
+
175
+ $gallery_pageid = wp_insert_post ($page);
176
+ if ($gallery_pageid != 0) {
177
+ $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', pageid = '$gallery_pageid' WHERE gid = '$act_gid'");
178
+ $messagetext = '<font color="green">'.__('New gallery page ID','nggallery'). ' ' . $pageid . ' -> <strong>' . $gallery_title . '</strong> ' .__('created','nggallery').'</font>';
179
+ }
180
+ }
181
+
182
+ if (isset ($_POST['togglethumbs'])) {
183
+ // Toggle thumnails, forgive me if it's to complicated
184
+ $hideThumbs = (isset ($_POST['hideThumbs'])) ? false : true ;
185
+ } else {
186
+ $hideThumbs = (isset ($_POST['hideThumbs'])) ? true : false ;
187
+ }
188
+
189
+ if (isset ($_POST['toggletags'])) {
190
+ // Toggle tag view
191
+ $showTags = (isset ($_POST['showTags'])) ? false : true ;
192
+ } else {
193
+ $showTags = (isset ($_POST['showTags'])) ? true : false ;
194
+ }
195
+
196
  // message windows
197
  if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
198
 
200
  nggallery_manage_gallery_main();
201
 
202
  if ($mode == 'edit')
203
+ nggallery_picturelist($hideThumbs,$showTags);
204
 
205
  }//nggallery_admin_manage_gallery
206
 
256
  <?php
257
  } //nggallery_manage_gallery_main
258
 
259
+ function nggallery_picturelist($hideThumbs = false,$showTags = false) {
260
  // *** show picture list
261
  global $wpdb;
262
 
340
  <div class="wrap">
341
  <h2><?php _e('Gallery', 'nggallery') ?> : <?php echo $act_gallery->name; ?></h2>
342
 
343
+ <form id="updategallery" method="POST" accept-charset="utf-8">
344
+
345
+ <?php if ($showTags) { ?><input type="hidden" name="showTags" value="true" /><?php } ?>
346
+ <?php if ($hideThumbs) { ?><input type="hidden" name="hideThumbs" value="true" /><?php } ?>
347
 
348
  <fieldset class="options">
349
  <table width="100%" border="0" cellspacing="3" cellpadding="3" >
374
  <select name="previewpic" >
375
  <option value="0" ><?php _e('No Picture', 'nggallery') ?></option>
376
  <?php
377
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ORDER BY $ngg_options[galSort] $ngg_options[galSortDir]");
378
  if(is_array($picturelist)) {
379
  foreach($picturelist as $picture) {
380
  if ($picture->pid == $act_gallery->previewpic) $selected = 'selected="selected" ';
389
  <tr>
390
  <th align="left"><?php _e('Path', 'nggallery') ?>:</th>
391
  <th align="left"><input type="text" size="50" name="path" value="<?php echo $act_gallery->path; ?>" /></th>
392
+
393
+ <th align="right"><?php _e('Create new page', 'nggallery') ?>:</th>
394
+ <th align="left">
395
+ <select name="parent_id" style="width:95%">
396
+ <option value="0"><?php _e ('Main page (No parent)', 'nggallery'); ?></option>
397
+ <?php parent_dropdown ($group->page_id); ?>
398
+ </select>
399
+ <input type="submit" name="addnewpage" value="<?php _e ('Add page', 'nggallery'); ?>" id="group"/>
400
+ </th>
401
  </tr>
402
 
403
  </table>
414
  <option value="3" ><?php _e("Resize images",'nggallery')?></option>
415
  <option value="4" ><?php _e("Delete images",'nggallery')?></option>
416
  </select>
417
+
418
  <input type="submit" name="doaction" value="<?php _e("OK",'nggallery')?>" onclick="var numchecked = getNumChecked(document.getElementById('updategallery')); if(numchecked < 1) { alert('<?php echo js_escape(__("No images selected",'nggallery')); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to start the bulk edit for %s images \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>')" />
419
+ <?php if (!$hideThumbs) { ?> <input type="submit" name="togglethumbs" value="<?php _e("Hide thumbnails ",'nggallery')?>" /> <?php } else {?>
420
+ <input type="submit" name="togglethumbs" value="<?php _e("Show thumbnails ",'nggallery')?>" /><?php } ?>
421
+ <!-- TODO: Tags
422
+ <?php if (!$showTags) { ?><input type="submit" name="toggletags" value="<?php _e("Show tags",'nggallery')?>" /> <?php } else {?>
423
+ <input type="submit" name="toggletags" value="<?php _e("Hide tags",'nggallery')?>" /><?php } ?>
424
+ -->
425
  </p>
426
  <table id="listimages" width="100%" cellspacing="2" cellpadding="5" class="widefat" >
427
  <thead>
429
  <th scope="col" style="text-align: center"><input name="checkall" type="checkbox" onclick="checkAll(document.getElementById('updategallery'));" /></th>
430
  <th scope="col" style="text-align: center"><?php _e('ID') ?></th>
431
  <th scope="col" style="text-align: center"><?php _e('File name', 'nggallery') ?></th>
432
+ <?php if (!$hideThumbs) { ?>
433
  <th scope="col" style="text-align: center"><?php _e('Thumbnail', 'nggallery') ?></th>
434
+ <?php } ?>
435
+ <?php if (!$showTags) { ?>
436
  <th scope="col" style="text-align: center"><?php _e('Description', 'nggallery') ?></th>
437
  <th scope="col" style="text-align: center"><?php _e('Alt &amp; Title Text', 'nggallery') ?></th>
438
  <th scope="col" style="text-align: center"><?php _e('exclude', 'nggallery') ?></th>
439
+ <?php } else {?>
440
+ <th scope="col" style="width:70%"><?php _e('Tags (comma separated list)', 'nggallery') ?></th>
441
+ <?php } ?>
442
  <th scope="col" colspan="2" style="text-align: center"><?php _e('Action') ?></th>
443
  </tr>
444
  </thead>
463
  <td><input name="doaction[]" type="checkbox" value="<?php echo $pid ?>" /></td>
464
  <th scope="row" style="text-align: center"><?php echo $pid ?></th>
465
  <td><?php echo $picture->filename ?></td>
466
+ <?php if (!$hideThumbs) { ?>
467
  <td><img class="thumb" src="<?php echo $act_thumbnail_url.$act_thumb_prefix.$picture->filename ?>" /></td>
468
+ <?php } ?>
469
+ <?php if (!$showTags) { ?>
470
  <td><textarea name="description[<?php echo $pid ?>]" class="textarea1" cols="30" rows="3" ><?php echo stripslashes($picture->description) ?></textarea></td>
471
  <td><input name="alttext[<?php echo $pid ?>]" type="text" size="20" value="<?php echo $picture->alttext ?>" /></td>
472
  <td><input name="exclude[<?php echo $pid ?>]" type="checkbox" value="1" <?php echo $exclude ?> /></td>
473
+ <?php } else {?>
474
+ <td ><input name="tags[<?php echo $pid ?>]" type="text" style="width:95%" value="<?php /* TODO: TAGS */ ?>" /></td>
475
+ <?php } ?>
476
  <td><a href="<?php echo $act_gallery_url.$picture->filename ?>" class="thickbox" title="<?php echo $picture->alttext ?>" ><?php _e('View') ?></a></td>
477
  <td><a href="admin.php?page=nggallery-manage-gallery&amp;mode=delpic&amp;gid=<?php echo $act_gid ?>&amp;pid=<?php echo $pid ?>" class="delete" onclick="javascript:check=confirm( '<?php _e("Delete this file ?",'nggallery')?>');if(check==false) return false;" ><?php _e('Delete') ?></a></td>
478
  </tr>
502
 
503
  if (is_array($nggdescription)) {
504
  foreach($nggdescription as $key=>$value) {
505
+ $desc = $wpdb->escape($value);
506
+ $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET description = '$desc' WHERE pid = $key");
507
  if($result) $update_ok = $result;
508
  }
509
  }
510
  if (is_array($nggalttext)){
511
  foreach($nggalttext as $key=>$value) {
512
+ $alttext = $wpdb->escape($value);
513
+ $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET alttext = '$alttext' WHERE pid = $key");
514
  if($result) $update_ok = $result;
515
  }
516
  }
admin/overview.php CHANGED
@@ -39,7 +39,7 @@ global $wpdb;
39
 
40
  <p>
41
  <?php
42
- $userlevel = '<strong>' . (current_user_can('manage_options') ? __('forum administrator', 'nggallery') : __('forum moderator', 'nggallery')) . '</strong>';
43
  printf(__('Welcome to NextGEN Gallery. Here you can control your images, galleries and albums. You currently have %s rights.', 'nggallery'), $userlevel);
44
  ?>
45
  </p>
@@ -120,6 +120,9 @@ function ngg_get_serverinfo() {
120
  // Get PHP Safe Mode
121
  if(ini_get('safe_mode')) $safe_mode = __('On', 'nggallery');
122
  else $safe_mode = __('Off', 'nggallery');
 
 
 
123
  // Get PHP Max Upload Size
124
  if(ini_get('upload_max_filesize')) $upload_max = ini_get('upload_max_filesize');
125
  else $upload_max = __('N/A', 'nggallery');
@@ -132,13 +135,19 @@ function ngg_get_serverinfo() {
132
  // Get PHP Memory Limit
133
  if(ini_get('memory_limit')) $memory_limit = ini_get('memory_limit');
134
  else $memory_limit = __('N/A', 'nggallery');
 
 
 
 
135
  ?>
136
  <li><?php _e('Operating System', 'nggallery'); ?> : <strong><?php echo PHP_OS; ?></strong></li>
137
  <li><?php _e('Server', 'nggallery'); ?> : <strong><?php echo $_SERVER["SERVER_SOFTWARE"]; ?></strong></li>
 
138
  <li><?php _e('MYSQL Version', 'nggallery'); ?> : <strong><?php echo $sqlversion; ?></strong></li>
139
  <li><?php _e('SQL Mode', 'nggallery'); ?> : <strong><?php echo $sql_mode; ?></strong></li>
140
  <li><?php _e('PHP Version', 'nggallery'); ?> : <strong><?php echo PHP_VERSION; ?></strong></li>
141
  <li><?php _e('PHP Safe Mode', 'nggallery'); ?> : <strong><?php echo $safe_mode; ?></strong></li>
 
142
  <li><?php _e('PHP Memory Limit', 'nggallery'); ?> : <strong><?php echo $memory_limit; ?></strong></li>
143
  <li><?php _e('PHP Max Upload Size', 'nggallery'); ?> : <strong><?php echo $upload_max; ?></strong></li>
144
  <li><?php _e('PHP Max Post Size', 'nggallery'); ?> : <strong><?php echo $post_max; ?></strong></li>
39
 
40
  <p>
41
  <?php
42
+ $userlevel = '<strong>' . (current_user_can('manage_options') ? __('gallery administrator', 'nggallery') : __('gallery editor', 'nggallery')) . '</strong>';
43
  printf(__('Welcome to NextGEN Gallery. Here you can control your images, galleries and albums. You currently have %s rights.', 'nggallery'), $userlevel);
44
  ?>
45
  </p>
120
  // Get PHP Safe Mode
121
  if(ini_get('safe_mode')) $safe_mode = __('On', 'nggallery');
122
  else $safe_mode = __('Off', 'nggallery');
123
+ // Get PHP allow_url_fopen
124
+ if(ini_get('allow_url_fopen')) $allow_url_fopen = __('On', 'nggallery');
125
+ else $allow_url_fopen = __('Off', 'nggallery');
126
  // Get PHP Max Upload Size
127
  if(ini_get('upload_max_filesize')) $upload_max = ini_get('upload_max_filesize');
128
  else $upload_max = __('N/A', 'nggallery');
135
  // Get PHP Memory Limit
136
  if(ini_get('memory_limit')) $memory_limit = ini_get('memory_limit');
137
  else $memory_limit = __('N/A', 'nggallery');
138
+ // Get actual memory_get_usage
139
+ if (function_exists('memory_get_usage')) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . __(' MByte', 'nggallery');
140
+ else $memory_usage = __('N/A', 'nggallery');
141
+
142
  ?>
143
  <li><?php _e('Operating System', 'nggallery'); ?> : <strong><?php echo PHP_OS; ?></strong></li>
144
  <li><?php _e('Server', 'nggallery'); ?> : <strong><?php echo $_SERVER["SERVER_SOFTWARE"]; ?></strong></li>
145
+ <li><?php _e('Memory usage', 'nggallery'); ?> : <strong><?php echo $memory_usage; ?></strong></li>
146
  <li><?php _e('MYSQL Version', 'nggallery'); ?> : <strong><?php echo $sqlversion; ?></strong></li>
147
  <li><?php _e('SQL Mode', 'nggallery'); ?> : <strong><?php echo $sql_mode; ?></strong></li>
148
  <li><?php _e('PHP Version', 'nggallery'); ?> : <strong><?php echo PHP_VERSION; ?></strong></li>
149
  <li><?php _e('PHP Safe Mode', 'nggallery'); ?> : <strong><?php echo $safe_mode; ?></strong></li>
150
+ <li><?php _e('PHP Allow URL fopen', 'nggallery'); ?> : <strong><?php echo $allow_url_fopen; ?></strong></li>
151
  <li><?php _e('PHP Memory Limit', 'nggallery'); ?> : <strong><?php echo $memory_limit; ?></strong></li>
152
  <li><?php _e('PHP Max Upload Size', 'nggallery'); ?> : <strong><?php echo $upload_max; ?></strong></li>
153
  <li><?php _e('PHP Max Post Size', 'nggallery'); ?> : <strong><?php echo $post_max; ?></strong></li>
admin/settings.php CHANGED
@@ -169,7 +169,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
169
  <tr valign="top">
170
  <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
171
  <td><input type="text" size="4" maxlength="4" name="thumbwidth" value="<?php echo $ngg_options[thumbwidth]; ?>" /> x <input type="text" size="4" maxlength="4" name="thumbheight" value="<?php echo $ngg_options[thumbheight]; ?>" /><br />
172
- <?php _e('This values are maxium values ','nggallery') ?></td>
173
  </tr>
174
  <tr valign="top">
175
  <th align="left"><?php _e('Set fix dimension','nggallery') ?></th>
@@ -238,13 +238,26 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
238
  <div id="gallery" style="display:none">
239
  <h2><?php _e('Gallery settings','nggallery'); ?></h2>
240
  <form name="galleryform" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#gallery-slider'; ?>" >
241
- <input type="hidden" name="page_options" value="galImages,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galSort" />
242
  <fieldset class="options">
243
  <table class="optiontable">
 
 
 
 
 
 
 
 
 
 
 
 
244
  <tr>
245
  <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
246
  <td><input type="text" name="galImages" value="<?php echo $ngg_options[galImages] ?>" size="3" maxlength="3" /><br />
247
- <?php _e('0 will disable pagination, all images on one page','nggallery') ?></td>
 
248
  </tr>
249
  <tr>
250
  <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
@@ -256,15 +269,45 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
256
  <tr>
257
  <th valign="top"><?php _e('Show first','nggallery') ?>:</th>
258
  <td><label><input name="galShowOrder" type="radio" value="gallery" <?php checked('gallery', $ngg_options[galShowOrder]); ?> /> <?php _e('Thumbnails', 'nggallery') ;?></label><br />
259
- <label><input name="galShowOrder" type="radio" value="slide" <?php checked('slide', $ngg_options[galShowOrder]); ?> /> <?php _e('Slideshow', 'nggallery') ;?></label></td>
 
260
  </tr>
261
  <tr>
262
  <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
263
  <td><label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg_options[galSort]); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
264
  <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg_options[galSort]); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
265
- <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg_options[galSort]); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label></td>
 
 
 
 
 
 
 
266
  </tr>
267
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
269
  </fieldset>
270
  </form>
@@ -290,6 +333,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
290
  <option value="highslide" <?php selected('highslide', $ngg_options[thumbEffect]); ?> ><?php _e('Highslide', 'nggallery') ;?></option>
291
  <option value="custom" <?php selected('custom', $ngg_options[thumbEffect]); ?> ><?php _e('Custom', 'nggallery') ;?></option>
292
  </select>
 
293
  </tr>
294
  <tr valign="top">
295
  <th><?php _e('Link Code line','nggallery') ?> :</th>
@@ -303,7 +347,8 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
303
  <th><?php _e('Select loading image','nggallery') ?> :</th>
304
  <td>
305
  <label><input name="thickboxImage" id="v2" type="radio" title="Version 2" value="loadingAnimationv2.gif" <?php checked('loadingAnimationv2.gif', $ngg_options[thickboxImage]); ?> /></label> <img src="<?php echo NGGALLERY_URLPATH.'thickbox/loadingAnimationv2.gif' ?>" alt="Version 2" />
306
- <label><input name="thickboxImage" id="v3" type="radio" title="Version 3" value="loadingAnimationv3.gif" <?php checked('loadingAnimationv3.gif', $ngg_options[thickboxImage]); ?> /></label> <img src="<?php echo NGGALLERY_URLPATH.'thickbox/loadingAnimationv3.gif' ?>" alt="Version 3" /></td>
 
307
  </tr>
308
  </table>
309
  </div>
@@ -374,7 +419,8 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
374
  </tr>
375
  <tr>
376
  <th><?php _e('URL to file','nggallery') ?> :</th>
377
- <td><input type="text" size="40" name="wmPath" value="<?php echo $ngg_options[wmPath]; ?>" /></td>
 
378
  </tr>
379
  <tr>
380
  <td colspan="2"><hr /></td>
@@ -423,12 +469,12 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
423
 
424
  <div id="slideshow" style="display:none">
425
  <form name="player_options" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#slideshow-slider'; ?>" >
426
- <input type="hidden" name="page_options" value="irWidth,irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,irXHTMLvalid" />
427
  <h2><?php _e('Slideshow','nggallery'); ?></h2>
428
  <fieldset class="options">
429
  <?php if (!NGGALLERY_IREXIST) { ?><p><div id="message" class="error fade"><p><?php _e('The imagerotator.swf is not in the nggallery folder, the slideshow will not work.','nggallery') ?></p></div></p><?php }?>
430
- <p><?php _e('The settings are used in the Flash Image Rotator Version 3.8 .', 'nggallery') ?>
431
- <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.jeroenwijering.com/?item=Flash_Image_Rotator" target="_blank">Flash Image Rotator from Jeroen Wijering</a>.<br />
432
  <table class="optiontable" border="0" >
433
  <tr>
434
  <th><?php _e('Default size (W x H)','nggallery') ?>:</th>
@@ -451,6 +497,11 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
451
  <th><?php _e('Show loading icon','nggallery') ?>:</th>
452
  <td><input name="irShowicons" type="checkbox" value="1" <?php checked('1', $ngg_options[irShowicons]); ?> /></td>
453
  </tr>
 
 
 
 
 
454
  <tr>
455
  <th><?php _e('Stretch image','nggallery') ?>:</th>
456
  <td>
@@ -500,6 +551,10 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
500
  <td><input type="text" size="6" maxlength="6" id="irLightcolor" name="irLightcolor" onchange="setcolor('#previewLight', this.value)" value="<?php echo $ngg_options[irLightcolor] ?>" />
501
  <input type="text" size="1" readonly="readonly" id="previewLight" style="background-color: #<?php echo $ngg_options[irLightcolor] ?>" /></td>
502
  </tr>
 
 
 
 
503
  <tr>
504
  <th><?php _e('Try XHTML validation (with CDATA)','nggallery') ?>:</th>
505
  <td><input name="irXHTMLvalid" type="checkbox" value="1" <?php checked('1', $ngg_options[irXHTMLvalid]); ?> />
169
  <tr valign="top">
170
  <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
171
  <td><input type="text" size="4" maxlength="4" name="thumbwidth" value="<?php echo $ngg_options[thumbwidth]; ?>" /> x <input type="text" size="4" maxlength="4" name="thumbheight" value="<?php echo $ngg_options[thumbheight]; ?>" /><br />
172
+ <?php _e('These values are maximum values ','nggallery') ?></td>
173
  </tr>
174
  <tr valign="top">
175
  <th align="left"><?php _e('Set fix dimension','nggallery') ?></th>
238
  <div id="gallery" style="display:none">
239
  <h2><?php _e('Gallery settings','nggallery'); ?></h2>
240
  <form name="galleryform" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#gallery-slider'; ?>" >
241
+ <input type="hidden" name="page_options" value="galUsejQuery,galNoPages,galImages,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galSort,galSortDir,ImgBrHead,ImgBrDesc,ImgBrTextBack,ImgBrTextNext" />
242
  <fieldset class="options">
243
  <table class="optiontable">
244
+ <tr>
245
+ <th valign="top"><?php _e('Activate jQuery navigation','nggallery') ?>:</th>
246
+ <td><input name="galUsejQuery" type="checkbox" value="1" <?php checked('1', $ngg_options[galUsejQuery]); ?> />
247
+ <?php _e('Please note : This is still experimental. Requires the Thickbox effect','nggallery') ?>
248
+ </td>
249
+ </tr>
250
+ <tr>
251
+ <th valign="top"><?php _e('Deactivate gallery page link','nggallery') ?>:</th>
252
+ <td><input name="galNoPages" type="checkbox" value="1" <?php checked('1', $ngg_options[galNoPages]); ?> />
253
+ <?php _e('The album will not link to a gallery subpage. The gallery is shown on the same page.','nggallery') ?>
254
+ </td>
255
+ </tr>
256
  <tr>
257
  <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
258
  <td><input type="text" name="galImages" value="<?php echo $ngg_options[galImages] ?>" size="3" maxlength="3" /><br />
259
+ <?php _e('0 will disable pagination, all images on one page','nggallery') ?>
260
+ </td>
261
  </tr>
262
  <tr>
263
  <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
269
  <tr>
270
  <th valign="top"><?php _e('Show first','nggallery') ?>:</th>
271
  <td><label><input name="galShowOrder" type="radio" value="gallery" <?php checked('gallery', $ngg_options[galShowOrder]); ?> /> <?php _e('Thumbnails', 'nggallery') ;?></label><br />
272
+ <label><input name="galShowOrder" type="radio" value="slide" <?php checked('slide', $ngg_options[galShowOrder]); ?> /> <?php _e('Slideshow', 'nggallery') ;?></label>
273
+ </td>
274
  </tr>
275
  <tr>
276
  <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
277
  <td><label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg_options[galSort]); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
278
  <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg_options[galSort]); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
279
+ <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg_options[galSort]); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label>
280
+ </td>
281
+ </tr>
282
+ <tr>
283
+ <th valign="top"><?php _e('Sort direction','nggallery') ?>:</th>
284
+ <td><label><input name="galSortDir" type="radio" value="ASC" <?php checked('ASC', $ngg_options[galSortDir]); ?> /> <?php _e('Ascending', 'nggallery') ;?></label><br />
285
+ <label><input name="galSortDir" type="radio" value="DESC" <?php checked('DESC', $ngg_options[galSortDir]); ?> /> <?php _e('Descending', 'nggallery') ;?></label>
286
+ </td>
287
  </tr>
288
  </table>
289
+ <legend><?php _e('Image Browser','nggallery') ?></legend>
290
+ <table class="optiontable">
291
+ <tr>
292
+ <th valign="top"><?php _e('Show title as headline','nggallery') ?>:</th>
293
+ <td><input name="ImgBrHead" type="checkbox" value="1" <?php checked('1', $ngg_options[ImgBrHead]); ?> />
294
+ <?php _e('The alt/title text is shown as H3 headline ','nggallery') ?>
295
+ </td>
296
+ </tr>
297
+ <tr>
298
+ <th valign="top"><?php _e('Show image description','nggallery') ?>:</th>
299
+ <td><input name="ImgBrDesc" type="checkbox" value="1" <?php checked('1', $ngg_options[ImgBrDesc]); ?> />
300
+ <?php _e('The description text is shown below the picture','nggallery') ?>
301
+ </td>
302
+ </tr>
303
+ <tr>
304
+ <th valign="top"><?php _e('Navigation text','nggallery') ?>:</th>
305
+ <td>
306
+ <input type="text" name="ImgBrTextBack" value="<?php echo $ngg_options[ImgBrTextBack] ?>" size="20" />
307
+ <input type="text" name="ImgBrTextNext" value="<?php echo $ngg_options[ImgBrTextNext] ?>" size="20" />
308
+ </td>
309
+ </tr>
310
+ </table>
311
  <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
312
  </fieldset>
313
  </form>
333
  <option value="highslide" <?php selected('highslide', $ngg_options[thumbEffect]); ?> ><?php _e('Highslide', 'nggallery') ;?></option>
334
  <option value="custom" <?php selected('custom', $ngg_options[thumbEffect]); ?> ><?php _e('Custom', 'nggallery') ;?></option>
335
  </select>
336
+ </td>
337
  </tr>
338
  <tr valign="top">
339
  <th><?php _e('Link Code line','nggallery') ?> :</th>
347
  <th><?php _e('Select loading image','nggallery') ?> :</th>
348
  <td>
349
  <label><input name="thickboxImage" id="v2" type="radio" title="Version 2" value="loadingAnimationv2.gif" <?php checked('loadingAnimationv2.gif', $ngg_options[thickboxImage]); ?> /></label> <img src="<?php echo NGGALLERY_URLPATH.'thickbox/loadingAnimationv2.gif' ?>" alt="Version 2" />
350
+ <label><input name="thickboxImage" id="v3" type="radio" title="Version 3" value="loadingAnimationv3.gif" <?php checked('loadingAnimationv3.gif', $ngg_options[thickboxImage]); ?> /></label> <img src="<?php echo NGGALLERY_URLPATH.'thickbox/loadingAnimationv3.gif' ?>" alt="Version 3" />
351
+ </td>
352
  </tr>
353
  </table>
354
  </div>
419
  </tr>
420
  <tr>
421
  <th><?php _e('URL to file','nggallery') ?> :</th>
422
+ <td><input type="text" size="40" name="wmPath" value="<?php echo $ngg_options[wmPath]; ?>" /><br />
423
+ <?php if(!ini_get('allow_url_fopen')) _e('The accessing of URL files is disabled at your server (allow_url_fopen)','nggallery') ?> </td>
424
  </tr>
425
  <tr>
426
  <td colspan="2"><hr /></td>
469
 
470
  <div id="slideshow" style="display:none">
471
  <form name="player_options" method="POST" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']).'#slideshow-slider'; ?>" >
472
+ <input type="hidden" name="page_options" value="irWidth,irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irWatermark,irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,irAudio,irXHTMLvalid" />
473
  <h2><?php _e('Slideshow','nggallery'); ?></h2>
474
  <fieldset class="options">
475
  <?php if (!NGGALLERY_IREXIST) { ?><p><div id="message" class="error fade"><p><?php _e('The imagerotator.swf is not in the nggallery folder, the slideshow will not work.','nggallery') ?></p></div></p><?php }?>
476
+ <p><?php _e('The settings are used in the JW Image Rotator Version 3.9 .', 'nggallery') ?>
477
+ <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.jeroenwijering.com/?item=JW_Image_Rotator" target="_blank">JW Image Rotator from Jeroen Wijering</a>.<br />
478
  <table class="optiontable" border="0" >
479
  <tr>
480
  <th><?php _e('Default size (W x H)','nggallery') ?>:</th>
497
  <th><?php _e('Show loading icon','nggallery') ?>:</th>
498
  <td><input name="irShowicons" type="checkbox" value="1" <?php checked('1', $ngg_options[irShowicons]); ?> /></td>
499
  </tr>
500
+ <tr>
501
+ <th><?php _e('Use watermark logo','nggallery') ?>:</th>
502
+ <td><input name="irWatermark" type="checkbox" value="1" <?php checked('1', $ngg_options[irWatermark]); ?> />
503
+ <?php _e('You can change the logo at the watermark settings','nggallery') ?></td>
504
+ </tr>
505
  <tr>
506
  <th><?php _e('Stretch image','nggallery') ?>:</th>
507
  <td>
551
  <td><input type="text" size="6" maxlength="6" id="irLightcolor" name="irLightcolor" onchange="setcolor('#previewLight', this.value)" value="<?php echo $ngg_options[irLightcolor] ?>" />
552
  <input type="text" size="1" readonly="readonly" id="previewLight" style="background-color: #<?php echo $ngg_options[irLightcolor] ?>" /></td>
553
  </tr>
554
+ <tr>
555
+ <th><?php _e('Background music (URL)','nggallery') ?>:</th>
556
+ <td><input type="text" size="50" id="irAudio" name="irAudio" value="<?php echo $ngg_options[irAudio] ?>" /></td>
557
+ </tr>
558
  <tr>
559
  <th><?php _e('Try XHTML validation (with CDATA)','nggallery') ?>:</th>
560
  <td><input name="irXHTMLvalid" type="checkbox" value="1" <?php checked('1', $ngg_options[irXHTMLvalid]); ?> />
changelog.txt CHANGED
@@ -1,6 +1,23 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  V0.52 - 31.05.2007
5
  - Changed : Create better thubmnails in square mode (THX to Kees de Bruin)
6
  - Changed : Again , fixed ratio create better thumbnails (Also for widescreen photos)
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ V0.60 - 27.06.2007
5
+ - NEW : Select a image from the Upload Tab
6
+ - NEW : Tag [imageborwser=id] for a Inline Gallery Browser
7
+ - NEW : Show gallery without Subpages
8
+ - NEW : Manage gallery : Function "Add a new page"
9
+ - NEW : Manage gallery : Show/Hide thumbnails
10
+ - Added : Slideshow option : Watermark / Background music
11
+ - Added : Check for memory limit
12
+ - Added : Show actual memory usage in overview
13
+ - Added : Include function check in widget
14
+ - Added : Latest Sidebar widget from KeViN
15
+ - Added : Check for capability during installation
16
+ - Changed : Remove P Tag around gallery tags ( THX to the work from John Godley )
17
+ - Bugfix : Delete picture, check for pid
18
+ - Bugfix : admin/settings.php line #172: typos corrected (this=these,maxium=maximum). (THX to Helene D.)
19
+ - Bugfix : admin/settings.php line #311: missing </td> added. (THX to Helene D.)
20
+
21
  V0.52 - 31.05.2007
22
  - Changed : Create better thubmnails in square mode (THX to Kees de Bruin)
23
  - Changed : Again , fixed ratio create better thumbnails (Also for widescreen photos)
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.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,
@@ -37,7 +37,8 @@ it's only a template design
37
 
38
  .ngg-thumbnail {
39
  float: left;
40
- margin-right: 12px;
 
41
  }
42
 
43
  .ngg-thumbnail img {
@@ -145,18 +146,63 @@ it's only a template design
145
  margin:0pt 6px;
146
  }
147
 
148
- .ngg-navigation a.page-numbers, a.next, a.prev {
 
149
  border:1px solid #660000;
150
  margin-right:3px;
151
  padding:3px 7px;
152
  }
153
 
154
- .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover {
 
155
  background-color: #660000;
156
  color: #FFFFFF;
157
  text-decoration: none;
158
  }
159
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  /* ----------- Slideshow -------------*/
161
  .slideshow {
162
  margin-left: auto;
2
  CSS Name: Black Minimalism Theme
3
  Description: For Black Minimalism Theme
4
  Author: Alex Rabe
5
+ Version: 1.11
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,
37
 
38
  .ngg-thumbnail {
39
  float: left;
40
+ margin: 0pt !important;
41
+ margin-right: 12px !important;
42
  }
43
 
44
  .ngg-thumbnail img {
146
  margin:0pt 6px;
147
  }
148
 
149
+ .ngg-navigation a.page-numbers, a.next, a.prev,
150
+ span.page-numbers, span.next, span.prev {
151
  border:1px solid #660000;
152
  margin-right:3px;
153
  padding:3px 7px;
154
  }
155
 
156
+ .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover,
157
+ span.page-numbers:hover, span.next:hover, span.prev:hover {
158
  background-color: #660000;
159
  color: #FFFFFF;
160
  text-decoration: none;
161
  }
162
 
163
+ /* ----------- Image browser style -------------*/
164
+
165
+ .ngg-imagebrowser {
166
+
167
+ }
168
+
169
+ .ngg-imagebrowser h3 {
170
+ text-align:center;
171
+ }
172
+
173
+ .ngg-imagebrowser img {
174
+ border:1px solid #A9A9A9;
175
+ margin-top: 10px;
176
+ margin-bottom: 10px;
177
+ width: 100%;
178
+ display:block !important;
179
+ padding:5px;
180
+ }
181
+
182
+ .ngg-imagebrowser-nav {
183
+ padding:5px;
184
+ margin-left:10px;
185
+ }
186
+
187
+ .ngg-imagebrowser-nav .back {
188
+ float:left;
189
+ border:1px solid #DDDDDD;
190
+ margin-right:3px;
191
+ padding:3px 7px;
192
+ }
193
+
194
+ .ngg-imagebrowser-nav .next {
195
+ float:right;
196
+ border:1px solid #DDDDDD;
197
+ margin-right:3px;
198
+ padding:3px 7px;
199
+ }
200
+
201
+ .ngg-imagebrowser-nav .counter {
202
+ text-align:center;
203
+ font-size:0.9em !important;
204
+ }
205
+
206
  /* ----------- Slideshow -------------*/
207
  .slideshow {
208
  margin-left: auto;
css/ngg_dKret2.css CHANGED
@@ -2,7 +2,7 @@
2
  CSS Name: DKret2 Styles
3
  Description: NextGEN dKret2 Gallery Stylesheet
4
  Author: J. Kretzschmar
5
- Version: 1.2
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with the dKret2 theme.
@@ -19,7 +19,7 @@ styles with the dKret2 theme.
19
  }
20
 
21
  .ngg-album {
22
- overflow: hidden;
23
  padding: 5px;
24
  margin-bottom: 5px;
25
  border: 1px solid #cccccc;
@@ -97,6 +97,7 @@ styles with the dKret2 theme.
97
  /* ----------- Gallery style -------------*/
98
 
99
  .ngg-galleryoverview {
 
100
  margin-top: 10px;
101
  width: 100%;
102
  clear:both;
@@ -141,27 +142,72 @@ styles with the dKret2 theme.
141
  margin:0pt 6px;
142
  }
143
 
144
- .ngg-navigation a.page-numbers, a.next, a.prev {
 
145
  border:1px solid #DDDDDD;
146
  margin-right:3px;
147
  padding:3px 7px;
 
148
  }
149
 
150
- .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover {
 
151
  background-color: #0066CC;
152
- color: #FFFFFF;
153
- text-decoration: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  }
155
 
156
  /* ----------- Slideshow -------------*/
157
  .slideshow {
158
  margin-left: auto;
159
  margin-right: auto;
160
- text-align:center;
161
  }
162
 
163
  .slideshowlink {
164
-
165
  }
166
 
167
  /* ----------- Single picture -------------*/
@@ -169,7 +215,7 @@ styles with the dKret2 theme.
169
  background-color:#FFFFFF;
170
  border:1px solid #A9A9A9;
171
  display:block;
172
- margin:5px;
173
  padding:4px;
174
  position:relative;
175
  }
@@ -178,12 +224,13 @@ styles with the dKret2 theme.
178
  .ngg-widget,
179
  .ngg-widget-slideshow {
180
  overflow: hidden;
 
181
  padding: 5px 0px 0px 0pt;
182
  text-align: center;
183
  }
184
 
185
  .ngg-widget img {
186
- border: 1px solid #A9A9A9;
187
- margin: 0pt 2px 2px 0px;
188
- padding: 2px;
189
  }
2
  CSS Name: DKret2 Styles
3
  Description: NextGEN dKret2 Gallery Stylesheet
4
  Author: J. Kretzschmar
5
+ Version: 1.22
6
 
7
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
8
  styles with the dKret2 theme.
19
  }
20
 
21
  .ngg-album {
22
+ overflow: hidden;
23
  padding: 5px;
24
  margin-bottom: 5px;
25
  border: 1px solid #cccccc;
97
  /* ----------- Gallery style -------------*/
98
 
99
  .ngg-galleryoverview {
100
+ overflow: hidden;
101
  margin-top: 10px;
102
  width: 100%;
103
  clear:both;
142
  margin:0pt 6px;
143
  }
144
 
145
+ .ngg-navigation a.page-numbers, a.next, a.prev,
146
+ span.page-numbers, span.next, span.prev {
147
  border:1px solid #DDDDDD;
148
  margin-right:3px;
149
  padding:3px 7px;
150
+ text-decoration: none;
151
  }
152
 
153
+ .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover,
154
+ span.page-numbers:hover, span.next:hover, span.prev:hover {
155
  background-color: #0066CC;
156
+ color: #FFFFFF !important;
157
+ text-decoration: none !important;
158
+ }
159
+
160
+ /* ----------- Image browser style -------------*/
161
+
162
+ .ngg-imagebrowser {
163
+
164
+ }
165
+
166
+ .ngg-imagebrowser h3 {
167
+ text-align:center;
168
+ }
169
+
170
+ .ngg-imagebrowser img {
171
+ border:1px solid #A9A9A9;
172
+ margin-top: 10px;
173
+ margin-bottom: 10px;
174
+ width: 100%;
175
+ display:block !important;
176
+ padding:5px;
177
+ }
178
+
179
+ .ngg-imagebrowser-nav {
180
+ padding:5px;
181
+ margin-left:10px;
182
+ }
183
+
184
+ .ngg-imagebrowser-nav .back {
185
+ float:left;
186
+ border:1px solid #DDDDDD;
187
+ margin-right:3px;
188
+ padding:3px 7px;
189
+ }
190
+
191
+ .ngg-imagebrowser-nav .next {
192
+ float:right;
193
+ border:1px solid #DDDDDD;
194
+ margin-right:3px;
195
+ padding:3px 7px;
196
+ }
197
+
198
+ .ngg-imagebrowser-nav .counter {
199
+ text-align:center;
200
+ font-size:0.9em !important;
201
  }
202
 
203
  /* ----------- Slideshow -------------*/
204
  .slideshow {
205
  margin-left: auto;
206
  margin-right: auto;
207
+ text-align: center;
208
  }
209
 
210
  .slideshowlink {
 
211
  }
212
 
213
  /* ----------- Single picture -------------*/
215
  background-color:#FFFFFF;
216
  border:1px solid #A9A9A9;
217
  display:block;
218
+ margin:4px 0px 4px 5px;
219
  padding:4px;
220
  position:relative;
221
  }
224
  .ngg-widget,
225
  .ngg-widget-slideshow {
226
  overflow: hidden;
227
+ margin: 0pt;
228
  padding: 5px 0px 0px 0pt;
229
  text-align: center;
230
  }
231
 
232
  .ngg-widget img {
233
+ border:2px solid #A9A9A9;
234
+ margin:0pt 2px 2px 0px;
235
+ padding:1px;
236
  }
css/ngg_k2.css CHANGED
@@ -2,7 +2,7 @@
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,
@@ -151,18 +151,63 @@ it's only a template design
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;
2
  CSS Name: K2 Theme
3
  Description: NextGEN Style for K2 Theme
4
  Author: Alex Rabe
5
+ Version: 1.11
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,
151
  margin:0pt 6px;
152
  }
153
 
154
+ .ngg-navigation a.page-numbers, a.next, a.prev,
155
+ span.page-numbers, span.next, span.prev {
156
  border:1px solid #DDDDDD;
157
  margin-right:3px;
158
  padding:3px 7px;
159
  }
160
 
161
+ .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover,
162
+ span.page-numbers:hover, span.next:hover, span.prev:hover {
163
  background-color: #0066CC;
164
  color: #FFFFFF;
165
  text-decoration: none;
166
  }
167
 
168
+ /* ----------- Image browser style -------------*/
169
+
170
+ .ngg-imagebrowser {
171
+
172
+ }
173
+
174
+ .ngg-imagebrowser h3 {
175
+ text-align:center;
176
+ }
177
+
178
+ .ngg-imagebrowser img {
179
+ border:1px solid #A9A9A9;
180
+ margin-top: 10px;
181
+ margin-bottom: 10px;
182
+ width: 100%;
183
+ display:block !important;
184
+ padding:5px;
185
+ }
186
+
187
+ .ngg-imagebrowser-nav {
188
+ padding:5px;
189
+ margin-left:10px;
190
+ }
191
+
192
+ .ngg-imagebrowser-nav .back {
193
+ float:left;
194
+ border:1px solid #DDDDDD;
195
+ margin-right:3px;
196
+ padding:3px 7px;
197
+ }
198
+
199
+ .ngg-imagebrowser-nav .next {
200
+ float:right;
201
+ border:1px solid #DDDDDD;
202
+ margin-right:3px;
203
+ padding:3px 7px;
204
+ }
205
+
206
+ .ngg-imagebrowser-nav .counter {
207
+ text-align:center;
208
+ font-size:0.9em !important;
209
+ }
210
+
211
  /* ----------- Slideshow -------------*/
212
  .slideshow {
213
  margin-left: auto;
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.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,
@@ -143,16 +143,61 @@ it's only a template design
143
  margin:0pt 6px;
144
  }
145
 
146
- .ngg-navigation a.page-numbers, a.next, a.prev {
 
147
  border:1px solid #DDDDDD;
148
  margin-right:3px;
149
  padding:3px 7px;
150
  }
151
 
152
- .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover {
 
153
  background-color: #0066CC;
154
- color: #FFFFFF;
155
- text-decoration: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  }
157
 
158
  /* ----------- Slideshow -------------*/
2
  CSS Name: Shadow Effect
3
  Description: NextGEN Default Style with a Shadow effect
4
  Author: Alex Rabe
5
+ Version: 1.11
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,
143
  margin:0pt 6px;
144
  }
145
 
146
+ .ngg-navigation a.page-numbers, a.next, a.prev,
147
+ span.page-numbers, span.next, span.prev {
148
  border:1px solid #DDDDDD;
149
  margin-right:3px;
150
  padding:3px 7px;
151
  }
152
 
153
+ .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover,
154
+ span.page-numbers:hover, span.next:hover, span.prev:hover {
155
  background-color: #0066CC;
156
+ color: #FFFFFF !important;
157
+ text-decoration: none !important;
158
+ }
159
+
160
+ /* ----------- Image browser style -------------*/
161
+
162
+ .ngg-imagebrowser {
163
+
164
+ }
165
+
166
+ .ngg-imagebrowser h3 {
167
+ text-align:center;
168
+ }
169
+
170
+ .ngg-imagebrowser img {
171
+ border:1px solid #A9A9A9;
172
+ margin-top: 10px;
173
+ margin-bottom: 10px;
174
+ width: 100%;
175
+ display:block !important;
176
+ padding:5px;
177
+ }
178
+
179
+ .ngg-imagebrowser-nav {
180
+ padding:5px;
181
+ margin-left:10px;
182
+ }
183
+
184
+ .ngg-imagebrowser-nav .back {
185
+ float:left;
186
+ border:1px solid #DDDDDD;
187
+ margin-right:3px;
188
+ padding:3px 7px;
189
+ }
190
+
191
+ .ngg-imagebrowser-nav .next {
192
+ float:right;
193
+ border:1px solid #DDDDDD;
194
+ margin-right:3px;
195
+ padding:3px 7px;
196
+ }
197
+
198
+ .ngg-imagebrowser-nav .counter {
199
+ text-align:center;
200
+ font-size:0.9em !important;
201
  }
202
 
203
  /* ----------- Slideshow -------------*/
css/nggallery.css CHANGED
@@ -2,8 +2,7 @@
2
  CSS Name: Default Styles
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,
9
  it's only a template design
@@ -144,16 +143,61 @@ it's only a template design
144
  margin:0pt 6px;
145
  }
146
 
147
- .ngg-navigation a.page-numbers, a.next, a.prev {
 
148
  border:1px solid #DDDDDD;
149
  margin-right:3px;
150
  padding:3px 7px;
151
  }
152
 
153
- .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover {
 
154
  background-color: #0066CC;
155
- color: #FFFFFF;
156
- text-decoration: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  }
158
 
159
  /* ----------- Slideshow -------------*/
@@ -169,7 +213,6 @@ it's only a template design
169
 
170
  /* ----------- Single picture -------------*/
171
  .ngg-singlepic {
172
- float: right;
173
  background-color:#FFFFFF;
174
  border:1px solid #A9A9A9;
175
  display:block;
2
  CSS Name: Default Styles
3
  Description: NextGEN Default Gallery Stylesheet
4
  Author: Alex Rabe
5
+ Version: 1.11
 
6
  This is a template stylesheet that can be used with NextGEN Gallery. I tested the
7
  styles with a default theme Kubrick. Modify it when your theme struggle with it,
8
  it's only a template design
143
  margin:0pt 6px;
144
  }
145
 
146
+ .ngg-navigation a.page-numbers, a.next, a.prev,
147
+ span.page-numbers, span.next, span.prev {
148
  border:1px solid #DDDDDD;
149
  margin-right:3px;
150
  padding:3px 7px;
151
  }
152
 
153
+ .ngg-navigation a.page-numbers:hover, a.next:hover, a.prev:hover,
154
+ span.page-numbers:hover, span.next:hover, span.prev:hover {
155
  background-color: #0066CC;
156
+ color: #FFFFFF !important;
157
+ text-decoration: none !important;
158
+ }
159
+
160
+ /* ----------- Image browser style -------------*/
161
+
162
+ .ngg-imagebrowser {
163
+
164
+ }
165
+
166
+ .ngg-imagebrowser h3 {
167
+ text-align:center;
168
+ }
169
+
170
+ .ngg-imagebrowser img {
171
+ border:1px solid #A9A9A9;
172
+ margin-top: 10px;
173
+ margin-bottom: 10px;
174
+ width: 100%;
175
+ display:block !important;
176
+ padding:5px;
177
+ }
178
+
179
+ .ngg-imagebrowser-nav {
180
+ padding:5px;
181
+ margin-left:10px;
182
+ }
183
+
184
+ .ngg-imagebrowser-nav .back {
185
+ float:left;
186
+ border:1px solid #DDDDDD;
187
+ margin-right:3px;
188
+ padding:3px 7px;
189
+ }
190
+
191
+ .ngg-imagebrowser-nav .next {
192
+ float:right;
193
+ border:1px solid #DDDDDD;
194
+ margin-right:3px;
195
+ padding:3px 7px;
196
+ }
197
+
198
+ .ngg-imagebrowser-nav .counter {
199
+ text-align:center;
200
+ font-size:0.9em !important;
201
  }
202
 
203
  /* ----------- Slideshow -------------*/
213
 
214
  /* ----------- Single picture -------------*/
215
  .ngg-singlepic {
 
216
  background-color:#FFFFFF;
217
  border:1px solid #A9A9A9;
218
  display:block;
js/nggadmintab-js.php ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // required for Rich text editor
3
+ // used by NextGEN Gallery
4
+ require_once('../../../../wp-config.php');
5
+ require_once('../../../../wp-admin/admin.php');
6
+ cache_javascript_headers();
7
+ $ngg_options = get_option('ngg_options');
8
+
9
+ // get the effect code
10
+ if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
11
+ if ($ngg_options[thumbEffect] == "highslide") $thumbcode = 'class="highslide" onclick="return hs.expand(this)"';
12
+ else $thumbcode = str_replace("%GALLERY_NAME%", "", $thumbcode);
13
+
14
+ ?>
15
+ addLoadEvent( function() {
16
+ theFileList = {
17
+ currentImage: {ID: 0},
18
+ nonce: '',
19
+ tab: '',
20
+ gal: '',
21
+ postID: 0,
22
+
23
+ initializeVars: function() {
24
+ this.urlData = document.location.href.split('?');
25
+ this.params = this.urlData[1].toQueryParams();
26
+ this.postID = this.params['post_id'];
27
+ this.tab = this.params['tab'];
28
+ this.gal = this.params['select_gal'];
29
+ this.style = this.params['style'];
30
+ this.ID = this.params['ID'];
31
+ if ( !this.style )
32
+ this.style = 'default';
33
+ var nonceEl = $('nonce-value');
34
+ if ( nonceEl )
35
+ this.nonce = nonceEl.value;
36
+ if ( this.ID ) {
37
+ this.grabImageData( this.ID );
38
+ this.imageView( this.ID );
39
+ }
40
+ },
41
+
42
+ initializeLinks: function() {
43
+ if ( this.ID )
44
+ return;
45
+ $$('a.file-link').each( function(i) {
46
+ var id = i.id.split('-').pop();
47
+ i.onclick = function(e) { theFileList[ 'inline' == theFileList.style ? 'imageView' : 'editView' ](id, e); }
48
+ } );
49
+ },
50
+
51
+ grabImageData: function(id) {
52
+ if ( id == this.currentImage.ID )
53
+ return;
54
+
55
+ this.currentImage.src = ( 0 == id ? '' : $('nggimage-url-' + id).value );
56
+ this.currentImage.thumb = ( 0 == id ? '' : $('nggimage-thumb-url-' + id).value );
57
+ this.currentImage.title = ( 0 == id ? '' : $('nggimage-title-' + id).value );
58
+ this.currentImage.alttext = ( 0 == id ? '' : $('nggimage-alttext-' + id).value );
59
+ this.currentImage.description = ( 0 == id ? '' : $('nggimage-description-' + id).value );
60
+ var widthEl = $('nggimage-width-' + id);
61
+ if ( widthEl ) {
62
+ this.currentImage.width = ( 0 == id ? '' : widthEl.value );
63
+ this.currentImage.height = ( 0 == id ? '' : $('nggimage-height-' + id).value );
64
+ } else {
65
+ this.currentImage.width = false;
66
+ this.currentImage.height = false;
67
+ }
68
+ this.currentImage.isImage = 1;
69
+ this.currentImage.ID = id;
70
+ },
71
+
72
+ imageView: function(id, e) {
73
+ this.prepView(id);
74
+ var h = '';
75
+
76
+ h += "<div id='upload-file'>"
77
+ if ( this.ID ) {
78
+ var params = $H(this.params);
79
+ params.ID = '';
80
+ params.action = '';
81
+ h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo attribute_escape(__('Browse your files')); ?>' class='back'><?php echo attribute_escape(__('&laquo; Back')); ?></a>";
82
+ } else {
83
+ h += "<a href='#' onclick='return theFileList.cancelView();' title='<?php echo attribute_escape(__('Browse your files')); ?>' class='back'><?php echo attribute_escape(__('&laquo; Back')) ?></a>";
84
+ }
85
+ h += "<div id='file-title'>"
86
+ h += "<h2>" + this.currentImage.title + "</h2>";
87
+ h += " &#8212; <span>";
88
+ h += "<a href='#' onclick='return theFileList.editView(" + id + ");'><?php echo attribute_escape(__('Edit')); ?></a>"
89
+ h += "</span>";
90
+ h += '</div>'
91
+ h += "<div id='upload-file-view' class='alignleft'>";
92
+ h += "<a href='" + this.currentImage.src + "' onclick='return false;' title='<?php echo attribute_escape(__('Direct link to file')); ?>'>";
93
+ h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />";
94
+ h += "</a>";
95
+ h += "</div>";
96
+
97
+ h += "<form name='uploadoptions' id='uploadoptions' class='alignleft'>";
98
+ h += "<table>";
99
+ var display = [];
100
+ var checked = 'display-thumb';
101
+ display.push("<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' /> <?php echo attribute_escape(__('Thumbnail')); ?></label><br />");
102
+ display.push("<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> <?php echo attribute_escape(__('Full size')); ?></label>");
103
+ if ( display.length ) {
104
+ display.push("<br /><label for='display-title'><input type='radio' name='display' id='display-title' value='title' /> <?php echo attribute_escape(__('Title')); ?></label>");
105
+ h += "<tr><th style='padding-bottom:.5em'><?php echo attribute_escape(__('Show:')); ?></th><td style='padding-bottom:.5em'>";
106
+ $A(display).each( function(i) { h += i; } );
107
+ h += "</td></tr>";
108
+ }
109
+
110
+ h += "<tr><th><?php echo attribute_escape(__('Link to:')); ?></th><td>";
111
+ h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> <?php echo attribute_escape(__('File')); ?></label><br />";
112
+ h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> <?php echo attribute_escape(__('None')); ?></label>";
113
+ h += "</td></tr>";
114
+
115
+ h += "<tr><td colspan='2'><p class='submit'>";
116
+ h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='<?php echo attribute_escape(__('Send to editor &raquo;')); ?>' />";
117
+ h += "</p></td></tr></table>";
118
+ h += "</form>";
119
+
120
+ h += "</div>";
121
+
122
+ new Insertion.Top('upload-content', h);
123
+ var displayEl = $(checked);
124
+ if ( displayEl )
125
+ displayEl.checked = true;
126
+
127
+ if (e) Event.stop(e);
128
+ return false;
129
+ },
130
+
131
+ editView: function(id, e) {
132
+ this.prepView(id);
133
+ var h = '';
134
+
135
+ var action = 'upload.php?style=' + this.style + '&amp;tab=' + this.tab;
136
+ if ( this.postID )
137
+ action += '&amp;post_id=' + this.postID;
138
+
139
+ h += "<form id='upload-file' method='post' action='" + action + "'>";
140
+ if ( this.ID ) {
141
+ var params = $H(this.params);
142
+ params.ID = '';
143
+ params.action = '';
144
+ h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "' title='<?php echo attribute_escape(__('Browse your files')); ?>' class='back'><?php echo attribute_escape(__('&laquo; Back')); ?></a>";
145
+ } else {
146
+ h += "<a href='#' onclick='return theFileList.cancelView();' title='<?php echo attribute_escape(__('Browse your files')); ?>' class='back'><?php echo attribute_escape(__('&laquo; Back')); ?></a>";
147
+ }
148
+ h += "<div id='file-title'>"
149
+ h += "<h2>" + this.currentImage.title + "</h2>";
150
+ h += " &#8212; <span>";
151
+ h += "<a href='#' onclick='return theFileList.imageView(" + id + ");'><?php echo attribute_escape(__('Insert')); ?></a>"
152
+ h += "</span>";
153
+ h += '</div>'
154
+ h += "<div id='upload-file-view' class='alignleft'>";
155
+ h += "<a href='" + this.currentImage.src + "' onclick='return false;' title='<?php echo wp_specialchars(__('Direct link to file')); ?>'>";
156
+ h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />";
157
+ h += "</a>";
158
+ h += "</div>";
159
+
160
+ h += "<table><col /><col class='widefat' /><tr>"
161
+ h += "<th scope='row'><label for='url'><?php echo attribute_escape(__('URL')); ?></label></th>";
162
+ h += "<td><input type='text' id='url' class='readonly' value='" + this.currentImage.src + "' readonly='readonly' /></td>";
163
+ h += "</tr><tr>";
164
+ h += "<th scope='row'><label for='image_title'><?php echo attribute_escape(__('Alt &amp; Title Text','nggallery')); ?></label></th>";
165
+ h += "<td><input type='text' id='image_title' name='image_title' value='" + this.currentImage.alttext + "' /></td>";
166
+ h += "</tr><tr>";
167
+ h += "<th scope='row'><label for='image_desc'><?php echo attribute_escape(__('Description')); ?></label></th>";
168
+ h += "<td><textarea name='image_desc' id='image_desc'>" + this.currentImage.description + "</textarea></td>";
169
+ h += "</tr><tr id='buttons' class='submit'><td colspan='2'><input type='button' id='delete' name='delete' class='delete alignleft' value='<?php echo attribute_escape(__('Delete File')); ?>' onclick='theFileList.deleteFile(" + id + ");' />";
170
+ h += "<input type='hidden' name='from_tab' value='" + this.tab + "' />";
171
+ h += "<input type='hidden' name='action' id='action-value' value='update' />";
172
+ h += "<input type='hidden' name='ID' value='" + id + "' />";
173
+ h += "<input type='hidden' name='from_gal' id='from_gal' value='" + this.gal + "' />";
174
+ h += "<input type='hidden' name='_wpnonce' value='" + this.nonce + "' />";
175
+ h += "<div class='submit'><input type='submit' name='save' id='save' value='<?php echo attribute_escape(__('Save &raquo;')); ?>' /></div>";
176
+ h += "</td></tr></table></form>";
177
+
178
+ new Insertion.Top('upload-content', h);
179
+ if (e) Event.stop(e);
180
+ return false;
181
+ },
182
+
183
+ prepView: function(id) {
184
+ this.cancelView( true );
185
+ var filesEl = $('upload-files');
186
+ if ( filesEl )
187
+ filesEl.hide();
188
+ var navEl = $('current-tab-nav');
189
+ if ( navEl )
190
+ navEl.hide();
191
+ var selGAL = $('select-gallery');
192
+ if ( selGAL )
193
+ selGAL.hide();
194
+ this.grabImageData(id);
195
+ },
196
+
197
+ cancelView: function( prep ) {
198
+ if ( !prep ) {
199
+ var filesEl = $('upload-files');
200
+ if ( filesEl )
201
+ Element.show(filesEl);
202
+ var navEl = $('current-tab-nav');
203
+ if ( navEl )
204
+ Element.show(navEl);
205
+ var selGAL = $('select-gallery');
206
+ if ( selGAL )
207
+ Element.show(selGAL);
208
+ }
209
+ if ( !this.ID )
210
+ this.grabImageData(0);
211
+ var div = $('upload-file');
212
+ if ( div )
213
+ Element.remove(div);
214
+ return false;
215
+ },
216
+
217
+ sendToEditor: function(id) {
218
+ this.grabImageData(id);
219
+ var link = '';
220
+ var display = '';
221
+ var h = '';
222
+
223
+ link = $A(document.forms.uploadoptions.elements.link).detect( function(i) { return i.checked; } ).value;
224
+ displayEl = $A(document.forms.uploadoptions.elements.display).detect( function(i) { return i.checked; } )
225
+ if ( displayEl )
226
+ display = displayEl.value;
227
+ else if ( 1 == this.currentImage.isImage )
228
+ display = 'full';
229
+
230
+ if ( 'none' != link )
231
+ h += '<a href="' + this.currentImage.src + '" <?php echo $thumbcode; ?> title="' + this.currentImage.alttext + '">';
232
+ if ( display && 'title' != display )
233
+ h += "<img src='" + ( 'thumb' == display ? ( this.currentImage.thumb ) : ( this.currentImage.src ) ) + "' alt='" + this.currentImage.title + "' title='" + this.currentImage.alttext + "' />";
234
+ else
235
+ h += this.currentImage.alttext;
236
+ if ( 'none' != link )
237
+ h += '</a>';
238
+
239
+ var win = window.opener ? window.opener : window.dialogArguments;
240
+ if ( !win )
241
+ win = top;
242
+ tinyMCE = win.tinyMCE;
243
+ if ( typeof tinyMCE != 'undefined' && tinyMCE.getInstanceById('content') ) {
244
+ tinyMCE.selectedInstance.getWin().focus();
245
+ tinyMCE.execCommand('mceInsertContent', false, h);
246
+ } else
247
+ win.edInsertContent(win.edCanvas, h);
248
+ if ( !this.ID )
249
+ this.cancelView();
250
+ return false;
251
+ },
252
+
253
+ deleteFile: function(id) {
254
+ if ( confirm("<?php printf(js_escape(__("Are you sure you want to delete the file '%s'?\nClick ok to delete or cancel to go back.")), '" + this.currentImage.title + "'); ?>") ) {
255
+ $('action-value').value = 'delete';
256
+ $('upload-file').submit();
257
+ return true;
258
+ }
259
+ return false;
260
+ }
261
+
262
+ };
263
+ theFileList.initializeVars();
264
+ theFileList.initializeLinks();
265
+ } );
lang/nggallery-de_DE.mo ADDED
Binary file
lang/nggallery-de_DE.po ADDED
@@ -0,0 +1,1734 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: NextGEN Gallery\n"
4
+ "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-06-27 20:12+0100\n"
6
+ "Last-Translator: Alex Rabe\n"
7
+ "Language-Team: Alex Rabe\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=utf-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: __;_e\n"
12
+ "X-Poedit-Basepath: .\n"
13
+ "X-Poedit-Country: GERMANY\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+ "X-Poedit-SearchPath-1: ..\n"
17
+
18
+ #: ../nggadmintab.php:65
19
+ msgid "Select a gallery"
20
+ msgstr "Wähle Galerie"
21
+
22
+ #: ../nggadmintab.php:67
23
+ #: ../nggbutton.php:50
24
+ msgid "No gallery"
25
+ msgstr "Keine Galerie"
26
+
27
+ #: ../nggadmintab.php:132
28
+ #: ../js/nggadmintab-js.php:161
29
+ msgid "URL"
30
+ msgstr "URL"
31
+
32
+ #: ../nggadmintab.php:136
33
+ #: ../admin/manage.php:437
34
+ #: ../js/nggadmintab-js.php:164
35
+ msgid "Alt &amp; Title Text"
36
+ msgstr "Alt &amp; Titel Text"
37
+
38
+ #: ../nggadmintab.php:140
39
+ #: ../admin/manage.php:222
40
+ #: ../admin/manage.php:370
41
+ #: ../admin/manage.php:436
42
+ #: ../admin/style.php:97
43
+ #: ../js/nggadmintab-js.php:167
44
+ msgid "Description"
45
+ msgstr "Beschreibung"
46
+
47
+ #: ../nggadmintab.php:145
48
+ #: ../js/nggadmintab-js.php:169
49
+ msgid "Delete File"
50
+ msgstr "Datei löschen"
51
+
52
+ #: ../nggadmintab.php:145
53
+ msgid "Delete image ?"
54
+ msgstr "Bilder löschen ?"
55
+
56
+ #: ../nggadmintab.php:153
57
+ msgid "Save"
58
+ msgstr "Speichern"
59
+
60
+ #: ../nggallery.php:265
61
+ msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
62
+ msgstr "Tut mir leid aber NextGEN Galerie arbeitet nur ab WordPress 2.1 und aufwärts"
63
+
64
+ #: ../nggbutton.php:36
65
+ #: ../admin/addgallery.php:240
66
+ #: ../admin/addgallery.php:291
67
+ #: ../admin/admin.php:45
68
+ #: ../admin/manage.php:44
69
+ #: ../admin/manage.php:341
70
+ #: ../admin/settings.php:121
71
+ msgid "Gallery"
72
+ msgstr "Galerie"
73
+
74
+ #: ../nggbutton.php:37
75
+ #: ../admin/admin.php:48
76
+ msgid "Album"
77
+ msgstr "Album"
78
+
79
+ #: ../nggbutton.php:38
80
+ #: ../nggfunctions.php:456
81
+ #: ../admin/manage.php:64
82
+ msgid "Picture"
83
+ msgstr "Bild"
84
+
85
+ #: ../nggbutton.php:48
86
+ msgid "Select gallery"
87
+ msgstr "Wähle Galerie"
88
+
89
+ #: ../nggbutton.php:62
90
+ #: ../nggbutton.php:89
91
+ msgid "Show as"
92
+ msgstr "Zeige als"
93
+
94
+ #: ../nggbutton.php:63
95
+ msgid "Image list"
96
+ msgstr "Bilder-Liste"
97
+
98
+ #: ../nggbutton.php:64
99
+ #: ../admin/settings.php:124
100
+ #: ../admin/settings.php:272
101
+ #: ../admin/settings.php:473
102
+ msgid "Slideshow"
103
+ msgstr "Slideshow"
104
+
105
+ #: ../nggbutton.php:75
106
+ #: ../admin/album.php:98
107
+ msgid "Select album"
108
+ msgstr "Wähle Album"
109
+
110
+ #: ../nggbutton.php:77
111
+ msgid "No album"
112
+ msgstr "Kein Album"
113
+
114
+ #: ../nggbutton.php:90
115
+ msgid "Extended version"
116
+ msgstr "Erweiterte Version"
117
+
118
+ #: ../nggbutton.php:91
119
+ msgid "Compact version"
120
+ msgstr "Kompakte Version"
121
+
122
+ #: ../nggbutton.php:102
123
+ msgid "Select picture"
124
+ msgstr "Wähle Bild"
125
+
126
+ #: ../nggbutton.php:104
127
+ msgid "No picture"
128
+ msgstr "Kein Bild"
129
+
130
+ #: ../nggbutton.php:116
131
+ msgid "Width x Height"
132
+ msgstr "Breite x Höhe"
133
+
134
+ #: ../nggbutton.php:120
135
+ msgid "Effect"
136
+ msgstr "Effekt"
137
+
138
+ #: ../nggbutton.php:123
139
+ msgid "No effect"
140
+ msgstr "Kein Effekt"
141
+
142
+ #: ../nggbutton.php:124
143
+ #: ../admin/settings.php:123
144
+ #: ../admin/settings.php:370
145
+ msgid "Watermark"
146
+ msgstr "Wasserzeichen"
147
+
148
+ #: ../nggbutton.php:125
149
+ msgid "Web 2.0"
150
+ msgstr "Web 2.0"
151
+
152
+ #: ../nggbutton.php:130
153
+ msgid "Float"
154
+ msgstr "Float"
155
+
156
+ #: ../nggbutton.php:133
157
+ msgid "No float"
158
+ msgstr "Kein Float"
159
+
160
+ #: ../nggbutton.php:134
161
+ msgid "Left"
162
+ msgstr "Links"
163
+
164
+ #: ../nggbutton.php:135
165
+ msgid "Right"
166
+ msgstr "Rechts"
167
+
168
+ #: ../nggbutton.php:147
169
+ msgid "Cancel"
170
+ msgstr "Abbrechen"
171
+
172
+ #: ../nggbutton.php:151
173
+ #: ../js/nggadmintab-js.php:151
174
+ msgid "Insert"
175
+ msgstr "Einfügen"
176
+
177
+ #: ../nggfunctions.php:366
178
+ #: ../nggfunctions.php:382
179
+ msgid "Watch gallery"
180
+ msgstr "Galerie ansehen"
181
+
182
+ #: ../nggfunctions.php:376
183
+ msgid "Photos"
184
+ msgstr "Fotos"
185
+
186
+ #: ../nggfunctions.php:456
187
+ msgid "from"
188
+ msgstr "von"
189
+
190
+ #: ../ngginstall.php:101
191
+ msgid "[Show as slideshow]"
192
+ msgstr "[Zeige als Slideshow]"
193
+
194
+ #: ../ngginstall.php:102
195
+ msgid "[Show picture list]"
196
+ msgstr "[Zeige Bilder-Liste]"
197
+
198
+ #: ../ngginstall.php:112
199
+ msgid "Back"
200
+ msgstr "Zurück"
201
+
202
+ #: ../ngginstall.php:113
203
+ msgid "Next"
204
+ msgstr "Vor"
205
+
206
+ #: ../nggwidget.php:148
207
+ msgid "Title:"
208
+ msgstr "Titel:"
209
+
210
+ #: ../nggwidget.php:149
211
+ msgid "Select Gallery:"
212
+ msgstr "Wähle Galerie"
213
+
214
+ #: ../nggwidget.php:160
215
+ msgid "Height:"
216
+ msgstr "Höhe:"
217
+
218
+ #: ../nggwidget.php:161
219
+ msgid "Width:"
220
+ msgstr "Breite:"
221
+
222
+ #: ../nggwidget.php:401
223
+ msgid "NextGEN Recent Image"
224
+ msgstr "NextGEN Letzte Bilder"
225
+
226
+ #: ../nggwidget.php:441
227
+ #: ../nggwidget.php:644
228
+ #: ../admin/album.php:213
229
+ #: ../admin/manage.php:221
230
+ #: ../admin/manage.php:351
231
+ #: ../js/nggadmintab-js.php:104
232
+ msgid "Title"
233
+ msgstr "Titel"
234
+
235
+ #: ../nggwidget.php:444
236
+ #: ../nggwidget.php:647
237
+ msgid "Display type"
238
+ msgstr "Verende Bild"
239
+
240
+ #: ../nggwidget.php:446
241
+ #: ../nggwidget.php:649
242
+ #: ../admin/manage.php:433
243
+ #: ../js/nggadmintab-js.php:101
244
+ msgid "Thumbnail"
245
+ msgstr "Thumbnail"
246
+
247
+ #: ../nggwidget.php:447
248
+ #: ../nggwidget.php:650
249
+ msgid "Orginal"
250
+ msgstr "Orginal"
251
+
252
+ #: ../nggwidget.php:450
253
+ #: ../nggwidget.php:654
254
+ msgid "Number of pics"
255
+ msgstr "Anzahl der Bilder"
256
+
257
+ #: ../nggwidget.php:461
258
+ #: ../nggwidget.php:665
259
+ msgid "Width (px)"
260
+ msgstr "Breite (px)"
261
+
262
+ #: ../nggwidget.php:463
263
+ #: ../nggwidget.php:667
264
+ msgid "Height (px)"
265
+ msgstr "Höhe (px)"
266
+
267
+ #: ../nggwidget.php:465
268
+ #: ../nggwidget.php:669
269
+ msgid "Mode"
270
+ msgstr "Modus"
271
+
272
+ #: ../nggwidget.php:467
273
+ #: ../nggwidget.php:671
274
+ #: ../admin/settings.php:512
275
+ msgid "none"
276
+ msgstr "keiner"
277
+
278
+ #: ../nggwidget.php:468
279
+ #: ../nggwidget.php:672
280
+ msgid "web2.0"
281
+ msgstr "Web 2.0"
282
+
283
+ #: ../nggwidget.php:472
284
+ #: ../nggwidget.php:676
285
+ msgid "Show in the main page"
286
+ msgstr "Zeige auf der Startseite"
287
+
288
+ #: ../nggwidget.php:474
289
+ #: ../nggwidget.php:678
290
+ msgid "yes"
291
+ msgstr "Ja"
292
+
293
+ #: ../nggwidget.php:475
294
+ #: ../nggwidget.php:679
295
+ msgid "no"
296
+ msgstr "Nein"
297
+
298
+ #: ../nggwidget.php:478
299
+ #: ../nggwidget.php:682
300
+ msgid "Show in"
301
+ msgstr "Zeige in"
302
+
303
+ #: ../nggwidget.php:480
304
+ #: ../nggwidget.php:684
305
+ msgid "All categories"
306
+ msgstr "Alle Kategorien"
307
+
308
+ #: ../nggwidget.php:481
309
+ #: ../nggwidget.php:685
310
+ msgid "Only which are not listed"
311
+ msgstr "Nur ungelistete"
312
+
313
+ #: ../nggwidget.php:482
314
+ #: ../nggwidget.php:686
315
+ msgid "Only which are listed"
316
+ msgstr "Nur gelistete"
317
+
318
+ #: ../nggwidget.php:485
319
+ #: ../nggwidget.php:689
320
+ msgid "Categories (id (use , to seperate)"
321
+ msgstr "Kategorie (ID (nutze , für mehrere))"
322
+
323
+ #: ../nggwidget.php:603
324
+ msgid "NextGEN Random Image"
325
+ msgstr "NextGEN Zufallsbild"
326
+
327
+ #: ../admin/about.php:9
328
+ msgid "Copyright notes / Credits"
329
+ msgstr "Copyright Hinweise / Credits"
330
+
331
+ #: ../admin/about.php:11
332
+ msgid "NextGEN DEV Team"
333
+ msgstr "NextGEN DEV Team"
334
+
335
+ #: ../admin/about.php:12
336
+ msgid "This plugin is a team work of a virtual developer team around the world. Follow persons take part at the development till now :"
337
+ msgstr "Dieses Plugin wurde von einem virtuellen Entwickler Team rund um den Globus erstellt. Folgende Personen haben bis heute mitgeholfen :"
338
+
339
+ #: ../admin/about.php:14
340
+ msgid "(Lead developer)"
341
+ msgstr "(Leitender Entwickler)"
342
+
343
+ #: ../admin/about.php:15
344
+ #: ../admin/about.php:16
345
+ msgid "(Core developer)"
346
+ msgstr "(Core Entwickler)"
347
+
348
+ #: ../admin/about.php:17
349
+ msgid "(Sidebar Widget developer)"
350
+ msgstr "(Sidebar Widget Entwickler)"
351
+
352
+ #: ../admin/about.php:19
353
+ msgid "Contributors / Tribute to"
354
+ msgstr "Anerkennung / Hinweise"
355
+
356
+ #: ../admin/about.php:20
357
+ 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."
358
+ msgstr "Falls Du Dir den Sourcecode dieses Plugins ansiehst wirst Du merken, das wir verschiedene gute und bereits entstandene Scripte sowie Ideen verwendet habe."
359
+
360
+ #: ../admin/about.php:21
361
+ 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)"
362
+ msgstr "Wir möchten folgenden Menschen für Ihre Pionier-Arbeit danken (ohne diese Vorleistung wäre es unmöglich ein Plugin so schnell zu entwickeln)"
363
+
364
+ #: ../admin/about.php:23
365
+ msgid "for their great documented code"
366
+ msgstr "für Ihren großartig dokumentierten Code"
367
+
368
+ #: ../admin/about.php:24
369
+ msgid "for jQuery, which is the best Web2.0 framework"
370
+ msgstr "für jQuery, das Beste Web2.0 Framework"
371
+
372
+ #: ../admin/about.php:25
373
+ msgid "for the fantastic PHP Thumbnail Class"
374
+ msgstr "für die fantastische PHP Thumbnail Klasse"
375
+
376
+ #: ../admin/about.php:26
377
+ msgid "for PclZip , a PHP library that manage ZIP archives"
378
+ msgstr "für PclZip, eine ZIP PHP Library"
379
+
380
+ #: ../admin/about.php:27
381
+ msgid "for a lot of very useful plugins and ideas"
382
+ msgstr "für viele nützliche Plugins und Ideen"
383
+
384
+ #: ../admin/about.php:28
385
+ msgid "for RS-Discuss, it saved me a lot of time"
386
+ msgstr "für RS-Discuss, welches mir viel Zeit sparte"
387
+
388
+ #: ../admin/about.php:29
389
+ msgid "for the best Media Flash Scripts on earth"
390
+ msgstr "für die besten Media Flash Scripte auf Erden"
391
+
392
+ #: ../admin/about.php:30
393
+ msgid "for the Watermark plugin"
394
+ msgstr "für das Wasserzeichen Plugin"
395
+
396
+ #: ../admin/about.php:31
397
+ msgid "for MyGallery, the best gallery plugin concept"
398
+ msgstr "für MyGallery, das beste Galerie-Plugin Konzept"
399
+
400
+ #: ../admin/about.php:33
401
+ 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."
402
+ msgstr "Falls Du Deinen Namen hier nicht auf dieser Liste findest und es einigen Code gibt, den ich in meinem Plugin verwendet habe, so schicken mir bitte sofort einfach eine EMail."
403
+
404
+ #: ../admin/about.php:34
405
+ msgid "How to support ?"
406
+ msgstr "Wie kann ichs unterstützen ?"
407
+
408
+ #: ../admin/about.php:35
409
+ msgid "There exist several ways to contribute, help or support us in this work. Non of them are mandatory."
410
+ msgstr "Es existieren verschiedene Möglichkeiten diese Arbeit zu unterstützen. Es liegt an Dir wie du uns motivierst."
411
+
412
+ #: ../admin/about.php:37
413
+ msgid "Send us bugfixes / code changes"
414
+ msgstr "Schicke uns Verbesserungen / Bugfixes"
415
+
416
+ #: ../admin/about.php:37
417
+ msgid "The most motivated support for this plugin are your ideas and brain work"
418
+ msgstr "Der beste Support für dieses Plugin sind Deine Ideen und Gedanken"
419
+
420
+ #: ../admin/about.php:38
421
+ msgid "Translate the plugin"
422
+ msgstr "Übersetze das Plugin"
423
+
424
+ #: ../admin/about.php:38
425
+ msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
426
+ msgstr "Um jedem das Arbeiten mit diesem Plugin zu vereinfachen würde ich es gerne in allen verfügbaren Sprachen anbieten"
427
+
428
+ #: ../admin/about.php:39
429
+ msgid "Donate the work via paypal"
430
+ msgstr "Zeig Dich für diese Arbeit per PayPal dankbar"
431
+
432
+ #: ../admin/about.php:49
433
+ msgid "No doubt a very usefull and easy motivation :-)"
434
+ msgstr "Kein Zweifel, eine schöne und simple Motivationshilfe"
435
+
436
+ #: ../admin/about.php:51
437
+ msgid "Place a link to the plugin in your blog/webpage"
438
+ msgstr "Setze einen Link zu diesem Plugin auf Deinen Blog"
439
+
440
+ #: ../admin/about.php:51
441
+ msgid "Yes, share and trackback is also a good support for this work "
442
+ msgstr "Natürlich sind Trackbacks und Links auch ein guter Support für diese Arbeit"
443
+
444
+ #: ../admin/about.php:53
445
+ msgid "Thanks!"
446
+ msgstr "Vielen Dank!"
447
+
448
+ #: ../admin/about.php:54
449
+ msgid "We would like to thank this people which support us in the work :"
450
+ msgstr "Wir wollen diesen Menschen für Ihre Hilfe danken:"
451
+
452
+ #: ../admin/addgallery.php:23
453
+ #: ../admin/addgallery.php:37
454
+ msgid "Upload failed!"
455
+ msgstr "Upload fehlgeschlagen!"
456
+
457
+ #: ../admin/addgallery.php:103
458
+ msgid "remove"
459
+ msgstr "Entfernen"
460
+
461
+ #: ../admin/addgallery.php:111
462
+ #: ../admin/addgallery.php:123
463
+ msgid "Add new gallery"
464
+ msgstr "Neue Galerie erstellen"
465
+
466
+ #: ../admin/addgallery.php:113
467
+ #: ../admin/addgallery.php:140
468
+ msgid "Upload a Zip-File"
469
+ msgstr "Zip-Datei hochladen"
470
+
471
+ #: ../admin/addgallery.php:115
472
+ #: ../admin/addgallery.php:156
473
+ msgid "Import image folder"
474
+ msgstr "Bilder-Verzeichniss importieren"
475
+
476
+ #: ../admin/addgallery.php:116
477
+ #: ../admin/addgallery.php:173
478
+ msgid "Upload Images"
479
+ msgstr "Bilder hochladen"
480
+
481
+ #: ../admin/addgallery.php:128
482
+ msgid "New Gallery"
483
+ msgstr "Neue Galerie"
484
+
485
+ #: ../admin/addgallery.php:130
486
+ msgid "Create a new , empty gallery below the folder"
487
+ msgstr "Erstelle eine neue, leere Galerie unter dem Verzeichniss"
488
+
489
+ #: ../admin/addgallery.php:131
490
+ msgid "Allowed characters for file and folder names are"
491
+ msgstr "Erlaubte Charaktere für die Datei- und Verzeichnissnamen sind"
492
+
493
+ #: ../admin/addgallery.php:134
494
+ msgid "Add gallery"
495
+ msgstr "Galerie hinzufügen"
496
+
497
+ #: ../admin/addgallery.php:145
498
+ msgid "Select Zip-File"
499
+ msgstr "Wähle Zip-Datei"
500
+
501
+ #: ../admin/addgallery.php:147
502
+ msgid "Upload a zip file with images"
503
+ msgstr "Lade eine Zip-Datei mit Bildern hoch"
504
+
505
+ #: ../admin/addgallery.php:150
506
+ msgid "Start upload"
507
+ msgstr "Upload starten"
508
+
509
+ #: ../admin/addgallery.php:161
510
+ msgid "Import from Server path:"
511
+ msgstr "Importieren aus Server-Pfad:"
512
+
513
+ #: ../admin/addgallery.php:163
514
+ msgid "Import a folder with images. Please note :"
515
+ msgstr "Importiere ein Verzeichniss mit Bildern. Bitte beachte:"
516
+
517
+ #: ../admin/addgallery.php:164
518
+ msgid "For save_mode = ON you need to add the subfolder thumbs manually"
519
+ msgstr "Falls save_mode = ON (PHP.INI) mußt Du die Thumbs im Unterverzeichniss manuell hinzufügen"
520
+
521
+ #: ../admin/addgallery.php:167
522
+ msgid "Import folder"
523
+ msgstr "Verzeichniss importieren"
524
+
525
+ #: ../admin/addgallery.php:178
526
+ msgid "Upload image"
527
+ msgstr "Bild hochladen"
528
+
529
+ #: ../admin/addgallery.php:182
530
+ msgid "in to"
531
+ msgstr "in"
532
+
533
+ #: ../admin/addgallery.php:184
534
+ msgid "Choose gallery"
535
+ msgstr "Wähle Galerie"
536
+
537
+ #: ../admin/addgallery.php:194
538
+ msgid "Note : The upload limit on your server is "
539
+ msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt"
540
+
541
+ #: ../admin/addgallery.php:197
542
+ msgid "Upload images"
543
+ msgstr "Bilder hochladen"
544
+
545
+ #: ../admin/addgallery.php:217
546
+ msgid "No valid gallery name!"
547
+ msgstr "Kein gültiger Galerie-Name!"
548
+
549
+ #: ../admin/addgallery.php:220
550
+ #: ../admin/addgallery.php:225
551
+ #: ../admin/addgallery.php:260
552
+ #: ../admin/addgallery.php:264
553
+ msgid "Directory"
554
+ msgstr "Verzeichniss"
555
+
556
+ #: ../admin/addgallery.php:220
557
+ msgid "didn't have the permissions "
558
+ msgstr "hat nicht die Berechtigungen"
559
+
560
+ #: ../admin/addgallery.php:225
561
+ msgid "already exists!"
562
+ msgstr "gibt es schon!"
563
+
564
+ #: ../admin/addgallery.php:229
565
+ #: ../admin/addgallery.php:231
566
+ #: ../admin/addgallery.php:270
567
+ #: ../admin/addgallery.php:484
568
+ #: ../admin/addgallery.php:486
569
+ msgid "Unable to create directory "
570
+ msgstr "Kann Verzeichniss nicht erstellen"
571
+
572
+ #: ../admin/addgallery.php:230
573
+ #: ../admin/addgallery.php:485
574
+ #: ../admin/addgallery.php:487
575
+ msgid "Unable to set directory permissions "
576
+ msgstr "Kann die Berechtigungen nicht setzen"
577
+
578
+ #: ../admin/addgallery.php:232
579
+ msgid "Unable to set directory permissions"
580
+ msgstr "Kann die Berechtigungen nicht setzen"
581
+
582
+ #: ../admin/addgallery.php:234
583
+ msgid "The server Safe-Mode is on !"
584
+ msgstr "Auf dem Server ist Safe-Mode aktiviert (PHP.INI)"
585
+
586
+ #: ../admin/addgallery.php:235
587
+ msgid "Please create directory"
588
+ msgstr "Bitte erstelle das Verzeichniss"
589
+
590
+ #: ../admin/addgallery.php:236
591
+ msgid "and the thumbnails directory"
592
+ msgstr "und das Thumbnails-Verzeichniss"
593
+
594
+ #: ../admin/addgallery.php:236
595
+ msgid "with permission 777 manually !"
596
+ msgstr "mit den Berechtigungen 777 manuell !"
597
+
598
+ #: ../admin/addgallery.php:240
599
+ msgid "already exists"
600
+ msgstr "gibt es bereits"
601
+
602
+ #: ../admin/addgallery.php:243
603
+ msgid "Gallery successfully created!"
604
+ msgstr "Galerie erfolgreich erstellt!"
605
+
606
+ #: ../admin/addgallery.php:260
607
+ #: ../admin/addgallery.php:269
608
+ msgid "doesn&#96;t exist"
609
+ msgstr "gibt es nicht"
610
+
611
+ #: ../admin/addgallery.php:264
612
+ msgid "contains no pictures"
613
+ msgstr "enthält keine Bilder"
614
+
615
+ #: ../admin/addgallery.php:269
616
+ msgid "Thumbnail Directory"
617
+ msgstr "Thumbnail Verzeichniss"
618
+
619
+ #: ../admin/addgallery.php:269
620
+ msgid "Please create the folder <i>thumbs</i> in your gallery folder."
621
+ msgstr "Bitte erstelle das Verzeichniss <i>thumbs</i> in Deinem Galerie-Verzeichniss als Unterverzeichniss."
622
+
623
+ #: ../admin/addgallery.php:277
624
+ msgid "Database error. Could not add gallery!"
625
+ msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
626
+
627
+ #: ../admin/addgallery.php:291
628
+ msgid "successfully created!"
629
+ msgstr "erfolgreich erstellt!"
630
+
631
+ #: ../admin/addgallery.php:291
632
+ msgid " pictures added."
633
+ msgstr " Bilder hinzugefügt."
634
+
635
+ #: ../admin/addgallery.php:334
636
+ #: ../admin/addgallery.php:372
637
+ msgid "Some pictures are not writeable :"
638
+ msgstr "Einige Bilder sind schreibgeschützt :"
639
+
640
+ #: ../admin/addgallery.php:444
641
+ msgid "Follow thumbnails could not created."
642
+ msgstr "Folgende Thumbnails konnten nicht erstellt werden :"
643
+
644
+ #: ../admin/addgallery.php:445
645
+ msgid "Some thumbnails are not writeable :"
646
+ msgstr "Einige Thumbnails sind schreibgeschützt :"
647
+
648
+ #: ../admin/addgallery.php:475
649
+ msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
650
+ msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
651
+
652
+ #: ../admin/addgallery.php:490
653
+ msgid "Directory already exists, please rename zip file"
654
+ msgstr "Verzeichniss gibt es schon; bitte nenne Deine Zip-Datei um."
655
+
656
+ #: ../admin/addgallery.php:495
657
+ msgid "Unable to unlink zip file "
658
+ msgstr "Unfähig die Zip-Datei zu bearbeiten"
659
+
660
+ #: ../admin/addgallery.php:497
661
+ msgid "Zip-File successfully unpacked"
662
+ msgstr "Zip-Datei erfolgreich entpackt"
663
+
664
+ #: ../admin/addgallery.php:524
665
+ #: ../admin/addgallery.php:531
666
+ msgid "Unable to unlink file "
667
+ msgstr "Unfähig das File zu bearbeiten"
668
+
669
+ #: ../admin/addgallery.php:525
670
+ msgid "No gallery selected !"
671
+ msgstr "Keine Galerie ausgewählt !"
672
+
673
+ #: ../admin/addgallery.php:532
674
+ msgid "Failure in database, no gallery path set !"
675
+ msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
676
+
677
+ #: ../admin/addgallery.php:538
678
+ msgid "Error, the file could not moved to : "
679
+ msgstr "Fehler: diese Datei kann nicht verschoben werden zu :"
680
+
681
+ #: ../admin/addgallery.php:539
682
+ msgid "Error, the file permissions could not set"
683
+ msgstr "Fehler: die Berechtigungen für diese Datei können nicht gesetzt werden"
684
+
685
+ #: ../admin/addgallery.php:559
686
+ msgid " Images successfully added"
687
+ msgstr " Bild(er) erfolgreich hinzugefügt"
688
+
689
+ #: ../admin/admin.php:46
690
+ msgid "Add Gallery"
691
+ msgstr "Galerie hinzufügen"
692
+
693
+ #: ../admin/admin.php:47
694
+ msgid "Manage Gallery"
695
+ msgstr "Galerie verwalten"
696
+
697
+ #: ../admin/admin.php:49
698
+ msgid "Options"
699
+ msgstr "Optionen"
700
+
701
+ #: ../admin/admin.php:50
702
+ msgid "Style"
703
+ msgstr "Style"
704
+
705
+ #: ../admin/admin.php:51
706
+ msgid "Setup Gallery"
707
+ msgstr "Galerie Setup"
708
+
709
+ #: ../admin/admin.php:51
710
+ msgid "Setup"
711
+ msgstr "Setup"
712
+
713
+ #: ../admin/admin.php:52
714
+ msgid "About this Gallery"
715
+ msgstr "Über diese Galerie"
716
+
717
+ #: ../admin/admin.php:52
718
+ msgid "About"
719
+ msgstr "Über"
720
+
721
+ #: ../admin/album.php:14
722
+ #: ../admin/album.php:33
723
+ msgid "Update Successfully"
724
+ msgstr "Update erfolgreich"
725
+
726
+ #: ../admin/album.php:40
727
+ msgid "Album deleted"
728
+ msgstr "Album gelöscht"
729
+
730
+ #: ../admin/album.php:93
731
+ msgid "Manage Albums"
732
+ msgstr "Verwalte Alben"
733
+
734
+ #: ../admin/album.php:101
735
+ msgid "No album selected"
736
+ msgstr "Kein Album ausgewählt"
737
+
738
+ #: ../admin/album.php:114
739
+ msgid "Add new album"
740
+ msgstr "Album hinzufügen"
741
+
742
+ #: ../admin/album.php:118
743
+ #: ../admin/manage.php:245
744
+ #: ../admin/manage.php:477
745
+ msgid "Delete"
746
+ msgstr "Lösche"
747
+
748
+ #: ../admin/album.php:118
749
+ msgid "Delete album ?"
750
+ msgstr "Lösche Album ?"
751
+
752
+ #: ../admin/album.php:120
753
+ #: ../admin/settings.php:155
754
+ #: ../admin/settings.php:194
755
+ #: ../admin/settings.php:231
756
+ #: ../admin/settings.php:311
757
+ #: ../admin/settings.php:356
758
+ #: ../admin/settings.php:463
759
+ #: ../admin/settings.php:565
760
+ msgid "Update"
761
+ msgstr "Aktualisiere"
762
+
763
+ #: ../admin/album.php:126
764
+ msgid "After you create and select a album, you can drag and drop a gallery into your album below"
765
+ msgstr "Nachdem du ein Album erstellt und ausgewählt hast, kannst du per Drag & Drop eine Galerie in das Album ziehen"
766
+
767
+ #: ../admin/album.php:131
768
+ msgid "Select Gallery"
769
+ msgstr "Wähle Galerie"
770
+
771
+ #: ../admin/album.php:164
772
+ msgid "Album Page ID"
773
+ msgstr "Album Seiten ID (Page ID)"
774
+
775
+ #: ../admin/album.php:176
776
+ msgid "No album selected!"
777
+ msgstr "Kein Album ausgewählt"
778
+
779
+ #: ../admin/album.php:211
780
+ #: ../admin/manage.php:219
781
+ #: ../admin/manage.php:430
782
+ msgid "ID"
783
+ msgstr "ID"
784
+
785
+ #: ../admin/album.php:212
786
+ msgid "Name"
787
+ msgstr "Name"
788
+
789
+ #: ../admin/album.php:214
790
+ msgid "Page"
791
+ msgstr "Seite"
792
+
793
+ #: ../admin/manage.php:44
794
+ #: ../admin/manage.php:64
795
+ msgid "deleted successfully"
796
+ msgstr "erfolgreich gelöscht"
797
+
798
+ #: ../admin/manage.php:87
799
+ msgid "Watermark successfully added"
800
+ msgstr "Wasserzeichen erfolgreich erstellt"
801
+
802
+ #: ../admin/manage.php:92
803
+ msgid "Thumbnails successfully created. Please refresh your browser cache."
804
+ msgstr "Thumbnails erfolgreich erstellt. Bitte Browser-Cache aktualisieren."
805
+
806
+ #: ../admin/manage.php:97
807
+ msgid "Images successfully resized"
808
+ msgstr "Bilder erfolgreich verkleinert"
809
+
810
+ #: ../admin/manage.php:115
811
+ msgid "Pictures deleted successfully "
812
+ msgstr "Bilder erfolgreich gelöscht"
813
+
814
+ #: ../admin/manage.php:133
815
+ #: ../admin/settings.php:25
816
+ #: ../admin/style.php:15
817
+ msgid "Update successfully"
818
+ msgstr "Aktualisierung erfolgreich"
819
+
820
+ #: ../admin/manage.php:155
821
+ msgid " picture(s) successfully added"
822
+ msgstr " Bild(er) erfolgreich hinzugefügt"
823
+
824
+ #: ../admin/manage.php:178
825
+ msgid "New gallery page ID"
826
+ msgstr "Neue Galerie Seiten ID"
827
+
828
+ #: ../admin/manage.php:178
829
+ msgid "created"
830
+ msgstr "erstellt"
831
+
832
+ #: ../admin/manage.php:215
833
+ msgid "Gallery Overview"
834
+ msgstr "Galerie Übersicht"
835
+
836
+ #: ../admin/manage.php:220
837
+ msgid "Gallery name"
838
+ msgstr "Galerie Name"
839
+
840
+ #: ../admin/manage.php:223
841
+ msgid "Page ID"
842
+ msgstr "Seiten ID (Page ID)"
843
+
844
+ #: ../admin/manage.php:224
845
+ msgid "Quantity"
846
+ msgstr "Anzahl"
847
+
848
+ #: ../admin/manage.php:225
849
+ #: ../admin/manage.php:442
850
+ msgid "Action"
851
+ msgstr "Aktion"
852
+
853
+ #: ../admin/manage.php:244
854
+ #: ../js/nggadmintab-js.php:88
855
+ msgid "Edit"
856
+ msgstr "Bearbeiten"
857
+
858
+ #: ../admin/manage.php:245
859
+ #: ../admin/manage.php:477
860
+ msgid "Delete this file ?"
861
+ msgstr "Diese Datei löschen ?"
862
+
863
+ #: ../admin/manage.php:250
864
+ #: ../admin/manage.php:482
865
+ msgid "No entries found"
866
+ msgstr "Keine Einträge gefunden"
867
+
868
+ #: ../admin/manage.php:353
869
+ msgid "Page Link to"
870
+ msgstr "Seite verlinkt zu"
871
+
872
+ #: ../admin/manage.php:356
873
+ msgid "Not linked"
874
+ msgstr "Nicht verlinkt"
875
+
876
+ #: ../admin/manage.php:372
877
+ msgid "Preview image"
878
+ msgstr "Vorschau-Bild"
879
+
880
+ #: ../admin/manage.php:375
881
+ msgid "No Picture"
882
+ msgstr "Kein Bild"
883
+
884
+ #: ../admin/manage.php:390
885
+ msgid "Path"
886
+ msgstr "Pfad"
887
+
888
+ #: ../admin/manage.php:393
889
+ msgid "Create new page"
890
+ msgstr "Neue Seite erstellen"
891
+
892
+ #: ../admin/manage.php:396
893
+ msgid "Main page (No parent)"
894
+ msgstr "Haupseite (keine Unetrseite)"
895
+
896
+ #: ../admin/manage.php:399
897
+ msgid "Add page"
898
+ msgstr "Seite hinzufügen"
899
+
900
+ #: ../admin/manage.php:405
901
+ msgid "Scan Folder for new images"
902
+ msgstr "Überprüfe Verzeichniss nach neuen Bildern"
903
+
904
+ #: ../admin/manage.php:406
905
+ #: ../admin/manage.php:489
906
+ msgid "Save Changes"
907
+ msgstr "Änderungen Speichern"
908
+
909
+ #: ../admin/manage.php:411
910
+ msgid "No action"
911
+ msgstr "Keine Aktion"
912
+
913
+ #: ../admin/manage.php:412
914
+ msgid "Set watermark"
915
+ msgstr "Wasserzeichen setzen"
916
+
917
+ #: ../admin/manage.php:413
918
+ msgid "Create new thumbnails"
919
+ msgstr "Neue Thumbnails erstellen"
920
+
921
+ #: ../admin/manage.php:414
922
+ msgid "Resize images"
923
+ msgstr "Bilder verkleinern"
924
+
925
+ #: ../admin/manage.php:415
926
+ msgid "Delete images"
927
+ msgstr "Bilder löschen"
928
+
929
+ #: ../admin/manage.php:418
930
+ msgid "OK"
931
+ msgstr "OK"
932
+
933
+ #: ../admin/manage.php:418
934
+ msgid "No images selected"
935
+ msgstr "Keine Bilder ausgewählt"
936
+
937
+ #: ../admin/manage.php:418
938
+ #, php-format
939
+ msgid ""
940
+ "You are about to start the bulk edit for %s images \n"
941
+ " \n"
942
+ " 'Cancel' to stop, 'OK' to proceed."
943
+ msgstr ""
944
+ "Du startest die Bearbeitung von %s Bildern \n"
945
+ " \n"
946
+ " 'Cancel' um zu stoppen, 'OK' um die Bearbeitung durchzuführen."
947
+
948
+ #: ../admin/manage.php:419
949
+ msgid "Hide thumbnails "
950
+ msgstr "Thumbnails verstecken"
951
+
952
+ #: ../admin/manage.php:420
953
+ msgid "Show thumbnails "
954
+ msgstr "Thumbnails zeigen"
955
+
956
+ #: ../admin/manage.php:422
957
+ msgid "Show tags"
958
+ msgstr "Zeige Tags"
959
+
960
+ #: ../admin/manage.php:423
961
+ msgid "Hide tags"
962
+ msgstr "Verstecke Tags"
963
+
964
+ #: ../admin/manage.php:431
965
+ #: ../admin/settings.php:278
966
+ msgid "File name"
967
+ msgstr "Dateiname"
968
+
969
+ #: ../admin/manage.php:438
970
+ msgid "exclude"
971
+ msgstr "ausschließen"
972
+
973
+ #: ../admin/manage.php:440
974
+ msgid "Tags (comma separated list)"
975
+ msgstr "Stichwörter (Tags)"
976
+
977
+ #: ../admin/manage.php:476
978
+ msgid "View"
979
+ msgstr "Ansehen"
980
+
981
+ #: ../admin/overview.php:12
982
+ msgid "NextGEN Gallery Overview"
983
+ msgstr "NextGEN Galerie Übersicht"
984
+
985
+ #: ../admin/overview.php:15
986
+ msgid "Summary"
987
+ msgstr "Zusammenfassung"
988
+
989
+ #: ../admin/overview.php:24
990
+ #, php-format
991
+ msgid "There are totally %1$s pictures in %2$s gallerys, which are spread across %3$s albums."
992
+ msgstr "Es gibt insgesamt %1$s Bilder in %2$s Galerien - verteilt in %3$s Alben."
993
+
994
+ #: ../admin/overview.php:28
995
+ msgid "New Version available"
996
+ msgstr "Neue Version verfügbar !!"
997
+
998
+ #: ../admin/overview.php:29
999
+ msgid "The server reports that a new NextGEN Gallery Version is now available. Please visit the plugin homepage for more information."
1000
+ msgstr "Der Server benachrichtigt Dich über eine neu verfügbare Version der NextGEN Galerie. Bitte besuche die Plugin Homepage um weitere Informationen zu erhalten."
1001
+
1002
+ #: ../admin/overview.php:31
1003
+ msgid "Server Settings"
1004
+ msgstr "Server- Einstellungen"
1005
+
1006
+ #: ../admin/overview.php:38
1007
+ msgid "Welcome"
1008
+ msgstr "Wilkommen"
1009
+
1010
+ #: ../admin/overview.php:42
1011
+ msgid "gallery administrator"
1012
+ msgstr "Galerie-Administrator"
1013
+
1014
+ #: ../admin/overview.php:42
1015
+ msgid "gallery editor"
1016
+ msgstr "Galerie-Mitarbeiter"
1017
+
1018
+ #: ../admin/overview.php:43
1019
+ #, php-format
1020
+ msgid "Welcome to NextGEN Gallery. Here you can control your images, galleries and albums. You currently have %s rights."
1021
+ msgstr "Willkommen zur NextGEN Galerie. Hier kannst Du Deine Bilder, Galerien und Alben verwalten. Du hast im Moment %s Rechte."
1022
+
1023
+ #: ../admin/overview.php:48
1024
+ msgid "Add a new gallery or import pictures"
1025
+ msgstr "Neue Galerie erstellen oder Bilder importieren"
1026
+
1027
+ #: ../admin/overview.php:49
1028
+ msgid "Manage galleries and images"
1029
+ msgstr "Verwalte Galerien und Bilder"
1030
+
1031
+ #: ../admin/overview.php:50
1032
+ msgid "Create and manage albums"
1033
+ msgstr "Erstelle und verwalte Alben"
1034
+
1035
+ #: ../admin/overview.php:51
1036
+ msgid "Change the settings of NextGEN Gallery"
1037
+ msgstr "Ändere die Einstellungen von NextGEN Galerie"
1038
+
1039
+ #: ../admin/overview.php:54
1040
+ msgid "Latest News"
1041
+ msgstr "Neueste Schlagzeilen"
1042
+
1043
+ #: ../admin/overview.php:73
1044
+ #, php-format
1045
+ msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1046
+ msgstr "Der Newsfeed kann nicht geladen werden. Schaue auf die <a href=\"%s\">Hauptseite</a> um Updates mitzubekommen."
1047
+
1048
+ #: ../admin/overview.php:86
1049
+ msgid "GD support"
1050
+ msgstr "GD Unterstützung"
1051
+
1052
+ #: ../admin/overview.php:97
1053
+ msgid "No GD support"
1054
+ msgstr "Keine GD Unterstützung"
1055
+
1056
+ #: ../admin/overview.php:104
1057
+ msgid "Yes"
1058
+ msgstr "Ja"
1059
+
1060
+ #: ../admin/overview.php:105
1061
+ msgid "No"
1062
+ msgstr "Nein"
1063
+
1064
+ #: ../admin/overview.php:119
1065
+ msgid "Not set"
1066
+ msgstr "Nicht gesetzt"
1067
+
1068
+ #: ../admin/overview.php:121
1069
+ #: ../admin/overview.php:124
1070
+ msgid "On"
1071
+ msgstr "An"
1072
+
1073
+ #: ../admin/overview.php:122
1074
+ #: ../admin/overview.php:125
1075
+ msgid "Off"
1076
+ msgstr "Aus"
1077
+
1078
+ #: ../admin/overview.php:128
1079
+ #: ../admin/overview.php:131
1080
+ #: ../admin/overview.php:134
1081
+ #: ../admin/overview.php:137
1082
+ #: ../admin/overview.php:140
1083
+ msgid "N/A"
1084
+ msgstr "N/A"
1085
+
1086
+ #: ../admin/overview.php:139
1087
+ msgid " MByte"
1088
+ msgstr " MByte"
1089
+
1090
+ #: ../admin/overview.php:143
1091
+ msgid "Operating System"
1092
+ msgstr "Betriebssystem"
1093
+
1094
+ #: ../admin/overview.php:144
1095
+ msgid "Server"
1096
+ msgstr "Server"
1097
+
1098
+ #: ../admin/overview.php:145
1099
+ msgid "Memory usage"
1100
+ msgstr "Speicherverbrauch"
1101
+
1102
+ #: ../admin/overview.php:146
1103
+ msgid "MYSQL Version"
1104
+ msgstr "MySQL Version"
1105
+
1106
+ #: ../admin/overview.php:147
1107
+ msgid "SQL Mode"
1108
+ msgstr "SQL Modus"
1109
+
1110
+ #: ../admin/overview.php:148
1111
+ msgid "PHP Version"
1112
+ msgstr "PHP Version"
1113
+
1114
+ #: ../admin/overview.php:149
1115
+ msgid "PHP Safe Mode"
1116
+ msgstr "PHP Safe Mode"
1117
+
1118
+ #: ../admin/overview.php:150
1119
+ msgid "PHP Allow URL fopen"
1120
+ msgstr "PHP Allow URL fopen"
1121
+
1122
+ #: ../admin/overview.php:151
1123
+ msgid "PHP Memory Limit"
1124
+ msgstr "PHP Memory Limit"
1125
+
1126
+ #: ../admin/overview.php:152
1127
+ msgid "PHP Max Upload Size"
1128
+ msgstr "PHP Max Upload Size"
1129
+
1130
+ #: ../admin/overview.php:153
1131
+ msgid "PHP Max Post Size"
1132
+ msgstr "PHP Max Post Size"
1133
+
1134
+ #: ../admin/overview.php:154
1135
+ msgid "PHP Max Script Execute Time"
1136
+ msgstr "PHP Max Script Execute Time"
1137
+
1138
+ #: ../admin/settings.php:118
1139
+ #: ../admin/settings.php:134
1140
+ msgid "General Options"
1141
+ msgstr "Allg. Optionen"
1142
+
1143
+ #: ../admin/settings.php:119
1144
+ #: ../admin/settings.php:271
1145
+ msgid "Thumbnails"
1146
+ msgstr "Thumbnails"
1147
+
1148
+ #: ../admin/settings.php:120
1149
+ msgid "Images"
1150
+ msgstr "Bilder"
1151
+
1152
+ #: ../admin/settings.php:122
1153
+ #: ../admin/settings.php:319
1154
+ msgid "Effects"
1155
+ msgstr "Effekte"
1156
+
1157
+ #: ../admin/settings.php:140
1158
+ msgid "Gallery path"
1159
+ msgstr "Galerie-Pfad"
1160
+
1161
+ #: ../admin/settings.php:142
1162
+ msgid "This is the default path for all galleries"
1163
+ msgstr "Dies ist der Standard-Pfad für alle Galerien"
1164
+
1165
+ #: ../admin/settings.php:145
1166
+ msgid "Scan folders during runtime"
1167
+ msgstr "Überprüfe Verzeichnisse während der Laufzeit"
1168
+
1169
+ #: ../admin/settings.php:147
1170
+ msgid "Search automatic in the folders for new images (not working)"
1171
+ msgstr "Sucht automatisch in den Verzeichnissen nach neuen Bildern (geht noch nicht..)"
1172
+
1173
+ #: ../admin/settings.php:150
1174
+ msgid "Delete image files"
1175
+ msgstr "Lösche Bilddateien"
1176
+
1177
+ #: ../admin/settings.php:152
1178
+ msgid "Delete files, when removing a gallery in the database"
1179
+ msgstr "Löscht Dateien, falls die Galerie in der Datenbank entfernt wird"
1180
+
1181
+ #: ../admin/settings.php:163
1182
+ msgid "Thumbnail settings"
1183
+ msgstr "Thumbnail Einstellungen"
1184
+
1185
+ #: ../admin/settings.php:167
1186
+ msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1187
+ msgstr "Bitte beachten : Änderungen der Einstellungen werden erst übernommen, wenn Du neue Thumbnails unter -> \"Gallery verwalten\" erstellst"
1188
+
1189
+ #: ../admin/settings.php:170
1190
+ msgid "Width x height (in pixel)"
1191
+ msgstr "Breite x Höhe (in Pixel)"
1192
+
1193
+ #: ../admin/settings.php:172
1194
+ msgid "These values are maximum values "
1195
+ msgstr "Diese Angaben sind maximale Angaben."
1196
+
1197
+ #: ../admin/settings.php:175
1198
+ msgid "Set fix dimension"
1199
+ msgstr "Setze fixe Größe"
1200
+
1201
+ #: ../admin/settings.php:177
1202
+ msgid "Ignore the aspect ratio, no portrait thumbnails"
1203
+ msgstr "Ignoriere Bildseitenverhältnis"
1204
+
1205
+ #: ../admin/settings.php:180
1206
+ msgid "Crop square thumbnail from image"
1207
+ msgstr "Mittige Thumbnails aus Bildern ausschneiden"
1208
+
1209
+ #: ../admin/settings.php:182
1210
+ msgid "Create square thumbnails, use only the width setting :"
1211
+ msgstr "Erstellt viereckige Thumbnails, nutzt nur den Wert der Breite :"
1212
+
1213
+ #: ../admin/settings.php:185
1214
+ msgid "Thumbnail quality"
1215
+ msgstr "Thumbnail Qualität"
1216
+
1217
+ #: ../admin/settings.php:189
1218
+ #: ../admin/settings.php:219
1219
+ msgid "Resample Mode"
1220
+ msgstr "Resample Modus"
1221
+
1222
+ #: ../admin/settings.php:191
1223
+ #: ../admin/settings.php:222
1224
+ msgid "Value between 1-5 (higher value, more CPU load)"
1225
+ msgstr "Wähle zwischen 1-5 (je höhere desto mehr CPU Leistung notwendig)"
1226
+
1227
+ #: ../admin/settings.php:202
1228
+ msgid "Image settings"
1229
+ msgstr "Bild Einstellungen"
1230
+
1231
+ #: ../admin/settings.php:208
1232
+ msgid "Resize Images"
1233
+ msgstr "Bilder verkleinern"
1234
+
1235
+ #: ../admin/settings.php:211
1236
+ msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1237
+ msgstr "Breite x Höhe (in Pixel). NextGEN Galerie beachtet das Seitenverhältnis."
1238
+
1239
+ #: ../admin/settings.php:214
1240
+ msgid "Image quality"
1241
+ msgstr "Bild Qualität"
1242
+
1243
+ #: ../admin/settings.php:225
1244
+ msgid "Add link in [singlepic] tag "
1245
+ msgstr "Füge Link dem [singlepic] Tag hinzu"
1246
+
1247
+ #: ../admin/settings.php:228
1248
+ msgid "Add the fullsize picture as link. Didn't support watermark mode on the fly."
1249
+ msgstr "Setze das Bild (Vollansicht) als Link. Unterstützt kein setzen des Wasserzeichens on the fly."
1250
+
1251
+ #: ../admin/settings.php:239
1252
+ msgid "Gallery settings"
1253
+ msgstr "Galerie Einstellungen"
1254
+
1255
+ #: ../admin/settings.php:245
1256
+ msgid "Activate jQuery navigation"
1257
+ msgstr "Aktiviere jQuery Navigation"
1258
+
1259
+ #: ../admin/settings.php:247
1260
+ msgid "Please note : This is still experimental. Requires the Thickbox effect"
1261
+ msgstr "Bitte beachten : Diese Funktion befindet sich noch im Teststadium. Geht nur mit Thickbox."
1262
+
1263
+ #: ../admin/settings.php:251
1264
+ msgid "Deactivate gallery page link"
1265
+ msgstr "Keine Seitenverzweigung"
1266
+
1267
+ #: ../admin/settings.php:253
1268
+ msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1269
+ msgstr "Das Album benötigt dann keine Link zu Seiten. Die Galerie wird direkt angezeigt."
1270
+
1271
+ #: ../admin/settings.php:257
1272
+ msgid "Number of images per page"
1273
+ msgstr "Anzahl der Bilder pro Seite"
1274
+
1275
+ #: ../admin/settings.php:259
1276
+ msgid "0 will disable pagination, all images on one page"
1277
+ msgstr "0 schaltet Blätterfunktion ab ( = alle Bilder auf einer Seite )"
1278
+
1279
+ #: ../admin/settings.php:263
1280
+ msgid "Integrate slideshow"
1281
+ msgstr "Slideshow verwenden"
1282
+
1283
+ #: ../admin/settings.php:270
1284
+ msgid "Show first"
1285
+ msgstr "Zeige als erstes"
1286
+
1287
+ #: ../admin/settings.php:276
1288
+ msgid "Sort thumbnails"
1289
+ msgstr "Thumbnails sortieren"
1290
+
1291
+ #: ../admin/settings.php:277
1292
+ msgid "Image ID"
1293
+ msgstr "Bilder ID"
1294
+
1295
+ #: ../admin/settings.php:279
1296
+ msgid "Alt / Title text"
1297
+ msgstr "Alt / Titel Text"
1298
+
1299
+ #: ../admin/settings.php:283
1300
+ msgid "Sort direction"
1301
+ msgstr "Sortierreihenfolge"
1302
+
1303
+ #: ../admin/settings.php:284
1304
+ msgid "Ascending"
1305
+ msgstr "Aufsteigend"
1306
+
1307
+ #: ../admin/settings.php:285
1308
+ msgid "Descending"
1309
+ msgstr "Absteigend"
1310
+
1311
+ #: ../admin/settings.php:289
1312
+ msgid "Image Browser"
1313
+ msgstr "Bilder Browser"
1314
+
1315
+ #: ../admin/settings.php:292
1316
+ msgid "Show title as headline"
1317
+ msgstr "Zeige Titel als Kopfzeile"
1318
+
1319
+ #: ../admin/settings.php:294
1320
+ msgid "The alt/title text is shown as H3 headline "
1321
+ msgstr "Der Alt/Titeltext wir als H3 Kopfzeile angezeigt"
1322
+
1323
+ #: ../admin/settings.php:298
1324
+ msgid "Show image description"
1325
+ msgstr "Zeige Bildbeschreibung"
1326
+
1327
+ #: ../admin/settings.php:300
1328
+ msgid "The description text is shown below the picture"
1329
+ msgstr "Die Beschreibung wird unterhalb des Bildes angezeigt"
1330
+
1331
+ #: ../admin/settings.php:304
1332
+ msgid "Navigation text"
1333
+ msgstr "Naviagationstext"
1334
+
1335
+ #: ../admin/settings.php:322
1336
+ 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."
1337
+ msgstr "Hier kannst Du den Effekt für die Thumbnails auswählen. NextGEN Galerie wird den benötigten HTML Code verwenden. Bitte beachte, das nur der Thickbox Effekt automatisch in Dein Theme von Wordpress integriert wird. Alle anderen Effekte mußt Du selbst in die header.php eintragen (JS)."
1338
+
1339
+ #: ../admin/settings.php:323
1340
+ msgid "With the placeholder"
1341
+ msgstr "Mit Platzhalter"
1342
+
1343
+ #: ../admin/settings.php:323
1344
+ 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."
1345
+ msgstr "Du kannst eine Navigation durch die Bilder aktivieren (hängt vom Effekt ab). Ändere nur die Codezeile falls Du einen anderen Effekt für die Thumbnails verwendest oder einfach weißt, was Du tust."
1346
+
1347
+ #: ../admin/settings.php:327
1348
+ msgid "JavaScript Thumbnail effect"
1349
+ msgstr "JavaScript Thumbnail Effekt"
1350
+
1351
+ #: ../admin/settings.php:330
1352
+ #: ../js/nggadmintab-js.php:112
1353
+ msgid "None"
1354
+ msgstr "Keiner"
1355
+
1356
+ #: ../admin/settings.php:331
1357
+ msgid "Thickbox"
1358
+ msgstr "Thickbox"
1359
+
1360
+ #: ../admin/settings.php:332
1361
+ msgid "Lightbox"
1362
+ msgstr "Lightbox"
1363
+
1364
+ #: ../admin/settings.php:333
1365
+ msgid "Highslide"
1366
+ msgstr "Highslide"
1367
+
1368
+ #: ../admin/settings.php:334
1369
+ msgid "Custom"
1370
+ msgstr "Eigener"
1371
+
1372
+ #: ../admin/settings.php:339
1373
+ msgid "Link Code line"
1374
+ msgstr "Link Code Zeile"
1375
+
1376
+ #: ../admin/settings.php:347
1377
+ msgid "Select loading image"
1378
+ msgstr "Wähle Ladeanimation"
1379
+
1380
+ #: ../admin/settings.php:374
1381
+ msgid "Preview"
1382
+ msgstr "Vorschau"
1383
+
1384
+ #: ../admin/settings.php:376
1385
+ #: ../admin/settings.php:380
1386
+ msgid "Position"
1387
+ msgstr "Position"
1388
+
1389
+ #: ../admin/settings.php:400
1390
+ msgid "Offset"
1391
+ msgstr "Abstand"
1392
+
1393
+ #: ../admin/settings.php:418
1394
+ msgid "Use image as watermark"
1395
+ msgstr "Benutze Bild als Wasserzeichen"
1396
+
1397
+ #: ../admin/settings.php:421
1398
+ msgid "URL to file"
1399
+ msgstr "URL zur Datei"
1400
+
1401
+ #: ../admin/settings.php:423
1402
+ msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
1403
+ msgstr "Der Dateizugriff von URL's ist auf diesem Server deaktiviert (allow_url_fopen)"
1404
+
1405
+ #: ../admin/settings.php:429
1406
+ msgid "Use text as watermark"
1407
+ msgstr "Benutze Text als Wasserzeichen"
1408
+
1409
+ #: ../admin/settings.php:432
1410
+ msgid "Font"
1411
+ msgstr "Schriftart"
1412
+
1413
+ #: ../admin/settings.php:440
1414
+ msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1415
+ msgstr "Du kannst mehr Schriftarten in das Verzeichniss <strong>nggallery/fonts</strong> hochladen."
1416
+
1417
+ #: ../admin/settings.php:444
1418
+ msgid "Size"
1419
+ msgstr "Größe"
1420
+
1421
+ #: ../admin/settings.php:448
1422
+ msgid "Color"
1423
+ msgstr "Farbe"
1424
+
1425
+ #: ../admin/settings.php:450
1426
+ msgid "(hex w/o #)"
1427
+ msgstr "(hex w/o #)"
1428
+
1429
+ #: ../admin/settings.php:453
1430
+ msgid "Text"
1431
+ msgstr "Text"
1432
+
1433
+ #: ../admin/settings.php:457
1434
+ msgid "Opaque"
1435
+ msgstr "Transparenz"
1436
+
1437
+ #: ../admin/settings.php:475
1438
+ msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1439
+ msgstr "Die Datei imagerotator.swf ist nicht im Plugin Verzeichniss -> so wird die Slideshow nicht funktionieren."
1440
+
1441
+ #: ../admin/settings.php:476
1442
+ msgid "The settings are used in the JW Image Rotator Version 3.9 ."
1443
+ msgstr "Die Einstellungen werden im JW Image Rotator Version 3.9 benutzt."
1444
+
1445
+ #: ../admin/settings.php:477
1446
+ msgid "See more information for the Flash Player on the web page"
1447
+ msgstr "Weitere Informationen auf der Flash Player Homepage"
1448
+
1449
+ #: ../admin/settings.php:480
1450
+ msgid "Default size (W x H)"
1451
+ msgstr "Standard Größe (B x H)"
1452
+
1453
+ #: ../admin/settings.php:485
1454
+ msgid "Shuffle mode"
1455
+ msgstr "Shuffle Modus"
1456
+
1457
+ #: ../admin/settings.php:489
1458
+ msgid "Show next image on click"
1459
+ msgstr "Zeige nächstes Bild bei Klick"
1460
+
1461
+ #: ../admin/settings.php:493
1462
+ msgid "Show navigation bar"
1463
+ msgstr "Zeige Navigations-Leiste"
1464
+
1465
+ #: ../admin/settings.php:497
1466
+ msgid "Show loading icon"
1467
+ msgstr "Zeige Lade-Bildchen"
1468
+
1469
+ #: ../admin/settings.php:501
1470
+ msgid "Use watermark logo"
1471
+ msgstr "Wasserzeichen anzeigen"
1472
+
1473
+ #: ../admin/settings.php:503
1474
+ msgid "You can change the logo at the watermark settings"
1475
+ msgstr "Du kannst den Pfad in Einstellungen für da Wasserzeichen angeben"
1476
+
1477
+ #: ../admin/settings.php:506
1478
+ msgid "Stretch image"
1479
+ msgstr "Bild dehnen"
1480
+
1481
+ #: ../admin/settings.php:509
1482
+ msgid "true"
1483
+ msgstr "true"
1484
+
1485
+ #: ../admin/settings.php:510
1486
+ msgid "false"
1487
+ msgstr "false"
1488
+
1489
+ #: ../admin/settings.php:511
1490
+ msgid "fit"
1491
+ msgstr "passend"
1492
+
1493
+ #: ../admin/settings.php:517
1494
+ msgid "Duration time"
1495
+ msgstr "Dauer"
1496
+
1497
+ #: ../admin/settings.php:518
1498
+ msgid "sec."
1499
+ msgstr "Sek."
1500
+
1501
+ #: ../admin/settings.php:521
1502
+ msgid "Transition / Fade effect"
1503
+ msgstr "Fade Effekt"
1504
+
1505
+ #: ../admin/settings.php:524
1506
+ msgid "fade"
1507
+ msgstr "fade"
1508
+
1509
+ #: ../admin/settings.php:525
1510
+ msgid "bgfade"
1511
+ msgstr "BGFade"
1512
+
1513
+ #: ../admin/settings.php:526
1514
+ msgid "slowfade"
1515
+ msgstr "Slowfade"
1516
+
1517
+ #: ../admin/settings.php:527
1518
+ msgid "circles"
1519
+ msgstr "Kreise"
1520
+
1521
+ #: ../admin/settings.php:528
1522
+ msgid "bubbles"
1523
+ msgstr "Blasen"
1524
+
1525
+ #: ../admin/settings.php:529
1526
+ msgid "blocks"
1527
+ msgstr "Blöcke"
1528
+
1529
+ #: ../admin/settings.php:530
1530
+ msgid "fluids"
1531
+ msgstr "Fluids"
1532
+
1533
+ #: ../admin/settings.php:531
1534
+ msgid "lines"
1535
+ msgstr "Linien"
1536
+
1537
+ #: ../admin/settings.php:532
1538
+ msgid "random"
1539
+ msgstr "Zufall"
1540
+
1541
+ #: ../admin/settings.php:536
1542
+ msgid "Use slow zooming effect"
1543
+ msgstr "nutze Zoom Effekt"
1544
+
1545
+ #: ../admin/settings.php:540
1546
+ msgid "Background Color"
1547
+ msgstr "Hintergrund (BG) Farbe"
1548
+
1549
+ #: ../admin/settings.php:545
1550
+ msgid "Texts / Buttons Color"
1551
+ msgstr "Text- / Button Farbe"
1552
+
1553
+ #: ../admin/settings.php:550
1554
+ msgid "Rollover / Active Color"
1555
+ msgstr "Rollover / Aktiv (Link) Farbe"
1556
+
1557
+ #: ../admin/settings.php:555
1558
+ msgid "Background music (URL)"
1559
+ msgstr "Hintergundmusik (URL)"
1560
+
1561
+ #: ../admin/settings.php:559
1562
+ msgid "Try XHTML validation (with CDATA)"
1563
+ msgstr "Integriere XHTML Validierung (mittels CDATA)"
1564
+
1565
+ #: ../admin/settings.php:561
1566
+ msgid "Important : Could causes problem at some browser. Please recheck your page."
1567
+ msgstr "Wichtig : Es könnnten Probleme bei einigen Browser auftauchen. Unbedingt Seite prüfen."
1568
+
1569
+ #: ../admin/setup.php:10
1570
+ msgid "Reset all settings to default parameter"
1571
+ msgstr "Stelle alle Einstellungen auf Anfangswerte zurück"
1572
+
1573
+ #: ../admin/setup.php:22
1574
+ msgid "Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !"
1575
+ msgstr "Deinstallation erfolgreich ! Nun kannst Du das Plugin löschen und Dein Leben weiterhin genießen ! Stay geeky ! Viel Glück !"
1576
+
1577
+ #: ../admin/setup.php:31
1578
+ msgid "Reset options"
1579
+ msgstr "Optionen zurücksetzen"
1580
+
1581
+ #: ../admin/setup.php:33
1582
+ msgid "Reset all options/settings to the default installation."
1583
+ msgstr "Alle Optionen/Einstellungen zurücksetzen"
1584
+
1585
+ #: ../admin/setup.php:34
1586
+ msgid "Reset settings"
1587
+ msgstr "Einstellungen zurücksetzen"
1588
+
1589
+ #: ../admin/setup.php:34
1590
+ msgid ""
1591
+ "Reset all options to default settings ?\\n"
1592
+ "\\n"
1593
+ "Choose [Cancel] to Stop, [OK] to proceed.\\n"
1594
+ msgstr ""
1595
+ "Alle Optionen zu Standard zurücksetzen ?\\n"
1596
+ "\\n"
1597
+ "Wähle [Cancel] um abzubrechen, [OK] zum Durchführen.\\n"
1598
+
1599
+ #: ../admin/setup.php:38
1600
+ msgid "Uninstall plugin tables"
1601
+ msgstr "Plugin Tabellen (DB) entfernen"
1602
+
1603
+ #: ../admin/setup.php:40
1604
+ msgid "You don't like NextGEN Gallery ?"
1605
+ msgstr "Du magst die NextGEN Galerie nicht ?"
1606
+
1607
+ #: ../admin/setup.php:41
1608
+ msgid "No problem, before you deactivate this plugin press the Uninstall Button, because deactivating NextGEN Gallery does not remove any data that may have been created. "
1609
+ msgstr "Null Problemo. Einfach nur vor dem Deaktivieren dieses Plugins den Uninstall-Button betätigen damit alle Tabellen der Galerie entfernt werden."
1610
+
1611
+ #: ../admin/setup.php:42
1612
+ msgid "WARNING:"
1613
+ msgstr "WARNUNG:"
1614
+
1615
+ #: ../admin/setup.php:43
1616
+ msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to backup all the tables first. NextGEN gallery is stored in the tables"
1617
+ msgstr "Einmal deinstalliert -> keine Rückgängigmachung! D.h. auf Deutsch, das eine einmalig durchgeführte Deinstallation nicht mehr rückgängig gemacht werden kann da alle Tabellen der Galerie aus der Datenbank entfernt werden und KEIN Backup dieser Galerie-Tabellen angelegt wird währenddessen."
1618
+
1619
+ #: ../admin/setup.php:43
1620
+ msgid "and"
1621
+ msgstr "und"
1622
+
1623
+ #: ../admin/setup.php:45
1624
+ msgid "Uninstall plugin"
1625
+ msgstr "Plugin deinstallieren"
1626
+
1627
+ #: ../admin/setup.php:45
1628
+ msgid ""
1629
+ "You are about to Uninstall this plugin from WordPress.\\n"
1630
+ "This action is not reversible.\\n"
1631
+ "\\n"
1632
+ "Choose [Cancel] to Stop, [OK] to Uninstall.\\n"
1633
+ msgstr ""
1634
+ "Du bist dabei das Plugin zu deinstallieren.\\n"
1635
+ "Diese Aktion kann NICHT rückgängig gemacht werden.\\n"
1636
+ "\\n"
1637
+ "Wähle [Cancel] zum Abbrechen, [OK] zum Deinstallieren.\\n"
1638
+
1639
+ #: ../admin/style.php:31
1640
+ msgid "You do not have sufficient permissions to edit templates for this blog."
1641
+ msgstr "Du hast nicht die benötigten Rechte um Templates in diesem Blog zu bearbeiten."
1642
+
1643
+ #: ../admin/style.php:40
1644
+ msgid "CSS file successfully updated"
1645
+ msgstr "CSS Datei erfolgreich aktualisiert"
1646
+
1647
+ #: ../admin/style.php:62
1648
+ msgid "Activate and use style sheet:"
1649
+ msgstr "Aktiviere und nutze Stylesheet:"
1650
+
1651
+ #: ../admin/style.php:81
1652
+ msgid "Activate"
1653
+ msgstr "Aktiviere"
1654
+
1655
+ #: ../admin/style.php:88
1656
+ #, php-format
1657
+ msgid "Editing <strong>%s</strong>"
1658
+ msgstr "Bearbeite <strong>%s</strong>"
1659
+
1660
+ #: ../admin/style.php:90
1661
+ #, php-format
1662
+ msgid "Browsing <strong>%s</strong>"
1663
+ msgstr "Browse <strong>%s</strong>"
1664
+
1665
+ #: ../admin/style.php:95
1666
+ msgid "Author"
1667
+ msgstr "Autor"
1668
+
1669
+ #: ../admin/style.php:96
1670
+ msgid "Version"
1671
+ msgstr "Version"
1672
+
1673
+ #: ../admin/style.php:112
1674
+ msgid "Update File &raquo;"
1675
+ msgstr "Datei aktualisieren"
1676
+
1677
+ #: ../admin/style.php:116
1678
+ msgid "If this file were writable you could edit it."
1679
+ msgstr "Wenn diese Datei beschreibbar wäre, könntest Du Sie bearbeiten."
1680
+
1681
+ #: ../admin/style.php:121
1682
+ msgid "Oops, no such file exists! Double check the name and try again, merci."
1683
+ msgstr "Oha, keine solche Datei existiert! Bitte überprüfe den Namen und probiere es erneut, danke."
1684
+
1685
+ #: ../js/nggadmintab-js.php:81
1686
+ #: ../js/nggadmintab-js.php:83
1687
+ #: ../js/nggadmintab-js.php:144
1688
+ #: ../js/nggadmintab-js.php:146
1689
+ msgid "Browse your files"
1690
+ msgstr "Durchsuche deine Dateien"
1691
+
1692
+ #: ../js/nggadmintab-js.php:81
1693
+ #: ../js/nggadmintab-js.php:83
1694
+ #: ../js/nggadmintab-js.php:144
1695
+ #: ../js/nggadmintab-js.php:146
1696
+ msgid "&laquo; Back"
1697
+ msgstr "&laquo; Zurück"
1698
+
1699
+ #: ../js/nggadmintab-js.php:92
1700
+ #: ../js/nggadmintab-js.php:155
1701
+ msgid "Direct link to file"
1702
+ msgstr "Link zur Datei"
1703
+
1704
+ #: ../js/nggadmintab-js.php:102
1705
+ msgid "Full size"
1706
+ msgstr "Volle Größe"
1707
+
1708
+ #: ../js/nggadmintab-js.php:105
1709
+ msgid "Show:"
1710
+ msgstr "Zeige als:"
1711
+
1712
+ #: ../js/nggadmintab-js.php:110
1713
+ msgid "Link to:"
1714
+ msgstr "Link zu:"
1715
+
1716
+ #: ../js/nggadmintab-js.php:111
1717
+ msgid "File"
1718
+ msgstr "Datei"
1719
+
1720
+ #: ../js/nggadmintab-js.php:116
1721
+ msgid "Send to editor &raquo;"
1722
+ msgstr "Zu Editor schicken"
1723
+
1724
+ #: ../js/nggadmintab-js.php:175
1725
+ msgid "Save &raquo;"
1726
+ msgstr "Speichern &raquo;"
1727
+
1728
+ #: ../js/nggadmintab-js.php:254
1729
+ #, php-format
1730
+ msgid ""
1731
+ "Are you sure you want to delete the file '%s'?\n"
1732
+ "Click ok to delete or cancel to go back."
1733
+ msgstr "Bist du sicher das du diese Datei '%s' löschen willst ?"
1734
+
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-05-31 22:01+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -15,27 +15,70 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
- #: ../nggallery.php:252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
22
  #: ../nggbutton.php:36
23
  #: ../admin/addgallery.php:240
24
  #: ../admin/addgallery.php:291
25
- #: ../admin/admin.php:42
26
  #: ../admin/manage.php:44
27
- #: ../admin/manage.php:303
28
  #: ../admin/settings.php:121
29
  msgid "Gallery"
30
  msgstr ""
31
 
32
  #: ../nggbutton.php:37
33
- #: ../admin/admin.php:45
34
  msgid "Album"
35
  msgstr ""
36
 
37
  #: ../nggbutton.php:38
38
- #: ../admin/manage.php:63
 
39
  msgid "Picture"
40
  msgstr ""
41
 
@@ -43,10 +86,6 @@ msgstr ""
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"
@@ -58,8 +97,8 @@ msgstr ""
58
 
59
  #: ../nggbutton.php:64
60
  #: ../admin/settings.php:124
61
- #: ../admin/settings.php:259
62
- #: ../admin/settings.php:427
63
  msgid "Slideshow"
64
  msgstr ""
65
 
@@ -102,7 +141,7 @@ msgstr ""
102
 
103
  #: ../nggbutton.php:124
104
  #: ../admin/settings.php:123
105
- #: ../admin/settings.php:325
106
  msgid "Watermark"
107
  msgstr ""
108
 
@@ -131,142 +170,157 @@ 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:97
 
 
 
 
147
  msgid "[Show as slideshow]"
148
  msgstr ""
149
 
150
- #: ../ngginstall.php:98
151
  msgid "[Show picture list]"
152
  msgstr ""
153
 
154
- #: ../nggwidget.php:140
 
 
 
 
 
 
 
 
155
  msgid "Title:"
156
  msgstr ""
157
 
158
- #: ../nggwidget.php:141
159
  msgid "Select Gallery:"
160
  msgstr ""
161
 
162
- #: ../nggwidget.php:152
163
  msgid "Height:"
164
  msgstr ""
165
 
166
- #: ../nggwidget.php:153
167
  msgid "Width:"
168
  msgstr ""
169
 
170
- #: ../nggwidget.php:345
171
  msgid "NextGEN Recent Image"
172
  msgstr ""
173
 
174
- #: ../nggwidget.php:385
175
- #: ../nggwidget.php:584
176
  #: ../admin/album.php:213
177
- #: ../admin/manage.php:183
178
- #: ../admin/manage.php:310
 
179
  msgid "Title"
180
  msgstr ""
181
 
182
- #: ../nggwidget.php:388
183
- #: ../nggwidget.php:587
184
  msgid "Display type"
185
  msgstr ""
186
 
187
- #: ../nggwidget.php:390
188
- #: ../nggwidget.php:589
189
- #: ../admin/manage.php:377
 
190
  msgid "Thumbnail"
191
  msgstr ""
192
 
193
- #: ../nggwidget.php:391
194
- #: ../nggwidget.php:590
195
  msgid "Orginal"
196
  msgstr ""
197
 
198
- #: ../nggwidget.php:394
199
- #: ../nggwidget.php:594
200
  msgid "Number of pics"
201
  msgstr ""
202
 
203
- #: ../nggwidget.php:405
204
- #: ../nggwidget.php:605
205
  msgid "Width (px)"
206
  msgstr ""
207
 
208
- #: ../nggwidget.php:407
209
- #: ../nggwidget.php:607
210
  msgid "Height (px)"
211
  msgstr ""
212
 
213
- #: ../nggwidget.php:409
214
- #: ../nggwidget.php:609
215
  msgid "Mode"
216
  msgstr ""
217
 
218
- #: ../nggwidget.php:411
219
- #: ../nggwidget.php:611
220
- #: ../admin/settings.php:461
221
  msgid "none"
222
  msgstr ""
223
 
224
- #: ../nggwidget.php:412
225
- #: ../nggwidget.php:612
226
  msgid "web2.0"
227
  msgstr ""
228
 
229
- #: ../nggwidget.php:416
230
- #: ../nggwidget.php:616
231
  msgid "Show in the main page"
232
  msgstr ""
233
 
234
- #: ../nggwidget.php:418
235
- #: ../nggwidget.php:618
236
  msgid "yes"
237
  msgstr ""
238
 
239
- #: ../nggwidget.php:419
240
- #: ../nggwidget.php:619
241
  msgid "no"
242
  msgstr ""
243
 
244
- #: ../nggwidget.php:422
245
- #: ../nggwidget.php:622
246
  msgid "Show in"
247
  msgstr ""
248
 
249
- #: ../nggwidget.php:424
250
- #: ../nggwidget.php:624
251
  msgid "All categories"
252
  msgstr ""
253
 
254
- #: ../nggwidget.php:425
255
- #: ../nggwidget.php:625
256
  msgid "Only which are not listed"
257
  msgstr ""
258
 
259
- #: ../nggwidget.php:426
260
- #: ../nggwidget.php:626
261
  msgid "Only which are listed"
262
  msgstr ""
263
 
264
- #: ../nggwidget.php:429
265
- #: ../nggwidget.php:629
266
  msgid "Categories (id (use , to seperate)"
267
  msgstr ""
268
 
269
- #: ../nggwidget.php:543
270
  msgid "NextGEN Random Image"
271
  msgstr ""
272
 
@@ -510,14 +564,14 @@ msgstr ""
510
  #: ../admin/addgallery.php:229
511
  #: ../admin/addgallery.php:231
512
  #: ../admin/addgallery.php:270
513
- #: ../admin/addgallery.php:479
514
- #: ../admin/addgallery.php:481
515
  msgid "Unable to create directory "
516
  msgstr ""
517
 
518
  #: ../admin/addgallery.php:230
519
- #: ../admin/addgallery.php:480
520
- #: ../admin/addgallery.php:482
521
  msgid "Unable to set directory permissions "
522
  msgstr ""
523
 
@@ -583,81 +637,84 @@ msgstr ""
583
  msgid "Some pictures are not writeable :"
584
  msgstr ""
585
 
586
- #: ../admin/addgallery.php:434
587
- #: ../admin/addgallery.php:534
588
- msgid "Error, the file permissions could not set"
589
  msgstr ""
590
 
591
- #: ../admin/addgallery.php:440
592
  msgid "Some thumbnails are not writeable :"
593
  msgstr ""
594
 
595
- #: ../admin/addgallery.php:470
596
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
597
  msgstr ""
598
 
599
- #: ../admin/addgallery.php:485
600
  msgid "Directory already exists, please rename zip file"
601
  msgstr ""
602
 
603
- #: ../admin/addgallery.php:490
604
  msgid "Unable to unlink zip file "
605
  msgstr ""
606
 
607
- #: ../admin/addgallery.php:492
608
  msgid "Zip-File successfully unpacked"
609
  msgstr ""
610
 
611
- #: ../admin/addgallery.php:519
612
- #: ../admin/addgallery.php:526
613
  msgid "Unable to unlink file "
614
  msgstr ""
615
 
616
- #: ../admin/addgallery.php:520
617
  msgid "No gallery selected !"
618
  msgstr ""
619
 
620
- #: ../admin/addgallery.php:527
621
  msgid "Failure in database, no gallery path set !"
622
  msgstr ""
623
 
624
- #: ../admin/addgallery.php:533
625
  msgid "Error, the file could not moved to : "
626
  msgstr ""
627
 
628
- #: ../admin/addgallery.php:554
 
 
 
 
629
  msgid " Images successfully added"
630
  msgstr ""
631
 
632
- #: ../admin/admin.php:43
633
  msgid "Add Gallery"
634
  msgstr ""
635
 
636
- #: ../admin/admin.php:44
637
  msgid "Manage Gallery"
638
  msgstr ""
639
 
640
- #: ../admin/admin.php:46
641
  msgid "Options"
642
  msgstr ""
643
 
644
- #: ../admin/admin.php:47
645
  msgid "Style"
646
  msgstr ""
647
 
648
- #: ../admin/admin.php:48
649
  msgid "Setup Gallery"
650
  msgstr ""
651
 
652
- #: ../admin/admin.php:48
653
  msgid "Setup"
654
  msgstr ""
655
 
656
- #: ../admin/admin.php:49
657
  msgid "About this Gallery"
658
  msgstr ""
659
 
660
- #: ../admin/admin.php:49
661
  msgid "About"
662
  msgstr ""
663
 
@@ -683,8 +740,8 @@ msgid "Add new album"
683
  msgstr ""
684
 
685
  #: ../admin/album.php:118
686
- #: ../admin/manage.php:207
687
- #: ../admin/manage.php:410
688
  msgid "Delete"
689
  msgstr ""
690
 
@@ -696,10 +753,10 @@ msgstr ""
696
  #: ../admin/settings.php:155
697
  #: ../admin/settings.php:194
698
  #: ../admin/settings.php:231
699
- #: ../admin/settings.php:268
700
  #: ../admin/settings.php:311
701
- #: ../admin/settings.php:417
702
- #: ../admin/settings.php:510
 
703
  msgid "Update"
704
  msgstr ""
705
 
@@ -720,8 +777,8 @@ msgid "No album selected!"
720
  msgstr ""
721
 
722
  #: ../admin/album.php:211
723
- #: ../admin/manage.php:181
724
- #: ../admin/manage.php:375
725
  msgid "ID"
726
  msgstr ""
727
 
@@ -734,136 +791,150 @@ msgid "Page"
734
  msgstr ""
735
 
736
  #: ../admin/manage.php:44
737
- #: ../admin/manage.php:63
738
  msgid "deleted successfully"
739
  msgstr ""
740
 
741
- #: ../admin/manage.php:86
742
  msgid "Watermark successfully added"
743
  msgstr ""
744
 
745
- #: ../admin/manage.php:91
746
  msgid "Thumbnails successfully created. Please refresh your browser cache."
747
  msgstr ""
748
 
749
- #: ../admin/manage.php:96
750
  msgid "Images successfully resized"
751
  msgstr ""
752
 
753
- #: ../admin/manage.php:114
754
  msgid "Pictures deleted successfully "
755
  msgstr ""
756
 
757
- #: ../admin/manage.php:132
758
  #: ../admin/settings.php:25
759
  #: ../admin/style.php:15
760
  msgid "Update successfully"
761
  msgstr ""
762
 
763
- #: ../admin/manage.php:154
764
  msgid " picture(s) successfully added"
765
  msgstr ""
766
 
767
- #: ../admin/manage.php:177
768
- msgid "Gallery Overview"
769
  msgstr ""
770
 
771
- #: ../admin/manage.php:182
772
- msgid "Gallery name"
773
  msgstr ""
774
 
775
- #: ../admin/manage.php:184
776
- #: ../admin/manage.php:329
777
- #: ../admin/manage.php:378
778
- #: ../admin/style.php:97
779
- msgid "Description"
 
780
  msgstr ""
781
 
782
- #: ../admin/manage.php:185
783
  msgid "Page ID"
784
  msgstr ""
785
 
786
- #: ../admin/manage.php:186
787
  msgid "Quantity"
788
  msgstr ""
789
 
790
- #: ../admin/manage.php:187
791
- #: ../admin/manage.php:381
792
  msgid "Action"
793
  msgstr ""
794
 
795
- #: ../admin/manage.php:206
 
796
  msgid "Edit"
797
  msgstr ""
798
 
799
- #: ../admin/manage.php:207
800
- #: ../admin/manage.php:410
801
  msgid "Delete this file ?"
802
  msgstr ""
803
 
804
- #: ../admin/manage.php:212
805
- #: ../admin/manage.php:415
806
  msgid "No entries found"
807
  msgstr ""
808
 
809
- #: ../admin/manage.php:312
810
  msgid "Page Link to"
811
  msgstr ""
812
 
813
- #: ../admin/manage.php:315
814
  msgid "Not linked"
815
  msgstr ""
816
 
817
- #: ../admin/manage.php:331
818
  msgid "Preview image"
819
  msgstr ""
820
 
821
- #: ../admin/manage.php:334
822
  msgid "No Picture"
823
  msgstr ""
824
 
825
- #: ../admin/manage.php:349
826
  msgid "Path"
827
  msgstr ""
828
 
829
- #: ../admin/manage.php:357
 
 
 
 
 
 
 
 
 
 
 
 
830
  msgid "Scan Folder for new images"
831
  msgstr ""
832
 
833
- #: ../admin/manage.php:358
834
- #: ../admin/manage.php:422
835
  msgid "Save Changes"
836
  msgstr ""
837
 
838
- #: ../admin/manage.php:363
839
  msgid "No action"
840
  msgstr ""
841
 
842
- #: ../admin/manage.php:364
843
  msgid "Set watermark"
844
  msgstr ""
845
 
846
- #: ../admin/manage.php:365
847
  msgid "Create new thumbnails"
848
  msgstr ""
849
 
850
- #: ../admin/manage.php:366
851
  msgid "Resize images"
852
  msgstr ""
853
 
854
- #: ../admin/manage.php:367
855
  msgid "Delete images"
856
  msgstr ""
857
 
858
- #: ../admin/manage.php:369
859
  msgid "OK"
860
  msgstr ""
861
 
862
- #: ../admin/manage.php:369
863
  msgid "No images selected"
864
  msgstr ""
865
 
866
- #: ../admin/manage.php:369
867
  #, php-format
868
  msgid ""
869
  "You are about to start the bulk edit for %s images \n"
@@ -871,20 +942,36 @@ msgid ""
871
  " 'Cancel' to stop, 'OK' to proceed."
872
  msgstr ""
873
 
874
- #: ../admin/manage.php:376
875
- #: ../admin/settings.php:264
876
- msgid "File name"
877
  msgstr ""
878
 
879
- #: ../admin/manage.php:379
880
- msgid "Alt &amp; Title Text"
881
  msgstr ""
882
 
883
- #: ../admin/manage.php:380
 
 
 
 
 
 
 
 
 
 
 
 
 
884
  msgid "exclude"
885
  msgstr ""
886
 
887
- #: ../admin/manage.php:409
 
 
 
 
888
  msgid "View"
889
  msgstr ""
890
 
@@ -918,11 +1005,11 @@ msgid "Welcome"
918
  msgstr ""
919
 
920
  #: ../admin/overview.php:42
921
- msgid "forum administrator"
922
  msgstr ""
923
 
924
  #: ../admin/overview.php:42
925
- msgid "forum moderator"
926
  msgstr ""
927
 
928
  #: ../admin/overview.php:43
@@ -976,57 +1063,72 @@ msgid "Not set"
976
  msgstr ""
977
 
978
  #: ../admin/overview.php:121
 
979
  msgid "On"
980
  msgstr ""
981
 
982
  #: ../admin/overview.php:122
 
983
  msgid "Off"
984
  msgstr ""
985
 
986
- #: ../admin/overview.php:125
987
  #: ../admin/overview.php:128
988
  #: ../admin/overview.php:131
989
  #: ../admin/overview.php:134
 
 
990
  msgid "N/A"
991
  msgstr ""
992
 
993
- #: ../admin/overview.php:136
 
 
 
 
994
  msgid "Operating System"
995
  msgstr ""
996
 
997
- #: ../admin/overview.php:137
998
  msgid "Server"
999
  msgstr ""
1000
 
1001
- #: ../admin/overview.php:138
 
 
 
 
1002
  msgid "MYSQL Version"
1003
  msgstr ""
1004
 
1005
- #: ../admin/overview.php:139
1006
  msgid "SQL Mode"
1007
  msgstr ""
1008
 
1009
- #: ../admin/overview.php:140
1010
  msgid "PHP Version"
1011
  msgstr ""
1012
 
1013
- #: ../admin/overview.php:141
1014
  msgid "PHP Safe Mode"
1015
  msgstr ""
1016
 
1017
- #: ../admin/overview.php:142
 
 
 
 
1018
  msgid "PHP Memory Limit"
1019
  msgstr ""
1020
 
1021
- #: ../admin/overview.php:143
1022
  msgid "PHP Max Upload Size"
1023
  msgstr ""
1024
 
1025
- #: ../admin/overview.php:144
1026
  msgid "PHP Max Post Size"
1027
  msgstr ""
1028
 
1029
- #: ../admin/overview.php:145
1030
  msgid "PHP Max Script Execute Time"
1031
  msgstr ""
1032
 
@@ -1036,7 +1138,7 @@ msgid "General Options"
1036
  msgstr ""
1037
 
1038
  #: ../admin/settings.php:119
1039
- #: ../admin/settings.php:258
1040
  msgid "Thumbnails"
1041
  msgstr ""
1042
 
@@ -1045,7 +1147,7 @@ msgid "Images"
1045
  msgstr ""
1046
 
1047
  #: ../admin/settings.php:122
1048
- #: ../admin/settings.php:276
1049
  msgid "Effects"
1050
  msgstr ""
1051
 
@@ -1086,7 +1188,7 @@ msgid "Width x height (in pixel)"
1086
  msgstr ""
1087
 
1088
  #: ../admin/settings.php:172
1089
- msgid "This values are maxium values "
1090
  msgstr ""
1091
 
1092
  #: ../admin/settings.php:175
@@ -1148,247 +1250,316 @@ msgid "Gallery settings"
1148
  msgstr ""
1149
 
1150
  #: ../admin/settings.php:245
1151
- msgid "Number of images per page"
1152
  msgstr ""
1153
 
1154
  #: ../admin/settings.php:247
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1155
  msgid "0 will disable pagination, all images on one page"
1156
  msgstr ""
1157
 
1158
- #: ../admin/settings.php:250
1159
  msgid "Integrate slideshow"
1160
  msgstr ""
1161
 
1162
- #: ../admin/settings.php:257
1163
  msgid "Show first"
1164
  msgstr ""
1165
 
1166
- #: ../admin/settings.php:262
1167
  msgid "Sort thumbnails"
1168
  msgstr ""
1169
 
1170
- #: ../admin/settings.php:263
1171
  msgid "Image ID"
1172
  msgstr ""
1173
 
1174
- #: ../admin/settings.php:265
1175
  msgid "Alt / Title text"
1176
  msgstr ""
1177
 
1178
- #: ../admin/settings.php:279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1179
  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."
1180
  msgstr ""
1181
 
1182
- #: ../admin/settings.php:280
1183
  msgid "With the placeholder"
1184
  msgstr ""
1185
 
1186
- #: ../admin/settings.php:280
1187
  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."
1188
  msgstr ""
1189
 
1190
- #: ../admin/settings.php:284
1191
  msgid "JavaScript Thumbnail effect"
1192
  msgstr ""
1193
 
1194
- #: ../admin/settings.php:287
 
1195
  msgid "None"
1196
  msgstr ""
1197
 
1198
- #: ../admin/settings.php:288
1199
  msgid "Thickbox"
1200
  msgstr ""
1201
 
1202
- #: ../admin/settings.php:289
1203
  msgid "Lightbox"
1204
  msgstr ""
1205
 
1206
- #: ../admin/settings.php:290
1207
  msgid "Highslide"
1208
  msgstr ""
1209
 
1210
- #: ../admin/settings.php:291
1211
  msgid "Custom"
1212
  msgstr ""
1213
 
1214
- #: ../admin/settings.php:295
1215
  msgid "Link Code line"
1216
  msgstr ""
1217
 
1218
- #: ../admin/settings.php:303
1219
  msgid "Select loading image"
1220
  msgstr ""
1221
 
1222
- #: ../admin/settings.php:329
1223
  msgid "Preview"
1224
  msgstr ""
1225
 
1226
- #: ../admin/settings.php:331
1227
- #: ../admin/settings.php:335
1228
  msgid "Position"
1229
  msgstr ""
1230
 
1231
- #: ../admin/settings.php:355
1232
  msgid "Offset"
1233
  msgstr ""
1234
 
1235
- #: ../admin/settings.php:373
1236
  msgid "Use image as watermark"
1237
  msgstr ""
1238
 
1239
- #: ../admin/settings.php:376
1240
  msgid "URL to file"
1241
  msgstr ""
1242
 
1243
- #: ../admin/settings.php:383
 
 
 
 
1244
  msgid "Use text as watermark"
1245
  msgstr ""
1246
 
1247
- #: ../admin/settings.php:386
1248
  msgid "Font"
1249
  msgstr ""
1250
 
1251
- #: ../admin/settings.php:394
1252
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1253
  msgstr ""
1254
 
1255
- #: ../admin/settings.php:398
1256
  msgid "Size"
1257
  msgstr ""
1258
 
1259
- #: ../admin/settings.php:402
1260
  msgid "Color"
1261
  msgstr ""
1262
 
1263
- #: ../admin/settings.php:404
1264
  msgid "(hex w/o #)"
1265
  msgstr ""
1266
 
1267
- #: ../admin/settings.php:407
1268
  msgid "Text"
1269
  msgstr ""
1270
 
1271
- #: ../admin/settings.php:411
1272
  msgid "Opaque"
1273
  msgstr ""
1274
 
1275
- #: ../admin/settings.php:429
1276
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1277
  msgstr ""
1278
 
1279
- #: ../admin/settings.php:430
1280
- msgid "The settings are used in the Flash Image Rotator Version 3.8 ."
1281
  msgstr ""
1282
 
1283
- #: ../admin/settings.php:431
1284
  msgid "See more information for the Flash Player on the web page"
1285
  msgstr ""
1286
 
1287
- #: ../admin/settings.php:434
1288
  msgid "Default size (W x H)"
1289
  msgstr ""
1290
 
1291
- #: ../admin/settings.php:439
1292
  msgid "Shuffle mode"
1293
  msgstr ""
1294
 
1295
- #: ../admin/settings.php:443
1296
  msgid "Show next image on click"
1297
  msgstr ""
1298
 
1299
- #: ../admin/settings.php:447
1300
  msgid "Show navigation bar"
1301
  msgstr ""
1302
 
1303
- #: ../admin/settings.php:451
1304
  msgid "Show loading icon"
1305
  msgstr ""
1306
 
1307
- #: ../admin/settings.php:455
 
 
 
 
 
 
 
 
1308
  msgid "Stretch image"
1309
  msgstr ""
1310
 
1311
- #: ../admin/settings.php:458
1312
  msgid "true"
1313
  msgstr ""
1314
 
1315
- #: ../admin/settings.php:459
1316
  msgid "false"
1317
  msgstr ""
1318
 
1319
- #: ../admin/settings.php:460
1320
  msgid "fit"
1321
  msgstr ""
1322
 
1323
- #: ../admin/settings.php:466
1324
  msgid "Duration time"
1325
  msgstr ""
1326
 
1327
- #: ../admin/settings.php:467
1328
  msgid "sec."
1329
  msgstr ""
1330
 
1331
- #: ../admin/settings.php:470
1332
  msgid "Transition / Fade effect"
1333
  msgstr ""
1334
 
1335
- #: ../admin/settings.php:473
1336
  msgid "fade"
1337
  msgstr ""
1338
 
1339
- #: ../admin/settings.php:474
1340
  msgid "bgfade"
1341
  msgstr ""
1342
 
1343
- #: ../admin/settings.php:475
1344
  msgid "slowfade"
1345
  msgstr ""
1346
 
1347
- #: ../admin/settings.php:476
1348
  msgid "circles"
1349
  msgstr ""
1350
 
1351
- #: ../admin/settings.php:477
1352
  msgid "bubbles"
1353
  msgstr ""
1354
 
1355
- #: ../admin/settings.php:478
1356
  msgid "blocks"
1357
  msgstr ""
1358
 
1359
- #: ../admin/settings.php:479
1360
  msgid "fluids"
1361
  msgstr ""
1362
 
1363
- #: ../admin/settings.php:480
1364
  msgid "lines"
1365
  msgstr ""
1366
 
1367
- #: ../admin/settings.php:481
1368
  msgid "random"
1369
  msgstr ""
1370
 
1371
- #: ../admin/settings.php:485
1372
  msgid "Use slow zooming effect"
1373
  msgstr ""
1374
 
1375
- #: ../admin/settings.php:489
1376
  msgid "Background Color"
1377
  msgstr ""
1378
 
1379
- #: ../admin/settings.php:494
1380
  msgid "Texts / Buttons Color"
1381
  msgstr ""
1382
 
1383
- #: ../admin/settings.php:499
1384
  msgid "Rollover / Active Color"
1385
  msgstr ""
1386
 
1387
- #: ../admin/settings.php:504
 
 
 
 
1388
  msgid "Try XHTML validation (with CDATA)"
1389
  msgstr ""
1390
 
1391
- #: ../admin/settings.php:506
1392
  msgid "Important : Could causes problem at some browser. Please recheck your page."
1393
  msgstr ""
1394
 
@@ -1501,3 +1672,53 @@ msgstr ""
1501
  msgid "Oops, no such file exists! Double check the name and try again, merci."
1502
  msgstr ""
1503
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-06-27 20:06+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
+ #: ../nggadmintab.php:65
19
+ msgid "Select a gallery"
20
+ msgstr ""
21
+
22
+ #: ../nggadmintab.php:67
23
+ #: ../nggbutton.php:50
24
+ msgid "No gallery"
25
+ msgstr ""
26
+
27
+ #: ../nggadmintab.php:132
28
+ #: ../js/nggadmintab-js.php:161
29
+ msgid "URL"
30
+ msgstr ""
31
+
32
+ #: ../nggadmintab.php:136
33
+ #: ../admin/manage.php:437
34
+ #: ../js/nggadmintab-js.php:164
35
+ msgid "Alt &amp; Title Text"
36
+ msgstr ""
37
+
38
+ #: ../nggadmintab.php:140
39
+ #: ../admin/manage.php:222
40
+ #: ../admin/manage.php:370
41
+ #: ../admin/manage.php:436
42
+ #: ../admin/style.php:97
43
+ #: ../js/nggadmintab-js.php:167
44
+ msgid "Description"
45
+ msgstr ""
46
+
47
+ #: ../nggadmintab.php:145
48
+ #: ../js/nggadmintab-js.php:169
49
+ msgid "Delete File"
50
+ msgstr ""
51
+
52
+ #: ../nggadmintab.php:145
53
+ msgid "Delete image ?"
54
+ msgstr ""
55
+
56
+ #: ../nggadmintab.php:153
57
+ msgid "Save"
58
+ msgstr ""
59
+
60
+ #: ../nggallery.php:265
61
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
62
  msgstr ""
63
 
64
  #: ../nggbutton.php:36
65
  #: ../admin/addgallery.php:240
66
  #: ../admin/addgallery.php:291
67
+ #: ../admin/admin.php:45
68
  #: ../admin/manage.php:44
69
+ #: ../admin/manage.php:341
70
  #: ../admin/settings.php:121
71
  msgid "Gallery"
72
  msgstr ""
73
 
74
  #: ../nggbutton.php:37
75
+ #: ../admin/admin.php:48
76
  msgid "Album"
77
  msgstr ""
78
 
79
  #: ../nggbutton.php:38
80
+ #: ../nggfunctions.php:456
81
+ #: ../admin/manage.php:64
82
  msgid "Picture"
83
  msgstr ""
84
 
86
  msgid "Select gallery"
87
  msgstr ""
88
 
 
 
 
 
89
  #: ../nggbutton.php:62
90
  #: ../nggbutton.php:89
91
  msgid "Show as"
97
 
98
  #: ../nggbutton.php:64
99
  #: ../admin/settings.php:124
100
+ #: ../admin/settings.php:272
101
+ #: ../admin/settings.php:473
102
  msgid "Slideshow"
103
  msgstr ""
104
 
141
 
142
  #: ../nggbutton.php:124
143
  #: ../admin/settings.php:123
144
+ #: ../admin/settings.php:370
145
  msgid "Watermark"
146
  msgstr ""
147
 
170
  msgstr ""
171
 
172
  #: ../nggbutton.php:151
173
+ #: ../js/nggadmintab-js.php:151
174
  msgid "Insert"
175
  msgstr ""
176
 
177
+ #: ../nggfunctions.php:366
178
+ #: ../nggfunctions.php:382
179
  msgid "Watch gallery"
180
  msgstr ""
181
 
182
+ #: ../nggfunctions.php:376
183
  msgid "Photos"
184
  msgstr ""
185
 
186
+ #: ../nggfunctions.php:456
187
+ msgid "from"
188
+ msgstr ""
189
+
190
+ #: ../ngginstall.php:101
191
  msgid "[Show as slideshow]"
192
  msgstr ""
193
 
194
+ #: ../ngginstall.php:102
195
  msgid "[Show picture list]"
196
  msgstr ""
197
 
198
+ #: ../ngginstall.php:112
199
+ msgid "Back"
200
+ msgstr ""
201
+
202
+ #: ../ngginstall.php:113
203
+ msgid "Next"
204
+ msgstr ""
205
+
206
+ #: ../nggwidget.php:148
207
  msgid "Title:"
208
  msgstr ""
209
 
210
+ #: ../nggwidget.php:149
211
  msgid "Select Gallery:"
212
  msgstr ""
213
 
214
+ #: ../nggwidget.php:160
215
  msgid "Height:"
216
  msgstr ""
217
 
218
+ #: ../nggwidget.php:161
219
  msgid "Width:"
220
  msgstr ""
221
 
222
+ #: ../nggwidget.php:401
223
  msgid "NextGEN Recent Image"
224
  msgstr ""
225
 
226
+ #: ../nggwidget.php:441
227
+ #: ../nggwidget.php:644
228
  #: ../admin/album.php:213
229
+ #: ../admin/manage.php:221
230
+ #: ../admin/manage.php:351
231
+ #: ../js/nggadmintab-js.php:104
232
  msgid "Title"
233
  msgstr ""
234
 
235
+ #: ../nggwidget.php:444
236
+ #: ../nggwidget.php:647
237
  msgid "Display type"
238
  msgstr ""
239
 
240
+ #: ../nggwidget.php:446
241
+ #: ../nggwidget.php:649
242
+ #: ../admin/manage.php:433
243
+ #: ../js/nggadmintab-js.php:101
244
  msgid "Thumbnail"
245
  msgstr ""
246
 
247
+ #: ../nggwidget.php:447
248
+ #: ../nggwidget.php:650
249
  msgid "Orginal"
250
  msgstr ""
251
 
252
+ #: ../nggwidget.php:450
253
+ #: ../nggwidget.php:654
254
  msgid "Number of pics"
255
  msgstr ""
256
 
257
+ #: ../nggwidget.php:461
258
+ #: ../nggwidget.php:665
259
  msgid "Width (px)"
260
  msgstr ""
261
 
262
+ #: ../nggwidget.php:463
263
+ #: ../nggwidget.php:667
264
  msgid "Height (px)"
265
  msgstr ""
266
 
267
+ #: ../nggwidget.php:465
268
+ #: ../nggwidget.php:669
269
  msgid "Mode"
270
  msgstr ""
271
 
272
+ #: ../nggwidget.php:467
273
+ #: ../nggwidget.php:671
274
+ #: ../admin/settings.php:512
275
  msgid "none"
276
  msgstr ""
277
 
278
+ #: ../nggwidget.php:468
279
+ #: ../nggwidget.php:672
280
  msgid "web2.0"
281
  msgstr ""
282
 
283
+ #: ../nggwidget.php:472
284
+ #: ../nggwidget.php:676
285
  msgid "Show in the main page"
286
  msgstr ""
287
 
288
+ #: ../nggwidget.php:474
289
+ #: ../nggwidget.php:678
290
  msgid "yes"
291
  msgstr ""
292
 
293
+ #: ../nggwidget.php:475
294
+ #: ../nggwidget.php:679
295
  msgid "no"
296
  msgstr ""
297
 
298
+ #: ../nggwidget.php:478
299
+ #: ../nggwidget.php:682
300
  msgid "Show in"
301
  msgstr ""
302
 
303
+ #: ../nggwidget.php:480
304
+ #: ../nggwidget.php:684
305
  msgid "All categories"
306
  msgstr ""
307
 
308
+ #: ../nggwidget.php:481
309
+ #: ../nggwidget.php:685
310
  msgid "Only which are not listed"
311
  msgstr ""
312
 
313
+ #: ../nggwidget.php:482
314
+ #: ../nggwidget.php:686
315
  msgid "Only which are listed"
316
  msgstr ""
317
 
318
+ #: ../nggwidget.php:485
319
+ #: ../nggwidget.php:689
320
  msgid "Categories (id (use , to seperate)"
321
  msgstr ""
322
 
323
+ #: ../nggwidget.php:603
324
  msgid "NextGEN Random Image"
325
  msgstr ""
326
 
564
  #: ../admin/addgallery.php:229
565
  #: ../admin/addgallery.php:231
566
  #: ../admin/addgallery.php:270
567
+ #: ../admin/addgallery.php:484
568
+ #: ../admin/addgallery.php:486
569
  msgid "Unable to create directory "
570
  msgstr ""
571
 
572
  #: ../admin/addgallery.php:230
573
+ #: ../admin/addgallery.php:485
574
+ #: ../admin/addgallery.php:487
575
  msgid "Unable to set directory permissions "
576
  msgstr ""
577
 
637
  msgid "Some pictures are not writeable :"
638
  msgstr ""
639
 
640
+ #: ../admin/addgallery.php:444
641
+ msgid "Follow thumbnails could not created."
 
642
  msgstr ""
643
 
644
+ #: ../admin/addgallery.php:445
645
  msgid "Some thumbnails are not writeable :"
646
  msgstr ""
647
 
648
+ #: ../admin/addgallery.php:475
649
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
650
  msgstr ""
651
 
652
+ #: ../admin/addgallery.php:490
653
  msgid "Directory already exists, please rename zip file"
654
  msgstr ""
655
 
656
+ #: ../admin/addgallery.php:495
657
  msgid "Unable to unlink zip file "
658
  msgstr ""
659
 
660
+ #: ../admin/addgallery.php:497
661
  msgid "Zip-File successfully unpacked"
662
  msgstr ""
663
 
664
+ #: ../admin/addgallery.php:524
665
+ #: ../admin/addgallery.php:531
666
  msgid "Unable to unlink file "
667
  msgstr ""
668
 
669
+ #: ../admin/addgallery.php:525
670
  msgid "No gallery selected !"
671
  msgstr ""
672
 
673
+ #: ../admin/addgallery.php:532
674
  msgid "Failure in database, no gallery path set !"
675
  msgstr ""
676
 
677
+ #: ../admin/addgallery.php:538
678
  msgid "Error, the file could not moved to : "
679
  msgstr ""
680
 
681
+ #: ../admin/addgallery.php:539
682
+ msgid "Error, the file permissions could not set"
683
+ msgstr ""
684
+
685
+ #: ../admin/addgallery.php:559
686
  msgid " Images successfully added"
687
  msgstr ""
688
 
689
+ #: ../admin/admin.php:46
690
  msgid "Add Gallery"
691
  msgstr ""
692
 
693
+ #: ../admin/admin.php:47
694
  msgid "Manage Gallery"
695
  msgstr ""
696
 
697
+ #: ../admin/admin.php:49
698
  msgid "Options"
699
  msgstr ""
700
 
701
+ #: ../admin/admin.php:50
702
  msgid "Style"
703
  msgstr ""
704
 
705
+ #: ../admin/admin.php:51
706
  msgid "Setup Gallery"
707
  msgstr ""
708
 
709
+ #: ../admin/admin.php:51
710
  msgid "Setup"
711
  msgstr ""
712
 
713
+ #: ../admin/admin.php:52
714
  msgid "About this Gallery"
715
  msgstr ""
716
 
717
+ #: ../admin/admin.php:52
718
  msgid "About"
719
  msgstr ""
720
 
740
  msgstr ""
741
 
742
  #: ../admin/album.php:118
743
+ #: ../admin/manage.php:245
744
+ #: ../admin/manage.php:477
745
  msgid "Delete"
746
  msgstr ""
747
 
753
  #: ../admin/settings.php:155
754
  #: ../admin/settings.php:194
755
  #: ../admin/settings.php:231
 
756
  #: ../admin/settings.php:311
757
+ #: ../admin/settings.php:356
758
+ #: ../admin/settings.php:463
759
+ #: ../admin/settings.php:565
760
  msgid "Update"
761
  msgstr ""
762
 
777
  msgstr ""
778
 
779
  #: ../admin/album.php:211
780
+ #: ../admin/manage.php:219
781
+ #: ../admin/manage.php:430
782
  msgid "ID"
783
  msgstr ""
784
 
791
  msgstr ""
792
 
793
  #: ../admin/manage.php:44
794
+ #: ../admin/manage.php:64
795
  msgid "deleted successfully"
796
  msgstr ""
797
 
798
+ #: ../admin/manage.php:87
799
  msgid "Watermark successfully added"
800
  msgstr ""
801
 
802
+ #: ../admin/manage.php:92
803
  msgid "Thumbnails successfully created. Please refresh your browser cache."
804
  msgstr ""
805
 
806
+ #: ../admin/manage.php:97
807
  msgid "Images successfully resized"
808
  msgstr ""
809
 
810
+ #: ../admin/manage.php:115
811
  msgid "Pictures deleted successfully "
812
  msgstr ""
813
 
814
+ #: ../admin/manage.php:133
815
  #: ../admin/settings.php:25
816
  #: ../admin/style.php:15
817
  msgid "Update successfully"
818
  msgstr ""
819
 
820
+ #: ../admin/manage.php:155
821
  msgid " picture(s) successfully added"
822
  msgstr ""
823
 
824
+ #: ../admin/manage.php:178
825
+ msgid "New gallery page ID"
826
  msgstr ""
827
 
828
+ #: ../admin/manage.php:178
829
+ msgid "created"
830
  msgstr ""
831
 
832
+ #: ../admin/manage.php:215
833
+ msgid "Gallery Overview"
834
+ msgstr ""
835
+
836
+ #: ../admin/manage.php:220
837
+ msgid "Gallery name"
838
  msgstr ""
839
 
840
+ #: ../admin/manage.php:223
841
  msgid "Page ID"
842
  msgstr ""
843
 
844
+ #: ../admin/manage.php:224
845
  msgid "Quantity"
846
  msgstr ""
847
 
848
+ #: ../admin/manage.php:225
849
+ #: ../admin/manage.php:442
850
  msgid "Action"
851
  msgstr ""
852
 
853
+ #: ../admin/manage.php:244
854
+ #: ../js/nggadmintab-js.php:88
855
  msgid "Edit"
856
  msgstr ""
857
 
858
+ #: ../admin/manage.php:245
859
+ #: ../admin/manage.php:477
860
  msgid "Delete this file ?"
861
  msgstr ""
862
 
863
+ #: ../admin/manage.php:250
864
+ #: ../admin/manage.php:482
865
  msgid "No entries found"
866
  msgstr ""
867
 
868
+ #: ../admin/manage.php:353
869
  msgid "Page Link to"
870
  msgstr ""
871
 
872
+ #: ../admin/manage.php:356
873
  msgid "Not linked"
874
  msgstr ""
875
 
876
+ #: ../admin/manage.php:372
877
  msgid "Preview image"
878
  msgstr ""
879
 
880
+ #: ../admin/manage.php:375
881
  msgid "No Picture"
882
  msgstr ""
883
 
884
+ #: ../admin/manage.php:390
885
  msgid "Path"
886
  msgstr ""
887
 
888
+ #: ../admin/manage.php:393
889
+ msgid "Create new page"
890
+ msgstr ""
891
+
892
+ #: ../admin/manage.php:396
893
+ msgid "Main page (No parent)"
894
+ msgstr ""
895
+
896
+ #: ../admin/manage.php:399
897
+ msgid "Add page"
898
+ msgstr ""
899
+
900
+ #: ../admin/manage.php:405
901
  msgid "Scan Folder for new images"
902
  msgstr ""
903
 
904
+ #: ../admin/manage.php:406
905
+ #: ../admin/manage.php:489
906
  msgid "Save Changes"
907
  msgstr ""
908
 
909
+ #: ../admin/manage.php:411
910
  msgid "No action"
911
  msgstr ""
912
 
913
+ #: ../admin/manage.php:412
914
  msgid "Set watermark"
915
  msgstr ""
916
 
917
+ #: ../admin/manage.php:413
918
  msgid "Create new thumbnails"
919
  msgstr ""
920
 
921
+ #: ../admin/manage.php:414
922
  msgid "Resize images"
923
  msgstr ""
924
 
925
+ #: ../admin/manage.php:415
926
  msgid "Delete images"
927
  msgstr ""
928
 
929
+ #: ../admin/manage.php:418
930
  msgid "OK"
931
  msgstr ""
932
 
933
+ #: ../admin/manage.php:418
934
  msgid "No images selected"
935
  msgstr ""
936
 
937
+ #: ../admin/manage.php:418
938
  #, php-format
939
  msgid ""
940
  "You are about to start the bulk edit for %s images \n"
942
  " 'Cancel' to stop, 'OK' to proceed."
943
  msgstr ""
944
 
945
+ #: ../admin/manage.php:419
946
+ msgid "Hide thumbnails "
 
947
  msgstr ""
948
 
949
+ #: ../admin/manage.php:420
950
+ msgid "Show thumbnails "
951
  msgstr ""
952
 
953
+ #: ../admin/manage.php:422
954
+ msgid "Show tags"
955
+ msgstr ""
956
+
957
+ #: ../admin/manage.php:423
958
+ msgid "Hide tags"
959
+ msgstr ""
960
+
961
+ #: ../admin/manage.php:431
962
+ #: ../admin/settings.php:278
963
+ msgid "File name"
964
+ msgstr ""
965
+
966
+ #: ../admin/manage.php:438
967
  msgid "exclude"
968
  msgstr ""
969
 
970
+ #: ../admin/manage.php:440
971
+ msgid "Tags (comma separated list)"
972
+ msgstr ""
973
+
974
+ #: ../admin/manage.php:476
975
  msgid "View"
976
  msgstr ""
977
 
1005
  msgstr ""
1006
 
1007
  #: ../admin/overview.php:42
1008
+ msgid "gallery administrator"
1009
  msgstr ""
1010
 
1011
  #: ../admin/overview.php:42
1012
+ msgid "gallery editor"
1013
  msgstr ""
1014
 
1015
  #: ../admin/overview.php:43
1063
  msgstr ""
1064
 
1065
  #: ../admin/overview.php:121
1066
+ #: ../admin/overview.php:124
1067
  msgid "On"
1068
  msgstr ""
1069
 
1070
  #: ../admin/overview.php:122
1071
+ #: ../admin/overview.php:125
1072
  msgid "Off"
1073
  msgstr ""
1074
 
 
1075
  #: ../admin/overview.php:128
1076
  #: ../admin/overview.php:131
1077
  #: ../admin/overview.php:134
1078
+ #: ../admin/overview.php:137
1079
+ #: ../admin/overview.php:140
1080
  msgid "N/A"
1081
  msgstr ""
1082
 
1083
+ #: ../admin/overview.php:139
1084
+ msgid " MByte"
1085
+ msgstr ""
1086
+
1087
+ #: ../admin/overview.php:143
1088
  msgid "Operating System"
1089
  msgstr ""
1090
 
1091
+ #: ../admin/overview.php:144
1092
  msgid "Server"
1093
  msgstr ""
1094
 
1095
+ #: ../admin/overview.php:145
1096
+ msgid "Memory usage"
1097
+ msgstr ""
1098
+
1099
+ #: ../admin/overview.php:146
1100
  msgid "MYSQL Version"
1101
  msgstr ""
1102
 
1103
+ #: ../admin/overview.php:147
1104
  msgid "SQL Mode"
1105
  msgstr ""
1106
 
1107
+ #: ../admin/overview.php:148
1108
  msgid "PHP Version"
1109
  msgstr ""
1110
 
1111
+ #: ../admin/overview.php:149
1112
  msgid "PHP Safe Mode"
1113
  msgstr ""
1114
 
1115
+ #: ../admin/overview.php:150
1116
+ msgid "PHP Allow URL fopen"
1117
+ msgstr ""
1118
+
1119
+ #: ../admin/overview.php:151
1120
  msgid "PHP Memory Limit"
1121
  msgstr ""
1122
 
1123
+ #: ../admin/overview.php:152
1124
  msgid "PHP Max Upload Size"
1125
  msgstr ""
1126
 
1127
+ #: ../admin/overview.php:153
1128
  msgid "PHP Max Post Size"
1129
  msgstr ""
1130
 
1131
+ #: ../admin/overview.php:154
1132
  msgid "PHP Max Script Execute Time"
1133
  msgstr ""
1134
 
1138
  msgstr ""
1139
 
1140
  #: ../admin/settings.php:119
1141
+ #: ../admin/settings.php:271
1142
  msgid "Thumbnails"
1143
  msgstr ""
1144
 
1147
  msgstr ""
1148
 
1149
  #: ../admin/settings.php:122
1150
+ #: ../admin/settings.php:319
1151
  msgid "Effects"
1152
  msgstr ""
1153
 
1188
  msgstr ""
1189
 
1190
  #: ../admin/settings.php:172
1191
+ msgid "These values are maximum values "
1192
  msgstr ""
1193
 
1194
  #: ../admin/settings.php:175
1250
  msgstr ""
1251
 
1252
  #: ../admin/settings.php:245
1253
+ msgid "Activate jQuery navigation"
1254
  msgstr ""
1255
 
1256
  #: ../admin/settings.php:247
1257
+ msgid "Please note : This is still experimental. Requires the Thickbox effect"
1258
+ msgstr ""
1259
+
1260
+ #: ../admin/settings.php:251
1261
+ msgid "Deactivate gallery page link"
1262
+ msgstr ""
1263
+
1264
+ #: ../admin/settings.php:253
1265
+ msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1266
+ msgstr ""
1267
+
1268
+ #: ../admin/settings.php:257
1269
+ msgid "Number of images per page"
1270
+ msgstr ""
1271
+
1272
+ #: ../admin/settings.php:259
1273
  msgid "0 will disable pagination, all images on one page"
1274
  msgstr ""
1275
 
1276
+ #: ../admin/settings.php:263
1277
  msgid "Integrate slideshow"
1278
  msgstr ""
1279
 
1280
+ #: ../admin/settings.php:270
1281
  msgid "Show first"
1282
  msgstr ""
1283
 
1284
+ #: ../admin/settings.php:276
1285
  msgid "Sort thumbnails"
1286
  msgstr ""
1287
 
1288
+ #: ../admin/settings.php:277
1289
  msgid "Image ID"
1290
  msgstr ""
1291
 
1292
+ #: ../admin/settings.php:279
1293
  msgid "Alt / Title text"
1294
  msgstr ""
1295
 
1296
+ #: ../admin/settings.php:283
1297
+ msgid "Sort direction"
1298
+ msgstr ""
1299
+
1300
+ #: ../admin/settings.php:284
1301
+ msgid "Ascending"
1302
+ msgstr ""
1303
+
1304
+ #: ../admin/settings.php:285
1305
+ msgid "Descending"
1306
+ msgstr ""
1307
+
1308
+ #: ../admin/settings.php:289
1309
+ msgid "Image Browser"
1310
+ msgstr ""
1311
+
1312
+ #: ../admin/settings.php:292
1313
+ msgid "Show title as headline"
1314
+ msgstr ""
1315
+
1316
+ #: ../admin/settings.php:294
1317
+ msgid "The alt/title text is shown as H3 headline "
1318
+ msgstr ""
1319
+
1320
+ #: ../admin/settings.php:298
1321
+ msgid "Show image description"
1322
+ msgstr ""
1323
+
1324
+ #: ../admin/settings.php:300
1325
+ msgid "The description text is shown below the picture"
1326
+ msgstr ""
1327
+
1328
+ #: ../admin/settings.php:304
1329
+ msgid "Navigation text"
1330
+ msgstr ""
1331
+
1332
+ #: ../admin/settings.php:322
1333
  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."
1334
  msgstr ""
1335
 
1336
+ #: ../admin/settings.php:323
1337
  msgid "With the placeholder"
1338
  msgstr ""
1339
 
1340
+ #: ../admin/settings.php:323
1341
  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."
1342
  msgstr ""
1343
 
1344
+ #: ../admin/settings.php:327
1345
  msgid "JavaScript Thumbnail effect"
1346
  msgstr ""
1347
 
1348
+ #: ../admin/settings.php:330
1349
+ #: ../js/nggadmintab-js.php:112
1350
  msgid "None"
1351
  msgstr ""
1352
 
1353
+ #: ../admin/settings.php:331
1354
  msgid "Thickbox"
1355
  msgstr ""
1356
 
1357
+ #: ../admin/settings.php:332
1358
  msgid "Lightbox"
1359
  msgstr ""
1360
 
1361
+ #: ../admin/settings.php:333
1362
  msgid "Highslide"
1363
  msgstr ""
1364
 
1365
+ #: ../admin/settings.php:334
1366
  msgid "Custom"
1367
  msgstr ""
1368
 
1369
+ #: ../admin/settings.php:339
1370
  msgid "Link Code line"
1371
  msgstr ""
1372
 
1373
+ #: ../admin/settings.php:347
1374
  msgid "Select loading image"
1375
  msgstr ""
1376
 
1377
+ #: ../admin/settings.php:374
1378
  msgid "Preview"
1379
  msgstr ""
1380
 
1381
+ #: ../admin/settings.php:376
1382
+ #: ../admin/settings.php:380
1383
  msgid "Position"
1384
  msgstr ""
1385
 
1386
+ #: ../admin/settings.php:400
1387
  msgid "Offset"
1388
  msgstr ""
1389
 
1390
+ #: ../admin/settings.php:418
1391
  msgid "Use image as watermark"
1392
  msgstr ""
1393
 
1394
+ #: ../admin/settings.php:421
1395
  msgid "URL to file"
1396
  msgstr ""
1397
 
1398
+ #: ../admin/settings.php:423
1399
+ msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
1400
+ msgstr ""
1401
+
1402
+ #: ../admin/settings.php:429
1403
  msgid "Use text as watermark"
1404
  msgstr ""
1405
 
1406
+ #: ../admin/settings.php:432
1407
  msgid "Font"
1408
  msgstr ""
1409
 
1410
+ #: ../admin/settings.php:440
1411
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1412
  msgstr ""
1413
 
1414
+ #: ../admin/settings.php:444
1415
  msgid "Size"
1416
  msgstr ""
1417
 
1418
+ #: ../admin/settings.php:448
1419
  msgid "Color"
1420
  msgstr ""
1421
 
1422
+ #: ../admin/settings.php:450
1423
  msgid "(hex w/o #)"
1424
  msgstr ""
1425
 
1426
+ #: ../admin/settings.php:453
1427
  msgid "Text"
1428
  msgstr ""
1429
 
1430
+ #: ../admin/settings.php:457
1431
  msgid "Opaque"
1432
  msgstr ""
1433
 
1434
+ #: ../admin/settings.php:475
1435
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1436
  msgstr ""
1437
 
1438
+ #: ../admin/settings.php:476
1439
+ msgid "The settings are used in the JW Image Rotator Version 3.9 ."
1440
  msgstr ""
1441
 
1442
+ #: ../admin/settings.php:477
1443
  msgid "See more information for the Flash Player on the web page"
1444
  msgstr ""
1445
 
1446
+ #: ../admin/settings.php:480
1447
  msgid "Default size (W x H)"
1448
  msgstr ""
1449
 
1450
+ #: ../admin/settings.php:485
1451
  msgid "Shuffle mode"
1452
  msgstr ""
1453
 
1454
+ #: ../admin/settings.php:489
1455
  msgid "Show next image on click"
1456
  msgstr ""
1457
 
1458
+ #: ../admin/settings.php:493
1459
  msgid "Show navigation bar"
1460
  msgstr ""
1461
 
1462
+ #: ../admin/settings.php:497
1463
  msgid "Show loading icon"
1464
  msgstr ""
1465
 
1466
+ #: ../admin/settings.php:501
1467
+ msgid "Use watermark logo"
1468
+ msgstr ""
1469
+
1470
+ #: ../admin/settings.php:503
1471
+ msgid "You can change the logo at the watermark settings"
1472
+ msgstr ""
1473
+
1474
+ #: ../admin/settings.php:506
1475
  msgid "Stretch image"
1476
  msgstr ""
1477
 
1478
+ #: ../admin/settings.php:509
1479
  msgid "true"
1480
  msgstr ""
1481
 
1482
+ #: ../admin/settings.php:510
1483
  msgid "false"
1484
  msgstr ""
1485
 
1486
+ #: ../admin/settings.php:511
1487
  msgid "fit"
1488
  msgstr ""
1489
 
1490
+ #: ../admin/settings.php:517
1491
  msgid "Duration time"
1492
  msgstr ""
1493
 
1494
+ #: ../admin/settings.php:518
1495
  msgid "sec."
1496
  msgstr ""
1497
 
1498
+ #: ../admin/settings.php:521
1499
  msgid "Transition / Fade effect"
1500
  msgstr ""
1501
 
1502
+ #: ../admin/settings.php:524
1503
  msgid "fade"
1504
  msgstr ""
1505
 
1506
+ #: ../admin/settings.php:525
1507
  msgid "bgfade"
1508
  msgstr ""
1509
 
1510
+ #: ../admin/settings.php:526
1511
  msgid "slowfade"
1512
  msgstr ""
1513
 
1514
+ #: ../admin/settings.php:527
1515
  msgid "circles"
1516
  msgstr ""
1517
 
1518
+ #: ../admin/settings.php:528
1519
  msgid "bubbles"
1520
  msgstr ""
1521
 
1522
+ #: ../admin/settings.php:529
1523
  msgid "blocks"
1524
  msgstr ""
1525
 
1526
+ #: ../admin/settings.php:530
1527
  msgid "fluids"
1528
  msgstr ""
1529
 
1530
+ #: ../admin/settings.php:531
1531
  msgid "lines"
1532
  msgstr ""
1533
 
1534
+ #: ../admin/settings.php:532
1535
  msgid "random"
1536
  msgstr ""
1537
 
1538
+ #: ../admin/settings.php:536
1539
  msgid "Use slow zooming effect"
1540
  msgstr ""
1541
 
1542
+ #: ../admin/settings.php:540
1543
  msgid "Background Color"
1544
  msgstr ""
1545
 
1546
+ #: ../admin/settings.php:545
1547
  msgid "Texts / Buttons Color"
1548
  msgstr ""
1549
 
1550
+ #: ../admin/settings.php:550
1551
  msgid "Rollover / Active Color"
1552
  msgstr ""
1553
 
1554
+ #: ../admin/settings.php:555
1555
+ msgid "Background music (URL)"
1556
+ msgstr ""
1557
+
1558
+ #: ../admin/settings.php:559
1559
  msgid "Try XHTML validation (with CDATA)"
1560
  msgstr ""
1561
 
1562
+ #: ../admin/settings.php:561
1563
  msgid "Important : Could causes problem at some browser. Please recheck your page."
1564
  msgstr ""
1565
 
1672
  msgid "Oops, no such file exists! Double check the name and try again, merci."
1673
  msgstr ""
1674
 
1675
+ #: ../js/nggadmintab-js.php:81
1676
+ #: ../js/nggadmintab-js.php:83
1677
+ #: ../js/nggadmintab-js.php:144
1678
+ #: ../js/nggadmintab-js.php:146
1679
+ msgid "Browse your files"
1680
+ msgstr ""
1681
+
1682
+ #: ../js/nggadmintab-js.php:81
1683
+ #: ../js/nggadmintab-js.php:83
1684
+ #: ../js/nggadmintab-js.php:144
1685
+ #: ../js/nggadmintab-js.php:146
1686
+ msgid "&laquo; Back"
1687
+ msgstr ""
1688
+
1689
+ #: ../js/nggadmintab-js.php:92
1690
+ #: ../js/nggadmintab-js.php:155
1691
+ msgid "Direct link to file"
1692
+ msgstr ""
1693
+
1694
+ #: ../js/nggadmintab-js.php:102
1695
+ msgid "Full size"
1696
+ msgstr ""
1697
+
1698
+ #: ../js/nggadmintab-js.php:105
1699
+ msgid "Show:"
1700
+ msgstr ""
1701
+
1702
+ #: ../js/nggadmintab-js.php:110
1703
+ msgid "Link to:"
1704
+ msgstr ""
1705
+
1706
+ #: ../js/nggadmintab-js.php:111
1707
+ msgid "File"
1708
+ msgstr ""
1709
+
1710
+ #: ../js/nggadmintab-js.php:116
1711
+ msgid "Send to editor &raquo;"
1712
+ msgstr ""
1713
+
1714
+ #: ../js/nggadmintab-js.php:175
1715
+ msgid "Save &raquo;"
1716
+ msgstr ""
1717
+
1718
+ #: ../js/nggadmintab-js.php:254
1719
+ #, php-format
1720
+ msgid ""
1721
+ "Are you sure you want to delete the file '%s'?\n"
1722
+ "Click ok to delete or cancel to go back."
1723
+ msgstr ""
1724
+
lib/thumbnail.inc.php CHANGED
@@ -164,19 +164,25 @@ class ngg_Thumbnail {
164
  $this->error = true;
165
  }
166
  }
 
 
 
 
 
167
 
168
  //initialize resources if no errors
169
- if($this->error == false) {
170
- switch($this->format) {
 
171
  case 'GIF':
172
  $this->oldImage = ImageCreateFromGif($this->fileName);
173
  break;
174
  case 'JPG':
175
- $this->oldImage = ImageCreateFromJpeg($this->fileName);
176
  break;
177
  case 'PNG':
178
  $this->oldImage = ImageCreateFromPng($this->fileName);
179
- break;
180
  }
181
 
182
  $size = GetImageSize($this->fileName);
@@ -193,6 +199,51 @@ class ngg_Thumbnail {
193
  }
194
  }
195
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  /**
197
  * Must be called to free up allocated memory after all manipulations are done
198
  *
164
  $this->error = true;
165
  }
166
  }
167
+
168
+ // Check memory consumption if file exists
169
+ if($this->error == false) {
170
+ $this->checkMemoryForImage($this->fileName);
171
+ }
172
 
173
  //initialize resources if no errors
174
+ if($this->error == false) {
175
+
176
+ switch($this->format) {
177
  case 'GIF':
178
  $this->oldImage = ImageCreateFromGif($this->fileName);
179
  break;
180
  case 'JPG':
181
+ $this->oldImage = ImageCreateFromJpeg($this->fileName);
182
  break;
183
  case 'PNG':
184
  $this->oldImage = ImageCreateFromPng($this->fileName);
185
+ break;
186
  }
187
 
188
  $size = GetImageSize($this->fileName);
199
  }
200
  }
201
 
202
+ /**
203
+ * Calculate the memory limit
204
+ *
205
+ */
206
+ function checkMemoryForImage( $filename ){
207
+
208
+ if (function_exists('memory_get_usage')) {
209
+ $imageInfo = getimagesize($filename);
210
+ switch($this->format) {
211
+ case 'GIF':
212
+ // measured factor 1 is better
213
+ $CHANNEL = 1;
214
+ break;
215
+ case 'JPG':
216
+ $CHANNEL = $imageInfo['channels'];
217
+ break;
218
+ case 'PNG':
219
+ // didn't get the channel for png
220
+ $CHANNEL = 3;
221
+ break;
222
+ }
223
+ $MB = 1048576; // number of bytes in 1M
224
+ $K64 = 65536; // number of bytes in 64K
225
+ $TWEAKFACTOR = 1.5; // Or whatever works for you
226
+ $memoryNeeded = round( ( $imageInfo[0] * $imageInfo[1]
227
+ * $imageInfo['bits']
228
+ * $CHANNEL / 8
229
+ + $K64
230
+ ) * $TWEAKFACTOR
231
+ );
232
+ $memoryNeeded = memory_get_usage() + $memoryNeeded;
233
+ // get memory limit
234
+ $memory_limit = ini_get('memory_limit');
235
+ if ($memory_limit != '') {
236
+ $memory_limit = substr($memory_limit, 0, -1) * 1024 * 1024;
237
+ }
238
+
239
+ if ($memoryNeeded > $memory_limit) {
240
+ $this->errmsg = 'Exceed Memory limit';
241
+ $this->error = true;
242
+ }
243
+ }
244
+ return;
245
+ }
246
+
247
  /**
248
  * Must be called to free up allocated memory after all manipulations are done
249
  *
nggadmintab.php CHANGED
@@ -1,12 +1,189 @@
1
- //svn-test, by mufuschnu
2
  <?php
3
  function ngg_upload_tab_content() {
4
  // this is the content of the "Gallery" admin tab
5
- ?>
 
 
 
 
 
 
 
 
6
 
7
- <br />
8
- THE CONTENT
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ?>
 
1
  <?php
2
  function ngg_upload_tab_content() {
3
  // this is the content of the "Gallery" admin tab
4
+ global $ID, $wpdb , $style, $action ;
5
+ $ngg_options = get_option('ngg_options');
6
+
7
+ // select gallery id
8
+ if (isset($_GET['select_gal'])){
9
+ $galleryID = $_GET['select_gal'];
10
+ } else {
11
+ $galleryID = $_POST['from_gal'];
12
+ }
13
 
14
+ // check for page navigation
15
+ $page = (int) $_GET['paged'];
16
+ $page = ($page == 0 ) ? 1 : $page;
17
+ $start = ( $page - 1 ) * 10;
18
+
19
+ if (($action == "update") || ($action == "delete")) {
20
+
21
+ // if update/delete pressed
22
+ if ( isset($_POST['delete']) || ($action == "delete") ) {
23
+ // Function delete image
24
+ //TODO: Write a class function "Delete picture"
25
+ //TODO: use _wpnonce
26
+ $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$ID' ");
27
+ if ($picture) {
28
+ if ($ngg_options[deleteImg]) {
29
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$picture->galleryid' ");
30
+ if ($gallerypath) {
31
+ $thumb_folder = ngg_get_thumbnail_folder($gallerypath, FALSE);
32
+ $thumb_prefix = ngg_get_thumbnail_prefix($gallerypath, FALSE);
33
+ unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$picture->filename);
34
+ unlink(WINABSPATH.$gallerypath.'/'.$picture->filename);
35
+ }
36
+ }
37
+ $result = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $ID");
38
+ }
39
+ }
40
+
41
+ if ( isset($_POST['save']) ) {
42
+ // Function save desription
43
+ $img_title = attribute_escape($_POST[image_title]);
44
+ $img_desc = attribute_escape($_POST[image_desc]);
45
+ $result = $wpdb->query("UPDATE $wpdb->nggpictures SET alttext= '$img_title', description = '$img_desc' WHERE pid = '$ID'");
46
+ }
47
+ }
48
 
49
+ if (($action == "edit") || ($action == "view")) {
50
+ ( $style == 'inline' ) ? ngg_admintab_insert_pic($ID) : ngg_image_edit();
51
+ return;
52
+ }
53
+
54
+ ?>
55
+ <script type="text/javascript"> var tb_pathToImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimationv3.gif';</script>
56
+ <style type="text/css" media="all">@import "<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.css";</style>
57
+
58
+ <form action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']) ?>" method="GET" id="ngg-gallery" style="padding-top:10px;">
59
+ <input type="hidden" name="tab" value="<?php echo$_GET['tab']?>" />
60
+ <input type="hidden" name="post_id" value="<?php echo$_GET['post_id']?>" />
61
+ <input type="hidden" name="action" value="<?php echo$_GET['action']?>" />
62
+ <input type="hidden" name="style" value="<?php echo$_GET['style']?>" />
63
+ <input type="hidden" name="_wpnonce" value="<?php echo$_GET['_wpnonce']?>" />
64
+ <input type="hidden" name="ID" value="<?php echo$_GET['ID']?>" />
65
+ <div id="select-gallery"><?php _e('Select a gallery',"nggallery"); ?> :
66
+ <select id="select_gal" name="select_gal" onchange="this.form.submit();">';
67
+ <option value="0" ><?php _e('No gallery',"nggallery"); ?></option>
68
+ <?php
69
+ // Show gallery selection
70
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
71
+ if(is_array($gallerylist)) {
72
+ foreach($gallerylist as $gallery) {
73
+ echo '<option value="'.$gallery->gid.'" >'.$gallery->name.' | '.$gallery->title.'</option>'."\n";
74
+ }
75
  }
76
+ ?>
77
+ </select>
78
+ </form>
79
+ </div>
80
+ <ul id="upload-files">
81
+ <?php
82
+ $picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir] LIMIT $start, 10 ");
83
+ if($picarray) {
84
+ foreach ($picarray as $picid) {
85
+
86
+ $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$picid'");
87
+ $imagesrc = ngg_get_image_url($picid);
88
+ $thumbsrc = ngg_get_thumbnail_url($picid);
89
+ $href = add_query_arg( array('action' => $style == 'inline' ? 'view' : 'edit', 'ID' => $picid, 'select_gal' => $galleryID));
90
+
91
+ echo '<li id="file-'.$picid.'" class="alignleft">';
92
+ echo '<a class="file-link image" title="'.$picture->filename.'" href="'.$href.'" id="file-link-'.$picid.'">
93
+ �<img alt="'.$picture->alttext.'" title="'.$picture->alttext.'" src="'.$thumbsrc.'"/></a>';
94
+ echo '</li>';
95
+ echo '
96
+ <div class="upload-file-data">
97
+ <p>
98
+ <input id="nggimage-url-'.$picid.'" type="hidden" value="'.$imagesrc.'" name="nggimage-url-'.$picid.'"/>
99
+ <input id="nggimage-thumb-url-'.$picid.'" type="hidden" value="'.$thumbsrc.'" name="nggimage-thumb-url-'.$picid.'"/>
100
+ <input id="nggimage-width-'.$picid.'" type="hidden" value="170" name="nggimage-width-'.$picid.'"/>
101
+ <input id="nggimage-height-'.$picid.'" type="hidden" value="128" name="nggimage-height-'.$picid.'"/>
102
+ <input id="nggimage-title-'.$picid.'" type="hidden" value="'.$picture->filename.'" name="nggimage-title-'.$picid.'"/>
103
+ <input id="nggimage-alttext-'.$picid.'" type="hidden" value="'.$picture->alttext.'" name="nggimage-alttext-'.$picid.'"/>
104
+ <input id="nggimage-description-'.$picid.'" type="hidden" value="'.stripslashes($picture->description).'" name="nggimage-description-'.$picid.'"/>
105
+ </p>
106
+ </div>';
107
+ }
108
+ }
109
+ echo '</ul>';
110
+
111
+ }
112
+
113
+ function ngg_image_edit() {
114
+ global $ID, $wpdb, $post_id, $tab, $style;
115
+
116
+ $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$ID'");
117
+ $image_src = ngg_get_image_url($ID);
118
+ $thumb_src = ngg_get_thumbnail_url($ID);
119
+
120
+ ?>
121
+ <script type="text/javascript"> var tb_pathToImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimationv3.gif';</script>
122
+ <style type="text/css" media="all">@import "<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.css";</style>
123
+ <form id="upload-file" method="post" action="<?php echo get_option('siteurl') . "/wp-admin/upload.php?style=$style&amp;tab=$tab&amp;post_id=$post_id"; ?>">
124
+ <div id="file-title" style="padding-top:10px;">
125
+ <h2><?php echo $picture->filename; ?></h2>
126
+ </div>
127
+ <div id="upload-file-view" class="alignleft">
128
+ <?php echo '<a title="'.$picture->alttext.'" href="'.$image_src.'" class="thickbox"><img alt="'.$picture->alttext.'" title="'.$picture->alttext.'" src="'.$thumb_src.'"/></a>'; ?>
129
+ </div>
130
+ <table><col /><col class="widefat" />
131
+ <tr>
132
+ <th scope="row"><label for="url"><?php _e('URL',"nggallery"); ?></label></th>
133
+ <td><input type="text" id="url" class="readonly" value="<?php echo $image_src ?>" readonly="readonly" /></td>
134
+ </tr>
135
+ <tr>
136
+ <th scope="row"><label for="image_title"><?php _e('Alt &amp; Title Text',"nggallery"); ?></label></th>
137
+ <td><input type="text" id="image_title" name="image_title" value="<?php echo $picture->alttext; ?>" /></td>
138
+ </tr>
139
+ <tr>
140
+ <th scope="row"><label for="image_desc"><?php _e('Description',"nggallery"); ?></label></th>
141
+ <td><textarea name="image_desc" id="image_desc"><?php echo stripslashes($picture->description); ?></textarea></td>
142
+ </tr>
143
+ <tr id="buttons" class="submit">
144
+ <td colspan='2'>
145
+ <input type="submit" name="delete" id="delete" class="delete alignleft" value="<?php _e('Delete File'); ?>" onclick="javascript:check=confirm('<?php _e('Delete image ?','nggallery'); ?>');if(check==false) return false;" />
146
+ <input type="hidden" name="from_tab" value="<?php echo $tab; ?>" />
147
+ <input type="hidden" name="action" value="update" />
148
+ <input type="hidden" name="post_id" value="<?php echo $post_id; ?>" />
149
+ <input type="hidden" name="from_gal" value="<?php echo $_GET['select_gal'] ?>" />
150
+ <input type="hidden" name="ID" value="<?php echo $ID; ?>" />
151
+ <?php wp_nonce_field( 'inlineuploading' ); ?>
152
+ <div class="submit">
153
+ <input type="submit" name="save" id="save" value="<?php _e('Save') ?> &raquo;" />
154
+ </div>
155
+ </td>
156
+ </tr>
157
+ </table>
158
+ </form>
159
+ <?php
160
+ }
161
+
162
+ function ngg_admintab_insert_pic($picid) {
163
+ global $wpdb, $post_id, $tab, $style;
164
+ //TODO: define tb_pathToImage
165
+ ?>
166
+ <script type="text/javascript"> var tb_pathToImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimationv3.gif';</script>
167
+ <style type="text/css" media="all">@import "<?php echo NGGALLERY_URLPATH ?>thickbox/thickbox.css";</style>
168
+ <?php
169
+ //TODO: Image data can be served by a class function
170
+ $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$picid'");
171
+ $imagesrc = ngg_get_image_url($picid);
172
+ $thumbsrc = ngg_get_thumbnail_url($picid);
173
+
174
+ echo '
175
+ <div class="upload-file-data">
176
+ <p>
177
+ <input id="nggimage-url-'.$picid.'" type="hidden" value="'.$imagesrc.'" name="nggimage-url-'.$picid.'"/>
178
+ <input id="nggimage-thumb-url-'.$picid.'" type="hidden" value="'.$thumbsrc.'" name="nggimage-thumb-url-'.$picid.'"/>
179
+ <input id="nggimage-width-'.$picid.'" type="hidden" value="170" name="nggimage-width-'.$picid.'"/>
180
+ <input id="nggimage-height-'.$picid.'" type="hidden" value="128" name="nggimage-height-'.$picid.'"/>
181
+ <input id="nggimage-title-'.$picid.'" type="hidden" value="'.$picture->filename.'" name="nggimage-title-'.$picid.'"/>
182
+ <input id="nggimage-alttext-'.$picid.'" type="hidden" value="'.$picture->alttext.'" name="nggimage-alttext-'.$picid.'"/>
183
+ <input id="nggimage-description-'.$picid.'" type="hidden" value="'.stripslashes($picture->description).'" name="nggimage-description-'.$picid.'"/>
184
+ </p>
185
+ </div>';
186
+
187
+ }
188
+
189
  ?>
nggallery.php CHANGED
@@ -4,7 +4,7 @@ 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.52a
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
@@ -45,7 +45,7 @@ global $wpdb, $wp_version;
45
  if (version_compare($wp_version, '2.1', '>=')) {
46
 
47
  // Version and path to check version
48
- define('NGGVERSION', "0.52");
49
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
50
 
51
  // define URL
@@ -85,9 +85,12 @@ function nggallery_init ()
85
  }
86
 
87
  // Load admin panel
88
- include_once ("ngginstall.php");
89
- include_once ("nggfunctions.php");
90
- include_once ("admin/admin.php");
 
 
 
91
 
92
  // add javascript to header
93
  add_action('wp_head', 'ngg_addjs', 1);
@@ -95,18 +98,22 @@ function ngg_addjs() {
95
  global $wp_version, $ngg_options;
96
 
97
  echo "<meta name='NextGEN' content='".NGGVERSION."' />\n";
98
- if ($ngg_options[activateCSS])
99
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'css/'.$ngg_options[CSSfile].'";</style>';
100
- if ($ngg_options[thumbEffect] == "thickbox") {
101
  echo "\n".'<script type="text/javascript"> var tb_pathToImage = "'.NGGALLERY_URLPATH.'thickbox/'.$ngg_options[thickboxImage].'";</script>';
102
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'thickbox/thickbox.css";</style>'."\n";
103
  if ($wp_version < "2.2") {
104
  wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.1.2');
105
  }
106
- wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.0.1');
 
 
 
 
107
  }
108
 
109
- // test for wordtube function
110
  if (!function_exists('integrate_swfobject')) {
111
  wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'js/swfobject.js', FALSE, '1.5');
112
  }
@@ -138,20 +145,20 @@ Use action upload_files_(tab) to display a page for your custom tab
138
  */
139
 
140
  //TODO: Integrate all galleries in Upload panel
141
- // add_action('upload_files_ngg_test', 'ngg_action_upload_Tab');
142
- // add_filter('wp_upload_tabs', 'ngg_wp_upload_tabs');
143
 
144
  function ngg_action_upload_Tab() {
145
  // execute when click on the tab
146
- add_action('admin_print_scripts', 'ngg_upload_tabs_script');
147
- }
148
-
149
- function ngg_upload_tabs_script() {
150
-
151
  }
152
 
153
  function ngg_wp_upload_tabs ($array) {
154
-
 
 
155
  /* THX to SilasFlickrPlugin
156
  0 => tab display name,
157
  1 => required cap / role,
@@ -159,11 +166,17 @@ function ngg_wp_upload_tabs ($array) {
159
  3 => total number objects OR array(total, objects per page),
160
  4 => add_query_args
161
  */
162
-
163
  include_once ("nggadmintab.php");
164
 
 
 
 
 
 
 
 
165
  $tab = array(
166
- 'ngg_test' => array('Gallery', 'upload_files', 'ngg_upload_tab_content', 0)
167
  );
168
 
169
  return array_merge($array,$tab);
@@ -175,7 +188,7 @@ function ngg_wp_upload_tabs ($array) {
175
  function insert_nextgen_script() {
176
 
177
  //TODO: Do with WP2.1 Script Loader
178
- // thanks for this idea to www.jovelstefan.de
179
  echo "\n"."
180
  <script type='text/javascript'>
181
  function ngg_buttonscript() {
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.60a
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
45
  if (version_compare($wp_version, '2.1', '>=')) {
46
 
47
  // Version and path to check version
48
+ define('NGGVERSION', "0.60");
49
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
50
 
51
  // define URL
85
  }
86
 
87
  // Load admin panel
88
+ include_once (dirname (__FILE__)."/ngginstall.php");
89
+ include_once (dirname (__FILE__)."/nggfunctions.php");
90
+ include_once (dirname (__FILE__)."/admin/admin.php");
91
+
92
+ // load class
93
+ $nggallery = new nggallery();
94
 
95
  // add javascript to header
96
  add_action('wp_head', 'ngg_addjs', 1);
98
  global $wp_version, $ngg_options;
99
 
100
  echo "<meta name='NextGEN' content='".NGGVERSION."' />\n";
101
+ if ($ngg_options['activateCSS'])
102
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'css/'.$ngg_options[CSSfile].'";</style>';
103
+ if ($ngg_options['thumbEffect'] == "thickbox") {
104
  echo "\n".'<script type="text/javascript"> var tb_pathToImage = "'.NGGALLERY_URLPATH.'thickbox/'.$ngg_options[thickboxImage].'";</script>';
105
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'thickbox/thickbox.css";</style>'."\n";
106
  if ($wp_version < "2.2") {
107
  wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.1.2');
108
  }
109
+ wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.0.2');
110
+
111
+ // add NextGEN jQuery Plugin
112
+ if ($ngg_options['galUsejQuery'])
113
+ wp_enqueue_script('nextgen', NGGALLERY_URLPATH .'admin/js/jquery.nextgen.pack.js', array('jquery'), '0.5');
114
  }
115
 
116
+ // test for wordTube function
117
  if (!function_exists('integrate_swfobject')) {
118
  wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'js/swfobject.js', FALSE, '1.5');
119
  }
145
  */
146
 
147
  //TODO: Integrate all galleries in Upload panel
148
+ add_action('upload_files_ngg_gallery', 'ngg_action_upload_Tab');
149
+ add_filter('wp_upload_tabs', 'ngg_wp_upload_tabs');
150
 
151
  function ngg_action_upload_Tab() {
152
  // execute when click on the tab
153
+ global $style;
154
+ if ( 'inline' == $style )
155
+ wp_enqueue_script('nggadmintab', NGGALLERY_URLPATH .'js/nggadmintab-js.php', array('prototype'), '0.6');
 
 
156
  }
157
 
158
  function ngg_wp_upload_tabs ($array) {
159
+
160
+ global $wpdb;
161
+
162
  /* THX to SilasFlickrPlugin
163
  0 => tab display name,
164
  1 => required cap / role,
166
  3 => total number objects OR array(total, objects per page),
167
  4 => add_query_args
168
  */
 
169
  include_once ("nggadmintab.php");
170
 
171
+ // Create navigation
172
+ $total = 1;
173
+ if ($_GET['select_gal']){
174
+ $galleryID = $_GET['select_gal'];
175
+ $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID'");
176
+ }
177
+
178
  $tab = array(
179
+ 'ngg_gallery' => array('Gallery', 'upload_files', 'ngg_upload_tab_content', array($total, 10))
180
  );
181
 
182
  return array_merge($array,$tab);
188
  function insert_nextgen_script() {
189
 
190
  //TODO: Do with WP2.1 Script Loader
191
+ // Thanks for this idea to www.jovelstefan.de
192
  echo "\n"."
193
  <script type='text/javascript'>
194
  function ngg_buttonscript() {
nggextractXML.php CHANGED
@@ -8,9 +8,6 @@
8
  +----------------------------------------------------------------+
9
  */
10
 
11
- // get the gallery id
12
- $galleryID = $_GET['gid'];
13
-
14
  $wpconfig = realpath("../../../wp-config.php");
15
  if (!file_exists($wpconfig)) die; // stop when wp-config is not there
16
 
@@ -22,9 +19,12 @@ add_action('shutdown', 'get_out_now', -1);
22
  global $wpdb;
23
  $ngg_options = get_option('ngg_options');
24
 
 
 
 
25
  // get gallery values
26
  $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
27
- $thepictures = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY '$ngg_options[galSort]' ASC");
28
 
29
  // set gallery url
30
  $folder_url = get_option ('siteurl')."/".$act_gallery->path."/";
@@ -40,7 +40,7 @@ if (is_array ($thepictures)){
40
  foreach ($thepictures as $picture) {
41
  echo " <track>\n";
42
  if (!empty($picture->description))
43
- echo " <title>".$picture->description."</title>\n";
44
  else if (!empty($picture->alttext))
45
  echo " <title>".$picture->alttext."</title>\n";
46
  else
8
  +----------------------------------------------------------------+
9
  */
10
 
 
 
 
11
  $wpconfig = realpath("../../../wp-config.php");
12
  if (!file_exists($wpconfig)) die; // stop when wp-config is not there
13
 
19
  global $wpdb;
20
  $ngg_options = get_option('ngg_options');
21
 
22
+ // get the gallery id
23
+ $galleryID = attribute_escape($_GET['gid']);
24
+
25
  // get gallery values
26
  $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
27
+ $thepictures = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir]");
28
 
29
  // set gallery url
30
  $folder_url = get_option ('siteurl')."/".$act_gallery->path."/";
40
  foreach ($thepictures as $picture) {
41
  echo " <track>\n";
42
  if (!empty($picture->description))
43
+ echo " <title>".strip_tags($picture->description)."</title>\n";
44
  else if (!empty($picture->alttext))
45
  echo " <title>".$picture->alttext."</title>\n";
46
  else
nggfunctions.php CHANGED
@@ -4,7 +4,7 @@ function searchnggallerytags($content) {
4
 
5
  global $wpdb;
6
 
7
- $search = "/\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,left|,)\]/i";
8
 
9
  if (preg_match_all($search, $content, $matches)) {
10
 
@@ -21,7 +21,7 @@ function searchnggallerytags($content) {
21
  }
22
  }// end singelpic
23
 
24
- $search = "/\[album\s*=\s*(\w+|^\+)(|,extend|,compact)\]/i";
25
 
26
  if (preg_match_all($search, $content, $matches)) {
27
  if (is_array($matches)) {
@@ -38,7 +38,7 @@ function searchnggallerytags($content) {
38
  }
39
  }// end album
40
 
41
- $search = "/\[gallery\s*=\s*(\w+|^\+)\]/i";
42
 
43
  if (preg_match_all($search, $content, $matches)) {
44
  if (is_array($matches)) {
@@ -54,8 +54,25 @@ function searchnggallerytags($content) {
54
  }
55
  }
56
  }// end gallery
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
 
58
- $search = "/\[slideshow\s*=\s*(\w+|^\+)(|,(\d+)|,)(|,(\d+))\]/i";
59
 
60
  if (preg_match_all($search, $content, $matches)) {
61
  if (is_array($matches)) {
@@ -87,7 +104,7 @@ function nggShowSlideshow($galleryID,$irWidth,$irHeight) {
87
  if (empty($irWidth) ) $irWidth = $ngg_options[irWidth];
88
  if (empty($irHeight)) $irHeight = $ngg_options[irHeight];
89
 
90
- $replace .= "\n".'<div class="slideshow" id="ngg_slideshow'.$galleryID.'">';
91
  $replace .= '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p></div>';
92
  $replace .= "\n\t".'<script type="text/javascript">';
93
  if ($ngg_options[irXHTMLvalid]) $replace .= "\n\t".'<!--';
@@ -100,6 +117,8 @@ function nggShowSlideshow($galleryID,$irWidth,$irHeight) {
100
  if ($ngg_options[irShownavigation]) $replace .= "\n\t\t".'so.addVariable("shownavigation", "true");';
101
  if ($ngg_options[irShowicons]) $replace .= "\n\t\t".'so.addVariable("showicons", "true");';
102
  if ($ngg_options[irKenburns]) $replace .= "\n\t\t".'so.addVariable("kenburns", "true");';
 
 
103
  $replace .= "\n\t\t".'so.addVariable("overstretch", "'.$ngg_options[irOverstretch].'");';
104
  $replace .= "\n\t\t".'so.addVariable("backcolor", "0x'.$ngg_options[irBackcolor].'");';
105
  $replace .= "\n\t\t".'so.addVariable("frontcolor", "0x'.$ngg_options[irFrontcolor].'");';
@@ -158,16 +177,22 @@ function nggShowGallery($galleryID) {
158
  return $gallerycontent;
159
  }
160
 
 
 
 
 
 
 
161
  // check for page navigation
162
  if ($maxElement > 0) {
163
  if ( isset( $_GET['nggpage'] ) ) $page = (int) $_GET['nggpage'];
164
  else $page = 1;
165
  $start = $offset = ( $page - 1 ) * $maxElement;
166
 
167
- $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] ASC LIMIT $start, $maxElement ");
168
  $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ");
169
  } else {
170
- $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] ASC ");
171
  }
172
 
173
  if (is_array($picturelist)) {
@@ -212,11 +237,7 @@ function nggShowGallery($galleryID) {
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->description.'" '.$thumbcode.' >';
@@ -231,37 +252,111 @@ function nggShowGallery($galleryID) {
231
  return $gallerycontent;
232
  }
233
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  /**********************************************************/
235
  function nggShowAlbum($albumID,$mode = "extend") {
236
 
237
  global $wpdb;
 
 
238
 
239
- $mode = ltrim($mode,',');
240
- $sortorder = $wpdb->get_var("SELECT sortorder FROM $wpdb->nggalbum WHERE id = '$albumID' ");
241
- if (!empty($sortorder)) {
242
- $gallery_array = unserialize($sortorder);
243
- // $gallery_array = $wpdb->get_col("SELECT gid FROM $wpdb->nggallery ");
244
- }
245
-
246
- $albumcontent = '<div class="ngg-albumoverview">';
247
- if (is_array($gallery_array)) {
248
- foreach ($gallery_array as $galleryID) {
249
- $albumcontent .= nggCreateGalleryDiv($galleryID,$mode);
 
 
 
 
 
 
 
 
 
 
250
  }
 
 
 
251
  }
252
- $albumcontent .= '</div>'."\n";
253
- $albumcontent .= '<div style="clear:both;"></div>'."\n";
254
 
255
  return $albumcontent;
256
  }
257
 
258
  /**********************************************************/
259
- function nggCreateGalleryDiv($galleryID,$mode = "extend") {
260
  // create a gallery overview div
261
 
262
  global $wpdb;
 
263
 
264
  $gallerycontent = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
 
 
 
 
 
 
 
 
 
265
 
266
  if ($gallerycontent) {
267
  if ($mode == "compact") {
@@ -274,10 +369,10 @@ function nggCreateGalleryDiv($galleryID,$mode = "extend") {
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,10 +382,10 @@ function nggCreateGalleryDiv($galleryID,$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
  }
296
  }
@@ -298,6 +393,75 @@ function nggCreateGalleryDiv($galleryID,$mode = "extend") {
298
  return $galleryoutput;
299
  }
300
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  /**********************************************************/
302
  function nggSinglePicture($imageID,$width=250,$height=250,$mode="",$float="") {
303
 
@@ -416,4 +580,39 @@ function ngg_get_thumbnail_prefix($gallerypath, $include_Abspath = TRUE) {
416
 
417
  }
418
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
419
  ?>
4
 
5
  global $wpdb;
6
 
7
+ $search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,left|,)\]@i";
8
 
9
  if (preg_match_all($search, $content, $matches)) {
10
 
21
  }
22
  }// end singelpic
23
 
24
+ $search = "@(?:<p>)*\s*\[album\s*=\s*(\w+|^\+)(|,extend|,compact)\]\s*(?:</p>)*@i";
25
 
26
  if (preg_match_all($search, $content, $matches)) {
27
  if (is_array($matches)) {
38
  }
39
  }// end album
40
 
41
+ $search = "@(?:<p>)*\s*\[gallery\s*=\s*(\w+|^\+)\]\s*(?:</p>)*@i";
42
 
43
  if (preg_match_all($search, $content, $matches)) {
44
  if (is_array($matches)) {
54
  }
55
  }
56
  }// end gallery
57
+
58
+ $search = "@(?:<p>)*\s*\[imagebrowser\s*=\s*(\w+|^\+)\]\s*(?:</p>)*@i";
59
+
60
+ if (preg_match_all($search, $content, $matches)) {
61
+ if (is_array($matches)) {
62
+ foreach ($matches[1] as $key =>$v0) {
63
+ // check for gallery id
64
+ $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE gid = '$v0' ");
65
+ if(!$galleryID) $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE name = '$v0' ");
66
+ if($galleryID) {
67
+ $search = $matches[0][$key];
68
+ $replace= nggShowImageBrowser($galleryID);
69
+ $content= str_replace ($search, $replace, $content);
70
+ }
71
+ }
72
+ }
73
+ }// end gallery
74
 
75
+ $search = "@(?:<p>)*\s*\[slideshow\s*=\s*(\w+|^\+)(|,(\d+)|,)(|,(\d+))\]\s*(?:</p>)*@i";
76
 
77
  if (preg_match_all($search, $content, $matches)) {
78
  if (is_array($matches)) {
104
  if (empty($irWidth) ) $irWidth = $ngg_options[irWidth];
105
  if (empty($irHeight)) $irHeight = $ngg_options[irHeight];
106
 
107
+ $replace = "\n".'<div class="slideshow" id="ngg_slideshow'.$galleryID.'">';
108
  $replace .= '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p></div>';
109
  $replace .= "\n\t".'<script type="text/javascript">';
110
  if ($ngg_options[irXHTMLvalid]) $replace .= "\n\t".'<!--';
117
  if ($ngg_options[irShownavigation]) $replace .= "\n\t\t".'so.addVariable("shownavigation", "true");';
118
  if ($ngg_options[irShowicons]) $replace .= "\n\t\t".'so.addVariable("showicons", "true");';
119
  if ($ngg_options[irKenburns]) $replace .= "\n\t\t".'so.addVariable("kenburns", "true");';
120
+ if ($ngg_options[irWatermark]) $replace .= "\n\t\t".'so.addVariable("logo", "'.$ngg_options[wmPath].'");';
121
+ if (!empty($ngg_options[irAudio])) $replace .= "\n\t\t".'so.addVariable("audio", "'.$ngg_options[irAudio].'");';
122
  $replace .= "\n\t\t".'so.addVariable("overstretch", "'.$ngg_options[irOverstretch].'");';
123
  $replace .= "\n\t\t".'so.addVariable("backcolor", "0x'.$ngg_options[irBackcolor].'");';
124
  $replace .= "\n\t\t".'so.addVariable("frontcolor", "0x'.$ngg_options[irFrontcolor].'");';
177
  return $gallerycontent;
178
  }
179
 
180
+ // use the jQuery Plugin if activated
181
+ if (($ngg_options[thumbEffect] == "thickbox") && ($ngg_options[galUsejQuery])) {
182
+ $gallerycontent .= nggShowJSGallery($galleryID);
183
+ return $gallerycontent;
184
+ }
185
+
186
  // check for page navigation
187
  if ($maxElement > 0) {
188
  if ( isset( $_GET['nggpage'] ) ) $page = (int) $_GET['nggpage'];
189
  else $page = 1;
190
  $start = $offset = ( $page - 1 ) * $maxElement;
191
 
192
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir] LIMIT $start, $maxElement ");
193
  $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ");
194
  } else {
195
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir] ");
196
  }
197
 
198
  if (is_array($picturelist)) {
237
  }
238
 
239
  foreach ($picturelist as $picture) {
240
+ $picturefile = nggallery::remove_umlauts($picture->filename);
 
 
 
 
241
  $gallerycontent .= '<div class="ngg-gallery-thumbnail-box">'."\n\t";
242
  $gallerycontent .= '<div class="ngg-gallery-thumbnail">'."\n\t";
243
  $gallerycontent .= '<a href="'.$folder_url.$picturefile.'" title="'.$picture->description.'" '.$thumbcode.' >';
252
  return $gallerycontent;
253
  }
254
 
255
+ /**********************************************************/
256
+ function nggShowJSGallery($galleryID) {
257
+ // create a gallery with a jQuery plugin
258
+
259
+ global $wpdb;
260
+ $ngg_options = get_option('ngg_options');
261
+
262
+ // Get option
263
+ $maxElement = $ngg_options[galImages];
264
+
265
+ // get gallery values
266
+ $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
267
+
268
+ // set gallery url
269
+ $folder_url = get_option ('siteurl')."/".$act_gallery->path."/";
270
+ $thumb_folder = str_replace('/','',ngg_get_thumbnail_folder($act_gallery->path, FALSE));
271
+
272
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir] ");
273
+
274
+ if (is_array($picturelist)) {
275
+
276
+ // create array
277
+ $i = 0;
278
+
279
+ $gallerycontent = '<script type="text/javascript">'."\n";
280
+ $gallerycontent .= 'var nggal'. $galleryID .'=new Array()'."\n";
281
+ foreach ($picturelist as $picture) {
282
+ $picturefile = nggallery::remove_umlauts($picture->filename);
283
+ $gallerycontent .= 'nggal'. $galleryID .'['.$i++.']=["'.$picture->filename.'", "'.$picture->alttext.'", "'.strip_tags(nggallery::ngg_nl2br($picture->description)).'"]'."\n";
284
+ }
285
+ $gallerycontent .= 'jQuery(document).ready(function() {'."\n";
286
+ $gallerycontent .= ' jQuery("#nggal'. $galleryID .'").nggallery({'."\n";
287
+ $gallerycontent .= ' imgarray : nggal'. $galleryID . ','."\n";
288
+ $gallerycontent .= ' name : "'. $act_gallery->name . '",'."\n";
289
+ $gallerycontent .= ' galleryurl : "'. $folder_url . '",'."\n";
290
+ $gallerycontent .= ' thumbfolder : "'. $thumb_folder . '",'."\n";
291
+ if ($ngg_options[thumbEffect] == "thickbox")
292
+ $gallerycontent .= ' thickbox : true,'."\n";
293
+ $gallerycontent .= ' maxelement : '. $maxElement ."\n";
294
+ $gallerycontent .= ' });'."\n";
295
+ $gallerycontent .= '});'."\n";
296
+
297
+ $gallerycontent .= '</script>'."\n";
298
+ $gallerycontent .= ' <div id="nggal'. $galleryID .'">'."\n";
299
+ $gallerycontent .= ' <!-- The content will be dynamically loaded in here -->'."\n";
300
+ $gallerycontent .= '</div>'."\n";
301
+ $gallerycontent .= '<div style="clear:both;"></div>'."\n";
302
+ }
303
+
304
+ return $gallerycontent;
305
+ }
306
  /**********************************************************/
307
  function nggShowAlbum($albumID,$mode = "extend") {
308
 
309
  global $wpdb;
310
+
311
+ $albumcontent = "";
312
 
313
+ // look for gallery variable
314
+ if (isset( $_GET['gallery'])) {
315
+
316
+ if ($albumID != $_GET['album']) return $albumcontent;
317
+
318
+ $galleryID = attribute_escape($_GET['gallery']);
319
+ $albumcontent = nggShowGallery($galleryID);
320
+
321
+ } else {
322
+
323
+ $mode = ltrim($mode,',');
324
+ $sortorder = $wpdb->get_var("SELECT sortorder FROM $wpdb->nggalbum WHERE id = '$albumID' ");
325
+ if (!empty($sortorder)) {
326
+ $gallery_array = unserialize($sortorder);
327
+ }
328
+
329
+ $albumcontent = '<div class="ngg-albumoverview">';
330
+ if (is_array($gallery_array)) {
331
+ foreach ($gallery_array as $galleryID) {
332
+ $albumcontent .= nggCreateAlbum($galleryID,$mode,$albumID);
333
+ }
334
  }
335
+ $albumcontent .= '</div>'."\n";
336
+ $albumcontent .= '<div style="clear:both;"></div>'."\n";
337
+
338
  }
 
 
339
 
340
  return $albumcontent;
341
  }
342
 
343
  /**********************************************************/
344
+ function nggCreateAlbum($galleryID,$mode = "extend",$albumID = 0) {
345
  // create a gallery overview div
346
 
347
  global $wpdb;
348
+ $ngg_options = get_option('ngg_options');
349
 
350
  $gallerycontent = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
351
+
352
+ // choose between variable and page link
353
+ if ($ngg_options[galNoPages]) {
354
+ $gallerylink['album'] = $albumID;
355
+ $gallerylink['gallery'] = $galleryID;
356
+ $link = add_query_arg($gallerylink);
357
+ } else {
358
+ $link = get_permalink($gallerycontent->pageid);
359
+ }
360
 
361
  if ($gallerycontent) {
362
  if ($mode == "compact") {
369
  <div class="ngg-album-compact">
370
  <div class="ngg-album-compactbox">
371
  <div class="ngg-album-link">
372
+ <a class="Link" href="'.$link.'">'.$insertpic.'</a>
373
  </div>
374
  </div>
375
+ <h4><a class="ngg-album-desc" title="'.$gallerycontent->title.'" href="'.$link.'">'.$gallerycontent->title.'</a></h4>
376
  <p><b>'.$counter.'</b> '.__('Photos', 'nggallery').'</p></div>';
377
  } else {
378
  // mode extend
382
  $insertpic = __('Watch gallery', 'nggallery');
383
  $galleryoutput = '
384
  <div class="ngg-album">
385
+ <div class="ngg-albumtitle"><a href="'.$link.'">'.$gallerycontent->title.'</a></div>
386
  <div class="ngg-albumcontent">
387
+ <div class="ngg-thumbnail"><a href="'.$link.'">'.$insertpic.'</a></div>
388
+ <div class="ngg-description"><p>'.html_entity_decode($gallerycontent->description).'</p></div>'."\n".'</div>'."\n".'</div>';
389
 
390
  }
391
  }
393
  return $galleryoutput;
394
  }
395
 
396
+ /**********************************************************/
397
+ function nggShowImageBrowser($galleryID) {
398
+
399
+ global $wpdb;
400
+ $ngg_options = get_option('ngg_options');
401
+
402
+ // get gallery values
403
+ $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
404
+
405
+ // get the effect code
406
+ if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
407
+ if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'".$act_gallery->name."'", $thumbcode);
408
+ else $thumbcode = str_replace("%GALLERY_NAME%", $act_gallery->name, $thumbcode);
409
+
410
+ // set gallery url
411
+ $folder_url = get_option ('siteurl')."/".$act_gallery->path."/";
412
+
413
+ $picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir]");
414
+ $total = count($picarray);
415
+
416
+ // look for gallery variable
417
+ if ( isset( $_GET['pid'] )) {
418
+ $act_pid = attribute_escape($_GET['pid']);
419
+ } else {
420
+ reset($picarray);
421
+ $act_pid = current($picarray);
422
+ }
423
+
424
+ // get ids for back/next
425
+ $key = array_search($act_pid,$picarray);
426
+ if (!$key) {
427
+ $act_pid = reset($picarray);
428
+ $key = key($picarray);
429
+ }
430
+ $back_pid = ( $key >=1 ) ? $picarray[$key-1] : end($picarray) ;
431
+ $next_pid = ( $key < ($total-1) ) ? $picarray[$key+1] : reset($picarray) ;
432
+
433
+ $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$act_pid'");
434
+
435
+ if ($picture) {
436
+ $headline = ($ngg_options[ImgBrHead]) ? '<h3>'.$picture->alttext.'</h3>' : '' ;
437
+ $desc = ($ngg_options[ImgBrDesc]) ? '<div class="ngg-imagebrowser-desc"><p>'.html_entity_decode($picture->description).'</p></div>' : '' ;
438
+ $galleryoutput = '
439
+ <div class="ngg-imagebrowser" >
440
+ '.$headline.'
441
+ <div class="pic">
442
+ <a href="'.$folder_url.$picture->filename.'" title="'.$picture->description.'" '.$thumbcode.'>
443
+ <img alt="'.$picture->alttext.'" src="'.$folder_url.$picture->filename.'"/>
444
+ </a>
445
+ </div>
446
+ <div class="ngg-imagebrowser-nav">';
447
+ if ($back_pid) {
448
+ $backlink['pid'] = $back_pid;
449
+ $galleryoutput .='<div class="back"><a href="'.add_query_arg($backlink).'">'.$ngg_options[ImgBrTextBack].'</a></div>';
450
+ }
451
+ if ($next_pid) {
452
+ $nextlink['pid'] = $next_pid;
453
+ $galleryoutput .='<div class="next"><a href="'.add_query_arg($nextlink).'">'.$ngg_options[ImgBrTextNext].'</a></div>';
454
+ }
455
+ $galleryoutput .='
456
+ <div class="counter">'.__('Picture', 'nggallery').' '.($key+1).' '.__('from', 'nggallery').' '.$total.'</div>
457
+ '.$desc.'
458
+ </div>
459
+ </div>';
460
+ }
461
+ return $galleryoutput;
462
+
463
+ }
464
+
465
  /**********************************************************/
466
  function nggSinglePicture($imageID,$width=250,$height=250,$mode="",$float="") {
467
 
580
 
581
  }
582
 
583
+ // NextGEN gallery class :
584
+ // just started to do it better ;-)
585
+
586
+ class nggallery {
587
+
588
+ /**********************************************************/
589
+ function ngg_nl2br($string) {
590
+ // remove page break
591
+ $string = str_replace(array("\r\n", "\r", "\n"), "<br />", $string);
592
+
593
+ return $string;
594
+
595
+ }
596
+
597
+ function show_error($message) {
598
+ echo '<div class="fade error" id="message"><p>'.$message.'</p></div>'."\n";
599
+ }
600
+
601
+ function show_message($message)
602
+ {
603
+ echo '<div class="fade updated" id="message"><p>'.$message.'</p></div>'."\n";
604
+ }
605
+
606
+ function remove_umlauts($filename) {
607
+
608
+ $cleanname = str_replace(
609
+ array('�', '�', '�', '�', '�', '�', '�', ' '),
610
+ array('%E4', '%F6', '%FC', '%C4', '%D6', '%DC', '%DF', '%20'),
611
+ utf8_decode($filename)
612
+ );
613
+
614
+ return $cleanname;
615
+ }
616
+
617
+ }
618
  ?>
ngginstall.php CHANGED
@@ -5,9 +5,13 @@ $ngg_db_version = "0.33";
5
 
6
  function nggallery_install () {
7
 
8
- global $wpdb;
9
  global $ngg_db_version;
10
 
 
 
 
 
11
  require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
12
 
13
  $nggpictures = $wpdb->prefix . 'ngg_pictures';
@@ -72,70 +76,81 @@ function nggallery_install () {
72
 
73
  function ngg_default_options() {
74
 
75
- $ngg_options[gallerypath] = "wp-content/gallery/"; // set default path to the gallery
76
- $ngg_options[scanfolder] = false; // search for new images
77
- $ngg_options[deleteImg] = false; // delete Images
78
 
79
- $ngg_options[thumbwidth] = 100; // Thumb Width
80
- $ngg_options[thumbheight] = 75; // Thumb height
81
- $ngg_options[thumbfix] = true; // Fix the dimension
82
- $ngg_options[thumbcrop] = false; // Crop square thumbnail
83
- $ngg_options[thumbquality] = 100; // Thumb Quality
84
- $ngg_options[thumbResampleMode] = 3; // Resample speed value 1 - 5
85
 
86
  // Image Settings
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] = 85; // 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
 
94
  // Gallery Settings
95
- $ngg_options[galImages] = "20"; // Number Of images per page
96
- $ngg_options[galShowSlide] = true; // Show slideshow
97
- $ngg_options[galTextSlide] = __('[Show as slideshow]','nggallery'); // Text for slideshow
98
- $ngg_options[galTextGallery] = __('[Show picture list]','nggallery'); // Text for gallery
99
- $ngg_options[galShowOrder] = "gallery"; // Show order
100
- $ngg_options[galSort] = "pid"; // Sort order
 
 
 
 
 
 
 
 
 
101
 
102
  // Thumbnail Effect
103
- $ngg_options[thumbEffect] = "thickbox"; // select effect
104
- $ngg_options[thumbCode] = "class=\"thickbox\" rel=\"%GALLERY_NAME%\"";
105
- $ngg_options[thickboxImage] = "loadingAnimationv3.gif"; // thickbox Loading Image
106
 
107
  // Watermark settings
108
- $ngg_options[wmPos] = "botRight"; // Postion
109
- $ngg_options[wmXpos] = 5; // X Pos
110
- $ngg_options[wmYpos] = 5; // Y Pos
111
- $ngg_options[wmType] = "text"; // Type : 'image' / 'text'
112
- $ngg_options[wmPath] = ""; // Path to image
113
- $ngg_options[wmFont] = "arial.ttf"; // Font type
114
- $ngg_options[wmSize] = 10; // Font Size
115
- $ngg_options[wmText] = get_option('blogname'); // Text
116
- $ngg_options[wmColor] = "000000"; // Font Color
117
- $ngg_options[wmOpaque] = "100"; // Font Opaque
118
 
119
  // Image Rotator settings
120
 
121
- $ngg_options[irXHTMLvalid] = false;
122
- $ngg_options[irWidth] = 320;
123
- $ngg_options[irHeight] = 240;
124
- $ngg_options[irShuffle] = true;
125
- $ngg_options[irLinkfromdisplay] = true;
126
- $ngg_options[irShownavigation] = false;
127
- $ngg_options[irShowicons] = false;
128
- $ngg_options[irOverstretch] = "true";
129
- $ngg_options[irRotatetime] = 10;
130
- $ngg_options[irTransition] = "random";
131
- $ngg_options[irKenburns] = false;
132
- $ngg_options[irBackcolor] = "000000";
133
- $ngg_options[irFrontcolor] = "FFFFFF";
134
- $ngg_options[irLightcolor] = "CC0000";
 
 
135
 
136
  // CSS Style
137
- $ngg_options[activateCSS] = true; // activate the CSS file
138
- $ngg_options[CSSfile] = "nggallery.css"; // set default css filename
139
 
140
  update_option('ngg_options', $ngg_options);
141
 
5
 
6
  function nggallery_install () {
7
 
8
+ global $wpdb , $wp_roles;
9
  global $ngg_db_version;
10
 
11
+ // Check for capability
12
+ if ( !current_user_can('activate_plugins') )
13
+ return;
14
+
15
  require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
16
 
17
  $nggpictures = $wpdb->prefix . 'ngg_pictures';
76
 
77
  function ngg_default_options() {
78
 
79
+ $ngg_options['gallerypath'] = "wp-content/gallery/"; // set default path to the gallery
80
+ $ngg_options['scanfolder'] = false; // search for new images
81
+ $ngg_options['deleteImg'] = false; // delete Images
82
 
83
+ $ngg_options['thumbwidth'] = 100; // Thumb Width
84
+ $ngg_options['thumbheight'] = 75; // Thumb height
85
+ $ngg_options['thumbfix'] = true; // Fix the dimension
86
+ $ngg_options['thumbcrop'] = false; // Crop square thumbnail
87
+ $ngg_options['thumbquality'] = 100; // Thumb Quality
88
+ $ngg_options['thumbResampleMode'] = 3; // Resample speed value 1 - 5
89
 
90
  // Image Settings
91
+ $ngg_options['imgResize'] = false; // Activate resize
92
+ $ngg_options['imgWidth'] = 800; // Image Width
93
+ $ngg_options['imgHeight'] = 600; // Image height
94
+ $ngg_options['imgQuality'] = 85; // Image Quality
95
+ $ngg_options['imgResampleMode'] = 4; // Resample speed value 1 - 5
96
+ $ngg_options['imgSinglePicLink'] = false; // Add a link to the full size picture
97
 
98
  // Gallery Settings
99
+ $ngg_options['galImages'] = "20"; // Number Of images per page
100
+ $ngg_options['galShowSlide'] = true; // Show slideshow
101
+ $ngg_options['galTextSlide'] = __('[Show as slideshow]','nggallery'); // Text for slideshow
102
+ $ngg_options['galTextGallery'] = __('[Show picture list]','nggallery'); // Text for gallery
103
+ $ngg_options['galShowOrder'] = "gallery"; // Show order
104
+ $ngg_options['galSort'] = "pid"; // Sort order
105
+ $ngg_options['galSortDir'] = "ASC"; // Sort direction
106
+ $ngg_options['galUsejQuery'] = false; // use the jQuery plugin
107
+ $ngg_options['galNoPages'] = true; // use no subpages for gallery
108
+
109
+ // Image Browser
110
+ $ngg_options['ImgBrHead'] = true; // Show header
111
+ $ngg_options['ImgBrDesc'] = true; // Show description
112
+ $ngg_options['ImgBrTextBack'] = '&#9668; '.__('Back','nggallery'); // Text for Back
113
+ $ngg_options['ImgBrTextNext'] = __('Next','nggallery').' &#9658;'; // Text for Next
114
 
115
  // Thumbnail Effect
116
+ $ngg_options['thumbEffect'] = "thickbox"; // select effect
117
+ $ngg_options['thumbCode'] = "class=\"thickbox\" rel=\"%GALLERY_NAME%\"";
118
+ $ngg_options['thickboxImage'] = "loadingAnimationv3.gif"; // thickbox Loading Image
119
 
120
  // Watermark settings
121
+ $ngg_options['wmPos'] = "botRight"; // Postion
122
+ $ngg_options['wmXpos'] = 5; // X Pos
123
+ $ngg_options['wmYpos'] = 5; // Y Pos
124
+ $ngg_options['wmType'] = "text"; // Type : 'image' / 'text'
125
+ $ngg_options['wmPath'] = ""; // Path to image
126
+ $ngg_options['wmFont'] = "arial.ttf"; // Font type
127
+ $ngg_options['wmSize'] = 10; // Font Size
128
+ $ngg_options['wmText'] = get_option('blogname'); // Text
129
+ $ngg_options['wmColor'] = "000000"; // Font Color
130
+ $ngg_options['wmOpaque'] = "100"; // Font Opaque
131
 
132
  // Image Rotator settings
133
 
134
+ $ngg_options['irXHTMLvalid'] = false;
135
+ $ngg_options['irAudio'] = "";
136
+ $ngg_options['irWidth'] = 320;
137
+ $ngg_options['irHeight'] = 240;
138
+ $ngg_options['irShuffle'] = true;
139
+ $ngg_options['irLinkfromdisplay'] = true;
140
+ $ngg_options['irShownavigation'] = false;
141
+ $ngg_options['irShowicons'] = false;
142
+ $ngg_options['irWatermark'] = false;
143
+ $ngg_options['irOverstretch'] = "true";
144
+ $ngg_options['irRotatetime'] = 10;
145
+ $ngg_options['irTransition'] = "random";
146
+ $ngg_options['irKenburns'] = false;
147
+ $ngg_options['irBackcolor'] = "000000";
148
+ $ngg_options['irFrontcolor'] = "FFFFFF";
149
+ $ngg_options['irLightcolor'] = "CC0000";
150
 
151
  // CSS Style
152
+ $ngg_options['activateCSS'] = true; // activate the CSS file
153
+ $ngg_options['CSSfile'] = "nggallery.css"; // set default css filename
154
 
155
  update_option('ngg_options', $ngg_options);
156
 
nggshow.php CHANGED
@@ -12,8 +12,8 @@ $ngg_options=get_option('ngg_options');
12
  //reference thumbnail class
13
  include_once('lib/thumbnail.inc.php');
14
 
15
- $pictureID = $_GET['pid'];
16
- $mode = $_GET['mode'];
17
 
18
  // get the path and filename to the image
19
  $galleryID = $wpdb->get_var("SELECT galleryid FROM $wpdb->nggpictures WHERE pid = '$pictureID' ");
12
  //reference thumbnail class
13
  include_once('lib/thumbnail.inc.php');
14
 
15
+ $pictureID = attribute_escape($_GET['pid']);
16
+ $mode = attribute_escape($_GET['mode']);
17
 
18
  // get the path and filename to the image
19
  $galleryID = $wpdb->get_var("SELECT galleryid FROM $wpdb->nggpictures WHERE pid = '$pictureID' ");
nggwidget.php CHANGED
@@ -1,644 +1,704 @@
1
- <?php
2
- /*
3
- Plugin Name: NextGEN Gallery Widget
4
- Description: Adds a sidebar widget support to your NextGEN Gallery!
5
- Author: KeViN
6
- Version: 0.98b
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
- /**********************************************************/
56
- /* Slidehow widget function
57
- /**********************************************************/
58
- function nggSlideshowWidget($galleryID,$irWidth,$irHeight) {
59
-
60
- global $wpdb;
61
- $ngg_options = get_option('ngg_options');
62
-
63
- if (empty($irWidth) ) $irWidth = $ngg_options[irWidth];
64
- if (empty($irHeight)) $irHeight = $ngg_options[irHeight];
65
-
66
- $replace .= "\n".'<div class="ngg-widget-slideshow" id="ngg_widget_slideshow'.$galleryID.'">';
67
- $replace .= '<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see the slideshow.</div>';
68
- $replace .= "\n\t".'<script type="text/javascript">';
69
- $replace .= "\n\t".'<!--';
70
- $replace .= "\n\t".'//<![CDATA[';
71
- $replace .= "\n\t\t".'var so = new SWFObject("'.NGGALLERY_URLPATH.'imagerotator.swf", "ngg_slideshow'.$galleryID.'", "'.$irWidth.'", "'.$irHeight.'", "7", "#'.$ngg_options[irBackcolor].'");';
72
- $replace .= "\n\t\t".'so.addParam("wmode", "opaque");';
73
- $replace .= "\n\t\t".'so.addVariable("file", "'.NGGALLERY_URLPATH.'nggextractXML.php?gid='.$galleryID.'");';
74
- if (!$ngg_options[irShuffle]) $replace .= "\n\t\t".'so.addVariable("shuffle", "false");';
75
- // if ($ngg_options[irLinkfromdisplay]) $replace .= "\n\t\t".'so.addVariable("linkfromdisplay", "false");';
76
- // if ($ngg_options[irShownavigation]) $replace .= "\n\t\t".'so.addVariable("shownavigation", "true");';
77
- if ($ngg_options[irShowicons]) $replace .= "\n\t\t".'so.addVariable("showicons", "true");';
78
- $replace .= "\n\t\t".'so.addVariable("overstretch", "'.$ngg_options[irOverstretch].'");';
79
- $replace .= "\n\t\t".'so.addVariable("backcolor", "0x'.$ngg_options[irBackcolor].'");';
80
- $replace .= "\n\t\t".'so.addVariable("frontcolor", "0x'.$ngg_options[irFrontcolor].'");';
81
- $replace .= "\n\t\t".'so.addVariable("lightcolor", "0x'.$ngg_options[irLightcolor].'");';
82
- $replace .= "\n\t\t".'so.addVariable("rotatetime", "'.$ngg_options[irRotatetime].'");';
83
- $replace .= "\n\t\t".'so.addVariable("transition", "'.$ngg_options[irTransition].'");';
84
- $replace .= "\n\t\t".'so.addVariable("width", "'.$irWidth.'");';
85
- $replace .= "\n\t\t".'so.addVariable("height", "'.$irHeight.'");';
86
- $replace .= "\n\t\t".'so.write("ngg_widget_slideshow'.$galleryID.'");';
87
- $replace .= "\n\t".'//]]>';
88
- $replace .= "\n\t".'-->';
89
- $replace .= "\n\t".'</script>';
90
-
91
- echo $replace;
92
- }
93
-
94
-
95
- /**********************************************************/
96
- /* Slidehow widget control
97
- /**********************************************************/
98
- function widget_ngg_slideshow() {
99
-
100
- // Check for the required plugin functions.
101
- if ( !function_exists('register_sidebar_widget') )
102
- return;
103
-
104
- function widget_show_ngg_slideshow($args) {
105
-
106
- extract($args);
107
-
108
- // Each widget can store its own options. We keep strings here.
109
- $options = get_option('widget_nggslideshow');
110
-
111
- // These lines generate our output.
112
- echo $before_widget . $before_title . $options['title'] . $after_title;
113
- $url_parts = parse_url(get_bloginfo('home'));
114
- nggSlideshowWidget($options['galleryid'] , $options['width'] , $options['height']);
115
- echo $after_widget;
116
-
117
- }
118
-
119
- // Admin section
120
- function widget_control_ngg_slideshow() {
121
- global $wpdb;
122
- $options = get_option('widget_nggslideshow');
123
- if ( !is_array($options) )
124
- $options = array('title'=>'Slideshow', 'galleryid'=>'0','height'=>'120','width'=>'160',);
125
-
126
- if ( $_POST['ngg-submit'] ) {
127
-
128
- $options['title'] = strip_tags(stripslashes($_POST['ngg-title']));
129
- $options['galleryid'] = $_POST['ngg-galleryid'];
130
- $options['height'] = $_POST['ngg-height'];
131
- $options['width'] = $_POST['ngg-width'];
132
- update_option('widget_nggslideshow', $options);
133
- }
134
-
135
- $title = htmlspecialchars($options['title'], ENT_QUOTES);
136
- $height = $options['height'];
137
- $width = $options['width'];
138
-
139
- // The Box content
140
- echo '<p style="text-align:right;"><label for="ngg-title">' . __('Title:', 'nggallery') . ' <input style="width: 200px;" id="ngg-title" name="ngg-title" type="text" value="'.$title.'" /></label></p>';
141
- echo '<p style="text-align:right;"><label for="ngg-galleryid">' . __('Select Gallery:', 'nggallery'). ' </label>';
142
- echo '<select size="1" name="ngg-galleryid" id="ngg-galleryid">';
143
- $tables = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY 'name' ASC ");
144
- if($tables) {
145
- foreach($tables as $table) {
146
- echo '<option value="'.$table->gid.'" ';
147
- if ($table->gid == $options['galleryid']) echo "selected='selected' ";
148
- echo '>'.$table->name.'</option>'."\n\t";
149
- }
150
- }
151
- echo '</select></p>';
152
- echo '<p style="text-align:right;"><label for="ngg-height">' . __('Height:', 'nggallery') . ' <input style="width: 50px;" id="ngg-height" name="ngg-height" type="text" value="'.$height.'" /></label></p>';
153
- echo '<p style="text-align:right;"><label for="ngg-width">' . __('Width:', 'nggallery') . ' <input style="width: 50px;" id="ngg-width" name="ngg-width" type="text" value="'.$width.'" /></label></p>';
154
- echo '<input type="hidden" id="ngg-submit" name="ngg-submit" value="1" />';
155
-
156
- }
157
-
158
- register_sidebar_widget(array('NextGEN Slideshow', 'widgets'), 'widget_show_ngg_slideshow');
159
- register_widget_control(array('NextGEN Slideshow', 'widgets'), 'widget_control_ngg_slideshow', 300, 200);
160
- }
161
-
162
- /*******************************************************/
163
- /* DISPLAY FUNCTION TO THE RECENT & RANDOM IMAGES
164
- /*******************************************************/
165
- function nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype,$thumbcode) {
166
-
167
-
168
- // Put your HTML code here if you want to personalize the image display!
169
- $IMGbefore = ''; // NOT IN USE!
170
- $IMGafter = ''; // NOT IN USE!
171
-
172
- $Abefore = ''; // NOT IN USE!
173
- $Aafter = ''; // NOT IN USE!
174
-
175
- for ($i=1; $i<=$number; $i++) {
176
-
177
- global $wpdb;
178
-
179
- // Get a random image from the database
180
- if (($imgtype == "random")) {
181
- $imageID = $wpdb->get_var("SELECT pid FROM $wpdb->nggpictures ORDER by rand() limit 1");
182
- }
183
- else {
184
- // Get the $i latest image from the database
185
- $imageID = $wpdb->get_var("SELECT pid FROM $wpdb->nggpictures ORDER by pid DESC limit ".$i.",1");
186
- }
187
-
188
- // [0.97] new variable -> Set up the strings
189
- $Astart = '<a href="'.ngg_get_image_url($imageID).'" title="" '.$thumbcode.'>';
190
- $Aend = '</a>';
191
-
192
-
193
- // Here comes the display
194
- echo $Abefore;
195
-
196
- // [0.95] new function -> Thumbnail or Normal image
197
- if ( ($thumb == "false") ) {
198
- // NORMAL IMAGE mode
199
- if ( ($mode == 'web20') ) {
200
- // [0.95] [deleted] -> <li> </li>
201
- // [0.97] [edited] -> class="ngg-widget-img" -> id="ngg-widget-img"
202
- // [0.98] [deleted] -> id="ngg-widget-img"
203
- echo $Astart;
204
- echo $IMGbefore.'<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.'&amp;mode=web20" />';
205
- echo $Aend.$IMGafter."\n";
206
- }
207
- else {
208
- // [0.95] [deleted] -> <li> </li>
209
- // [0.97] [edited] -> class="ngg-widget-img" -> id="ngg-widget-img"
210
- // [0.98] [deleted] -> id="ngg-widget-img"
211
- echo $Astart;
212
- echo $IMGbefore.'<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.'" />';
213
- echo $Aend.$IMGafter."\n";
214
- }
215
- }
216
- else {
217
- // THUMBNAIL mode
218
- //if web20
219
- if ( ($mode == 'web20') ) {
220
-
221
- // [0.95] [deleted] -> <li> </li>
222
- // [0.95] [edited] -> class="ngg-widget-img"
223
- echo $Astart;
224
- // [0.95] [deleted] -> nggshow because it displays the ORIGYNAL picture and not the THUMBNAIL!
225
- // [0.95] [new line] -> showreflection.php -> for the web20 thumbnail!
226
- echo $IMGbefore.'<img src="'.NGGALLERY_URLPATH.'showreflection.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.' />';
227
- echo $Aend.$IMGafter."\n";
228
- }
229
- else {
230
- echo $Astart;
231
- echo $IMGbefore.'<img src="'.ngg_get_thumbnail_url($imageID).'" style="width:'.$sizeX.'px;height:'.$sizeY.'px;" />';
232
- echo $Aend.$IMGafter."\n";
233
- }
234
- }
235
-
236
- echo $Aafter;
237
-
238
- }
239
- }
240
-
241
- /**********************************************************/
242
- /* Recent widget
243
- /**********************************************************/
244
-
245
- /* HERE COMES THE RECENT IMAGE WIDGET */
246
-
247
-
248
- function widget_ngg_recentimage() {
249
-
250
- // Check for the required plugin functions. This will prevent fatal
251
- // errors occurring when you deactivate the dynamic-sidebar plugin.
252
- if ( !function_exists('register_sidebar_widget') )
253
- return;
254
-
255
- // This is the function that outputs our little widget...
256
- function widget_nextgenrecentimage($args) {
257
-
258
- // $args is an array of strings that help widgets to conform to
259
- // the active theme: before_widget, before_title, after_widget,
260
- // and after_title are the array keys.
261
- extract($args);
262
-
263
- // Each widget can store its own options. We keep strings here.
264
- $options = get_option('widget_NextGenrecentimage');
265
-
266
- $title = $options['title'];
267
- $thumb = $options['thumb'];
268
- $number = $options['number'];
269
- $sizeX = $options['sizeX'];
270
- $sizeY = $options['sizeY'];
271
- $mode = $options['mode'];
272
-
273
- $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
274
- $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
275
- $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
276
-
277
- // [0.95] -> [add function -> imagetype (imgtype) -> random or recent
278
- $imgtype = "recent"; //$options['imgtype'];
279
-
280
- //origy ngg options
281
- $ngg_options = get_option('ngg_options');
282
-
283
- // get the effect code
284
- if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
285
- if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
286
- else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
287
-
288
-
289
- $show_widget = false; // checking display status (category or home)
290
- $categorieslist = getCSVValues($categorylist,','); // Make array for checking the categories
291
-
292
- if (($showcategory == "denied")) { // Denied list -> enable everywhere and make false if found!
293
- $show_widget = true;
294
- foreach((get_the_category()) as $cat)
295
- { if ((in_array($cat->cat_ID , $categorieslist)))
296
- $show_widget = false;
297
- }
298
- }
299
-
300
- if (($showcategory == "allow")) // Allow list -> false is the default -> enable if found
301
- foreach((get_the_category()) as $cat)
302
- { if ((in_array($cat->cat_ID , $categorieslist)))
303
- $show_widget = true;
304
- }
305
-
306
- if (($showcategory == "all")) // All categories -> if it's not the home -> enable
307
- if ((is_home() != true))
308
- $show_widget = true;
309
-
310
- if (($showinhome == "yes")) // Home page -> If yes -> enable
311
- if ((is_home()))
312
- $show_widget = true;
313
-
314
-
315
- $url_parts = parse_url(get_bloginfo('home'));
316
-
317
- // Null parameters check
318
- if ( ($number == '') ) $number = 1;
319
- if ( ($sizeX == '') ) $sizeX = 190;
320
- if ( ($sizeY == '') ) $sizeY = 190;
321
-
322
- if ($show_widget) {
323
-
324
- echo $before_widget . $before_title . $title . $after_title;
325
- echo "\n".'<div class="ngg-widget">'."\n";
326
-
327
- nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype,$thumbcode);
328
-
329
- echo '</div>'."\n";
330
- // v.095 [deleted] -> echo '<div style="clear:both;"></div>'."\n";
331
- echo $after_widget;
332
- }
333
- }
334
-
335
- /**
336
- * @desc Output of plugin�s editform in te adminarea
337
- * @author KeViN
338
- */
339
-
340
- function widget_nextgenrecentimage_control($number=1) {
341
-
342
- $options = get_option('widget_NextGenrecentimage');
343
-
344
- if ( !is_array($options) )
345
- $options = array('title'=>'Recent Images', 'buttontext'=>__('NextGEN Recent Image','nggallery'));
346
-
347
- if ( $_POST['nextgen-recentsubmit'] ) {
348
- // Remember to sanitize and format use input appropriately.
349
- $options = "";
350
- $options['title'] = strip_tags(stripslashes($_POST['nextgen-recenttitle']));
351
- $options['thumb'] = strip_tags(stripslashes($_POST['nextgen-recentthumb']));
352
- $options['number'] = strip_tags(stripslashes($_POST['nextgen-recentnumber']));
353
- $options['sizeX'] = strip_tags(stripslashes($_POST['nextgen-recentsizeX']));
354
- $options['sizeY'] = strip_tags(stripslashes($_POST['nextgen-recentsizeY']));
355
-
356
- // [0.80] [new functiions and newvariables] -> Category controll
357
- $options['showinhome'] = strip_tags(stripslashes($_POST['nextgen-recentshowinhome']));
358
- $options['showcategory']= strip_tags(stripslashes($_POST['nextgen-recentshowcategory']));
359
- $options['categorylist']= strip_tags(stripslashes($_POST['nextgen-recentcategorylist']));
360
-
361
- // [0.95] [new variable] -> (random / recent)
362
- $options['imgtype'] = strip_tags(stripslashes($_POST['nextgen-recentimgtype']));
363
-
364
- update_option('widget_NextGenrecentimage', $options);
365
- }
366
-
367
- // Be sure you format your options to be valid HTML attributes.
368
- $title = htmlspecialchars($options['title'], ENT_QUOTES);
369
- $thumb = htmlspecialchars($options['thumb'], ENT_QUOTES);
370
- $number = htmlspecialchars($options['number'], ENT_QUOTES);
371
- $sizeX = htmlspecialchars($options['sizeX'], ENT_QUOTES);
372
- $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
373
- $mode = htmlspecialchars($options['mode'], ENT_QUOTES);
374
-
375
- // [0.80] [new functiions and newvariables] -> Category controll
376
- $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
377
- $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
378
- $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
379
-
380
- // [0.95] [new variable] -> (random / recent)
381
- $mode = htmlspecialchars($options['imgtype'], ENT_QUOTES);
382
-
383
- // Here comes the form
384
-
385
- echo'<p style="text-align:right;"><label for="nextgen-recenttitle">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-recenttitle" name="nextgen-recenttitle" type="text" value="'.$title.'" /></label></p>';
386
-
387
- // [0.95] [new function] -> Thumbnail or Normal Image?
388
- echo '<p style="text-align:right;"><label for="nextgen-recentthumb">' . __('Display type','nggallery').':';
389
- echo ' <select name="nextgen-recentthumb" size="1">';
390
- echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
391
- echo ' <option id="2" ';if (($thumb == "false")) echo 'selected="selected"'; echo ' value="false">' . __('Orginal','nggallery') . '</option>';
392
- echo ' </select></label></p>';
393
-
394
- echo '<p style="text-align:right;"><label for="nextgen-recentnumber">' . __('Number of pics','nggallery').':';
395
- echo ' <select name="nextgen-recentnumber" size="1">';
396
- echo ' <option id="1" ';if (($number == 1)) echo 'selected="selected"'; echo ' value="1">1</option>';
397
- echo ' <option id="2" ';if (($number == 2)) echo 'selected="selected"'; echo ' value="2">2</option>';
398
- echo ' <option id="3" ';if (($number == 3)) echo 'selected="selected"'; echo ' value="3">3</option>';
399
- echo ' <option id="4" ';if (($number == 4)) echo 'selected="selected"'; echo ' value="4">4</option>';
400
- echo ' <option id="6" ';if (($number == 6)) echo 'selected="selected"'; echo ' value="6">6</option>';
401
- echo ' <option id="8" ';if (($number == 8)) echo 'selected="selected"'; echo ' value="8">8</option>';
402
- echo ' <option id="10" ';if (($number == 10)) echo 'selected="selected"'; echo ' value="10">10</option>';
403
- echo ' </select></label></p>';
404
-
405
- echo '<p style="text-align:right;"><label for="nextgen-recentsizeX">' . __('Width (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-recentsizeX" name="nextgen-recentsizeX" type="text" value="'.$sizeX.'" /></label></p>';
406
-
407
- echo '<p style="text-align:right;"><label for="nextgen-recentsizeY">' . __('Height (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-recentsizeY" name="nextgen-recentsizeY" type="text" value="'.$sizeY.'" /></label></p>';
408
-
409
- echo '<p style="text-align:right;"><label for="nextgen-recentnumber">' . __('Mode','nggallery').':';
410
- echo ' <select name="nextgen-recentmode" size="1">';
411
- echo ' <option id="none" ';if (($mode == "")) echo 'selected="selected"'; echo ' value="">'. __('none','nggallery').'</option>';
412
- echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
413
- echo ' </select></label></p>';
414
-
415
- // [0.80] [new variables] -> category control
416
- echo '<p style="text-align:right;"><label for="nextgen-recentshowinhome">' . __('Show in the main page','nggallery').':';
417
- echo ' <select name="nextgen-recentshowinhome" size="1">';
418
- echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
419
- echo ' <option id="2" ';if ($showinhome == "no") echo 'selected="selected"'; echo ' value="no" >'. __('no','nggallery').'</option>';
420
- echo ' </select></label></p>';
421
-
422
- echo '<p style="text-align:right;"><label for="nextgen-recentshowcategory">' . __('Show in','nggallery').':';
423
- echo ' <select name="nextgen-recentshowcategory" size="1">';
424
- echo ' <option id="1" ';if (($showcategory == "all")) echo 'selected="selected"'; echo ' value="all" >'. __('All categories','nggallery').'</option>';
425
- echo ' <option id="2" ';if (($showcategory == "denied")) echo 'selected="selected"'; echo ' value="denied" >'. __('Only which are not listed','nggallery').'</option>';
426
- echo ' <option id="3" ';if (($showcategory == "allow")) echo 'selected="selected"'; echo ' value="allow" >'. __('Only which are listed','nggallery').'</option>';
427
- echo ' </select></label></p>';
428
-
429
- echo '<p style="text-align:right;"><label for="nextgen-recentcategorylist">' . __('Categories (id (use , to seperate)','nggallery') . ': <input style="width: 150px;" id="nextgen-recentcategorylist" name="nextgen-recentcategorylist" type="text" value="'.$categorylist.'" /></label></p>';
430
-
431
- echo '<input type="hidden" id="nextgen-recentsubmit" name="nextgen-recentsubmit" value="1" />';
432
- }
433
-
434
- // This registers our widget so it appears with the other available
435
- // widgets and can be dragged and dropped into any active sidebars.
436
- register_sidebar_widget(array('NextGEN Recent Image', 'widgets'), 'widget_nextgenrecentimage');
437
- register_widget_control(array('NextGEN Recent Image', 'widgets'), 'widget_nextgenrecentimage_control', 300, 400);
438
- }
439
-
440
-
441
- /* */
442
-
443
- /**********************************************************/
444
- /* Random widget
445
- /**********************************************************/
446
- function widget_ngg_randomimage() {
447
-
448
- // Check for the required plugin functions. This will prevent fatal
449
- // errors occurring when you deactivate the dynamic-sidebar plugin.
450
- if ( !function_exists('register_sidebar_widget') )
451
- return;
452
-
453
- // This is the function that outputs our little widget...
454
- function widget_nextgenimage($args) {
455
-
456
- // $args is an array of strings that help widgets to conform to
457
- // the active theme: before_widget, before_title, after_widget,
458
- // and after_title are the array keys.
459
- extract($args);
460
-
461
- // Each widget can store its own options. We keep strings here.
462
- $options = get_option('widget_NextGenimage');
463
-
464
- $title = $options['title'];
465
- $thumb = $options['thumb'];
466
- $number = $options['number'];
467
- $sizeX = $options['sizeX'];
468
- $sizeY = $options['sizeY'];
469
- $mode = $options['mode'];
470
-
471
- $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
472
- $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
473
- $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
474
-
475
- // [0.95] -> [add function -> imagetype (imgtype) -> random or recent
476
- $imgtype = "random"; //$options['imgtype'];
477
-
478
- //origy ngg options
479
- $ngg_options = get_option('ngg_options');
480
-
481
- // get the effect code
482
- if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
483
- if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
484
- else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
485
-
486
-
487
- $show_widget = false; // checking display status (category or home)
488
- $categorieslist = getCSVValues($categorylist,','); // Make array for checking the categories
489
-
490
- if (($showcategory == "denied")) { // Denied list -> enable everywhere and make false if found!
491
- $show_widget = true;
492
- foreach((get_the_category()) as $cat)
493
- { if ((in_array($cat->cat_ID , $categorieslist)))
494
- $show_widget = false;
495
- }
496
- }
497
-
498
- if (($showcategory == "allow")) // Allow list -> false is the default -> enable if found
499
- foreach((get_the_category()) as $cat)
500
- { if ((in_array($cat->cat_ID , $categorieslist)))
501
- $show_widget = true;
502
- }
503
-
504
- if (($showcategory == "all")) // All categories -> if it's not the home -> enable
505
- if ((is_home() != true))
506
- $show_widget = true;
507
-
508
- if (($showinhome == "yes")) // Home page -> If yes -> enable
509
- if ((is_home()))
510
- $show_widget = true;
511
-
512
-
513
- $url_parts = parse_url(get_bloginfo('home'));
514
-
515
- // Null parameters check
516
- if ( ($number == '') ) $number = 1;
517
- if ( ($sizeX == '') ) $sizeX = 190;
518
- if ( ($sizeY == '') ) $sizeY = 190;
519
-
520
- if ($show_widget) {
521
-
522
- echo $before_widget . $before_title . $title . $after_title;
523
- echo "\n".'<div class="ngg-widget">'."\n";
524
-
525
- nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype,$thumbcode);
526
-
527
- echo '</div>'."\n";
528
- // v.095 [deleted] -> echo '<div style="clear:both;"></div>'."\n";
529
- echo $after_widget;
530
- }
531
- }
532
-
533
- /**
534
- * @desc Output of plugin�s editform in te adminarea
535
- * @author KeViN
536
- */
537
-
538
- function widget_nextgenimage_control($number=1) {
539
-
540
- $options = get_option('widget_NextGenimage');
541
-
542
- if ( !is_array($options) )
543
- $options = array('title'=>'', 'buttontext'=>__('NextGEN Random Image','nggallery'));
544
-
545
- if ( $_POST['nextgen-submit'] ) {
546
- // Remember to sanitize and format use input appropriately.
547
- $options = "";
548
- $options['title'] = strip_tags(stripslashes($_POST['nextgen-title']));
549
- $options['thumb'] = strip_tags(stripslashes($_POST['nextgen-thumb']));
550
- $options['number'] = strip_tags(stripslashes($_POST['nextgen-number']));
551
- $options['sizeX'] = strip_tags(stripslashes($_POST['nextgen-sizeX']));
552
- $options['sizeY'] = strip_tags(stripslashes($_POST['nextgen-sizeY']));
553
- $options['mode'] = strip_tags(stripslashes($_POST['nextgen-mode']));
554
-
555
- // [0.80] [new functiions and newvariables] -> Category controll
556
- $options['showinhome'] = strip_tags(stripslashes($_POST['nextgen-showinhome']));
557
- $options['showcategory']= strip_tags(stripslashes($_POST['nextgen-showcategory']));
558
- $options['categorylist']= strip_tags(stripslashes($_POST['nextgen-categorylist']));
559
-
560
- // [0.95] [new variable] -> (random / recent)
561
- $options['imgtype'] = strip_tags(stripslashes($_POST['nextgen-imgtype']));
562
-
563
- update_option('widget_NextGenimage', $options);
564
- }
565
-
566
- // Be sure you format your options to be valid HTML attributes.
567
- $title = htmlspecialchars($options['title'], ENT_QUOTES);
568
- $thumb = htmlspecialchars($options['thumb'], ENT_QUOTES);
569
- $number = htmlspecialchars($options['number'], ENT_QUOTES);
570
- $sizeX = htmlspecialchars($options['sizeX'], ENT_QUOTES);
571
- $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
572
- //$mode = htmlspecialchars($options['mode'], ENT_QUOTES);
573
-
574
- // [0.80] [new functiions and newvariables] -> Category controll
575
- $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
576
- $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
577
- $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
578
-
579
- // [0.95] [new variable] -> (random / recent)
580
- $mode = htmlspecialchars($options['imgtype'], ENT_QUOTES);
581
-
582
- // Here comes the form
583
-
584
- 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>';
585
-
586
- // [0.95] [new function] -> Thumbnail or Normal Image?
587
- echo '<p style="text-align:right;"><label for="nextgen-thumb">' . __('Display type','nggallery').':';
588
- echo ' <select name="nextgen-thumb" size="1">';
589
- echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
590
- echo ' <option id="2" ';if (($thumb == "false")) echo 'selected="selected"'; echo ' value="false">' . __('Orginal','nggallery') . '</option>';
591
- echo ' </select></label></p>';
592
-
593
-
594
- echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Number of pics','nggallery').':';
595
- echo ' <select name="nextgen-number" size="1">';
596
- echo ' <option id="1" ';if (($number == 1)) echo 'selected="selected"'; echo ' value="1">1</option>';
597
- echo ' <option id="2" ';if (($number == 2)) echo 'selected="selected"'; echo ' value="2">2</option>';
598
- echo ' <option id="3" ';if (($number == 3)) echo 'selected="selected"'; echo ' value="3">3</option>';
599
- echo ' <option id="4" ';if (($number == 4)) echo 'selected="selected"'; echo ' value="4">4</option>';
600
- echo ' <option id="6" ';if (($number == 6)) echo 'selected="selected"'; echo ' value="6">6</option>';
601
- echo ' <option id="8" ';if (($number == 8)) echo 'selected="selected"'; echo ' value="8">8</option>';
602
- echo ' <option id="10" ';if (($number == 10)) echo 'selected="selected"'; echo ' value="10">10</option>';
603
- echo ' </select></label></p>';
604
-
605
- echo '<p style="text-align:right;"><label for="nextgen-sizeX">' . __('Width (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-sizeX" name="nextgen-sizeX" type="text" value="'.$sizeX.'" /></label></p>';
606
-
607
- echo '<p style="text-align:right;"><label for="nextgen-sizeY">' . __('Height (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-sizeY" name="nextgen-sizeY" type="text" value="'.$sizeY.'" /></label></p>';
608
-
609
- echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Mode','nggallery').':';
610
- echo ' <select name="nextgen-mode" size="1">';
611
- echo ' <option id="none" ';if (($mode == "")) echo 'selected="selected"'; echo ' value="">'. __('none','nggallery').'</option>';
612
- echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
613
- echo ' </select></label></p>';
614
-
615
- // [0.80] [new variables] -> category control
616
- echo '<p style="text-align:right;"><label for="nextgen-showinhome">' . __('Show in the main page','nggallery').':';
617
- echo ' <select name="nextgen-showinhome" size="1">';
618
- echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
619
- echo ' <option id="2" ';if ($showinhome == "no") echo 'selected="selected"'; echo ' value="no" >'. __('no','nggallery').'</option>';
620
- echo ' </select></label></p>';
621
-
622
- echo '<p style="text-align:right;"><label for="nextgen-showcategory">' . __('Show in','nggallery').':';
623
- echo ' <select name="nextgen-showcategory" size="1">';
624
- echo ' <option id="1" ';if (($showcategory == "all")) echo 'selected="selected"'; echo ' value="all" >'. __('All categories','nggallery').'</option>';
625
- echo ' <option id="2" ';if (($showcategory == "denied")) echo 'selected="selected"'; echo ' value="denied" >'. __('Only which are not listed','nggallery').'</option>';
626
- echo ' <option id="3" ';if (($showcategory == "allow")) echo 'selected="selected"'; echo ' value="allow" >'. __('Only which are listed','nggallery').'</option>';
627
- echo ' </select></label></p>';
628
-
629
- 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>';
630
-
631
- echo '<input type="hidden" id="nextgen-submit" name="nextgen-submit" value="1" />';
632
- }
633
-
634
- // This registers our widget so it appears with the other available
635
- // widgets and can be dragged and dropped into any active sidebars.
636
- register_sidebar_widget(array('NextGEN Random Image', 'widgets'), 'widget_nextgenimage');
637
- register_widget_control(array('NextGEN Random Image', 'widgets'), 'widget_nextgenimage_control', 300, 400);
638
- }
639
-
640
- // Run our code later in case this loads prior to any required plugins.
641
- add_action('widgets_init', 'widget_ngg_randomimage');
642
- add_action('widgets_init', 'widget_ngg_slideshow');
643
- add_action('widgets_init', 'widget_ngg_recentimage');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  ?>
1
+ <?php
2
+ /*
3
+ Plugin Name: NextGEN Gallery Widget
4
+ Description: Adds a sidebar widget support to your NextGEN Gallery!
5
+ Author: KeViN
6
+ Version: 0.99b
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
+ /**********************************************************/
56
+ /* Slidehow widget function
57
+ /**********************************************************/
58
+ function nggSlideshowWidget($galleryID,$irWidth,$irHeight) {
59
+
60
+ // Check for NextGEN Gallery
61
+ if ( !function_exists('nggShowSlideshow') )
62
+ return;
63
+
64
+ global $wpdb;
65
+ $ngg_options = get_option('ngg_options');
66
+
67
+ if (empty($irWidth) ) $irWidth = $ngg_options[irWidth];
68
+ if (empty($irHeight)) $irHeight = $ngg_options[irHeight];
69
+
70
+ $replace .= "\n".'<div class="ngg-widget-slideshow" id="ngg_widget_slideshow'.$galleryID.'">';
71
+ $replace .= '<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see the slideshow.</div>';
72
+ $replace .= "\n\t".'<script type="text/javascript">';
73
+ $replace .= "\n\t".'<!--';
74
+ $replace .= "\n\t".'//<![CDATA[';
75
+ $replace .= "\n\t\t".'var so = new SWFObject("'.NGGALLERY_URLPATH.'imagerotator.swf", "ngg_slideshow'.$galleryID.'", "'.$irWidth.'", "'.$irHeight.'", "7", "#'.$ngg_options[irBackcolor].'");';
76
+ $replace .= "\n\t\t".'so.addParam("wmode", "opaque");';
77
+ $replace .= "\n\t\t".'so.addVariable("file", "'.NGGALLERY_URLPATH.'nggextractXML.php?gid='.$galleryID.'");';
78
+ if (!$ngg_options[irShuffle]) $replace .= "\n\t\t".'so.addVariable("shuffle", "false");';
79
+ // if ($ngg_options[irLinkfromdisplay]) $replace .= "\n\t\t".'so.addVariable("linkfromdisplay", "false");';
80
+ // if ($ngg_options[irShownavigation]) $replace .= "\n\t\t".'so.addVariable("shownavigation", "true");';
81
+ if ($ngg_options[irShowicons]) $replace .= "\n\t\t".'so.addVariable("showicons", "true");';
82
+ $replace .= "\n\t\t".'so.addVariable("overstretch", "'.$ngg_options[irOverstretch].'");';
83
+ $replace .= "\n\t\t".'so.addVariable("backcolor", "0x'.$ngg_options[irBackcolor].'");';
84
+ $replace .= "\n\t\t".'so.addVariable("frontcolor", "0x'.$ngg_options[irFrontcolor].'");';
85
+ $replace .= "\n\t\t".'so.addVariable("lightcolor", "0x'.$ngg_options[irLightcolor].'");';
86
+ $replace .= "\n\t\t".'so.addVariable("rotatetime", "'.$ngg_options[irRotatetime].'");';
87
+ $replace .= "\n\t\t".'so.addVariable("transition", "'.$ngg_options[irTransition].'");';
88
+ $replace .= "\n\t\t".'so.addVariable("width", "'.$irWidth.'");';
89
+ $replace .= "\n\t\t".'so.addVariable("height", "'.$irHeight.'");';
90
+ $replace .= "\n\t\t".'so.write("ngg_widget_slideshow'.$galleryID.'");';
91
+ $replace .= "\n\t".'//]]>';
92
+ $replace .= "\n\t".'-->';
93
+ $replace .= "\n\t".'</script>';
94
+
95
+ echo $replace;
96
+ }
97
+
98
+
99
+ /**********************************************************/
100
+ /* Slidehow widget control
101
+ /**********************************************************/
102
+ function widget_ngg_slideshow() {
103
+
104
+ // Check for the required plugin functions.
105
+ if ( !function_exists('register_sidebar_widget') )
106
+ return;
107
+
108
+ // Check for NextGEN Gallery
109
+ if ( !function_exists('nggShowSlideshow') )
110
+ return;
111
+
112
+ function widget_show_ngg_slideshow($args) {
113
+
114
+ extract($args);
115
+
116
+ // Each widget can store its own options. We keep strings here.
117
+ $options = get_option('widget_nggslideshow');
118
+
119
+ // These lines generate our output.
120
+ echo $before_widget . $before_title . $options['title'] . $after_title;
121
+ $url_parts = parse_url(get_bloginfo('home'));
122
+ nggSlideshowWidget($options['galleryid'] , $options['width'] , $options['height']);
123
+ echo $after_widget;
124
+
125
+ }
126
+
127
+ // Admin section
128
+ function widget_control_ngg_slideshow() {
129
+ global $wpdb;
130
+ $options = get_option('widget_nggslideshow');
131
+ if ( !is_array($options) )
132
+ $options = array('title'=>'Slideshow', 'galleryid'=>'0','height'=>'120','width'=>'160',);
133
+
134
+ if ( $_POST['ngg-submit'] ) {
135
+
136
+ $options['title'] = strip_tags(stripslashes($_POST['ngg-title']));
137
+ $options['galleryid'] = $_POST['ngg-galleryid'];
138
+ $options['height'] = $_POST['ngg-height'];
139
+ $options['width'] = $_POST['ngg-width'];
140
+ update_option('widget_nggslideshow', $options);
141
+ }
142
+
143
+ $title = htmlspecialchars($options['title'], ENT_QUOTES);
144
+ $height = $options['height'];
145
+ $width = $options['width'];
146
+
147
+ // The Box content
148
+ echo '<p style="text-align:right;"><label for="ngg-title">' . __('Title:', 'nggallery') . ' <input style="width: 200px;" id="ngg-title" name="ngg-title" type="text" value="'.$title.'" /></label></p>';
149
+ echo '<p style="text-align:right;"><label for="ngg-galleryid">' . __('Select Gallery:', 'nggallery'). ' </label>';
150
+ echo '<select size="1" name="ngg-galleryid" id="ngg-galleryid">';
151
+ $tables = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY 'name' ASC ");
152
+ if($tables) {
153
+ foreach($tables as $table) {
154
+ echo '<option value="'.$table->gid.'" ';
155
+ if ($table->gid == $options['galleryid']) echo "selected='selected' ";
156
+ echo '>'.$table->name.'</option>'."\n\t";
157
+ }
158
+ }
159
+ echo '</select></p>';
160
+ echo '<p style="text-align:right;"><label for="ngg-height">' . __('Height:', 'nggallery') . ' <input style="width: 50px;" id="ngg-height" name="ngg-height" type="text" value="'.$height.'" /></label></p>';
161
+ echo '<p style="text-align:right;"><label for="ngg-width">' . __('Width:', 'nggallery') . ' <input style="width: 50px;" id="ngg-width" name="ngg-width" type="text" value="'.$width.'" /></label></p>';
162
+ echo '<input type="hidden" id="ngg-submit" name="ngg-submit" value="1" />';
163
+
164
+ }
165
+
166
+ register_sidebar_widget(array('NextGEN Slideshow', 'widgets'), 'widget_show_ngg_slideshow');
167
+ register_widget_control(array('NextGEN Slideshow', 'widgets'), 'widget_control_ngg_slideshow', 300, 200);
168
+ }
169
+
170
+ /*******************************************************/
171
+ /* DISPLAY FUNCTION TO THE RECENT & RANDOM IMAGES
172
+ /*******************************************************/
173
+ function nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype,$thumbcode) {
174
+
175
+ // Check for NextGEN Gallery
176
+ if ( !function_exists('ngg_get_thumbnail_url') )
177
+ return;
178
+
179
+
180
+ // Put your HTML code here if you want to personalize the image display!
181
+ $IMGbefore = ''; // NOT IN USE!
182
+ $IMGafter = ''; // NOT IN USE!
183
+
184
+ $Abefore = ''; // NOT IN USE!
185
+ $Aafter = ''; // NOT IN USE!
186
+
187
+
188
+ // [0.99] remember the displayed images
189
+ $displayedimages = array();
190
+
191
+ global $wpdb;
192
+
193
+ // [0.99] Check the number of the images (disable more pictures)
194
+ $numberofimages = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures");
195
+ if (($numberofimages < $number)) $number=$numberofimages;
196
+
197
+ //echo $number." <-- total display images";
198
+ //echo $numberofimages." <-- total images in you galleries";
199
+
200
+ for ($i=1; $i<=$number; $i++) {
201
+
202
+
203
+ // Get a random image from the database
204
+ if (($imgtype == "random")) {
205
+
206
+ // [0.99] -> disable duplicate images in random!
207
+ $imageID = $wpdb->get_var("SELECT pid FROM $wpdb->nggpictures ORDER by rand() limit 1");
208
+ while ( in_array($imageID, $displayedimages)) {
209
+ $imageID = $wpdb->get_var("SELECT pid FROM $wpdb->nggpictures ORDER by rand() limit 1");
210
+ }
211
+ $displayedimages[$i] = $imageID;
212
+
213
+ }
214
+ else {
215
+ // Get the $i latest image from the database
216
+ $imageID = $wpdb->get_var("SELECT pid FROM $wpdb->nggpictures ORDER by pid DESC limit ".$i.",1");
217
+ }
218
+
219
+ // [0.97] new variable -> Set up the strings
220
+ $Astart = '<a href="'.ngg_get_image_url($imageID).'" title="" '.$thumbcode.'>';
221
+ $Aend = '</a>';
222
+
223
+
224
+ // Here comes the display
225
+ echo $Abefore;
226
+
227
+ // [0.95] new function -> Thumbnail or Normal image
228
+ if ( ($thumb == "false") ) {
229
+ // NORMAL IMAGE mode
230
+ if ( ($mode == 'web20') ) {
231
+ // [0.95] [deleted] -> <li> </li>
232
+ // [0.97] [edited] -> class="ngg-widget-img" -> id="ngg-widget-img"
233
+ // [0.98] [deleted] -> id="ngg-widget-img"
234
+ echo $Astart;
235
+ echo $IMGbefore.'<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.'&amp;mode=web20" />';
236
+ echo $Aend.$IMGafter."\n";
237
+ }
238
+ else {
239
+ // [0.95] [deleted] -> <li> </li>
240
+ // [0.97] [edited] -> class="ngg-widget-img" -> id="ngg-widget-img"
241
+ // [0.98] [deleted] -> id="ngg-widget-img"
242
+ echo $Astart;
243
+ echo $IMGbefore.'<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.'" />';
244
+ echo $Aend.$IMGafter."\n";
245
+ }
246
+ }
247
+ else {
248
+ // THUMBNAIL mode
249
+ //if web20
250
+ if ( ($mode == 'web20') ) {
251
+
252
+ // [0.95] [deleted] -> <li> </li>
253
+ // [0.95] [edited] -> class="ngg-widget-img"
254
+ echo $Astart;
255
+ // [0.95] [deleted] -> nggshow because it displays the ORIGYNAL picture and not the THUMBNAIL!
256
+ // [0.95] [new line] -> showreflection.php -> for the web20 thumbnail!
257
+ echo $IMGbefore.'<img src="'.NGGALLERY_URLPATH.'showreflection.php?pid='.$imageID.'&amp;width='.$sizeX.'&amp;height='.$sizeY.' />';
258
+ echo $Aend.$IMGafter."\n";
259
+ }
260
+ else {
261
+ echo $Astart;
262
+ echo $IMGbefore.'<img src="'.ngg_get_thumbnail_url($imageID).'" style="width:'.$sizeX.'px;height:'.$sizeY.'px;" />';
263
+ echo $Aend.$IMGafter."\n";
264
+ }
265
+ }
266
+
267
+ echo $Aafter;
268
+
269
+ }
270
+ }
271
+ /**********************************************************/
272
+ /* SIMPLE INSERT TAGS
273
+ /**********************************************************/
274
+
275
+ function nggDisplayRandomImages($number,$width,$height) {
276
+ echo "\n".'<div class="ngg-widget">'."\n";
277
+ nggDisplayImagesWidget("true",$number,$width,$height,"","random","");
278
+ echo '</div>'."\n";
279
+
280
+
281
+ }
282
+
283
+
284
+ function nggDisplayRecentImages($number,$width,$height) {
285
+
286
+ echo "\n".'<div class="ngg-widget">'."\n";
287
+ nggDisplayImagesWidget("true",$number,$width,$height,"","recent","");
288
+ echo '</div>'."\n";
289
+
290
+ }
291
+
292
+
293
+ /**********************************************************/
294
+ /* Recent widget
295
+ /**********************************************************/
296
+
297
+ /* HERE COMES THE RECENT IMAGE WIDGET */
298
+
299
+
300
+ function widget_ngg_recentimage() {
301
+
302
+ // Check for the required plugin functions. This will prevent fatal
303
+ // errors occurring when you deactivate the dynamic-sidebar plugin.
304
+ if ( !function_exists('register_sidebar_widget') )
305
+ return;
306
+
307
+ // Check for NextGEN Gallery
308
+ if ( !function_exists('ngg_get_thumbnail_url') )
309
+ return;
310
+
311
+ // This is the function that outputs our little widget...
312
+ function widget_nextgenrecentimage($args) {
313
+
314
+ // $args is an array of strings that help widgets to conform to
315
+ // the active theme: before_widget, before_title, after_widget,
316
+ // and after_title are the array keys.
317
+ extract($args);
318
+
319
+ // Each widget can store its own options. We keep strings here.
320
+ $options = get_option('widget_NextGenrecentimage');
321
+
322
+ $title = $options['title'];
323
+ $thumb = $options['thumb'];
324
+ $number = $options['number'];
325
+ $sizeX = $options['sizeX'];
326
+ $sizeY = $options['sizeY'];
327
+ $mode = $options['mode'];
328
+
329
+ $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
330
+ $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
331
+ $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
332
+
333
+ // [0.95] -> [add function -> imagetype (imgtype) -> random or recent
334
+ $imgtype = "recent"; //$options['imgtype'];
335
+
336
+ //origy ngg options
337
+ $ngg_options = get_option('ngg_options');
338
+
339
+ // get the effect code
340
+ if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
341
+ if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
342
+ else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
343
+
344
+
345
+ $show_widget = false; // checking display status (category or home)
346
+ $categorieslist = getCSVValues($categorylist,','); // Make array for checking the categories
347
+
348
+ if (($showcategory == "denied")) { // Denied list -> enable everywhere and make false if found!
349
+ $show_widget = true;
350
+ foreach((get_the_category()) as $cat)
351
+ { if ((in_array($cat->cat_ID , $categorieslist)))
352
+ $show_widget = false;
353
+ }
354
+ }
355
+
356
+ if (($showcategory == "allow")) // Allow list -> false is the default -> enable if found
357
+ foreach((get_the_category()) as $cat)
358
+ { if ((in_array($cat->cat_ID , $categorieslist)))
359
+ $show_widget = true;
360
+ }
361
+
362
+ if (($showcategory == "all")) // All categories -> if it's not the home -> enable
363
+ if ((is_home() != true))
364
+ $show_widget = true;
365
+
366
+ if (($showinhome == "yes")) // Home page -> If yes -> enable
367
+ if ((is_home()))
368
+ $show_widget = true;
369
+
370
+
371
+ $url_parts = parse_url(get_bloginfo('home'));
372
+
373
+ // Null parameters check
374
+ if ( ($number == '') ) $number = 1;
375
+ if ( ($sizeX == '') ) $sizeX = 190;
376
+ if ( ($sizeY == '') ) $sizeY = 190;
377
+
378
+ if ($show_widget) {
379
+
380
+ echo $before_widget . $before_title . $title . $after_title;
381
+ echo "\n".'<div class="ngg-widget">'."\n";
382
+
383
+ nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype,$thumbcode);
384
+
385
+ echo '</div>'."\n";
386
+ // v.095 [deleted] -> echo '<div style="clear:both;"></div>'."\n";
387
+ echo $after_widget;
388
+ }
389
+ }
390
+
391
+ /**
392
+ * @desc Output of plugin�s editform in te adminarea
393
+ * @author KeViN
394
+ */
395
+
396
+ function widget_nextgenrecentimage_control($number=1) {
397
+
398
+ $options = get_option('widget_NextGenrecentimage');
399
+
400
+ if ( !is_array($options) )
401
+ $options = array('title'=>'Recent Images', 'buttontext'=>__('NextGEN Recent Image','nggallery'));
402
+
403
+ if ( $_POST['nextgen-recentsubmit'] ) {
404
+ // Remember to sanitize and format use input appropriately.
405
+ $options = "";
406
+ $options['title'] = strip_tags(stripslashes($_POST['nextgen-recenttitle']));
407
+ $options['thumb'] = strip_tags(stripslashes($_POST['nextgen-recentthumb']));
408
+ $options['number'] = strip_tags(stripslashes($_POST['nextgen-recentnumber']));
409
+ $options['sizeX'] = strip_tags(stripslashes($_POST['nextgen-recentsizeX']));
410
+ $options['sizeY'] = strip_tags(stripslashes($_POST['nextgen-recentsizeY']));
411
+
412
+ // [0.80] [new functiions and newvariables] -> Category controll
413
+ $options['showinhome'] = strip_tags(stripslashes($_POST['nextgen-recentshowinhome']));
414
+ $options['showcategory']= strip_tags(stripslashes($_POST['nextgen-recentshowcategory']));
415
+ $options['categorylist']= strip_tags(stripslashes($_POST['nextgen-recentcategorylist']));
416
+
417
+ // [0.95] [new variable] -> (random / recent)
418
+ $options['imgtype'] = strip_tags(stripslashes($_POST['nextgen-recentimgtype']));
419
+
420
+ update_option('widget_NextGenrecentimage', $options);
421
+ }
422
+
423
+ // Be sure you format your options to be valid HTML attributes.
424
+ $title = htmlspecialchars($options['title'], ENT_QUOTES);
425
+ $thumb = htmlspecialchars($options['thumb'], ENT_QUOTES);
426
+ $number = htmlspecialchars($options['number'], ENT_QUOTES);
427
+ $sizeX = htmlspecialchars($options['sizeX'], ENT_QUOTES);
428
+ $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
429
+ $mode = htmlspecialchars($options['mode'], ENT_QUOTES);
430
+
431
+ // [0.80] [new functiions and newvariables] -> Category controll
432
+ $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
433
+ $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
434
+ $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
435
+
436
+ // [0.95] [new variable] -> (random / recent)
437
+ $mode = htmlspecialchars($options['imgtype'], ENT_QUOTES);
438
+
439
+ // Here comes the form
440
+
441
+ echo'<p style="text-align:right;"><label for="nextgen-recenttitle">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-recenttitle" name="nextgen-recenttitle" type="text" value="'.$title.'" /></label></p>';
442
+
443
+ // [0.95] [new function] -> Thumbnail or Normal Image?
444
+ echo '<p style="text-align:right;"><label for="nextgen-recentthumb">' . __('Display type','nggallery').':';
445
+ echo ' <select name="nextgen-recentthumb" size="1">';
446
+ echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
447
+ echo ' <option id="2" ';if (($thumb == "false")) echo 'selected="selected"'; echo ' value="false">' . __('Orginal','nggallery') . '</option>';
448
+ echo ' </select></label></p>';
449
+
450
+ echo '<p style="text-align:right;"><label for="nextgen-recentnumber">' . __('Number of pics','nggallery').':';
451
+ echo ' <select name="nextgen-recentnumber" size="1">';
452
+ echo ' <option id="1" ';if (($number == 1)) echo 'selected="selected"'; echo ' value="1">1</option>';
453
+ echo ' <option id="2" ';if (($number == 2)) echo 'selected="selected"'; echo ' value="2">2</option>';
454
+ echo ' <option id="3" ';if (($number == 3)) echo 'selected="selected"'; echo ' value="3">3</option>';
455
+ echo ' <option id="4" ';if (($number == 4)) echo 'selected="selected"'; echo ' value="4">4</option>';
456
+ echo ' <option id="6" ';if (($number == 6)) echo 'selected="selected"'; echo ' value="6">6</option>';
457
+ echo ' <option id="8" ';if (($number == 8)) echo 'selected="selected"'; echo ' value="8">8</option>';
458
+ echo ' <option id="10" ';if (($number == 10)) echo 'selected="selected"'; echo ' value="10">10</option>';
459
+ echo ' </select></label></p>';
460
+
461
+ echo '<p style="text-align:right;"><label for="nextgen-recentsizeX">' . __('Width (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-recentsizeX" name="nextgen-recentsizeX" type="text" value="'.$sizeX.'" /></label></p>';
462
+
463
+ echo '<p style="text-align:right;"><label for="nextgen-recentsizeY">' . __('Height (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-recentsizeY" name="nextgen-recentsizeY" type="text" value="'.$sizeY.'" /></label></p>';
464
+
465
+ echo '<p style="text-align:right;"><label for="nextgen-recentnumber">' . __('Mode','nggallery').':';
466
+ echo ' <select name="nextgen-recentmode" size="1">';
467
+ echo ' <option id="none" ';if (($mode == "")) echo 'selected="selected"'; echo ' value="">'. __('none','nggallery').'</option>';
468
+ echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
469
+ echo ' </select></label></p>';
470
+
471
+ // [0.80] [new variables] -> category control
472
+ echo '<p style="text-align:right;"><label for="nextgen-recentshowinhome">' . __('Show in the main page','nggallery').':';
473
+ echo ' <select name="nextgen-recentshowinhome" size="1">';
474
+ echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
475
+ echo ' <option id="2" ';if ($showinhome == "no") echo 'selected="selected"'; echo ' value="no" >'. __('no','nggallery').'</option>';
476
+ echo ' </select></label></p>';
477
+
478
+ echo '<p style="text-align:right;"><label for="nextgen-recentshowcategory">' . __('Show in','nggallery').':';
479
+ echo ' <select name="nextgen-recentshowcategory" size="1">';
480
+ echo ' <option id="1" ';if (($showcategory == "all")) echo 'selected="selected"'; echo ' value="all" >'. __('All categories','nggallery').'</option>';
481
+ echo ' <option id="2" ';if (($showcategory == "denied")) echo 'selected="selected"'; echo ' value="denied" >'. __('Only which are not listed','nggallery').'</option>';
482
+ echo ' <option id="3" ';if (($showcategory == "allow")) echo 'selected="selected"'; echo ' value="allow" >'. __('Only which are listed','nggallery').'</option>';
483
+ echo ' </select></label></p>';
484
+
485
+ echo '<p style="text-align:right;"><label for="nextgen-recentcategorylist">' . __('Categories (id (use , to seperate)','nggallery') . ': <input style="width: 150px;" id="nextgen-recentcategorylist" name="nextgen-recentcategorylist" type="text" value="'.$categorylist.'" /></label></p>';
486
+
487
+ echo '<input type="hidden" id="nextgen-recentsubmit" name="nextgen-recentsubmit" value="1" />';
488
+ }
489
+
490
+ // This registers our widget so it appears with the other available
491
+ // widgets and can be dragged and dropped into any active sidebars.
492
+ register_sidebar_widget(array('NextGEN Recent Image', 'widgets'), 'widget_nextgenrecentimage');
493
+ register_widget_control(array('NextGEN Recent Image', 'widgets'), 'widget_nextgenrecentimage_control', 300, 400);
494
+ }
495
+
496
+
497
+ /* */
498
+
499
+ /**********************************************************/
500
+ /* Random widget
501
+ /**********************************************************/
502
+ function widget_ngg_randomimage() {
503
+
504
+ // Check for the required plugin functions. This will prevent fatal
505
+ // errors occurring when you deactivate the dynamic-sidebar plugin.
506
+ if ( !function_exists('register_sidebar_widget') )
507
+ return;
508
+
509
+ // Check for NextGEN Gallery
510
+ if ( !function_exists('ngg_get_thumbnail_url') )
511
+ return;
512
+
513
+ // This is the function that outputs our little widget...
514
+ function widget_nextgenimage($args) {
515
+
516
+ // $args is an array of strings that help widgets to conform to
517
+ // the active theme: before_widget, before_title, after_widget,
518
+ // and after_title are the array keys.
519
+ extract($args);
520
+
521
+ // Each widget can store its own options. We keep strings here.
522
+ $options = get_option('widget_NextGenimage');
523
+
524
+ $title = $options['title'];
525
+ $thumb = $options['thumb'];
526
+ $number = $options['number'];
527
+ $sizeX = $options['sizeX'];
528
+ $sizeY = $options['sizeY'];
529
+ $mode = $options['mode'];
530
+
531
+ $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
532
+ $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
533
+ $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
534
+
535
+ // [0.95] -> [add function -> imagetype (imgtype) -> random or recent
536
+ $imgtype = "random"; //$options['imgtype'];
537
+
538
+ //origy ngg options
539
+ $ngg_options = get_option('ngg_options');
540
+
541
+ // get the effect code
542
+ if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
543
+ if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
544
+ else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
545
+
546
+
547
+ $show_widget = false; // checking display status (category or home)
548
+ $categorieslist = getCSVValues($categorylist,','); // Make array for checking the categories
549
+
550
+ if (($showcategory == "denied")) { // Denied list -> enable everywhere and make false if found!
551
+ $show_widget = true;
552
+ foreach((get_the_category()) as $cat)
553
+ { if ((in_array($cat->cat_ID , $categorieslist)))
554
+ $show_widget = false;
555
+ }
556
+ }
557
+
558
+ if (($showcategory == "allow")) // Allow list -> false is the default -> enable if found
559
+ foreach((get_the_category()) as $cat)
560
+ { if ((in_array($cat->cat_ID , $categorieslist)))
561
+ $show_widget = true;
562
+ }
563
+
564
+ if (($showcategory == "all")) // All categories -> if it's not the home -> enable
565
+ if ((is_home() != true))
566
+ $show_widget = true;
567
+
568
+ if (($showinhome == "yes")) // Home page -> If yes -> enable
569
+ if ((is_home()))
570
+ $show_widget = true;
571
+
572
+
573
+ $url_parts = parse_url(get_bloginfo('home'));
574
+
575
+ // Null parameters check
576
+ if ( ($number == '') ) $number = 1;
577
+ if ( ($sizeX == '') ) $sizeX = 190;
578
+ if ( ($sizeY == '') ) $sizeY = 190;
579
+
580
+ if ($show_widget) {
581
+
582
+ echo $before_widget . $before_title . $title . $after_title;
583
+ echo "\n".'<div class="ngg-widget">'."\n";
584
+
585
+ nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype,$thumbcode);
586
+
587
+ echo '</div>'."\n";
588
+ // v.095 [deleted] -> echo '<div style="clear:both;"></div>'."\n";
589
+ echo $after_widget;
590
+ }
591
+ }
592
+
593
+ /**
594
+ * @desc Output of plugin�s editform in te adminarea
595
+ * @author KeViN
596
+ */
597
+
598
+ function widget_nextgenimage_control($number=1) {
599
+
600
+ $options = get_option('widget_NextGenimage');
601
+
602
+ if ( !is_array($options) )
603
+ $options = array('title'=>'', 'buttontext'=>__('NextGEN Random Image','nggallery'));
604
+
605
+ if ( $_POST['nextgen-submit'] ) {
606
+ // Remember to sanitize and format use input appropriately.
607
+ $options = "";
608
+ $options['title'] = strip_tags(stripslashes($_POST['nextgen-title']));
609
+ $options['thumb'] = strip_tags(stripslashes($_POST['nextgen-thumb']));
610
+ $options['number'] = strip_tags(stripslashes($_POST['nextgen-number']));
611
+ $options['sizeX'] = strip_tags(stripslashes($_POST['nextgen-sizeX']));
612
+ $options['sizeY'] = strip_tags(stripslashes($_POST['nextgen-sizeY']));
613
+ $options['mode'] = strip_tags(stripslashes($_POST['nextgen-mode']));
614
+
615
+ // [0.80] [new functiions and newvariables] -> Category controll
616
+ $options['showinhome'] = strip_tags(stripslashes($_POST['nextgen-showinhome']));
617
+ $options['showcategory']= strip_tags(stripslashes($_POST['nextgen-showcategory']));
618
+ $options['categorylist']= strip_tags(stripslashes($_POST['nextgen-categorylist']));
619
+
620
+ // [0.95] [new variable] -> (random / recent)
621
+ $options['imgtype'] = strip_tags(stripslashes($_POST['nextgen-imgtype']));
622
+
623
+ update_option('widget_NextGenimage', $options);
624
+ }
625
+
626
+ // Be sure you format your options to be valid HTML attributes.
627
+ $title = htmlspecialchars($options['title'], ENT_QUOTES);
628
+ $thumb = htmlspecialchars($options['thumb'], ENT_QUOTES);
629
+ $number = htmlspecialchars($options['number'], ENT_QUOTES);
630
+ $sizeX = htmlspecialchars($options['sizeX'], ENT_QUOTES);
631
+ $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
632
+ //$mode = htmlspecialchars($options['mode'], ENT_QUOTES);
633
+
634
+ // [0.80] [new functiions and newvariables] -> Category controll
635
+ $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
636
+ $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
637
+ $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
638
+
639
+ // [0.95] [new variable] -> (random / recent)
640
+ $mode = htmlspecialchars($options['imgtype'], ENT_QUOTES);
641
+
642
+ // Here comes the form
643
+
644
+ 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>';
645
+
646
+ // [0.95] [new function] -> Thumbnail or Normal Image?
647
+ echo '<p style="text-align:right;"><label for="nextgen-thumb">' . __('Display type','nggallery').':';
648
+ echo ' <select name="nextgen-thumb" size="1">';
649
+ echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
650
+ echo ' <option id="2" ';if (($thumb == "false")) echo 'selected="selected"'; echo ' value="false">' . __('Orginal','nggallery') . '</option>';
651
+ echo ' </select></label></p>';
652
+
653
+
654
+ echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Number of pics','nggallery').':';
655
+ echo ' <select name="nextgen-number" size="1">';
656
+ echo ' <option id="1" ';if (($number == 1)) echo 'selected="selected"'; echo ' value="1">1</option>';
657
+ echo ' <option id="2" ';if (($number == 2)) echo 'selected="selected"'; echo ' value="2">2</option>';
658
+ echo ' <option id="3" ';if (($number == 3)) echo 'selected="selected"'; echo ' value="3">3</option>';
659
+ echo ' <option id="4" ';if (($number == 4)) echo 'selected="selected"'; echo ' value="4">4</option>';
660
+ echo ' <option id="6" ';if (($number == 6)) echo 'selected="selected"'; echo ' value="6">6</option>';
661
+ echo ' <option id="8" ';if (($number == 8)) echo 'selected="selected"'; echo ' value="8">8</option>';
662
+ echo ' <option id="10" ';if (($number == 10)) echo 'selected="selected"'; echo ' value="10">10</option>';
663
+ echo ' </select></label></p>';
664
+
665
+ echo '<p style="text-align:right;"><label for="nextgen-sizeX">' . __('Width (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-sizeX" name="nextgen-sizeX" type="text" value="'.$sizeX.'" /></label></p>';
666
+
667
+ echo '<p style="text-align:right;"><label for="nextgen-sizeY">' . __('Height (px)','nggallery') . ': <input style="width: 50px;" id="nextgen-sizeY" name="nextgen-sizeY" type="text" value="'.$sizeY.'" /></label></p>';
668
+
669
+ echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Mode','nggallery').':';
670
+ echo ' <select name="nextgen-mode" size="1">';
671
+ echo ' <option id="none" ';if (($mode == "")) echo 'selected="selected"'; echo ' value="">'. __('none','nggallery').'</option>';
672
+ echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
673
+ echo ' </select></label></p>';
674
+
675
+ // [0.80] [new variables] -> category control
676
+ echo '<p style="text-align:right;"><label for="nextgen-showinhome">' . __('Show in the main page','nggallery').':';
677
+ echo ' <select name="nextgen-showinhome" size="1">';
678
+ echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
679
+ echo ' <option id="2" ';if ($showinhome == "no") echo 'selected="selected"'; echo ' value="no" >'. __('no','nggallery').'</option>';
680
+ echo ' </select></label></p>';
681
+
682
+ echo '<p style="text-align:right;"><label for="nextgen-showcategory">' . __('Show in','nggallery').':';
683
+ echo ' <select name="nextgen-showcategory" size="1">';
684
+ echo ' <option id="1" ';if (($showcategory == "all")) echo 'selected="selected"'; echo ' value="all" >'. __('All categories','nggallery').'</option>';
685
+ echo ' <option id="2" ';if (($showcategory == "denied")) echo 'selected="selected"'; echo ' value="denied" >'. __('Only which are not listed','nggallery').'</option>';
686
+ echo ' <option id="3" ';if (($showcategory == "allow")) echo 'selected="selected"'; echo ' value="allow" >'. __('Only which are listed','nggallery').'</option>';
687
+ echo ' </select></label></p>';
688
+
689
+ 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>';
690
+
691
+ echo '<input type="hidden" id="nextgen-submit" name="nextgen-submit" value="1" />';
692
+ }
693
+
694
+ // This registers our widget so it appears with the other available
695
+ // widgets and can be dragged and dropped into any active sidebars.
696
+ register_sidebar_widget(array('NextGEN Random Image', 'widgets'), 'widget_nextgenimage');
697
+ register_widget_control(array('NextGEN Random Image', 'widgets'), 'widget_nextgenimage_control', 300, 400);
698
+ }
699
+
700
+ // Run our code later in case this loads prior to any required plugins.
701
+ add_action('widgets_init', 'widget_ngg_randomimage');
702
+ add_action('widgets_init', 'widget_ngg_slideshow');
703
+ add_action('widgets_init', 'widget_ngg_recentimage');
704
  ?>
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === NextGEN Gallery ===
2
  Contributors: Alex Rabe
3
  Donate link: http://alexrabe.boelinger.com/?page_id=80
4
- Tags: photos, flash, slideshow, images, gallery, media, admin, post, photo-albums, pictures
5
  Requires at least: 2.1.3
6
  Tested up to: 2.2
7
- Stable tag: 0.52
8
 
9
- NextGEN Gallery is a full integrated Image Gallery plugin for WordPress.
10
 
11
  == Description ==
12
 
@@ -23,9 +23,14 @@ Features:
23
  * Slideshow : Full integrated flash slideshow
24
  * TinyMCE : Button integration for easy adding the gallery tags
25
  * Sidebar Widget : Show a slideshow, random or recent 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
 
@@ -52,7 +57,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
52
 
53
  1. Upload the files to wp-content/plugins/nggallery
54
 
55
- 2. Go to the web page http://www.jeroenwijering.com/ and download the Flash Image Rotator and unpack the conent
56
 
57
  3. Upload the file imagerotator.swf to the nggallery folder
58
 
@@ -60,7 +65,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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
@@ -94,3 +99,9 @@ For a single picture : **[singlepic=id,width,height,mode,float]**
94
 
95
  Example : http://nextgen.boelinger.com/singlepic/
96
 
 
 
 
 
 
 
1
  === NextGEN Gallery ===
2
  Contributors: Alex Rabe
3
  Donate link: http://alexrabe.boelinger.com/?page_id=80
4
+ Tags: photos, flash, slideshow, images, gallery, media, admin, post, photo-albums, pictures, widgets
5
  Requires at least: 2.1.3
6
  Tested up to: 2.2
7
+ Stable tag: 0.60
8
 
9
+ NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
10
 
11
  == Description ==
12
 
23
  * Slideshow : Full integrated flash slideshow
24
  * TinyMCE : Button integration for easy adding the gallery tags
25
  * Sidebar Widget : Show a slideshow, random or recent picture at your sidebar
26
+ * Language support : Translated in more than 12 languages
27
+ * Upload tab integration : You have access to all pictures via the upload tab
28
 
29
+ For support around this plugin please visit http://alexrabe.boelinger.com/forums/
30
 
31
+ For your language file please visit : http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/languages/
32
+
33
+ ** PLEASE NOTE ! This gallery plugin is still in development, it can be contain many bugs ! **
34
 
35
  == Credits ==
36
 
57
 
58
  1. Upload the files to wp-content/plugins/nggallery
59
 
60
+ 2. Go to the web page http://www.jeroenwijering.com/ and download the JW Image Rotator and unpack the conent
61
 
62
  3. Upload the file imagerotator.swf to the nggallery folder
63
 
65
 
66
  5. Add a gallery and upload some images (the main gallery folder must have permission 777)
67
 
68
+ 6. Go to your post/page an enter the tag '[gallery=ID]' or '[slideshow=ID]'.
69
  See more tags in the FAQ section
70
 
71
  That's it ... Have fun
99
 
100
  Example : http://nextgen.boelinger.com/singlepic/
101
 
102
+ Read as startup : http://hqcode.com/?page_id=54
103
+
104
+ A further FAQ you can found here: http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/faq/
105
+
106
+ And at least request your question here : http://alexrabe.boelinger.com/forums/
107
+
thickbox/thickbox-pack.js CHANGED
@@ -5,6 +5,7 @@
5
  * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
  */
7
 
8
- //Version 3.0.1 : alex.rabe : jQuery no colision mode, loading image
 
9
 
10
- 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}('(8($){$(9).2k(8(){1d(\'a.14, 2l.14, 2m.14\');1e=1f 1g();1e.M=2n});8 1d(b){$(b).o(8(){6 t=N.O||N.1B||I;6 a=N.q||N.1C;6 g=N.1D||P;15(t,a,g);N.2o();J P})}8 15(d,f,g){2p{3(1h 9.r.K.1E==="1i"){$("r","L").p({z:"1F%",u:"1F%"});$("L").p("1G","2q");3(9.1H("1j")===I){$("r").A("<16 5=\'1j\'></16><4 5=\'E\'></4><4 5=\'7\'></4>");$("#E").o(B)}}n{3(9.1H("E")===I){$("r").A("<4 5=\'E\'></4><4 5=\'7\'>");$("#E").o(B)}}3(d===I){d=""}$("r").A("<4 5=\'F\'><1I M=\'"+1e.M+"\' /></4>");$(\'#F\').2r();6 h;3(f.W("?")!==-1){h=f.2s(0,f.W("?"))}n{h=f}6 i=/\\.1J|\\.1K|\\.1L|\\.1M|\\.1N/g;6 j=h.1O().1P(i);3(j==\'.1J\'||j==\'.1K\'||j==\'.1L\'||j==\'.1M\'||j==\'.1N\'){1k="";1l="";X="";1m="";1n="";Q="";1o="";1p=P;3(g){C=$("a[@1D="+g+"]").2t();1Q(v=0;((v<C.18)&&(Q===""));v++){6 k=C[v].q.1O().1P(i);3(!(C[v].q==f)){3(1p){1m=C[v].O;1n=C[v].q;Q="<19 5=\'1R\'>&1a;&1a;<a q=\'#\'>2u &2v;</a></19>"}n{1k=C[v].O;1l=C[v].q;X="<19 5=\'1S\'>&1a;&1a;<a q=\'#\'>&2w; 2x</a></19>"}}n{1p=1T;1o="1g "+(v+1)+" 2y "+(C.18)}}}R=1f 1g();R.1q=8(){R.1q=I;6 a=1U();6 x=a[0]-1V;6 y=a[1]-1V;6 b=R.u;6 c=R.z;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}}Y=b+30;1b=c+2z;$("#7").A("<a q=\'\' 5=\'1W\' O=\'1r\'><1I 5=\'2A\' M=\'"+f+"\' u=\'"+b+"\' z=\'"+c+"\' 1C=\'"+d+"\'/></a>"+"<4 5=\'2B\'>"+d+"<4 5=\'2C\'>"+1o+X+Q+"</4></4><4 5=\'2D\'><a q=\'#\' 5=\'S\' O=\'1r\'>1s</a> 1t 1u 1v</4>");$("#S").o(B);3(!(X==="")){8 Z(){3($(9).T("o",Z)){$(9).T("o",Z)}$("#7").D();$("r").A("<4 5=\'7\'></4>");15(1k,1l,g);J P}$("#1S").o(Z)}3(!(Q==="")){8 1w(){$("#7").D();$("r").A("<4 5=\'7\'></4>");15(1m,1n,g);J P}$("#1R").o(1w)}9.1c=8(e){3(e==I){G=1X.1x}n{G=e.1Y}3(G==27){B()}n 3(G==2E){3(!(Q=="")){9.1c="";1w()}}n 3(G==2F){3(!(X=="")){9.1c="";Z()}}};11();$("#F").D();$("#1W").o(B);$("#7").p({U:"V"})};R.M=f}n{6 l=f.1Z(/^[^\\?]+\\??/,\'\');6 m=20(l);Y=(m[\'u\']*1)+30||2G;1b=(m[\'z\']*1)+2H||2I;12=Y-30;13=1b-2J;3(f.W(\'21\')!=-1){22=f.1y(\'2K\');$("#7").A("<4 5=\'23\'><4 5=\'1z\'>"+d+"</4><4 5=\'24\'><a q=\'#\' 5=\'S\' O=\'1r\'>1s</a> 1t 1u 1v</4></4><16 2L=\'0\' 2M=\'0\' M=\'"+22[0]+"\' 5=\'1A\' 1B=\'1A\' K=\'u:"+(12+29)+"s;z:"+(13+17)+"s;\' 1q=\'25()\'> </16>")}n{3($("#7").p("U")!="V"){3(m[\'26\']!="1T"){$("#7").A("<4 5=\'23\'><4 5=\'1z\'>"+d+"</4><4 5=\'24\'><a q=\'#\' 5=\'S\'>1s</a> 1t 1u 1v</4></4><4 5=\'H\' K=\'u:"+12+"s;z:"+13+"s\'></4>")}n{$("#E").T();$("#7").A("<4 5=\'H\' 2N=\'2O\' K=\'u:"+12+"s;z:"+13+"s;\'></4>")}}n{$("#H")[0].K.u=12+"s";$("#H")[0].K.z=13+"s";$("#H")[0].2P=0;$("#1z").L(d)}}$("#S").o(B);3(f.W(\'2Q\')!=-1){$("#H").L($(\'#\'+m[\'2R\']).L());11();$("#F").D();$("#7").p({U:"V"})}n 3(f.W(\'21\')!=-1){11();3(2S[\'1A\']===1i){$("#F").D();$("#7").p({U:"V"});$(9).2T(8(e){6 a=e.1x;3(a==27){B()}})}}n{$("#H").2U(f+="&2V="+(1f 2W().2X()),8(){11();$("#F").D();1d("#H a.14");$("#7").p({U:"V"})})}}3(!m[\'26\']){9.2Y=8(e){3(e==I){G=1X.1x}n{G=e.1Y}3(G==27){B()}}}}2Z(e){}}8 25(){$("#F").D();$("#7").p({U:"V"})}8 B(){$("#31").T("o");$("#E").T("o");$("#S").T("o");$("#7").32("33",8(){$(\'#7,#E,#1j\').D()});$("#F").D();3(1h 9.r.K.1E=="1i"){$("r","L").p({z:"28",u:"28"});$("L").p("1G","")}9.1c="";J P}8 11(){$("#7").p({34:\'-\'+2a((Y/2),10)+\'s\',u:Y+\'s\'});3(!(2b.35.36&&1h 37==\'8\')){$("#7").p({38:\'-\'+2a((1b/2),10)+\'s\'})}}8 20(a){6 b={};3(!a){J b}6 c=a.1y(/[;&]/);1Q(6 i=0;i<c.18;i++){6 d=c[i].1y(\'=\');3(!d||d.18!=2){39}6 e=2c(d[0]);6 f=2c(d[1]);f=f.1Z(/\\+/g,\' \');b[e]=f}J b}8 1U(){6 a=9.3a;6 w=2d.2e||2f.2e||(a&&a.2g)||9.r.2g;6 h=2d.2h||2f.2h||(a&&a.2i)||9.r.2i;2j=[w,h];J 2j}})(2b);',62,197,'|||if|div|id|var|TB_window|function|document||||||||||||||else|click|css|href|body|px||width|TB_Counter||||height|append|tb_remove|TB_TempArray|remove|TB_overlay|TB_load|keycode|TB_ajaxContent|null|return|style|html|src|this|title|false|TB_NextHTML|imgPreloader|TB_closeWindowButton|unbind|display|block|indexOf|TB_PrevHTML|TB_WIDTH|goPrev||tb_position|ajaxContentW|ajaxContentH|thickbox|tb_show|iframe||length|span|nbsp|TB_HEIGHT|onkeydown|tb_init|imgLoader|new|Image|typeof|undefined|TB_HideSelect|TB_PrevCaption|TB_PrevURL|TB_NextCaption|TB_NextURL|TB_imageCount|TB_FoundURL|onload|Close|close|or|Esc|Key|goNext|keyCode|split|TB_ajaxWindowTitle|TB_iframeContent|name|alt|rel|maxHeight|100|overflow|getElementById|img|jpg|jpeg|png|gif|bmp|toLowerCase|match|for|TB_next|TB_prev|true|tb_getPageSize|150|TB_ImageOff|event|which|replace|tb_parseQuery|TB_iframe|urlNoQuery|TB_title|TB_closeAjaxWindow|tb_showIframe|modal||auto||parseInt|jQuery|unescape|window|innerWidth|self|clientWidth|innerHeight|clientHeight|arrayPageSize|ready|area|input|tb_pathToImage|blur|try|hidden|show|substr|get|Next|gt|lt|Prev|of|60|TB_Image|TB_caption|TB_secondLine|TB_closeWindow|190|188|630|40|440|45|TB_|frameborder|hspace|class|TB_modal|scrollTop|TB_inline|inlineId|frames|keyup|load|random|Date|getTime|onkeyup|catch||TB_imageOff|fadeOut|fast|marginLeft|browser|msie|XMLHttpRequest|marginTop|continue|documentElement'.split('|'),0,{}))
5
  * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
  */
7
 
8
+ //Version 3.0.1 : alex.rabe : jQuery no colision mode, loading image
9
+ //Version 3.0.2 : alex.rabe : add external init for nextgen plugin
10
 
11
+ 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}('(8($){$(9).2k(8(){$.14(\'a.15, 2l.15, 2m.15\');1e=1f 1g();1e.M=2n});$.14=8 14(b){$(b).o(8(){6 t=N.O||N.1B||I;6 a=N.q||N.1C;6 g=N.1D||P;16(t,a,g);N.2o();J P})};8 16(d,f,g){2p{3(1h 9.r.K.1E==="1i"){$("r","L").p({z:"1F%",u:"1F%"});$("L").p("1G","2q");3(9.1H("1j")===I){$("r").A("<18 5=\'1j\'></18><4 5=\'E\'></4><4 5=\'7\'></4>");$("#E").o(B)}}n{3(9.1H("E")===I){$("r").A("<4 5=\'E\'></4><4 5=\'7\'>");$("#E").o(B)}}3(d===I){d=""}$("r").A("<4 5=\'F\'><1I M=\'"+1e.M+"\' /></4>");$(\'#F\').2r();6 h;3(f.W("?")!==-1){h=f.2s(0,f.W("?"))}n{h=f}6 i=/\\.1J|\\.1K|\\.1L|\\.1M|\\.1N/g;6 j=h.1O().1P(i);3(j==\'.1J\'||j==\'.1K\'||j==\'.1L\'||j==\'.1M\'||j==\'.1N\'){1k="";1l="";X="";1m="";1n="";Q="";1o="";1p=P;3(g){C=$("a[@1D="+g+"]").2t();1Q(v=0;((v<C.19)&&(Q===""));v++){6 k=C[v].q.1O().1P(i);3(!(C[v].q==f)){3(1p){1m=C[v].O;1n=C[v].q;Q="<1a 5=\'1R\'>&1b;&1b;<a q=\'#\'>2u &2v;</a></1a>"}n{1k=C[v].O;1l=C[v].q;X="<1a 5=\'1S\'>&1b;&1b;<a q=\'#\'>&2w; 2x</a></1a>"}}n{1p=1T;1o="1g "+(v+1)+" 2y "+(C.19)}}}R=1f 1g();R.1q=8(){R.1q=I;6 a=1U();6 x=a[0]-1V;6 y=a[1]-1V;6 b=R.u;6 c=R.z;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}}Y=b+30;1c=c+2z;$("#7").A("<a q=\'\' 5=\'1W\' O=\'1r\'><1I 5=\'2A\' M=\'"+f+"\' u=\'"+b+"\' z=\'"+c+"\' 1C=\'"+d+"\'/></a>"+"<4 5=\'2B\'>"+d+"<4 5=\'2C\'>"+1o+X+Q+"</4></4><4 5=\'2D\'><a q=\'#\' 5=\'S\' O=\'1r\'>1s</a> 1t 1u 1v</4>");$("#S").o(B);3(!(X==="")){8 Z(){3($(9).T("o",Z)){$(9).T("o",Z)}$("#7").D();$("r").A("<4 5=\'7\'></4>");16(1k,1l,g);J P}$("#1S").o(Z)}3(!(Q==="")){8 1w(){$("#7").D();$("r").A("<4 5=\'7\'></4>");16(1m,1n,g);J P}$("#1R").o(1w)}9.1d=8(e){3(e==I){G=1X.1x}n{G=e.1Y}3(G==27){B()}n 3(G==2E){3(!(Q=="")){9.1d="";1w()}}n 3(G==2F){3(!(X=="")){9.1d="";Z()}}};11();$("#F").D();$("#1W").o(B);$("#7").p({U:"V"})};R.M=f}n{6 l=f.1Z(/^[^\\?]+\\??/,\'\');6 m=20(l);Y=(m[\'u\']*1)+30||2G;1c=(m[\'z\']*1)+2H||2I;12=Y-30;13=1c-2J;3(f.W(\'21\')!=-1){22=f.1y(\'2K\');$("#7").A("<4 5=\'23\'><4 5=\'1z\'>"+d+"</4><4 5=\'24\'><a q=\'#\' 5=\'S\' O=\'1r\'>1s</a> 1t 1u 1v</4></4><18 2L=\'0\' 2M=\'0\' M=\'"+22[0]+"\' 5=\'1A\' 1B=\'1A\' K=\'u:"+(12+29)+"s;z:"+(13+17)+"s;\' 1q=\'25()\'> </18>")}n{3($("#7").p("U")!="V"){3(m[\'26\']!="1T"){$("#7").A("<4 5=\'23\'><4 5=\'1z\'>"+d+"</4><4 5=\'24\'><a q=\'#\' 5=\'S\'>1s</a> 1t 1u 1v</4></4><4 5=\'H\' K=\'u:"+12+"s;z:"+13+"s\'></4>")}n{$("#E").T();$("#7").A("<4 5=\'H\' 2N=\'2O\' K=\'u:"+12+"s;z:"+13+"s;\'></4>")}}n{$("#H")[0].K.u=12+"s";$("#H")[0].K.z=13+"s";$("#H")[0].2P=0;$("#1z").L(d)}}$("#S").o(B);3(f.W(\'2Q\')!=-1){$("#H").L($(\'#\'+m[\'2R\']).L());11();$("#F").D();$("#7").p({U:"V"})}n 3(f.W(\'21\')!=-1){11();3(2S[\'1A\']===1i){$("#F").D();$("#7").p({U:"V"});$(9).2T(8(e){6 a=e.1x;3(a==27){B()}})}}n{$("#H").2U(f+="&2V="+(1f 2W().2X()),8(){11();$("#F").D();$.14("#H a.15");$("#7").p({U:"V"})})}}3(!m[\'26\']){9.2Y=8(e){3(e==I){G=1X.1x}n{G=e.1Y}3(G==27){B()}}}}2Z(e){}}8 25(){$("#F").D();$("#7").p({U:"V"})}8 B(){$("#31").T("o");$("#E").T("o");$("#S").T("o");$("#7").32("33",8(){$(\'#7,#E,#1j\').D()});$("#F").D();3(1h 9.r.K.1E=="1i"){$("r","L").p({z:"28",u:"28"});$("L").p("1G","")}9.1d="";J P}8 11(){$("#7").p({34:\'-\'+2a((Y/2),10)+\'s\',u:Y+\'s\'});3(!(2b.35.36&&1h 37==\'8\')){$("#7").p({38:\'-\'+2a((1c/2),10)+\'s\'})}}8 20(a){6 b={};3(!a){J b}6 c=a.1y(/[;&]/);1Q(6 i=0;i<c.19;i++){6 d=c[i].1y(\'=\');3(!d||d.19!=2){39}6 e=2c(d[0]);6 f=2c(d[1]);f=f.1Z(/\\+/g,\' \');b[e]=f}J b}8 1U(){6 a=9.3a;6 w=2d.2e||2f.2e||(a&&a.2g)||9.r.2g;6 h=2d.2h||2f.2h||(a&&a.2i)||9.r.2i;2j=[w,h];J 2j}})(2b);',62,197,'|||if|div|id|var|TB_window|function|document||||||||||||||else|click|css|href|body|px||width|TB_Counter||||height|append|tb_remove|TB_TempArray|remove|TB_overlay|TB_load|keycode|TB_ajaxContent|null|return|style|html|src|this|title|false|TB_NextHTML|imgPreloader|TB_closeWindowButton|unbind|display|block|indexOf|TB_PrevHTML|TB_WIDTH|goPrev||tb_position|ajaxContentW|ajaxContentH|tb_init|thickbox|tb_show||iframe|length|span|nbsp|TB_HEIGHT|onkeydown|imgLoader|new|Image|typeof|undefined|TB_HideSelect|TB_PrevCaption|TB_PrevURL|TB_NextCaption|TB_NextURL|TB_imageCount|TB_FoundURL|onload|Close|close|or|Esc|Key|goNext|keyCode|split|TB_ajaxWindowTitle|TB_iframeContent|name|alt|rel|maxHeight|100|overflow|getElementById|img|jpg|jpeg|png|gif|bmp|toLowerCase|match|for|TB_next|TB_prev|true|tb_getPageSize|150|TB_ImageOff|event|which|replace|tb_parseQuery|TB_iframe|urlNoQuery|TB_title|TB_closeAjaxWindow|tb_showIframe|modal||auto||parseInt|jQuery|unescape|window|innerWidth|self|clientWidth|innerHeight|clientHeight|arrayPageSize|ready|area|input|tb_pathToImage|blur|try|hidden|show|substr|get|Next|gt|lt|Prev|of|60|TB_Image|TB_caption|TB_secondLine|TB_closeWindow|190|188|630|40|440|45|TB_|frameborder|hspace|class|TB_modal|scrollTop|TB_inline|inlineId|frames|keyup|load|random|Date|getTime|onkeyup|catch||TB_imageOff|fadeOut|fast|marginLeft|browser|msie|XMLHttpRequest|marginTop|continue|documentElement'.split('|'),0,{}))
thickbox/thickbox.js CHANGED
@@ -5,7 +5,8 @@
5
  * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
  */
7
 
8
- //Version 3.0.1 : alex.rabe : jQuery no colision mode, loading image
 
9
 
10
  // var tb_pathToImage = "images/loadingAnimation.gif";
11
 
@@ -17,13 +18,13 @@
17
 
18
  //on page load call tb_init
19
  $(document).ready(function(){
20
- tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
21
  imgLoader = new Image();// preload image
22
  imgLoader.src = tb_pathToImage;
23
  });
24
 
25
  //add thickbox to href & area elements that have a class of .thickbox
26
- function tb_init(domChunk){
27
  $(domChunk).click(function(){
28
  var t = this.title || this.name || null;
29
  var a = this.href || this.alt;
@@ -32,7 +33,7 @@ function tb_init(domChunk){
32
  this.blur();
33
  return false;
34
  });
35
- }
36
 
37
  function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
38
 
@@ -226,7 +227,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
226
  $("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
227
  tb_position();
228
  $("#TB_load").remove();
229
- tb_init("#TB_ajaxContent a.thickbox");
230
  $("#TB_window").css({display:"block"});
231
  });
232
  }
5
  * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
  */
7
 
8
+ //Version 3.0.1 : alex.rabe : jQuery no colision mode, loading image
9
+ //Version 3.0.2 : alex.rabe : add external init for nextgen plugin
10
 
11
  // var tb_pathToImage = "images/loadingAnimation.gif";
12
 
18
 
19
  //on page load call tb_init
20
  $(document).ready(function(){
21
+ $.tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
22
  imgLoader = new Image();// preload image
23
  imgLoader.src = tb_pathToImage;
24
  });
25
 
26
  //add thickbox to href & area elements that have a class of .thickbox
27
+ $.tb_init = function tb_init(domChunk){
28
  $(domChunk).click(function(){
29
  var t = this.title || this.name || null;
30
  var a = this.href || this.alt;
33
  this.blur();
34
  return false;
35
  });
36
+ };
37
 
38
  function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
39
 
227
  $("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
228
  tb_position();
229
  $("#TB_load").remove();
230
+ $.tb_init("#TB_ajaxContent a.thickbox");
231
  $("#TB_window").css({display:"block"});
232
  });
233
  }