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->blogarc_free_plugins_lists(); } /** * Add admin menu. */ public function blogarc_admin_menu() { add_theme_page(sprintf(esc_html__('%1$s Dashboard', 'blogarc'), $this->theme_name), sprintf(esc_html__('%1$s Dashboard', 'blogarc'), $this->theme_name), 'edit_theme_options', 'blogarc-dashboard', array($this, 'blogarc_get_started_screen')); } public function blogarc_get_started_screen() { $current_tab = empty($_GET['tab']) ? 'blogarc_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->blogarc_welcome_screen(); } /** * Dashboard header * * @access private */ private function blogarc_dashboard_header() { $theme = wp_get_theme(get_template()); ?>

theme_name); ?>

get('Version')); ?> %2$s', 'blogarc'), $this->theme_author_uri, $this->theme_author_name); ?>
theme_slug . '/reviews/?filter=5#new-post'; ?> theme_slug; ?>
blogarc_dashboard_header(); ?>
icon

%1$s.', 'blogarc'), $this->theme_name); ?>

icon

%1$s, which is why we’ve compiled all the essential information here for you. We hope you enjoy using %1$s as much as we enjoy crafting exceptional products.', 'blogarc'), $this->theme_name); ?>

icon

theme_name); ?>

|
blogarc_dashboard_sidebar(); ?>
blogarc_dashboard_header(); ?>

theme_name); ?>

blogarc_dashboard_sidebar(); ?>
get_changelog($changelogFilePath); ?>
blogarc_dashboard_header(); ?>
    N' . esc_html($note) . ''; } } // loop for improvement if (!empty($log['imp'])) { foreach ($log['imp'] as $note) { echo '
  • I' . esc_html($note) . '
  • '; } } // loop for fixed if (!empty($log['fix'])) { foreach ($log['fix'] as $note) { echo '
  • F' . esc_html($note) . '
  • '; } } // loop for tweak if (!empty($log['tweak'])) { foreach ($log['tweak'] as $note) { echo '
  • T' . esc_html($note) . '
  • '; } } ?>
blogarc_dashboard_sidebar(); ?>
free_plugins; ?>
blogarc_dashboard_header(); ?>

$value) { switch ($value['action']) { case 'install' : $btn_class = 'install-plugin install-online button'; $label = esc_html__('Install and Activate', 'blogarc'); break; case 'inactive' : $btn_class = 'install-plugin deactivate-online button disabled'; $label = esc_html__('Deactivate', 'blogarc'); break; case 'active' : $btn_class = 'install-plugin activate-online button button-primary'; $label = esc_html__('Activate', 'blogarc'); break; } ?>
'; } ?>

|
blogarc_dashboard_sidebar(); ?>