' . __('Sorry, NextGEN FlashViewer works only in combination with NextGEN Gallery.','nggflash') . '
\';')); return; } add_action('admin_menu',array (&$this, 'add_menu')); } // integrate the menu function add_menu() { add_submenu_page( NGGFOLDER , __('FlashViewer', 'nggflash'), __('FlashViewer', 'nggflash'), 'NextGEN Change options', 'nggallery-flashviewer', array (&$this, 'show_menu')); } // load the script for the defined page and load only this code function show_menu() { // reduce footprint if ($_GET["page"] == "nggallery-flashviewer") { include_once (dirname (__FILE__). '/settings.php'); // nggallery_admin_options showFlashViewerPage(); } } function load_scripts() { if ($_GET["page"] == "nggallery-flashviewer") wp_enqueue_script('tabs', NGGALLERY_URLPATH .'admin/js/jquery.ui.tabs.pack.js', array('jquery'), '2.7.4'); } function load_styles() { if ($_GET["page"] == "nggallery-flashviewer") { wp_enqueue_style( 'nggadmin', NGGALLERY_URLPATH .'admin/css/nggadmin.css', false, '2.5.0', 'screen' ); wp_enqueue_style( 'nggtabs', NGGALLERY_URLPATH .'admin/css/jquery.ui.tabs.css', false, '2.5.0', 'screen' ); } } function show_help($help, $screen) { $link = ''; switch ($screen) { case 'gallery_page_nggallery-flashviewer' : $link = __('Support', 'nggflash'); break; } if ( !empty($link) ) { $help = '