theme_fields = $fields; add_action ('admin_init' , array( &$this, 'admin_scripts' ) ); add_action('admin_menu',array( &$this, 'welcome_page_menu')); } public function admin_scripts() { global $pagenow; $file_dir = get_template_directory_uri() . '/core/admin/assets/'; if ( $pagenow == 'themes.php' && isset($_GET['page']) && $_GET['page'] == 'sheeba-lite-welcome-page') { wp_enqueue_style ( 'sheeba-lite-welcome-page-style', $file_dir . 'css/welcome-page.css', array(), '1.0.0' ); } } public function check_installed_plugin($slug, $filename) { return file_exists( ABSPATH . 'wp-content/plugins/' . $slug . '/' . $filename . '.php' ) ? true : false; } private function call_plugin_api( $slug ) { include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; $call_api = get_transient( 'sheeba_lite_plugin_info_' . $slug ); if ( false === $call_api ) { $call_api = plugins_api( 'plugin_information', array( 'slug' => $slug, 'fields' => array( 'downloaded' => false, 'rating' => false, 'description' => false, 'short_description' => true, 'donate_link' => false, 'tags' => false, 'sections' => true, 'homepage' => true, 'added' => false, 'last_updated' => false, 'compatibility' => false, 'tested' => false, 'requires' => false, 'downloadlink' => false, 'icons' => true, 'banners' => true, ), ) ); set_transient( 'sheeba_lite_plugin_info_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS ); } return $call_api; } public function theme_info($id) { $themedata = wp_get_theme(); return $themedata->get($id); } public function welcome_page_menu() { add_theme_page( sprintf(esc_html__('About %1$s', 'sheeba-lite'), $this->theme_info('Name')), sprintf(esc_html__('About %1$s', 'sheeba-lite'), $this->theme_info('Name')), 'edit_theme_options', 'sheeba-lite-welcome-page', array( &$this, 'welcome_page' ) ); } public function welcome_page() { $tabs = array( 'getting_started' => esc_html__('Getting Started', 'sheeba-lite'), 'recommended_plugins' => esc_html__('Recommended Plugins', 'sheeba-lite'), 'free_pro' => esc_html__('Free VS Pro', 'sheeba-lite'), 'support' => esc_html__('Support', 'sheeba-lite'), ); ?>

theme_info('Name'), $this->theme_info('Version') ); ?>

theme_info('Description'); ?>
free_pro(); break; case 'recommended_plugins': $this->recommended_plugins(); break; case 'getting_started': default: $this->getting_started(); break; } ?>
esc_html__('Upload logo', 'sheeba-lite'), 'link' => add_query_arg( [ 'autofocus[control]' => 'custom_logo' ], admin_url( 'customize.php' )) ), array ( 'text' => esc_html__('Featured area', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[panel]' => 'featured_area_panel'], admin_url( 'customize.php')) ), array ( 'text' => esc_html__('Color scheme', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[control]' => 'sheeba_lite_skin'], admin_url( 'customize.php')) ), array ( 'text' => esc_html__('General settings', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[section]' => 'settings_section'], admin_url( 'customize.php')) ), array ( 'text' => esc_html__('Layouts', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[section]' => 'layouts_section'], admin_url( 'customize.php')) ), array ( 'text' => esc_html__('Post elements', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[section]' => 'post_elements_section'], admin_url( 'customize.php')) ), array ( 'text' => esc_html__('Typography', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[panel]' => 'typography_panel'], admin_url( 'customize.php')) ), array ( 'text' => esc_html__('Copyright and social links', 'sheeba-lite'), 'link' => add_query_arg(['autofocus[section]' => 'copyright_section'], admin_url( 'customize.php')) ), ); } public function getting_started() { ?>

'init', 'slug' => 'internal-linking-of-related-contents', ), array( 'filename' => 'init', 'slug' => 'content-snippet-manager', ), array( 'filename' => 'init', 'slug' => 'wa-chatbox-manager', ), array( 'filename' => 'init', 'slug' => 'custom-thank-you-page', ), array( 'filename' => 'init', 'slug' => 'wip-custom-login', ), array( 'filename' => 'init', 'slug' => 'wip-woocarousel-lite', ), ); ?>
call_plugin_api( $slug ); $plugin_desc = $plugin_info->short_description; $plugin_img = ( !isset($plugin_info->icons['1x']) ) ? $plugin_info->icons['default'] : $plugin_info->icons['1x']; $plugin_banner = $plugin_info->banners['low']; ?>

name; ?>

short_description; ?>