I’ve modified the nggScrollGallery.php file of the 2.0.2beta to put js scripts inclusion code of the version 1. And that works fine now.
But not sure if that the best way to do it, Benedikt can you take a look ?
Moifications in nggScrollGallery.php ———–
in public function SGShow commented these lines :
//only if we have output enque the registered scripts
wp_enqueue_script('mootools');
wp_enqueue_script('scrollGallery2');
wp_enqueue_script('powertools');
in public function SG2_enqueueScripts modified these lines :
wp_register_script( 'mootools', SG2_URL.'/scrollGallery/js/mootools-core-1.3.2-full-compat.js', false, '1.3.2',false);
wp_register_script( 'scrollGallery2', SG2_URL.'/scrollGallery/js/scrollGallery2.js', array('mootools'), '1.12',false);
wp_register_script( 'powertools', SG2_URL.'/scrollGallery/js/powertools-mobile-1.1.1.js', array('mootools'), '1.1.1',false);
for these ones (as the nggScrollGallery.php version 1 model) :
// As a precaution, deregister any previous 'mootools' registrations.
wp_deregister_script(array('mootools'));
wp_register_script( 'mootools', SG2_URL.'/scrollGallery/js/mootools-core-1.3.2-full-compat.js', false, '1.3.2',true);
wp_deregister_script(array('scrollGallery'));
wp_register_script( 'scrollGallery2', SG2_URL.'/scrollGallery/js/scrollGallery2.js', array('mootools'), '1.12',true);
wp_deregister_script(array('powertools'));
wp_register_script( 'powertools', SG2_URL.'/scrollGallery/js/powertools-mobile-1.1.1.js', array('mootools'), '1.1.1',true);
if (function_exists('wp_enqueue_script')) {
wp_enqueue_script('mootools');
wp_enqueue_script('scrollGallery2');
wp_enqueue_script('powertools');
}
And just remember do not erase the <?php wp_footer(); ?>
line from footer.php of your theme.