template ) ); $docs_url = 'https://docs.deothemes.com/blockst/knowledgebase/'; $urls = array( 'theme-url' => 'https://blockst.deothemes.com/', 'rating-url' => 'https://wordpress.org/support/theme/blockst/reviews/?rate=5#new-post', 'docs' => 'https://docs.deothemes.com/blockst', 'video-tutorials' => 'https://www.youtube.com/watch?v=FrtZjnZINqo&list=PLaPNmyRO67T1tWls03MNYDgT5Q0tS2Mjm', 'page-layout' => $docs_url . 'page-layout', 'gdpr' => $docs_url . 'gdpr', 'home-page-demos' => $docs_url . 'home-page-demos' ); $buttons = array( 'logo' => array( 'link_url' => admin_url( 'customize.php?autofocus[section]=blockst_settings_logo' ), 'link_text' => esc_html__( 'Logo', 'blockst' ), 'icon' => 'dashicons dashicons-format-image', ), 'header' => array( 'link_url' => admin_url( 'customize.php?autofocus[panel]=blockst_settings_header' ), 'link_text' => esc_html__( 'Header', 'blockst' ), 'icon' => 'dashicons dashicons-align-center', ), 'footer' => array( 'link_url' => admin_url( 'customize.php?autofocus[section]=blockst_settings_footer' ), 'link_text' => esc_html__( 'Footer', 'blockst' ), 'icon' => 'dashicons dashicons-align-full-width' ), 'layout' => array( 'link_url' => admin_url( 'customize.php?autofocus[panel]=blockst_settings_layout' ), 'link_text' => esc_html__( 'Layout', 'blockst' ), 'icon' => 'dashicons dashicons-layout' ), 'colors' => array( 'link_url' => admin_url( 'customize.php?autofocus[panel]=blockst_settings_colors' ), 'link_text' => esc_html__( 'Colors', 'blockst' ), 'icon' => 'dashicons dashicons-admin-appearance' ), 'typography' => array( 'link_url' => admin_url( 'customize.php?autofocus[section]=blockst_settings_typography' ), 'link_text' => esc_html__( 'Typography', 'blockst' ), 'icon' => 'dashicons dashicons-editor-textcolor' ), 'customizer' => array( 'link_url' => admin_url( 'customize.php' ), 'link_text' => esc_html__( 'Customizer', 'blockst' ), 'icon' => 'dashicons dashicons-admin-generic' ), ); if ( defined( 'BLOCKST_CORE_VERSION' ) ) { $buttons['adobe_fonts'] = array( 'link_url' => admin_url( 'admin.php?page=blockst-core-custom-typekit-fonts' ), 'link_text' => esc_html__( 'Adobe Fonts', 'blockst' ), 'icon' => 'dashicons dashicons-editor-spellcheck' ); } $videos = array( 'theme-installation' => array( 'links' => array( array( 'link_url' => 'https://www.youtube.com/watch?v=FrtZjnZINqo', 'link_text' => esc_html__( 'Theme Installation', 'blockst' ), 'link_img_src' => BLOCKST_URI . '/assets/admin/img/videos/blockst_video_demo_import.jpg' ) ) ), ); $info = array( 'page-layouts' => array( 'title' => esc_html__( 'Page Layout', 'blockst' ), 'class' => 'blockst-addon-list-item', 'title_url' => $urls['page-layout'], 'links' => array( array( 'link_class' => 'blockst-learn-more', 'link_url' => $urls['page-layout'], 'link_text' => esc_html__( 'Learn More »', 'blockst' ), 'target_blank' => true ), ), ), 'gdpr' => array( 'title' => esc_html__( 'GDPR Tools', 'blockst' ), 'class' => 'blockst-addon-list-item', 'title_url' => $urls['gdpr'], 'links' => array( array( 'link_class' => 'blockst-learn-more', 'link_url' => $urls['gdpr'], 'link_text' => esc_html__( 'Learn More »', 'blockst' ), 'target_blank' => true ), ), ), ); $features = array( 'demos' => array( 'title' => esc_html__( 'Home pages', 'blockst' ), 'url' => '', 'free' => esc_html__( '1', 'blockst' ), 'pro' => esc_html__( '2', 'blockst' ), ), 'header-layouts' => array( 'title' => esc_html__( 'Header layouts', 'blockst' ), 'url' => '', 'free' => esc_html__( '1', 'blockst' ), 'pro' => esc_html__( '2', 'blockst' ) ), 'rtl-translation' => array( 'title' => esc_html__( 'RTL and translation ready', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'demo-import' => array( 'title' => esc_html__( 'One Click Demo Import', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), '24-7-support' => array( 'title' => esc_html__( 'Priority email support', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'single-post-layouts' => array( 'title' => esc_html__( 'Single post layouts', 'blockst' ), 'url' => '', 'free' => esc_html__( '1', 'blockst' ), 'pro' => esc_html__( '2', 'blockst' ) ), 'premium-blockst' => array( 'title' => esc_html__( 'Premium blocks', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'woocommerce-support' => array( 'title' => esc_html__( 'WooCommerce support', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'google-map' => array( 'title' => esc_html__( 'Google map', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'newsletter-popup' => array( 'title' => esc_html__( 'Newsletter popup', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'gdpr' => array( 'title' => esc_html__( 'GDPR tools', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'acf-pro' => array( 'title' => esc_html__( 'ACF Pro integrated', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'dynamic-portfolio' => array( 'title' => esc_html__( 'Dynamic portfolio', 'blockst' ), 'url' => '', 'free' => '', 'pro' => '' ), 'typography' => array( 'title' => esc_html__( 'Typography', 'blockst' ), 'url' => '', 'free' => esc_html__( 'Google Fonts', 'blockst' ), 'pro' => esc_html__( 'Google Fonts + Adobe Fonts', 'blockst' ) ), 'colors' => array( 'title' => esc_html__( 'Colors', 'blockst' ), 'url' => '', 'free' => esc_html__( 'Limited', 'blockst' ), 'pro' => esc_html__( 'Advanced', 'blockst' ) ), ); ?>

array( 'class' => array(), 'aria-hidden' => array() ) ) ); ?> array( 'class' => array(), 'aria-hidden' => array() ) ) ); ?>
id === 'appearance_page_blockst-theme' || $current_screen->id === 'toplevel_page_blockst' ) { return; } if ( is_admin() ) { $current_theme = wp_get_theme(); $welcome_dismissed = get_user_meta( $current_user->ID, 'blockst_wizard_admin_notice' ); if ( ( $current_theme->get('Name') == "Blockst" || $current_theme->get('Name') == "Blockst Pro" ) && ! $welcome_dismissed ) { add_action( 'admin_notices', 'blockst_wizard_admin_notice', 99 ); } wp_enqueue_style( 'blockst-wizard-notice-css', get_template_directory_uri() . '/assets/admin/css/wizard-notice.css' ); } } add_action( 'current_screen', 'blockst_activation_admin_notice' ); /** * Adds a button to dismiss the notice */ function blockst_dismiss_wizard_notice() { global $current_user; $user_id = $current_user->ID; if ( isset( $_GET['blockst_wizard_dismiss'] ) && $_GET['blockst_wizard_dismiss'] == '1' ) { add_user_meta( $user_id, 'blockst_wizard_admin_notice', 'true', true ); } } add_action( 'admin_init', 'blockst_dismiss_wizard_notice', 1 ); /** * Display an admin notice linking to the wizard screen */ function blockst_wizard_admin_notice() { if ( current_user_can( 'customize' ) ) : ?>