NextGEN Gallery – WordPress Gallery Plugin - Version 0.93

Version Description

Download this release

Release Info

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

Code changes from version 0.92 to 0.93

admin/css/jquery.ui.tabs.css CHANGED
@@ -49,7 +49,6 @@
49
  .ui-tabs-nav a, .ui-tabs-nav a span {
50
  display: block;
51
  padding: 0 10px;
52
- background: url(tab.png) no-repeat;
53
  }
54
 
55
  .ui-tabs-nav a {
49
  .ui-tabs-nav a, .ui-tabs-nav a span {
50
  display: block;
51
  padding: 0 10px;
 
52
  }
53
 
54
  .ui-tabs-nav a {
admin/style.php CHANGED
@@ -86,7 +86,7 @@ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="up
86
  </form>
87
  </div>
88
 
89
- <? if (!IS_WPMU || wpmu_site_admin() ) { ?>
90
  <div class="wrap">
91
  <?php
92
  if ( is_writeable($real_file) ) {
86
  </form>
87
  </div>
88
 
89
+ <?php if (!IS_WPMU || wpmu_site_admin() ) { ?>
90
  <div class="wrap">
91
  <?php
92
  if ( is_writeable($real_file) ) {
admin/wp25/about.php CHANGED
@@ -97,7 +97,11 @@ function ngg_list_contributors() {
97
  "aleX Zhang (Chinese Translation)" => "http://zhangfei.info/",
98
  "TheSoloist (Chinese Translation)" => "http://www.soloist-ic.cn/",
99
  "Nica Luigi Cristian (Romanian Translation)" => "http://www.cristiannica.com/",
100
- "Zdenek Hatas (Czech Translation)" => ""
 
 
 
 
101
  );
102
 
103
  ksort($contributors);
@@ -189,9 +193,17 @@ function ngg_list_support() {
189
  "Christoph Wander" => "",
190
  "Monterey Bay Singles LLC" => "",
191
  "Elvina Flower" => "",
192
- "Colossal Pups" => ""
 
 
 
 
 
 
 
 
 
193
  );
194
-
195
 
196
  ksort($supporter);
197
  $i = count($supporter);
97
  "aleX Zhang (Chinese Translation)" => "http://zhangfei.info/",
98
  "TheSoloist (Chinese Translation)" => "http://www.soloist-ic.cn/",
99
  "Nica Luigi Cristian (Romanian Translation)" => "http://www.cristiannica.com/",
100
+ "Zdenek Hatas (Czech Translation)" => "",
101
+ "David Potter (Documentation and Help)" => "http://dpotter.net/",
102
+ "Carlale Chen (Chinese Translation)" => "http://0-o-0.cc/",
103
+ "Nica Luigi Cristian (Romanian Translation)" => "http://www.cristiannica.com/",
104
+ "Igor Shevkoplyas (Russian Translation)" => "http://www.russian-translation-matters.com"
105
  );
106
 
107
  ksort($contributors);
193
  "Christoph Wander" => "",
194
  "Monterey Bay Singles LLC" => "",
195
  "Elvina Flower" => "",
196
+ "Colossal Pups" => "",
197
+ "Florian Seuret" => "",
198
+ "Petri Teittinen" => "",
199
+ "Deval Shah" => "http://www.LuvPix.net ",
200
+ "Simply Charlotte Mason, LLC" => "",
201
+ "John Williams" => "",
202
+ "George Branchflower" => "",
203
+ "Douglas J Barnum" => "",
204
+ "Bradford Weir" => "http://www.bweir.com",
205
+ "Almost Anything Desktop Publishing" => "http://www.almost-anything.com.au/"
206
  );
 
207
 
208
  ksort($supporter);
209
  $i = count($supporter);
admin/wp25/addgallery.php CHANGED
@@ -74,17 +74,6 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
74
  update_option('ngg_options', $ngg_options);
75
  }
76
 
77
- //get maximum allowable size from php.ini
78
- //thx to Whoismanu PhotoQ / M.Flury
79
- $max_upl_size = strtolower( ini_get( 'upload_max_filesize' ) );
80
- $max_upl_kbytes = 0;
81
- if (strpos($max_upl_size, 'k') !== false)
82
- $max_upl_kbytes = $max_upl_size;
83
- if (strpos($max_upl_size, 'm') !== false)
84
- $max_upl_kbytes = $max_upl_size * 1024;
85
- if (strpos($max_upl_size, 'g') !== false)
86
- $max_upl_kbytes = $max_upl_size * 1024 * 1024;
87
-
88
  // message windows
89
  if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
90
  ?>
74
  update_option('ngg_options', $ngg_options);
75
  }
76
 
 
 
 
 
 
 
 
 
 
 
 
77
  // message windows
78
  if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
79
  ?>
admin/wp25/media-upload.php CHANGED
@@ -22,13 +22,20 @@ function media_upload_nextgen() {
22
  $keys = array_keys($_POST['send']);
23
  $send_id = (int) array_shift($keys);
24
  $image = $_POST['image'][$send_id];
25
- $alttext = stripslashes($image['alttext']);
26
- $description = stripslashes($image['description']);
 
 
27
  $thumbcode = nggallery::get_thumbcode("");
28
  $class="ngg-singlepic ngg-{$image['align']}";
29
  // Build output
30
- $html = "<img src='{$image['thumb']}' alt='$alttext' class='$class' />";
31
- $html = "<a $thumbcode href='{$image['url']}' title='$description'>$html</a>";
 
 
 
 
 
32
  media_upload_nextgen_save_image();
33
  // Return it to TinyMCE
34
  return media_send_to_editor($html);
@@ -163,10 +170,10 @@ function media_upload_nextgen_form($errors) {
163
  <img class='pinkynail toggle' alt='<?php echo stripslashes($picture->alttext) ?>' src='<?php echo $picture->thumbPath ?>' />
164
  <a class='toggle describe-toggle-on' href='#'><?php _e('Show',"nggallery") ?></a>
165
  <a class='toggle describe-toggle-off' href='#'><?php _e('Hide',"nggallery") ?></a>
166
- <div class='filename new'><?php echo $picture->filename ?></div>
167
  <table class='slidetoggle describe startclosed'><tbody>
168
  <tr>
169
- <td class='A1B1' rowspan='4'><img class='thumbnail' alt='<?php echo $picture->alttext ?>' src='<?php echo $picture->thumbPath ?>'/></td>
170
  <td><?php _e('Image ID:',"nggallery") ?><?php echo $picid ?></td>
171
  </tr>
172
  <tr><td><?php echo $picture->filename ?></td></tr>
@@ -180,19 +187,31 @@ function media_upload_nextgen_form($errors) {
180
  <td class="label"><label for="image[<?php echo $picid ?>][description]"><?php _e("Description","nggallery") ?></label></td>
181
  <td class="field"><textarea name="image[<?php echo $picid ?>][description]" id="image[<?php echo $picid ?>][description]"><?php echo stripslashes($picture->description) ?></textarea></td>
182
  </tr>
183
- <tr class="align">
184
- <td class="label"><label for="image[<?php echo $picid ?>][align]"><?php _e("Alignment") ?></label></td>
185
- <td class="field">
186
- <input name="image[<?php echo $picid ?>][align]" id="image-align-none-<?php echo $picid ?>" value="none" type="radio" />
187
- <label for="image-align-none-<?php echo $picid ?>" class="align image-align-none-label"><?php _e("None") ?></label>
188
- <input name="image[<?php echo $picid ?>][align]" id="image-align-left-<?php echo $picid ?>" value="left" type="radio" />
189
- <label for="image-align-left-<?php echo $picid ?>" class="align image-align-left-label"><?php _e("Left") ?></label>
190
- <input name="image[<?php echo $picid ?>][align]" id="image-align-center-<?php echo $picid ?>" value="center" type="radio" />
191
- <label for="image-align-center-<?php echo $picid ?>" class="align image-align-center-label"><?php _e("Center") ?></label>
192
- <input name="image[<?php echo $picid ?>][align]" id="image-align-right-<?php echo $picid ?>" value="right" type="radio" />
193
- <label for="image-align-right-<?php echo $picid ?>" class="align image-align-right-label"><?php _e("Right") ?></label>
194
- </td>
195
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
196
  <tr class="submit">
197
  <td>
198
  <input type="hidden" name="image[<?php echo $picid ?>][thumb]" value="<?php echo $picture->thumbPath ?>" />
22
  $keys = array_keys($_POST['send']);
23
  $send_id = (int) array_shift($keys);
24
  $image = $_POST['image'][$send_id];
25
+ $alttext = stripslashes( htmlspecialchars ($image['alttext'], ENT_QUOTES));
26
+ $description = stripslashes (htmlspecialchars($image['description'], ENT_QUOTES));
27
+ // here is no new line allowed
28
+ $clean_description = preg_replace("/\n|\r\n|\r$/", " ", $description);
29
  $thumbcode = nggallery::get_thumbcode("");
30
  $class="ngg-singlepic ngg-{$image['align']}";
31
  // Build output
32
+ if ($image['size'] == "thumbnail")
33
+ $html = "<img src='{$image['thumb']}' alt='$alttext' class='$class' />";
34
+ if ($image['size'] == "full")
35
+ $html = "<img src='{$image['url']}' alt='$alttext' class='$class' />";
36
+ $html = "<a $thumbcode href='{$image['url']}' title='$clean_description'>$html</a>";
37
+ if ($image['size'] == "singlepic")
38
+ $html = "[singlepic=$send_id,320,240,,{$image['align']}]";
39
  media_upload_nextgen_save_image();
40
  // Return it to TinyMCE
41
  return media_send_to_editor($html);
170
  <img class='pinkynail toggle' alt='<?php echo stripslashes($picture->alttext) ?>' src='<?php echo $picture->thumbPath ?>' />
171
  <a class='toggle describe-toggle-on' href='#'><?php _e('Show',"nggallery") ?></a>
172
  <a class='toggle describe-toggle-off' href='#'><?php _e('Hide',"nggallery") ?></a>
173
+ <div class='filename new'><?php echo ( empty($picture->alttext) ) ? $picture->filename : stripslashes($picture->alttext); ?></div>
174
  <table class='slidetoggle describe startclosed'><tbody>
175
  <tr>
176
+ <td rowspan='4'><img class='thumbnail' alt='<?php echo $picture->alttext ?>' src='<?php echo $picture->thumbPath ?>'/></td>
177
  <td><?php _e('Image ID:',"nggallery") ?><?php echo $picid ?></td>
178
  </tr>
179
  <tr><td><?php echo $picture->filename ?></td></tr>
187
  <td class="label"><label for="image[<?php echo $picid ?>][description]"><?php _e("Description","nggallery") ?></label></td>
188
  <td class="field"><textarea name="image[<?php echo $picid ?>][description]" id="image[<?php echo $picid ?>][description]"><?php echo stripslashes($picture->description) ?></textarea></td>
189
  </tr>
190
+ <tr class="align">
191
+ <td class="label"><label for="image[<?php echo $picid ?>][align]"><?php _e("Alignment") ?></label></td>
192
+ <td class="field">
193
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-none-<?php echo $picid ?>" checked="checked" value="none" type="radio" />
194
+ <label for="image-align-none-<?php echo $picid ?>" class="align image-align-none-label"><?php _e("None") ?></label>
195
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-left-<?php echo $picid ?>" value="left" type="radio" />
196
+ <label for="image-align-left-<?php echo $picid ?>" class="align image-align-left-label"><?php _e("Left") ?></label>
197
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-center-<?php echo $picid ?>" value="center" type="radio" />
198
+ <label for="image-align-center-<?php echo $picid ?>" class="align image-align-center-label"><?php _e("Center") ?></label>
199
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-right-<?php echo $picid ?>" value="right" type="radio" />
200
+ <label for="image-align-right-<?php echo $picid ?>" class="align image-align-right-label"><?php _e("Right") ?></label>
201
+ </td>
202
+ </tr>
203
+ <tr class="image-size">
204
+ <th class="label"><label for="image[<?php echo $picid ?>][size]"><span class="alignleft"><?php _e("Size") ?></span></label>
205
+ </th>
206
+ <td class="field">
207
+ <input name="image[<?php echo $picid ?>][size]" id="image-size-thumb-<?php echo $picid ?>" type="radio" checked="checked" value="thumbnail" />
208
+ <label for="image-size-thumb-<?php echo $picid ?>"><?php _e("Thumbnail") ?></label>
209
+ <input name="image[<?php echo $picid ?>][size]" id="image-size-full-<?php echo $picid ?>" type="radio" value="full" />
210
+ <label for="image-size-full-<?php echo $picid ?>"><?php _e("Full size") ?></label>
211
+ <input name="image[<?php echo $picid ?>][size]" id="image-size-singlepic-<?php echo $picid ?>" type="radio" value="singlepic" />
212
+ <label for="image-size-singlepic-<?php echo $picid ?>"><?php _e("Singlepic", "nggallery") ?></label>
213
+ </td>
214
+ </tr>
215
  <tr class="submit">
216
  <td>
217
  <input type="hidden" name="image[<?php echo $picid ?>][thumb]" value="<?php echo $picture->thumbPath ?>" />
admin/wp25/setup.php CHANGED
@@ -8,8 +8,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
8
  check_admin_referer('ngg_uninstall');
9
 
10
  ngg_default_options();
11
-
12
- $messagetext = '<font color="green">'.__('Reset all settings to default parameter','nggallery').'</font>';
13
  }
14
 
15
  if (isset($_POST['uninstall'])) {
@@ -34,12 +33,9 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
34
  ngg_remove_capability("NextGEN Change style");
35
  ngg_remove_capability("NextGEN Change options");
36
 
37
- $messagetext = '<font color="green">'.__('Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !','nggallery').'</font>';
38
  }
39
 
40
- // message windows
41
- if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
42
-
43
  ?>
44
 
45
  <div class="wrap">
@@ -55,16 +51,16 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
55
  <h2><?php _e('Uninstall plugin tables', 'nggallery') ;?></h2>
56
 
57
  <form name="resetsettings" method="post">
58
- <div class="tablenav">
59
  <?php wp_nonce_field('ngg_uninstall') ?>
60
  <p><?php _e('You don\'t like NextGEN Gallery ?', 'nggallery') ;?></p>
61
  <p><?php _e('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. ', 'nggallery') ;?>
62
- </div>
63
- <p><font color="red"><strong><?php _e('WARNING:', 'nggallery') ;?></strong><br />
64
- <?php _e('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', 'nggallery') ;?> <strong><?php echo $wpdb->nggpictures; ?></strong>, <strong><?php echo $wpdb->nggalbum; ?></strong>, <strong><?php echo $wpdb->nggtags; ?></strong>, <strong><?php echo $wpdb->nggpic2tags; ?></strong> <?php _e('and', 'nggallery') ;?> <strong><?php echo $wpdb->nggalbum; ?></strong>.</font></p>
65
- <div align="center">
66
  <input type="submit" name="uninstall" class="button delete" value="<?php _e('Uninstall plugin', 'nggallery') ?>" onclick="javascript:check=confirm('<?php _e('You are about to Uninstall this plugin from WordPress.\nThis action is not reversible.\n\nChoose [Cancel] to Stop, [OK] to Uninstall.\n','nggallery'); ?>');if(check==false) return false;"/>
67
- </div>
68
  </form>
69
  </div>
70
  <?php endif; ?>
8
  check_admin_referer('ngg_uninstall');
9
 
10
  ngg_default_options();
11
+ nggallery::show_message(__('Reset all settings to default parameter','nggallery'));
 
12
  }
13
 
14
  if (isset($_POST['uninstall'])) {
33
  ngg_remove_capability("NextGEN Change style");
34
  ngg_remove_capability("NextGEN Change options");
35
 
36
+ nggallery::show_message(__('Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !','nggallery'));
37
  }
38
 
 
 
 
39
  ?>
40
 
41
  <div class="wrap">
51
  <h2><?php _e('Uninstall plugin tables', 'nggallery') ;?></h2>
52
 
53
  <form name="resetsettings" method="post">
54
+ <div>
55
  <?php wp_nonce_field('ngg_uninstall') ?>
56
  <p><?php _e('You don\'t like NextGEN Gallery ?', 'nggallery') ;?></p>
57
  <p><?php _e('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. ', 'nggallery') ;?>
58
+ </div>
59
+ <p><font color="red"><strong><?php _e('WARNING:', 'nggallery') ;?></strong><br />
60
+ <?php _e('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', 'nggallery') ;?> <strong><?php echo $wpdb->nggpictures; ?></strong>, <strong><?php echo $wpdb->nggalbum; ?></strong>, <strong><?php echo $wpdb->nggtags; ?></strong>, <strong><?php echo $wpdb->nggpic2tags; ?></strong> <?php _e('and', 'nggallery') ;?> <strong><?php echo $wpdb->nggalbum; ?></strong>.</font></p>
61
+ <div align="center">
62
  <input type="submit" name="uninstall" class="button delete" value="<?php _e('Uninstall plugin', 'nggallery') ?>" onclick="javascript:check=confirm('<?php _e('You are about to Uninstall this plugin from WordPress.\nThis action is not reversible.\n\nChoose [Cancel] to Stop, [OK] to Uninstall.\n','nggallery'); ?>');if(check==false) return false;"/>
63
+ </div>
64
  </form>
65
  </div>
66
  <?php endif; ?>
admin/wp25/style.php CHANGED
@@ -90,7 +90,7 @@ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="up
90
  </div>
91
  <br style="clear: both;"/>
92
 
93
- <? if (!IS_WPMU || wpmu_site_admin() ) { ?>
94
  <div class="tablenav" style="margin-right: 210px;">
95
  <?php
96
  if ( is_writeable($real_file) ) {
90
  </div>
91
  <br style="clear: both;"/>
92
 
93
+ <?php if (!IS_WPMU || wpmu_site_admin() ) { ?>
94
  <div class="tablenav" style="margin-right: 210px;">
95
  <?php
96
  if ( is_writeable($real_file) ) {
changelog.txt CHANGED
@@ -1,6 +1,16 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
 
 
 
 
 
 
 
 
 
 
4
  V0.92 - 30.03.2008
5
  - Changed : Higher priority for filter in WP2.5 final
6
  - Changed : Do not increase memory_limit with ini_set
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ V0.93 - 12.04.2008
5
+ - Added : Select Full-Size or Singlepic in Media Upload
6
+ - Added : Check for minimum 8 MB Memory
7
+ - Changed : Priority from wpautop must be before gallery
8
+ - Bugfix : Added Screencolor to Widgets
9
+ - Bugfix : Clean CSS class in setup.php
10
+ - Bugfix : Change PHP short tag (Thx to Archedition)
11
+ - Bugfix : Remove tab.png from CSS (Thx to Frisco)
12
+ - Bugfix : Remove newline and encode quotes in Media-Upload (THX to Trip Mellinger)
13
+
14
  V0.92 - 30.03.2008
15
  - Changed : Higher priority for filter in WP2.5 final
16
  - Changed : Do not increase memory_limit with ini_set
css/nggallery.css CHANGED
@@ -2,7 +2,7 @@
2
  CSS Name: Default Styles
3
  Description: NextGEN Default Gallery Stylesheet
4
  Author: Alex Rabe
5
- Version: 1.42
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,
@@ -20,7 +20,22 @@ it's only a template design
20
  }
21
 
22
  .ngg-album {
23
- /*height: 130px;*/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  overflow: hidden;
25
  padding: 5px;
26
  margin-bottom: 5px;
2
  CSS Name: Default Styles
3
  Description: NextGEN Default Gallery Stylesheet
4
  Author: Alex Rabe
5
+ Version: 1.43
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,
20
  }
21
 
22
  .ngg-album {
23
+ height: 100%;
24
+ padding: 5px;
25
+ margin-bottom: 5px;
26
+ border: 1px solid #fff;
27
+ }
28
+
29
+ /* IE6 will ignore this , again I hate IE6 */
30
+ /* See also http://www.sitepoint.com/article/browser-specific-css-hacks */
31
+ html>body .ngg-album {
32
+ overflow:hidden;
33
+ padding: 5px;
34
+ margin-bottom: 5px;
35
+ border: 1px solid #fff;
36
+ }
37
+
38
+ .ngg-album {
39
  overflow: hidden;
40
  padding: 5px;
41
  margin-bottom: 5px;
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.92
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
@@ -54,8 +54,15 @@ if ( (IS_WP21_COMPATIBLE == FALSE) and (IS_WPMU != TRUE) ){
54
  return;
55
  }
56
 
 
 
 
 
 
 
 
57
  // Version and path to check version
58
- define('NGGVERSION', "0.92");
59
  // Minimum required database version
60
  define('NGG_DBVERSION', "0.84");
61
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
@@ -117,11 +124,17 @@ if (is_admin()) {
117
  // Load the gallery generator
118
  include_once (dirname (__FILE__)."/nggfunctions.php");
119
 
 
 
 
 
 
 
120
  // Action calls for all functions
121
  // required in WP 2.5, NextGEN should have higher priority than 9
122
  // see also http://trac.wordpress.org/ticket/6436
123
- add_filter('the_content', 'searchnggallerytags', 6);
124
- add_filter('the_excerpt', 'searchnggallerytags', 6);
125
  }
126
 
127
  // Load tinymce button
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.93
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
54
  return;
55
  }
56
 
57
+ $memory_limit = (int) substr( ini_get('memory_limit'), 0, -1);
58
+ //This works only with enough memory, 8MB is silly, wordpress requires already 7.9999
59
+ if ( ($memory_limit != 0) && ($memory_limit < 12 ) ) {
60
+ add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade"><p><strong>' . __('Sorry, NextGEN Gallery works only with a Memory Limit of 16 MB higher',"nggallery") . '</strong></p></div>\';'));
61
+ return;
62
+ }
63
+
64
  // Version and path to check version
65
+ define('NGGVERSION', "0.93");
66
  // Minimum required database version
67
  define('NGG_DBVERSION', "0.84");
68
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
124
  // Load the gallery generator
125
  include_once (dirname (__FILE__)."/nggfunctions.php");
126
 
127
+ // avoid wpautop() in gallery output
128
+ remove_filter('the_content', 'wpautop');
129
+ remove_filter('the_excerpt', 'wpautop');
130
+ add_filter('the_content', 'wpautop',7);
131
+ add_filter('the_excerpt', 'wpautop',7);
132
+
133
  // Action calls for all functions
134
  // required in WP 2.5, NextGEN should have higher priority than 9
135
  // see also http://trac.wordpress.org/ticket/6436
136
+ add_filter('the_content', 'searchnggallerytags', 8);
137
+ add_filter('the_excerpt', 'searchnggallerytags', 8);
138
  }
139
 
140
  // Load tinymce button
nggwidget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: NextGEN Gallery Widget
4
  Description: Adds a sidebar widget support to your NextGEN Gallery
5
  Author: NextGEN DEV-Team
6
- Version: 1.21
7
  Author URI: http://alexrabe.boelinger.com/
8
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
9
 
@@ -56,6 +56,7 @@ function nggSlideshowWidget($galleryID,$irWidth,$irHeight) {
56
  $out .= "\n\t\t".'sbsl.addVariable("backcolor", "0x'.$ngg_options['irBackcolor'].'");';
57
  $out .= "\n\t\t".'sbsl.addVariable("frontcolor", "0x'.$ngg_options['irFrontcolor'].'");';
58
  $out .= "\n\t\t".'sbsl.addVariable("lightcolor", "0x'.$ngg_options['irLightcolor'].'");';
 
59
  $out .= "\n\t\t".'sbsl.addVariable("rotatetime", "'.$ngg_options['irRotatetime'].'");';
60
  $out .= "\n\t\t".'sbsl.addVariable("transition", "'.$ngg_options['irTransition'].'");';
61
  $out .= "\n\t\t".'sbsl.addVariable("width", "'.$irWidth.'");';
3
  Plugin Name: NextGEN Gallery Widget
4
  Description: Adds a sidebar widget support to your NextGEN Gallery
5
  Author: NextGEN DEV-Team
6
+ Version: 1.22
7
  Author URI: http://alexrabe.boelinger.com/
8
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
9
 
56
  $out .= "\n\t\t".'sbsl.addVariable("backcolor", "0x'.$ngg_options['irBackcolor'].'");';
57
  $out .= "\n\t\t".'sbsl.addVariable("frontcolor", "0x'.$ngg_options['irFrontcolor'].'");';
58
  $out .= "\n\t\t".'sbsl.addVariable("lightcolor", "0x'.$ngg_options['irLightcolor'].'");';
59
+ if (!empty($ngg_options['irScreencolor'])) $out .= "\n\t\t".'sbsl.addVariable("screencolor", "0x'.$ngg_options['irScreencolor'].'");';
60
  $out .= "\n\t\t".'sbsl.addVariable("rotatetime", "'.$ngg_options['irRotatetime'].'");';
61
  $out .= "\n\t\t".'sbsl.addVariable("transition", "'.$ngg_options['irTransition'].'");';
62
  $out .= "\n\t\t".'sbsl.addVariable("width", "'.$irWidth.'");';