file ngg.js
from( Idon't now if really needed, try it by yourself)
// try to find gallery number by checking the parents ID until we find a matching one
var currentNode = obj.parentNode;
to
// try to find gallery number by checking the parents ID until we find a matching one
var currentNode = obj;
from(needed! to reinit colorbox)
// add shutter-listeners again
shutterReloaded.init('sh');
to(adjust colorbox settings plz)
// add shutter-listeners again
//shutterReloaded.init('sh');
jQuery("a[rel='elastic']").colorbox();
jQuery("a[rel='gallery']").colorbox();
jQuery("a[rel='lightbox']").colorbox();
jQuery("a[rel='fade']").colorbox({transition:"fade"});
jQuery("a[rel='clear']").colorbox({transition:"none", width:"75%", height:"75%"});
jQuery("a[rel='slideshow']").colorbox({slideshow:true});
jQuery(".ajaxi").colorbox();
jQuery(".video").colorbox({iframe:true, innerWidth:425, innerHeight:344});
jQuery(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
jQuery(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
jQuery("#click").click(function(){
jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
file nggallery.php
from
// activate modified Shutter reloaded if not use the Shutter plugin
if ( ($this->options['thumbEffect'] == "shutter") && !function_exists('srel_makeshutter') ) {
wp_register_script('shutter', NGGALLERY_URLPATH .'shutter/shutter-reloaded.js', false ,'1.3.2');
wp_localize_script('shutter', 'shutterSettings', array(
'msgLoading' => __('L O A D I N G', 'nggallery'),
'msgClose' => __('Click to Close', 'nggallery'),
'imageCount' => '1'
) );
wp_enqueue_script( 'shutter' );
}
// required for the slideshow
if ( NGGALLERY_IREXIST == true && $this->options['enableIR'] == '1' && nggGallery::detect_mobile_phone() === false )
wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
else {
wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');
wp_enqueue_script('ngg-slideshow', NGGALLERY_URLPATH .'js/ngg.slideshow.min.js', array('jquery-cycle'), '1.05');
}
// Load AJAX navigation script, works only with shutter script as we need to add the listener
if ( $this->options['galAjaxNav'] ) {
if ( ($this->options['thumbEffect'] == "shutter") || function_exists('srel_makeshutter') ) {
wp_enqueue_script ( 'ngg_script', NGGALLERY_URLPATH . 'js/ngg.js', array('jquery'), '2.1');
wp_localize_script( 'ngg_script', 'ngg_ajax', array('path' => NGGALLERY_URLPATH,
'callback' => home_url() . '/' . 'index.php?callback=ngg-ajax',
'loading' => __('loading', 'nggallery'),
) );
}
}
}
to (adjust this line!!!! wp_register_script('colorbox', NGGALLERY_URLPATH .'../../themes/denizy/js/colorbox/jquery.colorbox.js', false ,'1.3.0');)
// activate modified Shutter reloaded if not use the Shutter plugin
if ( ($this->options['thumbEffect'] == "custom") && !function_exists('colorbox') ) {
wp_register_script('colorbox', NGGALLERY_URLPATH .'../../themes/denizy/js/colorbox/jquery.colorbox.js', false ,'1.3.0');
wp_localize_script('colorbox', 'colorboxsettings', array(
'msgLoading' => __('L O A D I N G', 'nggallery'),
'msgClose' => __('Click to Close', 'nggallery'),
'imageCount' => '1'
) );
wp_enqueue_script( 'colorbox' );
}
// required for the slideshow
if ( NGGALLERY_IREXIST == true && $this->options['enableIR'] == '1' && nggGallery::detect_mobile_phone() === false )
wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
else {
wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');
wp_enqueue_script('ngg-slideshow', NGGALLERY_URLPATH .'js/ngg.slideshow.min.js', array('jquery-cycle'), '1.05');
}
// Load AJAX navigation script, works only with shutter script as we need to add the listener
if ( $this->options['galAjaxNav'] ) {
if ( ($this->options['thumbEffect'] == "custom") || function_exists('srel_makeshutter') ) {
wp_enqueue_script ( 'ngg_script', NGGALLERY_URLPATH . 'js/ngg.js', array('jquery'), '2.0');
wp_localize_script( 'ngg_script', 'ngg_ajax', array('path' => NGGALLERY_URLPATH,
'callback' => site_url() . '/' . 'index.php?callback=ngg-ajax',
'loading' => __('loading', 'nggallery'),
) );
}
}
}
I hope this helps.