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'); } /** * Add admin menu. */ public function blogbend_admin_menu() { add_theme_page(sprintf(esc_html__('%1$s Dashboard', 'blogbend'), $this->theme_name), sprintf(esc_html__('%1$s Dashboard', 'blogbend'), $this->theme_name), 'edit_theme_options', 'blogbend-dashboard', array($this, 'blogbend_get_started_screen')); } public function blogbend_get_started_screen() { $current_tab = empty($_GET['tab']) ? 'blogbend_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->blogbend_welcome_screen(); } /** * Dashboard header * * @access private */ private function blogbend_dashboard_header() { $theme = wp_get_theme(get_template()); ?>

theme_name); ?>

get('Version')); ?> %2$s', 'blogbend'), $this->theme_author_uri, $this->theme_author_name); ?>
theme_slug . '/reviews/?filter=5#new-post'; $hosting_insight_url = 'https://wpmotif.com/hosting/'; ?> theme_slug; ?>
blogbend_dashboard_header(); ?>
icon

%1$s.', 'blogbend'), $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.', 'blogbend'), $this->theme_name); ?>

icon

theme_name); ?>

|
blogbend_dashboard_sidebar(); ?>
blogbend_dashboard_header(); ?>

theme_name); ?>

blogbend_dashboard_sidebar(); ?>
get_changelog($changelogFilePath); ?>
blogbend_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) . '
  • '; } } ?>
blogbend_dashboard_sidebar(); ?>
blogbend_dashboard_header(); ?>

'contact-form-7', 'file' => 'contact-form-7/wp-contact-form-7.php', ), array( 'slug' => 'one-click-demo-import', 'file' => 'one-click-demo-import/one-click-demo-import.php', ), ); // Loop through the plugins foreach ($plugins as $plugin) { $plugin_slug = $plugin['slug']; $plugin_file = $plugin['file']; // Check internet connection $internet_connection = wp_remote_get('https://www.google.com', array('timeout' => 5)); if (is_wp_error($internet_connection)) { echo '

' . esc_html__('No internet connection. Cannot fetch plugin information.', 'blogbend') . '

'; break; // Exit loop if no internet } // Fetch plugin information from WordPress.org Plugin API $args = array( 'slug' => $plugin_slug, 'fields' => array( 'short_description' => true, 'icons' => true, ), ); $plugin_info = plugins_api('plugin_information', $args); // Check for errors in fetching plugin information if (is_wp_error($plugin_info)) { echo '

' . esc_html__('Error fetching plugin information.', 'blogbend') . '

'; continue; } // Extract plugin data $plugin_name = $plugin_info->name; $plugin_description = $plugin_info->short_description; $plugin_author = $plugin_info->author; $plugin_image = $plugin_info->icons['1x']; $is_plugin_installed = function_exists('blogbend_is_plugin_installed') && blogbend_is_plugin_installed($plugin_file); $is_plugin_activated = function_exists('is_plugin_active') && is_plugin_active($plugin_file); ?>
blogbend_dashboard_sidebar(); ?>