load_product(C_Component_Registry::get_instance()); } else { add_action('load_nextgen_gallery_modules', array($this, 'load_product')); } register_deactivation_hook( NEW_ROYALSLIDER_FILE, array(&$this, 'deactivate') ); } public function add_ng_template($path, $template_name = false) { if (strpos($template_name, 'gallery-royalslider') !== false) { $path = NEW_ROYALSLIDER_PLUGIN_PATH . 'classes/sources/nextgen/modules/nextgen_royalslider/templates/NextGen1Template.php'; } return $path; } public function load_product(C_Component_Registry $registry) { $registry->add_module_path(NEW_ROYALSLIDER_PLUGIN_PATH . 'classes/sources/nextgen', TRUE, TRUE); } public function deactivate() { delete_option('new_royalslider_ng_slider_id'); if (class_exists('C_Photocrati_Installer')) { C_Photocrati_Installer::uninstall('ds-nextgen_royalslider'); C_Photocrati_Installer::uninstall('ds-royalslider'); } } public static function show_admin_options( $curr_options = null ) { ?>

NextGEN gallery', 'new_royalslider'); ?>



    • [ngg_images gallery_ids="1" display_type="ds-nextgen_royalslider"] (instead of "1", put the ID of NextGEN gallery that you wish to display).', 'new_royalslider'); ?>

    • template="royalslider" attribute to shortcode, for example: [nggallery id="2" template="royalslider"].', 'new_royalslider'); ?>
  1. RoyalSlider Global Settings page. "NextGEN" type doesn\'t support auto-detection, so you need to check an option to preload files on all pages, or include files via PHP call only on pages that you need - %s (in your theme functions.php).', 'new_royalslider'), get_admin_url() . "admin.php?page=new_royalslider_settings", 'register_new_royalslider_files(' . $cid . ')'); ?>