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' ); $this->free_plugins = $admin_main_class->ogma_blog_free_plugins_lists(); } /** * Add admin menu. */ public function ogma_blog_admin_menu() { add_theme_page( sprintf( esc_html__( '%1$s Dashboard', 'ogma-blog' ), $this->theme_name ), sprintf( esc_html__( '%1$s Dashboard', 'ogma-blog' ), $this->theme_name ) , 'edit_theme_options', 'ogma-blog-dashboard', array( $this, 'ogma_blog_get_started_screen' ) ); } public function ogma_blog_get_started_screen() { $current_tab = empty( $_GET['tab'] ) ? 'ogma_blog_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->ogma_blog_welcome_screen(); } /** * Dashboard header * * @access private */ private function ogma_blog_dashboard_header() { ?>
theme_slug .'/reviews/?filter=5#new-post'; ?> theme_slug; ?>';
print_r($value);
echo '';*/
switch( $value['action'] ) {
case 'install' :
$btn_class = 'mt-action-btn install-online button';
$label = esc_html__( 'Install and Activate', 'ogma-blog' );
break;
case 'inactive' :
$btn_class = 'mt-action-btn deactivate-online button disabled';
$label = esc_html__( 'Deactivate', 'ogma-blog' );
break;
case 'active' :
$btn_class = 'mt-action-btn activate-online button button-primary';
$label = esc_html__( 'Activate', 'ogma-blog' );
break;
}
?>