theme_name = $theme->get( 'Name' ); $this->theme_slug = $theme->get( 'TextDomain' ); $this->theme_author_uri = $theme->get( 'AuthorURI' ); $this->theme_author_name = $theme->get( 'Author' ); if ( is_object( $admin_main_class ) && method_exists( $admin_main_class, 'blogbuster_free_plugins_lists' ) ) { $this->free_plugins = $admin_main_class->blogbuster_free_plugins_lists(); } else { $this->free_plugins = array(); // fallback to empty } } /** * Add admin menu. */ public function blogbuster_admin_menu() { add_theme_page( sprintf( esc_html__( '%1$s Dashboard', 'blogbuster' ), $this->theme_name ), sprintf( esc_html__( '%1$s Dashboard', 'blogbuster' ), $this->theme_name ) , 'edit_theme_options', 'blogbuster-dashboard', array( $this, 'blogbuster_get_started_screen' ) ); } /** * Get started screen page. */ public function blogbuster_get_started_screen() { $current_tab = empty( $_GET['tab'] ) ? 'blogbuster_welcome' : sanitize_title( $_GET['tab'] ); // Look for a {$current_tab}_screen method. if ( is_callable( array( $this, $current_tab . '_screen' ) ) ) { return $this->{ $current_tab . '_screen' }(); } // Fallback to about screen. return $this->blogbuster_welcome_screen(); } /** * Dashboard header * * @access private */ private function blogbuster_dashboard_header() { ?>
theme_slug .'/reviews/?filter=5#new-post'; ?> theme_slug; ?>