<?php // About Ashe // Add About Ashe Page function ashe_about_page() { add_theme_page( esc_html__( 'About Ashe', 'ashe' ), esc_html__( 'About Ashe', 'ashe' ), 'edit_theme_options', 'about-ashe', 'ashe_about_page_output' ); } add_action( 'admin_menu', 'ashe_about_page' ); // Render About Ashe HTML function ashe_about_page_output() { $theme_data = wp_get_theme(); ?> <div class="wrap"> <div class="options-page-header-wrapper"> <h1> <span><?php /* translators: %s theme name */ printf( esc_html__( 'Welcome to %s', 'ashe' ), esc_html( $theme_data->Name ) ); ?></span> <a href="<?php echo esc_url('https://ashe-free.wp-royal-themes.com/demo/?ref=ashe-free-backend-about-theme-prev-btn'); ?>" class="button button-primary button-hero" target="_blank"><?php esc_html_e( 'Theme Demo Preview', 'ashe' ); ?><span class="dashicons dashicons-external"></span></a> </h1> </div> <div class="welcome-text"> <p> <span><?php /* translators: %s theme name */ printf( esc_html__( '%s theme is one of the most Popular Free WordPress theme of 2021-2023 years. To understand better what the theme can offer, please click the button below.', 'ashe' ), esc_html( $theme_data->Name ) ); ?></span> <br> </p> </div> <div class="options-page-tabs-wrapper"> <!-- Tabs --> <?php $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'ashe_tab_1'; ?> <div class="wpr-nav-tab-wrapper"> <a href="?page=about-ashe&tab=ashe_tab_1" class="nav-tab <?php echo $active_tab == 'ashe_tab_1' ? 'nav-tab-active' : ''; ?>"> <span class="dashicons dashicons-admin-site"></span><?php esc_html_e( 'Getting Started', 'ashe' ); ?> </a> <a href="?page=about-ashe&tab=ashe_tab_2" class="nav-tab <?php echo $active_tab == 'ashe_tab_2' ? 'nav-tab-active' : ''; ?>"> <span class="dashicons dashicons-video-alt3"></span><?php esc_html_e( 'Video Tutorials', 'ashe' ); ?> </a> <a href="?page=about-ashe&tab=ashe_tab_3" class="nav-tab <?php echo $active_tab == 'ashe_tab_3' ? 'nav-tab-active' : ''; ?>"> <span class="dashicons dashicons-admin-plugins"></span><?php esc_html_e( 'Useful Plugins', 'ashe' ); ?> </a> <a href="?page=about-ashe&tab=ashe_tab_4" class="nav-tab <?php echo $active_tab == 'ashe_tab_4' ? 'nav-tab-active' : ''; ?>"> <span class="dashicons dashicons-groups"></span><?php esc_html_e( 'Support', 'ashe' ); ?> </a> <a href="?page=about-ashe&tab=ashe_tab_5" class="nav-tab <?php echo $active_tab == 'ashe_tab_5' ? 'nav-tab-active' : ''; ?>"> <span class="dashicons dashicons-star-filled"></span><?php esc_html_e( 'Free vs Pro', 'ashe' ); ?> </a> </div> <!-- Tab Content --> <?php if ( $active_tab == 'ashe_tab_1' ): ?> <div class="four-columns-wrap getting-started"> <div class="column-width-4 docs-desc"> <h3><?php esc_html_e( 'Documentation', 'ashe' ); ?></h3> <p> <?php /* translators: %s theme name */ printf( esc_html__( 'Need more details? Please check our full documentation for detailed information on how to use %s.', 'ashe' ), esc_html( $theme_data->Name ) ); ?> </p> <a target="_blank" href="<?php echo esc_url('https://wp-royal-themes.com/themes/ashe/docs/?ref=ashe-free-backend-about-docs/'); ?>" class="button button-primary docs"><?php esc_html_e( 'Read Full Documentation', 'ashe' ); ?></a> <a target="_blank" href="<?php echo esc_url('https://youtu.be/mI_MYlOCAG8?t=169'); ?>" class="button button-primary insta"><span class="dashicons dashicons-video-alt3"></span><?php esc_html_e( 'Setup Instagram', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Demo Content', 'ashe' ); ?></h3> <p> <?php esc_html_e( 'If you are a WordPress beginner it\'s highly recommended to install the theme Demo Content. This file includes: Menus, Posts, Pages, Widgets, etc.', 'ashe' ); ?> </p> <?php if ( is_plugin_active( 'ashe-extra/ashe-extra.php' ) ) : ?> <a href="<?php echo admin_url( '/admin.php?page=ashe-extra' ); ?>" class="button button-primary demo-import"><?php esc_html_e( 'Go to Import page', 'ashe' ); ?></a> <?php elseif ( ashe_check_installed_plugin( 'ashe-extra', 'ashe-extra' ) ) : ?> <button class="button button-primary demo-import" id="ashe-demo-content-act"><?php esc_html_e( 'Activate Demo Import Plugin', 'ashe' ); ?></button> <?php else: ?> <button class="button button-primary demo-import" id="ashe-demo-content-inst"><?php esc_html_e( 'Install Demo Import Plugin', 'ashe' ); ?></button> <?php endif; ?> <a href="<?php echo esc_url('https://youtu.be/mI_MYlOCAG8') ?>" target="_blank" class="button button-primary import-video"><span class="dashicons dashicons-video-alt3"></span><?php esc_html_e( 'Demo Import Video Tutorial', 'ashe' ); ?></a> </div> <div class="column-width-4 ashe-woocommerce-inst-box"> <h3><?php esc_html_e( 'Woocommerce', 'ashe' ); ?></h3> <p> <?php $allowed_html = array( 'a' => array( 'href' => array(), 'title' => array(), 'style' => array(), 'target' => array() ), ); echo wp_kses( 'With Ashe theme you can build a beautiful <a style="color: #3858E9;" href="https://ashe-free.wp-royal-themes.com/demo/shop/?ref=ashe-free-backend-about-shop-prev-btn" target="_blank">online shop</a> with ease, just install the Woocommerce plugin and start building your shop today!', $allowed_html); ?> </p> <?php if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) : ?> <a class="button button-primary disabled" style="margin-bottom: 10px;"><?php esc_html_e( 'Already Activated', 'ashe' ); ?></a> <?php elseif ( ashe_check_installed_plugin( 'woocommerce', 'woocommerce' ) ) : ?> <a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=woocommerce/woocommerce.php' ), 'activate-plugin_woocommerce/woocommerce.php' ) ); ?>" id="ashe-woocommerce-activate" class="button button-primary"><?php esc_html_e( 'Activate Now', 'ashe' ); ?></a> <?php else : ?> <a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=woocommerce' ), 'install-plugin_woocommerce' ) ); ?>" id="ashe-woocommerce-install" class="button button-primary"><?php esc_html_e( 'Install Woocommerce', 'ashe' ); ?></a> <?php endif; ?> <a style="width: 215px; display: block" href="<?php echo esc_url('https://wp-royal-themes.com/video-tutorial-coming-soon/') ?>" target="_blank" class="button button-primary import-video"><span class="dashicons dashicons-video-alt3"></span><?php esc_html_e( 'Shop Setup Video Tutorial', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Theme Customizer', 'ashe' ); ?></h3> <p> <?php /* translators: %s theme name */ printf( esc_html__( '%s supports the Theme Customizer for all theme settings. Click "Customize" to personalize your site.', 'ashe' ), esc_html( $theme_data->Name ) ); ?> </p> <a target="_blank" href="<?php echo esc_url( wp_customize_url() );?>" class="button button-primary"><?php esc_html_e( 'Start Customizing', 'ashe' ); ?></a> </div> <?php if(2 < 1) : //temporary-change ?> <div class="column-width-4"> <h3 class="royal-addons-title"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/royal-addons-logo.png'; ?>" alt="<?php esc_attr_e( 'Royal Elementor Addons', 'ashe' ); ?>"> <span><?php esc_html_e( 'Royal Elementor Addons', 'ashe' ); ?></span> </h3> <p> <?php echo esc_html__( 'The most useful and easy to use Elementor Addons by WP Royal. Build any kind of page just with drag and drop. Add Grids. Galleries, Testimonials, Pricings, Countdown, etc...', 'ashe' ); ?> </p> <br> <?php if ( is_plugin_active( 'royal-elementor-addons/wpr-addons.php' ) ) : ?> <a class="button button-primary disabled"><?php esc_html_e( 'Already Activated', 'ashe' ); ?></a> <?php elseif ( ashe_check_installed_plugin( 'royal-elementor-addons', 'wpr-addons' ) ) : ?> <a target="_blank" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=royal-elementor-addons/wpr-addons.php' ), 'activate-plugin_royal-elementor-addons/wpr-addons.php' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Activate Now', 'ashe' ); ?></a> <?php else : ?> <a target="_blank" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=royal-elementor-addons' ), 'install-plugin_royal-elementor-addons' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Install Now', 'ashe' ); ?></a> <?php endif; ?> </div> <?php endif; ?> </div> <div class="four-columns-wrap predefined-styles"> <h2 id="ashe-predefined-styles"><?php esc_html_e( 'Ashe Pro - Predefined Styles', 'ashe' ); ?></h2> <p> <?php /* translators: %s link */ printf( __( 'Ashe Pro\'s powerful setup allows you to easily create unique looking sites. Here are a few included examples that can be installed with one click in the Pro Version. More details in the <a href="%s" target="_blank" >Theme Documentation</a>', 'ashe' ), esc_url('https://wp-royal-themes.com/themes/ashe/docs/?ref=ashe-free-backend-about-predefined-styles#predefined') ); ?> </p> <div class="column-width-4"> <div class="active-style"><?php esc_html_e( 'Active', 'ashe' ); ?></div> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img1.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Main', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/demo/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/food.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Food', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/food/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/lifestyle.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Lifestyle', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/lifestyle/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img2.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Dark', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-black/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img7.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 1', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/typography-v2/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img12.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 2', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/sample-v3/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img5.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 3', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns2-sidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img3.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 4', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/sample-v5/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img4.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 5', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-colorful/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img6.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 6', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns4/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img8.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 7', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns3-sidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img9.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 8', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/color-black-white/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img10.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 9', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns3-nsidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> <div class="column-width-4"> <img src="<?php echo esc_url(get_template_directory_uri()) . '/assets/images/img11.jpg'; ?>" alt=""> <div> <h2><?php esc_html_e( 'Style 10', 'ashe' ); ?></h2> <a href="<?php echo esc_url('https://ashe-pro.wp-royal-themes.com/columns2-nsidebar/?ref=ashe-free-backend-about-predefined-styles'); ?>" target="_blank" class="button button-primary"><?php esc_html_e( 'Live Preview', 'ashe' ); ?></a> </div> </div> </div> <?php elseif ( $active_tab == 'ashe_tab_2' ) : ?> <div class="four-columns-wrap video-tutorials"> <div class="column-width-4"> <h3><?php esc_html_e( 'Demo Content', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://youtu.be/mI_MYlOCAG8"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" href="<?php echo esc_url(admin_url('themes.php?page=about-ashe&tab=ashe_tab_1')); ?>"></span><?php esc_html_e( 'Get Started', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Instagram Widget', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://youtu.be/mI_MYlOCAG8?t=169"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Menu', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=wuggfN2nzDM"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('nav-menus.php')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Logo Image', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=W_IoRYj1pKY"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=title_tagline')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Social Media', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=yiQLoofNYYs"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_social_media')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Copyright', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=NoOQmxSm5rk"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_page_footer')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Colors', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=cW6qT8OocpE"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_colors')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Header Image', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=xH4Z-d_KlQk"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=header_image')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Random Header Images', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=sayr8QwpbrM"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=header_image')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Featured Slider', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=H9i-cKOey98"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_featured_slider')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Setup Featured Links', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=pCtjGwieCoo"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_featured_links')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Customize General Layouts', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=WhEWOo8PoB0"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_general')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Customize Blog Page', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=DgtVfFQo7H8"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> <a class="button button-secondary" target="_blank" href="<?php echo esc_url(admin_url('customize.php?autofocus[section]=ashe_blog_page')); ?>"></span><?php esc_html_e( 'Customize', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Create Blog Post', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=gvW0FhT-cSQ"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3><?php esc_html_e( 'Translate The Theme', 'ashe' ); ?></h3> <a class="button button-primary" target="_blank" href="https://www.youtube.com/watch?v=7LtyVjw46r8"><?php esc_html_e( 'Watch Video', 'ashe' ); ?></a> </div> </div> <?php elseif ( $active_tab == 'ashe_tab_3' ) : ?> <div class="three-columns-wrap"> <br><br> <?php // Royal Elementor Addons ashe_recommended_plugin( 'royal-elementor-addons', 'wpr-addons' ); // WooCommerce ashe_recommended_plugin( 'woocommerce', 'woocommerce' ); // MailChimp ashe_recommended_plugin( 'mailchimp-for-wp', 'mailchimp-for-wp' ); // MailPoet 2 // ashe_recommended_plugin( 'wysija-newsletters', 'index' ); // Contact Form 7 ashe_recommended_plugin( 'contact-form-7', 'wp-contact-form-7' ); // Recent Posts Widget ashe_recommended_plugin( 'recent-posts-widget-with-thumbnails', 'recent-posts-widget-with-thumbnails' ); // Ajax Thumbnail Rebuild ashe_recommended_plugin( 'ajax-thumbnail-rebuild', 'ajax-thumbnail-rebuild' ); // Meks Easy Instagram Widget // ashe_recommended_plugin( 'meks-easy-instagram-widget', 'meks-easy-instagram-widget' ); // Smash Balloon Social Photo Feed ashe_recommended_plugin( 'instagram-feed', 'instagram-feed' ); // Facebook Widget ashe_recommended_plugin( 'facebook-pagelike-widget', 'facebook_widget' ); ?> </div> <?php elseif ( $active_tab == 'ashe_tab_4' ) : ?> <div class="four-columns-wrap support"> <br> <div class="column-width-4"> <h3> <span class="dashicons dashicons-sos"></span> <?php esc_html_e( 'Forums', 'ashe' ); ?> </h3> <p><?php esc_html_e( 'Before asking a questions it\'s highly recommended to search on forums, but if you can\'t find the solution feel free to create a new topic.', 'ashe' ); ?></p> <a target="_blank" class="button button-primary" href="<?php echo esc_url('https://wp-royal-themes.com/support-ashe-free/?ref=ashe-free-backend-about-support-forum/'); ?>"><?php esc_html_e( 'Go to Support Forums', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3> <span class="dashicons dashicons-admin-tools"></span> <?php esc_html_e( 'Changelog', 'ashe' ); ?> </h3> <p><?php esc_html_e( 'Want to get the gist on the latest theme changes? Just consult our changelog below to get a taste of the recent fixes and features implemented.', 'ashe' ); ?></p> <a target="_blank" class="button button-primary" href="<?php echo esc_url('https://wp-royal-themes.com/ashe-free-changelog/?ref=ashe-free-backend-about-changelog/'); ?>"><?php esc_html_e( 'Changelog', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3> <span class="dashicons dashicons-email"></span> <?php esc_html_e( 'Email Support', 'ashe' ); ?> </h3> <p><?php esc_html_e( 'If you have any kind of theme related questions, feel free to ask.', 'ashe' ); ?></p> <a target="_blank" class="button button-primary" href="<?php echo esc_url('https://wp-royal-themes.com/contact/?ref=ashe-free-backend-about-contact/#!/cform'); ?>"><?php esc_html_e( 'Contact Us', 'ashe' ); ?></a> </div> <div class="column-width-4"> <h3> <span class="dashicons dashicons-admin-appearance"></span> <?php esc_html_e( 'Child Theme', 'ashe' ); ?> </h3> <p><?php esc_html_e( 'The best way to customize Ashe Theme code.', 'ashe' ); ?></p> <a target="_blank" class="button button-primary" href="<?php echo esc_url('https://wp-royal-themes.com/themes/ashe/docs/?ref=ashe-free-backend-about-childtheme/#childthemes'); ?>"><?php esc_html_e( 'Download Now', 'ashe' ); ?></a> </div> </div> <?php elseif ( $active_tab == 'ashe_tab_5' ) : ?> <br><br> <table class="free-vs-pro form-table"> <thead> <tr> <th> <a href="<?php echo esc_url('https://wp-royal-themes.com/themes/item-ashe-pro/?ref=ashe-free-backend-about-section-getpro-btn'); ?>" target="_blank" class="button button-primary button-hero"> <?php esc_html_e( 'Get Ashe Pro', 'ashe' ); ?> </a> </th> <th><?php esc_html_e( 'Ashe', 'ashe' ); ?></th> <th><?php esc_html_e( 'Ashe Pro', 'ashe' ); ?></th> </tr> </thead> <tbody> <tr> <td> <h3><?php esc_html_e( '800+ Google Fonts', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Header Background Image/Color/Video', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3> <a href="<?php echo admin_url('themes.php?page=about-ashe#ashe-predefined-styles'); ?>" target="_blank"> <?php esc_html_e( 'Predefined Styles', 'ashe' ); ?> <span class="dashicons dashicons-external"></span> </a> </h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Unlimited Colors Options', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Classic, List, Grid Layouts', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Advanced Slider Options', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Advanced WooCommerce Support', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Sticky Navigation', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td> <h3><?php esc_html_e( 'Premium Support 24/7', 'ashe' ); ?></h3> </td> <td class="compare-icon"><span class="dashicons-before dashicons-no"></span></td> <td class="compare-icon"><span class="dashicons-before dashicons-yes"></span></td> </tr> <tr> <td colspan="3"> <a href="<?php echo esc_url('https://wp-royal-themes.com/themes/item-ashe-pro/?ref=ashe-free-backend-about-section-feature-list-btn#features'); ?>" target="_blank" class="button button-primary button-hero"> <strong><?php esc_html_e( 'View Full Feature List', 'ashe' ); ?></strong> </a> </td> </tr> </tbody> </table> <?php endif; ?> </div> </div> <?php } // end ashe_about_page_output // Check if plugin is installed function ashe_check_installed_plugin( $slug, $filename ) { return file_exists( ABSPATH . 'wp-content/plugins/' . $slug . '/' . $filename . '.php' ) ? true : false; } // Generate Recommended Plugin HTML function ashe_recommended_plugin( $slug, $filename ) { if ( $slug === 'facebook-pagelike-widget' ) { $size = '128x128'; } else { $size = '256x256'; } $plugin_info = ashe_call_plugin_api( $slug ); $plugin_desc = isset($plugin_info->short_description) ? $plugin_info->short_description : ''; $plugin_img = ( ! isset($plugin_info->icons['1x']) ) ? $plugin_info->icons['default'] : $plugin_info->icons['1x']; ?> <div class="plugin-card"> <div class="name column-name"> <h3> <?php echo esc_html( $plugin_info->name ); ?> <img src="<?php echo $plugin_img; ?>" class="plugin-icon" alt=""> </h3> </div> <div class="action-links"> <?php if ( ashe_check_installed_plugin( $slug, $filename ) ) : ?> <button type="button" class="button button-disabled" disabled="disabled"><?php esc_html_e( 'Installed', 'ashe' ); ?></button> <?php else : ?> <a class="install-now button-primary" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin='. $slug ), 'install-plugin_'. $slug ) ); ?>" > <?php esc_html_e( 'Install Now', 'ashe' ); ?> </a> <?php endif; ?> </div> <div class="desc column-description"> <p><?php echo $plugin_desc . esc_html__( '...', 'ashe' ); ?></p> </div> </div> <?php } // Get Plugin Info function ashe_call_plugin_api( $slug ) { $call_api = get_transient( 'ashe_about_plugin_info_' . $slug ); if ( false === $call_api ) { if ( ! function_exists( 'plugins_api' ) && file_exists( trailingslashit( ABSPATH ) . 'wp-admin/includes/plugin-install.php' ) ) { require_once( trailingslashit( ABSPATH ) . 'wp-admin/includes/plugin-install.php' ); } if ( function_exists( 'plugins_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, ), ) ); if ( ! is_wp_error( $call_api ) ) { set_transient( 'ashe_about_plugin_info_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS ); } } } return $call_api; } // Install/Activate Demo Import Plugin function ashe_plugin_auto_activation() { // Get the list of currently active plugins (Most likely an empty array) $active_plugins = (array) get_option( 'active_plugins', array() ); array_push( $active_plugins, 'ashe-extra/ashe-extra.php' ); // Set the new plugin list in WordPress update_option( 'active_plugins', $active_plugins ); } add_action( 'wp_ajax_ashe_plugin_auto_activation', 'ashe_plugin_auto_activation' ); // enqueue ui CSS/JS function ashe_enqueue_about_page_scripts($hook) { if ( 'appearance_page_about-ashe' != $hook ) { return; } // enqueue CSS wp_enqueue_style( 'ashe-about-page-css', get_theme_file_uri( '/inc/about/css/about-ashe-page.css' ), array(), '1.9.9.5.9' ); // Demo Import wp_enqueue_script( 'plugin-install' ); wp_enqueue_script( 'updates' ); wp_enqueue_script( 'ashe-about-page-css', get_theme_file_uri( '/inc/about/js/about-ashe-page.js' ), array(), '1.8.2' ); } add_action( 'admin_enqueue_scripts', 'ashe_enqueue_about_page_scripts' );