Version Description
Download this release
Release Info
Developer | alexrabe |
Plugin | NextGEN Gallery – WordPress Gallery Plugin |
Version | 0.97 |
Comparing to | |
See all releases |
Code changes from version 0.96 to 0.97
- admin/wp25/media-upload.php +3 -1
- admin/wp25/showmeta.php +12 -1
- admin/wp25/upload.php +20 -3
- changelog.txt +6 -0
- css/hovereffect.css +1 -1
- css/ngg_dkret3.css +1 -1
- css/ngg_k2.css +1 -1
- css/ngg_shadow.css +1 -1
- css/ngg_shadow2.css +1 -1
- css/nggallery.css +1 -5
- lib/nggallery.lib.php +3 -1
- nggallery.php +22 -8
- nggextractXML.php +11 -4
- nggfunctions.php +11 -10
- nggwidget.php +5 -2
- readme.txt +1 -1
- tinymce3/window.php +12 -6
admin/wp25/media-upload.php
CHANGED
@@ -50,7 +50,9 @@ function media_upload_nextgen() {
|
|
50 |
}
|
51 |
|
52 |
add_action('media_upload_nextgen', 'media_upload_nextgen');
|
53 |
-
|
|
|
|
|
54 |
|
55 |
function media_upload_nextgen_save_image() {
|
56 |
|
50 |
}
|
51 |
|
52 |
add_action('media_upload_nextgen', 'media_upload_nextgen');
|
53 |
+
// not longer needed for wp2.6
|
54 |
+
if ( !function_exists('wp_enqueue_style') )
|
55 |
+
add_action('admin_head_media_upload_nextgen_form', 'media_admin_css');
|
56 |
|
57 |
function media_upload_nextgen_save_image() {
|
58 |
|
admin/wp25/showmeta.php
CHANGED
@@ -1,6 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
require_once(NGGALLERY_ABSPATH.'/lib/nggmeta.lib.php');
|
5 |
|
6 |
if ( !is_user_logged_in() )
|
1 |
<?php
|
2 |
|
3 |
+
$root = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
|
4 |
+
|
5 |
+
if (file_exists($root.'/wp-load.php')) {
|
6 |
+
// WP 2.6
|
7 |
+
require_once($root.'/wp-load.php');
|
8 |
+
} else {
|
9 |
+
// Before 2.6
|
10 |
+
if (!file_exists($root.'/wp-config.php'))
|
11 |
+
die; // stop when wp-config is not there
|
12 |
+
require_once($root.'/wp-config.php');
|
13 |
+
}
|
14 |
+
|
15 |
require_once(NGGALLERY_ABSPATH.'/lib/nggmeta.lib.php');
|
16 |
|
17 |
if ( !is_user_logged_in() )
|
admin/wp25/upload.php
CHANGED
@@ -1,10 +1,27 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
|
6 |
-
if (
|
7 |
-
$_COOKIE[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
// don't ask me why, sometime needed, taken from wp core
|
10 |
unset($current_user);
|
1 |
<?php
|
2 |
|
3 |
+
$root = dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))));
|
4 |
+
|
5 |
+
if (file_exists($root.'/wp-load.php')) {
|
6 |
+
// WP 2.6
|
7 |
+
require_once($root.'/wp-load.php');
|
8 |
+
} else {
|
9 |
+
// Before 2.6
|
10 |
+
if (!file_exists($root.'/wp-config.php'))
|
11 |
+
die; // stop when wp-config is not there
|
12 |
+
require_once($root.'/wp-config.php');
|
13 |
+
}
|
14 |
|
15 |
// Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
|
16 |
+
if (function_exists('is_ssl')){
|
17 |
+
if ( is_ssl() && empty($_COOKIE[SECURE_AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
18 |
+
$_COOKIE[SECURE_AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
19 |
+
elseif ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
20 |
+
$_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
21 |
+
} else {
|
22 |
+
if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
|
23 |
+
$_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
|
24 |
+
}
|
25 |
|
26 |
// don't ask me why, sometime needed, taken from wp core
|
27 |
unset($current_user);
|
changelog.txt
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
NextGEN Gallery
|
2 |
by Alex Rabe & NextGEN DEV Team
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
V0.96 - 18.05.2008
|
5 |
- Changed : Use postbox for gallery settings
|
6 |
- Added : New filter function to add custom columns
|
1 |
NextGEN Gallery
|
2 |
by Alex Rabe & NextGEN DEV Team
|
3 |
|
4 |
+
V0.97 - 10.07.2008
|
5 |
+
- Changed : Get new path contstant from WP2.6
|
6 |
+
- Changed : Minor updates for WP2.6
|
7 |
+
- Changed : Added new filters (THX to Vincent Prat)
|
8 |
+
- Removed : Revert singlepic wrapper, breaks validation
|
9 |
+
|
10 |
V0.96 - 18.05.2008
|
11 |
- Changed : Use postbox for gallery settings
|
12 |
- Added : New filter function to add custom columns
|
css/hovereffect.css
CHANGED
@@ -297,7 +297,7 @@ This is a template stylesheet which doesn't support description below the thumbn
|
|
297 |
padding-left:10px;
|
298 |
}
|
299 |
|
300 |
-
.ngg-center
|
301 |
margin-left: auto !important;
|
302 |
margin-right: auto !important;
|
303 |
}
|
297 |
padding-left:10px;
|
298 |
}
|
299 |
|
300 |
+
.ngg-center {
|
301 |
margin-left: auto !important;
|
302 |
margin-right: auto !important;
|
303 |
}
|
css/ngg_dkret3.css
CHANGED
@@ -240,7 +240,7 @@ it's only a template design
|
|
240 |
float: right;
|
241 |
}
|
242 |
|
243 |
-
.ngg-center
|
244 |
margin-left: auto;
|
245 |
margin-right: auto;
|
246 |
}
|
240 |
float: right;
|
241 |
}
|
242 |
|
243 |
+
.ngg-center {
|
244 |
margin-left: auto;
|
245 |
margin-right: auto;
|
246 |
}
|
css/ngg_k2.css
CHANGED
@@ -253,7 +253,7 @@ it's only a template design
|
|
253 |
padding-left:10px;
|
254 |
}
|
255 |
|
256 |
-
.ngg-center
|
257 |
margin-left: auto !important;
|
258 |
margin-right: auto !important;
|
259 |
}
|
253 |
padding-left:10px;
|
254 |
}
|
255 |
|
256 |
+
.ngg-center {
|
257 |
margin-left: auto !important;
|
258 |
margin-right: auto !important;
|
259 |
}
|
css/ngg_shadow.css
CHANGED
@@ -242,7 +242,7 @@ it's only a template design
|
|
242 |
padding-left:10px;
|
243 |
}
|
244 |
|
245 |
-
.ngg-center
|
246 |
margin-left: auto !important;
|
247 |
margin-right: auto !important;
|
248 |
}
|
242 |
padding-left:10px;
|
243 |
}
|
244 |
|
245 |
+
.ngg-center {
|
246 |
margin-left: auto !important;
|
247 |
margin-right: auto !important;
|
248 |
}
|
css/ngg_shadow2.css
CHANGED
@@ -250,7 +250,7 @@ it's only a template design
|
|
250 |
padding-left:10px;
|
251 |
}
|
252 |
|
253 |
-
.ngg-center
|
254 |
margin-left: auto !important;
|
255 |
margin-right: auto !important;
|
256 |
}
|
250 |
padding-left:10px;
|
251 |
}
|
252 |
|
253 |
+
.ngg-center {
|
254 |
margin-left: auto !important;
|
255 |
margin-right: auto !important;
|
256 |
}
|
css/nggallery.css
CHANGED
@@ -247,10 +247,6 @@ html>body .ngg-album {
|
|
247 |
}
|
248 |
|
249 |
/* ----------- Single picture -------------*/
|
250 |
-
.ngg-singlepic-wrapper {
|
251 |
-
padding: 1px;
|
252 |
-
}
|
253 |
-
|
254 |
.ngg-singlepic {
|
255 |
background-color:#FFFFFF;
|
256 |
border:1px solid #A9A9A9;
|
@@ -270,7 +266,7 @@ html>body .ngg-album {
|
|
270 |
padding-left:10px;
|
271 |
}
|
272 |
|
273 |
-
.ngg-center
|
274 |
margin-left: auto !important;
|
275 |
margin-right: auto !important;
|
276 |
}
|
247 |
}
|
248 |
|
249 |
/* ----------- Single picture -------------*/
|
|
|
|
|
|
|
|
|
250 |
.ngg-singlepic {
|
251 |
background-color:#FFFFFF;
|
252 |
border:1px solid #A9A9A9;
|
266 |
padding-left:10px;
|
267 |
}
|
268 |
|
269 |
+
.ngg-center {
|
270 |
margin-left: auto !important;
|
271 |
margin-right: auto !important;
|
272 |
}
|
lib/nggallery.lib.php
CHANGED
@@ -110,6 +110,8 @@ class nggImage{
|
|
110 |
if ($ngg_options['thumbEffect'] == "highslide") $this->thumbcode = str_replace("%GALLERY_NAME%", "'".$galleryname."'", $this->thumbcode);
|
111 |
else $this->thumbcode = str_replace("%GALLERY_NAME%", $galleryname, $this->thumbcode);
|
112 |
|
|
|
|
|
113 |
return $this->thumbcode;
|
114 |
}
|
115 |
|
@@ -832,4 +834,4 @@ class nggRewrite {
|
|
832 |
|
833 |
} // of nggRewrite CLASS
|
834 |
|
835 |
-
?>
|
110 |
if ($ngg_options['thumbEffect'] == "highslide") $this->thumbcode = str_replace("%GALLERY_NAME%", "'".$galleryname."'", $this->thumbcode);
|
111 |
else $this->thumbcode = str_replace("%GALLERY_NAME%", $galleryname, $this->thumbcode);
|
112 |
|
113 |
+
$this->thumbcode = apply_filters('ngg_create_gallery_thumbcode', $this->thumbcode, $this);
|
114 |
+
|
115 |
return $this->thumbcode;
|
116 |
}
|
117 |
|
834 |
|
835 |
} // of nggRewrite CLASS
|
836 |
|
837 |
+
?>
|
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 |
|
@@ -70,17 +70,24 @@ if ( ($memory_limit != 0) && ($memory_limit < 12 ) ) {
|
|
70 |
}
|
71 |
|
72 |
// Version and path to check version
|
73 |
-
define('NGGVERSION', "0.
|
74 |
// Minimum required database version
|
75 |
define('NGG_DBVERSION', "0.84");
|
76 |
define('NGGURL', "http://nextgen.boelinger.com/version.php");
|
77 |
|
78 |
-
//
|
79 |
-
$myabspath = str_replace("\\","/",ABSPATH);
|
80 |
define('WINABSPATH', $myabspath);
|
81 |
-
|
82 |
-
|
83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
// look for imagerotator
|
86 |
define('NGGALLERY_IREXIST', file_exists(NGGALLERY_ABSPATH.'imagerotator.swf'));
|
@@ -110,7 +117,14 @@ $wpdb->nggpic2tags = $wpdb->prefix . 'ngg_pic2tags';
|
|
110 |
// Load language
|
111 |
function nggallery_init ()
|
112 |
{
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
// Load the admin panel
|
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.97
|
8 |
|
9 |
Author URI: http://alexrabe.boelinger.com/
|
10 |
|
70 |
}
|
71 |
|
72 |
// Version and path to check version
|
73 |
+
define('NGGVERSION', "0.97");
|
74 |
// Minimum required database version
|
75 |
define('NGG_DBVERSION', "0.84");
|
76 |
define('NGGURL', "http://nextgen.boelinger.com/version.php");
|
77 |
|
78 |
+
// required for Windows & XAMPP
|
79 |
+
$myabspath = str_replace("\\","/",ABSPATH);
|
80 |
define('WINABSPATH', $myabspath);
|
81 |
+
|
82 |
+
// Pre-2.6 compatibility
|
83 |
+
if ( !defined('WP_CONTENT_URL') )
|
84 |
+
define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content');
|
85 |
+
if ( !defined('WP_CONTENT_DIR') )
|
86 |
+
define( 'WP_CONTENT_DIR', WINABSPATH . 'wp-content' );
|
87 |
+
|
88 |
+
define('NGGFOLDER', plugin_basename( dirname(__FILE__)) );
|
89 |
+
define('NGGALLERY_ABSPATH', WP_CONTENT_DIR.'/plugins/'.plugin_basename( dirname(__FILE__)).'/' );
|
90 |
+
define('NGGALLERY_URLPATH', WP_CONTENT_URL.'/plugins/'.plugin_basename( dirname(__FILE__)).'/' );
|
91 |
|
92 |
// look for imagerotator
|
93 |
define('NGGALLERY_IREXIST', file_exists(NGGALLERY_ABSPATH.'imagerotator.swf'));
|
117 |
// Load language
|
118 |
function nggallery_init ()
|
119 |
{
|
120 |
+
if (function_exists('load_plugin_textdomain')) {
|
121 |
+
if ( !defined('WP_PLUGIN_DIR') ) {
|
122 |
+
load_plugin_textdomain('nggallery','wp-content/plugins/' . NGGFOLDER . '/lang');
|
123 |
+
//load_plugin_textdomain('nggallery', str_replace( ABSPATH, '', dirname(__FILE__) ) . '/lang');
|
124 |
+
} else {
|
125 |
+
load_plugin_textdomain('nggallery', false, dirname(plugin_basename(__FILE__)) . '/lang');
|
126 |
+
}
|
127 |
+
}
|
128 |
}
|
129 |
|
130 |
// Load the admin panel
|
nggextractXML.php
CHANGED
@@ -2,16 +2,23 @@
|
|
2 |
|
3 |
/*
|
4 |
+----------------------------------------------------------------+
|
5 |
-
+ imageRotartor-XML V1.
|
6 |
+ by Alex Rabe
|
7 |
+ required for NextGEN Gallery
|
8 |
+----------------------------------------------------------------+
|
9 |
*/
|
10 |
|
11 |
-
$
|
12 |
-
if (!file_exists($wpconfig)) die; // stop when wp-config is not there
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
function get_out_now() { exit; }
|
17 |
add_action('shutdown', 'get_out_now', -1);
|
2 |
|
3 |
/*
|
4 |
+----------------------------------------------------------------+
|
5 |
+
+ imageRotartor-XML V1.30
|
6 |
+ by Alex Rabe
|
7 |
+ required for NextGEN Gallery
|
8 |
+----------------------------------------------------------------+
|
9 |
*/
|
10 |
|
11 |
+
$root = dirname(dirname(dirname(dirname(__FILE__))));
|
|
|
12 |
|
13 |
+
if (file_exists($root.'/wp-load.php')) {
|
14 |
+
// WP 2.6
|
15 |
+
require_once($root.'/wp-load.php');
|
16 |
+
} else {
|
17 |
+
// Before 2.6
|
18 |
+
if (!file_exists($root.'/wp-config.php'))
|
19 |
+
die; // stop when wp-config is not there
|
20 |
+
require_once($root.'/wp-config.php');
|
21 |
+
}
|
22 |
|
23 |
function get_out_now() { exit; }
|
24 |
add_action('shutdown', 'get_out_now', -1);
|
nggfunctions.php
CHANGED
@@ -11,7 +11,7 @@ function searchnggallerytags($content) {
|
|
11 |
|
12 |
if ( stristr( $content, '[singlepic' )) {
|
13 |
|
14 |
-
$search = "
|
15 |
|
16 |
if (preg_match_all($search, $content, $matches)) {
|
17 |
|
@@ -339,12 +339,12 @@ function nggCreateGallery($picturelist,$galleryID = false) {
|
|
339 |
|
340 |
// add filter for the link
|
341 |
$link = apply_filters('ngg_create_gallery_link', $link, $picture);
|
342 |
-
$
|
343 |
|
344 |
// create output
|
345 |
$out .= '<div id="ngg-image-'. $picture->pid .'" class="ngg-gallery-thumbnail-box '. $class_desc .'">'."\n\t";
|
346 |
$out .= '<div class="ngg-gallery-thumbnail" '.$setwidth.' >'."\n\t";
|
347 |
-
$out .= '<a href="'.$link.'" title="'.stripslashes($picture->description).'" '.$
|
348 |
$out .= '<img title="'.stripslashes($picture->alttext).'" alt="'.stripslashes($picture->alttext).'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
|
349 |
$out .= '</a>'."\n";
|
350 |
if ($ngg_options['galShowDesc'] == "alttext")
|
@@ -561,7 +561,7 @@ function nggCreateImageBrowser($picarray) {
|
|
561 |
}
|
562 |
|
563 |
/**********************************************************/
|
564 |
-
function nggSinglePicture($imageID
|
565 |
/**
|
566 |
* create a gallery based on the tags
|
567 |
* @imageID db-ID of the image
|
@@ -606,15 +606,13 @@ function nggSinglePicture($imageID,$width=250,$height=250,$mode="",$float="") {
|
|
606 |
$cache_url = $picture->cached_singlepic_file($width, $height, $mode );
|
607 |
|
608 |
// add fullsize picture as link
|
609 |
-
$out = '<
|
610 |
if (!$cache_url)
|
611 |
-
$out .= '<img class="ngg-singlepic" src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&width='.$width.'&height='.$height.'&mode='.$mode.'" alt="'.stripslashes($picture->alttext).'" title="'.stripslashes($picture->alttext).'" />';
|
612 |
else
|
613 |
-
$out .= '<img class="ngg-singlepic" src="'.$cache_url.'" alt="'.stripslashes($picture->alttext).'" title="'.stripslashes($picture->alttext).'" />';
|
614 |
|
615 |
$out .= '</a>';
|
616 |
-
$out = apply_filters('ngg_inner_singlepic_content', $out, $picture );
|
617 |
-
$out .= '</div>';
|
618 |
|
619 |
$out = apply_filters('ngg_show_singlepic_content', $out, $picture );
|
620 |
|
@@ -692,8 +690,11 @@ function nggShowRelatedGallery($taglist, $maxImages = 0) {
|
|
692 |
$folder_url = get_option ('siteurl')."/".$picture->path."/";
|
693 |
$thumbnailURL = get_option ('siteurl')."/".$picture->path.nggallery::get_thumbnail_folder($picture->path, FALSE);
|
694 |
$thumb_prefix = nggallery::get_thumbnail_prefix($picture->path, FALSE);
|
|
|
|
|
|
|
695 |
|
696 |
-
$out .= '<a href="'.$folder_url.$picture->filename.'" title="'.stripslashes($picture->description).'" '.$
|
697 |
$out .= '<img title="'.stripslashes($picture->alttext).'" alt="'.stripslashes($picture->alttext).'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
|
698 |
$out .= '</a>'."\n";
|
699 |
}
|
11 |
|
12 |
if ( stristr( $content, '[singlepic' )) {
|
13 |
|
14 |
+
$search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]@i";
|
15 |
|
16 |
if (preg_match_all($search, $content, $matches)) {
|
17 |
|
339 |
|
340 |
// add filter for the link
|
341 |
$link = apply_filters('ngg_create_gallery_link', $link, $picture);
|
342 |
+
$thumbcode2 = apply_filters('ngg_create_gallery_thumbcode', $thumbcode, $picture);
|
343 |
|
344 |
// create output
|
345 |
$out .= '<div id="ngg-image-'. $picture->pid .'" class="ngg-gallery-thumbnail-box '. $class_desc .'">'."\n\t";
|
346 |
$out .= '<div class="ngg-gallery-thumbnail" '.$setwidth.' >'."\n\t";
|
347 |
+
$out .= '<a id="thumb'.$picture->pid.'" href="'.$link.'" title="'.stripslashes($picture->description).'" '.$thumbcode2.' >';
|
348 |
$out .= '<img title="'.stripslashes($picture->alttext).'" alt="'.stripslashes($picture->alttext).'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
|
349 |
$out .= '</a>'."\n";
|
350 |
if ($ngg_options['galShowDesc'] == "alttext")
|
561 |
}
|
562 |
|
563 |
/**********************************************************/
|
564 |
+
function nggSinglePicture($imageID, $width=250, $height=250, $mode="", $float="") {
|
565 |
/**
|
566 |
* create a gallery based on the tags
|
567 |
* @imageID db-ID of the image
|
606 |
$cache_url = $picture->cached_singlepic_file($width, $height, $mode );
|
607 |
|
608 |
// add fullsize picture as link
|
609 |
+
$out = '<a href="'.$picture->imagePath.'" title="'.stripslashes($picture->description).'" '.$picture->get_thumbcode("singlepic".$imageID).' >';
|
610 |
if (!$cache_url)
|
611 |
+
$out .= '<img class="ngg-singlepic'. $float .'" src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID.'&width='.$width.'&height='.$height.'&mode='.$mode.'" alt="'.stripslashes($picture->alttext).'" title="'.stripslashes($picture->alttext).'" />';
|
612 |
else
|
613 |
+
$out .= '<img class="ngg-singlepic'. $float .'" src="'.$cache_url.'" alt="'.stripslashes($picture->alttext).'" title="'.stripslashes($picture->alttext).'" />';
|
614 |
|
615 |
$out .= '</a>';
|
|
|
|
|
616 |
|
617 |
$out = apply_filters('ngg_show_singlepic_content', $out, $picture );
|
618 |
|
690 |
$folder_url = get_option ('siteurl')."/".$picture->path."/";
|
691 |
$thumbnailURL = get_option ('siteurl')."/".$picture->path.nggallery::get_thumbnail_folder($picture->path, FALSE);
|
692 |
$thumb_prefix = nggallery::get_thumbnail_prefix($picture->path, FALSE);
|
693 |
+
|
694 |
+
// add filter for the link
|
695 |
+
$thumbcode2 = apply_filters('ngg_create_gallery_thumbcode', $thumbcode, $picture);
|
696 |
|
697 |
+
$out .= '<a href="'.$folder_url.$picture->filename.'" title="'.stripslashes($picture->description).'" '.$thumbcode2.' >';
|
698 |
$out .= '<img title="'.stripslashes($picture->alttext).'" alt="'.stripslashes($picture->alttext).'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
|
699 |
$out .= '</a>'."\n";
|
700 |
}
|
nggwidget.php
CHANGED
@@ -397,7 +397,10 @@ class nggWidget {
|
|
397 |
if (is_array($imageList)){
|
398 |
foreach($imageList as $image) {
|
399 |
|
400 |
-
|
|
|
|
|
|
|
401 |
if ( $options[$number]['show'] == "orginal" )
|
402 |
$out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height'].'" title="'.$image->alttext.'" alt="'.$image->alttext.'" />';
|
403 |
else
|
@@ -497,4 +500,4 @@ function nggDisplayRecentImages($number, $width = "75", $height = "50", $exclude
|
|
497 |
nggWidget::ngg_widget_output($args = array(), 1, $options);
|
498 |
}
|
499 |
|
500 |
-
?>
|
397 |
if (is_array($imageList)){
|
398 |
foreach($imageList as $image) {
|
399 |
|
400 |
+
// add filter for the link
|
401 |
+
$thumbcode2 = apply_filters('ngg_create_gallery_thumbcode', $thumbcode, $image);
|
402 |
+
|
403 |
+
$out = '<a id="caption-for-widget-thumb'.$image->pid.'" href="'.nggallery::get_image_url($image->pid).'" title="'.stripslashes($image->description).'" '.$thumbcode2.'>';
|
404 |
if ( $options[$number]['show'] == "orginal" )
|
405 |
$out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height'].'" title="'.$image->alttext.'" alt="'.$image->alttext.'" />';
|
406 |
else
|
500 |
nggWidget::ngg_widget_output($args = array(), 1, $options);
|
501 |
}
|
502 |
|
503 |
+
?>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Alex Rabe
|
|
3 |
Donate link: http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/
|
4 |
Tags: photos, flash, slideshow, images, gallery, media, admin, post, photo-albums, pictures, widgets, photo, picture
|
5 |
Requires at least: 2.1.3
|
6 |
-
Tested up to: 2.
|
7 |
|
8 |
NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
|
9 |
|
3 |
Donate link: http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/
|
4 |
Tags: photos, flash, slideshow, images, gallery, media, admin, post, photo-albums, pictures, widgets, photo, picture
|
5 |
Requires at least: 2.1.3
|
6 |
+
Tested up to: 2.6
|
7 |
|
8 |
NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
|
9 |
|
tinymce3/window.php
CHANGED
@@ -1,13 +1,19 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
$
|
4 |
|
5 |
-
if (
|
6 |
-
|
7 |
-
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
-
require_once($wpconfig);
|
11 |
require_once(ABSPATH.'/wp-admin/admin.php');
|
12 |
|
13 |
// check for rights
|
1 |
<?php
|
2 |
|
3 |
+
$root = dirname(dirname(dirname(dirname(dirname(__FILE__)))));
|
4 |
|
5 |
+
if (file_exists($root.'/wp-load.php')) {
|
6 |
+
// WP 2.6
|
7 |
+
require_once($root.'/wp-load.php');
|
8 |
+
} else {
|
9 |
+
// Before 2.6
|
10 |
+
if (!file_exists($root.'/wp-config.php')) {
|
11 |
+
echo "Could not found wp-config.php";
|
12 |
+
die;
|
13 |
+
}// stop when wp-config is not there
|
14 |
+
require_once($root.'/wp-config.php');
|
15 |
+
}
|
16 |
|
|
|
17 |
require_once(ABSPATH.'/wp-admin/admin.php');
|
18 |
|
19 |
// check for rights
|