hook_suffix) || !in_array( $hook_suffix, $this->hook_suffix )){ return; } wp_enqueue_style('wpness-grid', COSMOSWP_URL . '/assets/library/wpness-grid/wpness-grid' . COSMOSWP_SCRIPT_PREFIX . '.css', array(), '1.0.0'); wp_enqueue_style( 'cosmoswp-notice', COSMOSWP_URL. '/inc/admin/notice.css', array(), '1.0.0' ); wp_enqueue_script( 'cosmoswp-adi-install', COSMOSWP_URL . '/inc/admin/notice.js', array( 'jquery' ), '', true ); $translation = array( 'btn_text' => esc_html__( 'Processing...', 'cosmoswp' ), 'nonce' => wp_create_nonce( 'cosmoswp_demo_import_nonce' ) ); wp_localize_script( 'cosmoswp-adi-install', 'cosmoswp_adi_install', $translation ); } /** * Add admin menus * @access public */ public function intro() { $this->hook_suffix[] = add_theme_page( esc_html__( 'CosmosWP Intro','cosmoswp' ), esc_html__( 'CosmosWP Intro','cosmoswp' ), 'manage_options', 'cosmoswp-intro', array( $this, 'intro_screen' ) ); } /** * parse changelog * @access Private * @return string */ private function parse_changelog( $content ) { $matches = null; $regexp = '~==\s*Changelog\s*==(.*)($)~Uis'; $changelog = ''; if ( preg_match( $regexp, $content, $matches ) ) { $changes = explode( '\r\n', trim( $matches[1] ) ); $changelog .= '
';

            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 ); } /** * More Setting/Options array specially for Pro * @access Private * @return array */ private function more_setting() { $more_setting = array( array( 'label' => esc_html__( 'Advanced Banner', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Advanced Blog', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Blog Pagination', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Dropdown Menu', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Header Sidebar Widgets', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Masonry Blog', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'News Ticker', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Off Canvas Sidebar', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Overlay Search', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Popup Sidebar', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Related Post', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Sticky Footer', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ), array( 'label' => esc_html__( 'Sticky Sidebar', 'cosmoswp' ), 'url' => '#', 'button' => esc_html__( 'View More', 'cosmoswp' ) ) ); return $more_setting; } /** * FAQ Array * @access Private * @return array */ private function faq() { $faq = array( array( 'q' => esc_html__('How to hide/change footer Powered text?','cosmoswp'), 'a' => sprintf(esc_html__('Please go to %1$sFooter Copyright%2$s option, you can edit copyright text, also remove it completely.', 'cosmoswp'), " 'footer_copyright'), admin_url( 'customize.php' ) ). "' target='_blank'>", ''), ), array( 'q' => esc_html__('Does this theme support Gutenberg Blocks?','cosmoswp'), 'a' => sprintf(esc_html__('Yes, the theme fully supports Gutenberg Blocks. The demo of CosmosWP theme is created primarily on the base of %1$sGutentor: WordPress Page Building Blocks%2$s ', 'cosmoswp'), "", ''), ), array( 'q' => esc_html__('Does this theme support Page Builder?','cosmoswp'), 'a' => esc_html__('Yes, CosmosWP theme support all major page builders including Elementor, Siteorigin, Divi, BeaverBuilder etc.','cosmoswp'), ), array( 'q' => esc_html__('What is Gutentor?','cosmoswp'), 'a' => sprintf(esc_html__('Gutentor is a WordPress plugin based on Gutenberg Blocks, modern drag & drop WordPress page builder Know more about it on %1$sGutentor official website%2$s', 'cosmoswp'), "", ''), ), ); return $faq; } /** * Show the plugin recommended screen * @access public * @return void */ public function intro_screen() { ?>

<?php esc_html_e( 'CosmosWP', 'cosmoswp' ); ?>

  • 'cosmoswp-general-setting-section'), admin_url( 'customize.php' ) ); ?>
  • 'title_tagline'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp_header'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp_footer'), admin_url( 'customize.php' ) ); ?>
  • 'header_image'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp_main_content'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp-blog'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp-page'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp_post_panel'), admin_url( 'customize.php' ) ); ?>
  • 'cosmoswp_theme_options'), admin_url( 'customize.php' ) ); ?>

get_contents( $changelog_file ); $changelog_list = $this->parse_changelog( $changelog ); echo wp_kses_post( $changelog_list ); } ?>

faq(); foreach ( $more_setting as $key => $setting ){ echo "
"; echo "";/*cwp-card-header*/ echo "";/*id*/ echo "
";/*cwp-card*/ } ?>
run();