Version Description
Download this release
Release Info
Developer | alexrabe |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 0.92 |
Comparing to | |
See all releases |
Code changes from version 0.91 to 0.92
- changelog.txt +5 -0
- css/Black_Minimalism.css +2 -2
- css/hovereffect.css +2 -2
- css/ngg_k2.css +2 -2
- css/ngg_shadow.css +2 -2
- css/ngg_shadow2.css +2 -2
- css/nggallery.css +2 -2
- imagerotator.swf +0 -0
- lib/nggmeta.lib.php +3 -1
- lib/thumbnail.inc.php +3 -3
- nggallery.php +6 -10
changelog.txt
CHANGED
@@ -1,6 +1,11 @@
|
|
1 |
NextGEN Gallery
|
2 |
by Alex Rabe & NextGEN DEV Team
|
3 |
|
|
|
|
|
|
|
|
|
|
|
4 |
V0.91 - 24.03.2008
|
5 |
- Changed : Resample mode back to 3
|
6 |
- Changed : Add DIV "ngg-singlepic-wrapper" for SingelPic (THX to Travel-Junkie)
|
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
|
7 |
+
- Added : Read EXIF field ImageDescription
|
8 |
+
|
9 |
V0.91 - 24.03.2008
|
10 |
- Changed : Resample mode back to 3
|
11 |
- Changed : Add DIV "ngg-singlepic-wrapper" for SingelPic (THX to Travel-Junkie)
|
css/Black_Minimalism.css
CHANGED
@@ -249,8 +249,8 @@ it's only a template design
|
|
249 |
}
|
250 |
|
251 |
.ngg-center img {
|
252 |
-
margin-left: auto;
|
253 |
-
margin-right: auto;
|
254 |
}
|
255 |
|
256 |
/* ----------- Sidebar widget -------------*/
|
249 |
}
|
250 |
|
251 |
.ngg-center img {
|
252 |
+
margin-left: auto !important;
|
253 |
+
margin-right: auto !important;
|
254 |
}
|
255 |
|
256 |
/* ----------- Sidebar widget -------------*/
|
css/hovereffect.css
CHANGED
@@ -298,8 +298,8 @@ This is a template stylesheet which doesn't support description below the thumbn
|
|
298 |
}
|
299 |
|
300 |
.ngg-center img {
|
301 |
-
margin-left: auto;
|
302 |
-
margin-right: auto;
|
303 |
}
|
304 |
|
305 |
/* ----------- Sidebar widget -------------*/
|
298 |
}
|
299 |
|
300 |
.ngg-center img {
|
301 |
+
margin-left: auto !important;
|
302 |
+
margin-right: auto !important;
|
303 |
}
|
304 |
|
305 |
/* ----------- Sidebar widget -------------*/
|
css/ngg_k2.css
CHANGED
@@ -254,8 +254,8 @@ it's only a template design
|
|
254 |
}
|
255 |
|
256 |
.ngg-center img {
|
257 |
-
margin-left: auto;
|
258 |
-
margin-right: auto;
|
259 |
}
|
260 |
|
261 |
/* ----------- Sidebar widget -------------*/
|
254 |
}
|
255 |
|
256 |
.ngg-center img {
|
257 |
+
margin-left: auto !important;
|
258 |
+
margin-right: auto !important;
|
259 |
}
|
260 |
|
261 |
/* ----------- Sidebar widget -------------*/
|
css/ngg_shadow.css
CHANGED
@@ -243,8 +243,8 @@ it's only a template design
|
|
243 |
}
|
244 |
|
245 |
.ngg-center img {
|
246 |
-
margin-left: auto;
|
247 |
-
margin-right: auto;
|
248 |
}
|
249 |
|
250 |
/* ----------- Sidebar widget -------------*/
|
243 |
}
|
244 |
|
245 |
.ngg-center img {
|
246 |
+
margin-left: auto !important;
|
247 |
+
margin-right: auto !important;
|
248 |
}
|
249 |
|
250 |
/* ----------- Sidebar widget -------------*/
|
css/ngg_shadow2.css
CHANGED
@@ -251,8 +251,8 @@ it's only a template design
|
|
251 |
}
|
252 |
|
253 |
.ngg-center img {
|
254 |
-
margin-left: auto;
|
255 |
-
margin-right: auto;
|
256 |
}
|
257 |
|
258 |
/* ----------- Sidebar widget -------------*/
|
251 |
}
|
252 |
|
253 |
.ngg-center img {
|
254 |
+
margin-left: auto !important;
|
255 |
+
margin-right: auto !important;
|
256 |
}
|
257 |
|
258 |
/* ----------- Sidebar widget -------------*/
|
css/nggallery.css
CHANGED
@@ -256,8 +256,8 @@ it's only a template design
|
|
256 |
}
|
257 |
|
258 |
.ngg-center img {
|
259 |
-
margin-left: auto;
|
260 |
-
margin-right: auto;
|
261 |
}
|
262 |
|
263 |
/* ----------- Sidebar widget -------------*/
|
256 |
}
|
257 |
|
258 |
.ngg-center img {
|
259 |
+
margin-left: auto !important;
|
260 |
+
margin-right: auto !important;
|
261 |
}
|
262 |
|
263 |
/* ----------- Sidebar widget -------------*/
|
imagerotator.swf
ADDED
Binary file
|
lib/nggmeta.lib.php
CHANGED
@@ -95,11 +95,13 @@ class nggMeta{
|
|
95 |
$meta['camera'] = $exif['Model'];
|
96 |
if (!empty($exif['Make']))
|
97 |
$meta['make'] = $exif['Make'];
|
|
|
|
|
98 |
|
99 |
// this is done by Windows
|
100 |
$exif = $this->exif_data['WINXP'];
|
101 |
|
102 |
-
if (!empty($exif['Title']))
|
103 |
$meta['title'] = utf8_encode($exif['Title']);
|
104 |
if (!empty($exif['Author']))
|
105 |
$meta['author'] = utf8_encode($exif['Author']);
|
95 |
$meta['camera'] = $exif['Model'];
|
96 |
if (!empty($exif['Make']))
|
97 |
$meta['make'] = $exif['Make'];
|
98 |
+
if (!empty($exif['ImageDescription']))
|
99 |
+
$meta['title'] = utf8_encode($exif['ImageDescription']);
|
100 |
|
101 |
// this is done by Windows
|
102 |
$exif = $this->exif_data['WINXP'];
|
103 |
|
104 |
+
if (!empty($exif['Title']) && empty($meta['title']))
|
105 |
$meta['title'] = utf8_encode($exif['Title']);
|
106 |
if (!empty($exif['Author']))
|
107 |
$meta['author'] = utf8_encode($exif['Author']);
|
lib/thumbnail.inc.php
CHANGED
@@ -165,7 +165,7 @@ class ngg_Thumbnail {
|
|
165 |
}
|
166 |
|
167 |
// increase memory-limit if possible, GD needs this for large images
|
168 |
-
@ini_set('memory_limit', '128M');
|
169 |
|
170 |
if($this->error == false) {
|
171 |
// Check memory consumption if file exists
|
@@ -816,8 +816,8 @@ class ngg_Thumbnail {
|
|
816 |
// This function requires both the GD library and the FreeType library.
|
817 |
if ( !function_exists(ImageTTFBBox) )
|
818 |
return;
|
819 |
-
|
820 |
-
$TextSize = ImageTTFBBox($wmSize, 0, $wmFontPath, $this->watermarkText);
|
821 |
$TextWidth = abs($TextSize[2]) + abs($TextSize[0]);
|
822 |
$TextHeight = abs($TextSize[7]) + abs($TextSize[1]);
|
823 |
// Create Image for Text
|
165 |
}
|
166 |
|
167 |
// increase memory-limit if possible, GD needs this for large images
|
168 |
+
// @ini_set('memory_limit', '128M');
|
169 |
|
170 |
if($this->error == false) {
|
171 |
// Check memory consumption if file exists
|
816 |
// This function requires both the GD library and the FreeType library.
|
817 |
if ( !function_exists(ImageTTFBBox) )
|
818 |
return;
|
819 |
+
|
820 |
+
$TextSize = @ImageTTFBBox($wmSize, 0, $wmFontPath, $this->watermarkText) or die;
|
821 |
$TextWidth = abs($TextSize[2]) + abs($TextSize[0]);
|
822 |
$TextHeight = abs($TextSize[7]) + abs($TextSize[1]);
|
823 |
// Create Image for Text
|
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.
|
8 |
|
9 |
Author URI: http://alexrabe.boelinger.com/
|
10 |
|
@@ -55,7 +55,7 @@ if ( (IS_WP21_COMPATIBLE == FALSE) and (IS_WPMU != TRUE) ){
|
|
55 |
}
|
56 |
|
57 |
// Version and path to check version
|
58 |
-
define('NGGVERSION', "0.
|
59 |
// Minimum required database version
|
60 |
define('NGG_DBVERSION', "0.84");
|
61 |
define('NGGURL', "http://nextgen.boelinger.com/version.php");
|
@@ -117,15 +117,11 @@ if (is_admin()) {
|
|
117 |
// Load the gallery generator
|
118 |
include_once (dirname (__FILE__)."/nggfunctions.php");
|
119 |
|
120 |
-
// required in WP 2.5, NextGEN should have higher priority
|
121 |
-
if (IS_WP25) {
|
122 |
-
remove_filter('the_content', 'do_shortcode');
|
123 |
-
add_filter('the_content', 'do_shortcode', 20);
|
124 |
-
}
|
125 |
-
|
126 |
// Action calls for all functions
|
127 |
-
|
128 |
-
|
|
|
|
|
129 |
}
|
130 |
|
131 |
// 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.92
|
8 |
|
9 |
Author URI: http://alexrabe.boelinger.com/
|
10 |
|
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 |
// 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
|