/** * Choose which admin screen is displayed as well as displaying RSS version feed * * @return void **/ function admin_screen() { global $wp_version; if (get_option('headspace_version') != 10) { include dirname(__FILE__) . '/models/upgrade.php'; HS_Upgrade::upgrade(get_option('headspace_version'), 10); } // Decide what to do $sub = $this->submenu(); $this->check_theme_files(); // Display screen if ($sub == '') { $this->admin_settings(); } else { if ($sub == 'options') { $this->admin_options(); } else { if ($sub == 'keywords') { $this->admin_keywords(); } else { if ($sub == 'import') { $this->admin_import(); } else { if ($sub == 'site') { $this->admin_site(); } else { if ($sub == 'modules') { $this->admin_modules(); } } } } } } }