display('Name'), esc_html__('About', 'agency-ecommerce') . ' ' . $theme->display('Name'), 'activate_plugins', 'agency-ecommerce-welcome', array($this, 'welcome_screen')); } /** * Add admin notice. */ public function admin_notice() { global $pagenow; // Let's bail on theme activation. if ('themes.php' == $pagenow && isset($_GET['activated'])) { add_action('admin_notices', array($this, 'welcome_notice')); update_option('agency_ecommerce_admin_notice_welcome', 1); // No option? Let run the notice wizard again.. } elseif (!get_option('agency_ecommerce_admin_notice_welcome')) { add_action('admin_notices', array($this, 'welcome_notice')); } } /** * Hide a notice if the GET variable is set. */ public static function hide_notices() { if (isset($_GET['agency-ecommerce-hide-notice']) && isset($_GET['_agency_ecommerce_notice_nonce'])) { if (!wp_verify_nonce($_GET['_agency_ecommerce_notice_nonce'], 'agency_ecommerce_hide_notices_nonce')) { wp_die(esc_html__('Action failed. Please refresh the page and retry.', 'agency-ecommerce')); } if (!current_user_can('manage_options')) { wp_die(esc_html__('Cheat in ’ huh?', 'agency-ecommerce')); } $hide_notice = sanitize_text_field($_GET['agency-ecommerce-hide-notice']); update_option('agency_ecommerce_admin_notice_' . $hide_notice, 1); } } /** * Show welcome notice. */ public function welcome_notice() { $theme = wp_get_theme(get_template()); $theme_name = $theme->get('Name'); ?>

', ''); ?>

get('Name'); $theme_description = $theme->get('Description'); $theme_uri = $theme->get('ThemeURI'); // Drop minor version if 0 ?>

{$current_tab . '_screen'}(); } // Fallback to about screen. return $this->about_screen(); } /** * Output the about screen. */ public function about_screen() { $theme = wp_get_theme(get_template()); $theme_name = $theme->get('Name'); $theme_description = $theme->get('Description'); $theme_uri = $theme->get('ThemeURI'); ?>
intro(); ?>

|
intro(); ?>
'mantrabrain', ); // Set the $request array. $request = array( 'body' => array( 'action' => 'query_themes', 'request' => serialize((object)$args) ) ); $themes = $this->agency_ecommerce_get_themes($request); $active_theme = wp_get_theme()->get('Name'); $counter = 1; // For currently active theme. foreach ($themes->themes as $theme) { if ($active_theme == $theme->name) { ?>

: name); ?>

themes as $theme) { if ($active_theme != $theme->name) { // Set the argument array with author name. $args = array( 'slug' => esc_attr($theme->slug), ); // Set the $request array. $request = array( 'body' => array( 'action' => 'theme_information', 'request' => serialize((object)$args) ) ); $theme_details = $this->agency_ecommerce_get_themes($request); ?>

name); ?>

slug)->exists()) { ?> 'install-theme', 'theme' => esc_attr($theme->slug), ), self_admin_url('update.php')); ?>
intro(); ?>

get_contents($changelog_file); $changelog_list = $this->parse_changelog($changelog); echo wp_kses_post($changelog_list); } ?>
'; foreach ($changes as $index => $line) { $changelog .= wp_kses_post(preg_replace('~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '${1}', $line)); } $changelog .= ''; } return wp_kses_post($changelog); } /** * Output the free vs pro screen. */ public function free_vs_pro_screen() { $free_pro_content = array( array( 'title' => esc_html__('Price', 'agency-ecommerce'), 'content' => array( array( 'text' => esc_html__('Free', 'agency-ecommerce'), 'type' => 'text' ), array( 'text' => esc_html__('$48 to $68', 'agency-ecommerce'), 'type' => 'text' ) ), ), array( 'title' => esc_html__('Import Demo Data', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Advance Product Slider', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Parallax Footer', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Secondary & Alternate color', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Typography option', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Banner Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Brands Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Product Block Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Product Grid Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Show/Hide Footer Credit', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Advanced Theme Hooks', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Flexible Container & Sidebar Width', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Header color customization', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Header color customization', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Homepage Widge Title Layout', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Premium Support', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Box/Full width option', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('On Demand Feature', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-no', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Primary color option', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Enable/Disable Header', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Advanced Breadcrumb', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Checkout/Cart Options', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Accessibility Ready', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__(' Sticky add to cart', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Advance Post Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Advertisement Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Call to Action Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Contact Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Features Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ), array( 'title' => esc_html__('Newsletter Widget', 'agency-ecommerce'), 'content' => array( array( 'text' => 'dashicons-yes', 'type' => 'icon' ), array( 'text' => 'dashicons-yes', 'type' => 'icon' ) ), ) ); ?>
intro(); ?>

'; break; } ?>