array( 'label' => __( 'Welcome', 'bevro' ), 'show' => ! is_network_admin(), ), ); self::$view_actions = apply_filters( 'bevro_menu_options', $actions ); } return self::$view_actions; } /** * Save All admin settings here */ static public function save_settings() { // Only admins can save settings. if ( ! current_user_can( 'manage_options' ) ){ return; } // Let extensions hook into saving. do_action( 'bevro_admin_settings_save' ); } /** * Enqueues the needed CSS/JS for the builder's admin settings page. * */ static public function styles_scripts(){ // Styles. wp_enqueue_style( 'bevro-admin-settings', BEVRO_THEME_URI . 'lib/theme-option/assets/css/bevro-admin-menu-settings.css', array(), BEVRO_THEME_VERSION ); // Script. wp_enqueue_script( 'bevro-admin-settings', BEVRO_THEME_URI . 'lib/theme-option/assets/js/bevro-admin-menu-settings.js', array( 'jquery', 'wp-util', 'updates' ), BEVRO_THEME_VERSION ); $localize = array( 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'btnActivating' => __( 'Activating Importer Plugin ', 'bevro' ) . '…', 'bevroSitesLink' => admin_url( 'themes.php?page=pt-one-click-demo-import' ), 'bevroSitesLinkTitle' => __( 'See Library', 'bevro' ), ); wp_localize_script( 'bevro-admin-settings', 'bevro', apply_filters( 'bevro_theme_js_localize', $localize ) ); } /** * Enqueues the needed CSS/JS for Backend. * */ static public function admin_scripts(){ // Styles. wp_enqueue_style( 'bevro-admin', BEVRO_THEME_URI . 'lib/theme-option/assets/css/bevro-admin.css', array(), BEVRO_THEME_VERSION ); } /** * Add main menu * */ static public function add_admin_menu() { $parent_page = self::$default_menu_position; $page_title = self::$menu_page_title; $capability = 'manage_options'; $page_menu_slug = self::$plugin_slug; $page_menu_func = __CLASS__ . '::menu_callback'; if ( apply_filters( 'bevro_dashboard_admin_menu', true ) ) { add_theme_page( $page_title, $page_title, $capability, $page_menu_slug, $page_menu_func ); } else { do_action( 'bevro_register_admin_menu', $parent_page, $page_title, $capability, $page_menu_slug, $page_menu_func ); } } /** * Menu callback * */ static public function menu_callback() { $current_slug = isset( $_GET['action'] ) ? esc_attr( $_GET['action'] ) : self::$current_slug; $active_tab = str_replace( '_', '-', $current_slug ); $current_slug = str_replace( '-', '_', $current_slug ); $bevro_icon = apply_filters( 'bevro_page_top_icon', true ); $ast_visit_site_url = apply_filters( 'bevroa_site_url', 'https://bevro.com' ); $ast_wrapper_class = apply_filters( 'bevro_welcome_wrapper_class', array( $current_slug ) ); $my_theme = wp_get_theme(); $bevro_theme_version = $my_theme->get( 'Version' ); ?>
%7$s ', esc_attr( $class ), isset( $link ) ? 'href="' . esc_url( $link ) . '"' : '', isset( $data_slug ) ? 'data-slug="' . esc_attr( $data_slug ) . '"' : '', isset( $data_init ) ? 'data-init="' . esc_attr( $data_init ) . '"' : '', isset( $data_slug1 ) ? 'data-slug1="' . esc_attr( $data_slug1 ) . '"' : '', isset( $data_init1 ) ? 'data-init1="' . esc_attr( $data_init1 ) . '"' : '', esc_html( $button_text ) ); ?>
' . esc_html( $bevro_knowledge_base_doc_link_text ) . '' : esc_html( $bevro_knowledge_base_doc_link_text ) ); ?>
' . esc_html( $bevro_community_group_link_text ) . '' : esc_html( $bevro_community_group_link_text ) ); ?>
' . esc_html( $bevro_support_link_text ) . '' : esc_html( $bevro_support_link_text ) ); ?>
' . esc_html( $bevro_pro_link_text ) . '' : esc_html( $bevro_pro_link_text ) ); ?>
';
$detail='Contact Form 7 can manage multiple contact forms, plus you can customize the form and the mail contents flexibly with simple markup';
}elseif($plugin_slug=='one-click-demo-import'){
echo'
';
$detail= 'Import your demo content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.';
}elseif($plugin_slug=='woocommerce'){
echo'
';
$detail='WooCommerce is a free eCommerce plugin that allows you to sell anything, beautifully.';
}elseif($plugin_slug=='elementor'){
echo'
';
$detail='The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.';
}elseif($plugin_slug=='business-popup'){
echo'
';
$detail='Business Popup plugin comes with easy to use layouts, You can simply select and add your original content using live editor. Plugin contain layouts for sale, Discount offers, Deals, shop ad etc. You can popup at your desired page, post, Between post and in the widget areas as a banner ad.';
}
echo ''.esc_html($detail).'
'; echo 'Version:'.esc_html($version).' '.$author.' | '.esc_html__( 'Details', 'bevro' ).'
'; echo''; echo '