Fix: NextGen Gallery 1.9 compatibility
This commit is contained in:
parent
d2e558c079
commit
44e2616175
|
@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
||||||
Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
|
Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
|
||||||
Requires at least: 2.0.0
|
Requires at least: 2.0.0
|
||||||
Tested up to: 3.6.1
|
Tested up to: 3.6.1
|
||||||
Stable tag: 1.2.0
|
Stable tag: 1.2.1
|
||||||
|
|
||||||
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
|
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
|
||||||
|
|
||||||
|
@ -176,6 +176,8 @@ Yes!
|
||||||
1. Altitude & Speed & Hearth rate
|
1. Altitude & Speed & Hearth rate
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
= 1.2.1 =
|
||||||
|
* Fix: NextGen Gallery 1.9 compatibility
|
||||||
= 1.2.0 =
|
= 1.2.0 =
|
||||||
* NextGen Gallery 2 support
|
* NextGen Gallery 2 support
|
||||||
* NextGen Gallery Pro support
|
* NextGen Gallery Pro support
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
Plugin Name: WP-GPX-Maps
|
Plugin Name: WP-GPX-Maps
|
||||||
Plugin URI: http://www.devfarm.it/
|
Plugin URI: http://www.devfarm.it/
|
||||||
Description: Draws a gpx track with altitude graph
|
Description: Draws a gpx track with altitude graph
|
||||||
Version: 1.2.0
|
Version: 1.2.1
|
||||||
Author: Bastianon Massimo
|
Author: Bastianon Massimo
|
||||||
Author URI: http://www.pedemontanadelgrappa.it/
|
Author URI: http://www.pedemontanadelgrappa.it/
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -71,6 +71,9 @@
|
||||||
|
|
||||||
/* START FIX NEXT GEN GALLERY 2.x */
|
/* START FIX NEXT GEN GALLERY 2.x */
|
||||||
|
|
||||||
|
if ( class_exists("C_Component_Registry") )
|
||||||
|
{
|
||||||
|
|
||||||
$renderer = C_Component_Registry::get_instance()->get_utility('I_Displayed_Gallery_Renderer');
|
$renderer = C_Component_Registry::get_instance()->get_utility('I_Displayed_Gallery_Renderer');
|
||||||
$params['gallery_ids'] = $ngGalleries;
|
$params['gallery_ids'] = $ngGalleries;
|
||||||
$params['image_ids'] = $ngImages;
|
$params['image_ids'] = $ngImages;
|
||||||
|
@ -79,7 +82,7 @@
|
||||||
// also add js references to get the gallery working
|
// also add js references to get the gallery working
|
||||||
$dummy = $renderer->display_images($params, $inner_content);
|
$dummy = $renderer->display_images($params, $inner_content);
|
||||||
|
|
||||||
/* START FIX NEXT GEN GALLERY PRO */
|
/* START FIX NEXT GEN GALLERY PRO */
|
||||||
|
|
||||||
if (preg_match("/data-nplmodal-gallery-id=[\"'](.*?)[\"']/", $dummy, $m))
|
if (preg_match("/data-nplmodal-gallery-id=[\"'](.*?)[\"']/", $dummy, $m))
|
||||||
{
|
{
|
||||||
|
@ -93,7 +96,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* END FIX NEXT GEN GALLERY PRO */
|
/* END FIX NEXT GEN GALLERY PRO */
|
||||||
|
}
|
||||||
|
|
||||||
/* END FIX NEXT GEN GALLERY 2.x */
|
/* END FIX NEXT GEN GALLERY 2.x */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue