array( 'label' => __( 'Welcome', 'almaira-shop' ), 'show' => ! is_network_admin(), ), ); self::$view_actions = apply_filters( 'almaira_shop_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( 'almaira_shop_admin_settings_save' ); } /** * Enqueues the needed CSS/JS for the builder's admin settings page. * */ static public function styles_scripts(){ // Styles. wp_enqueue_style( 'almaira-shop-admin-settings', ALMAIRA_SHOP_THEME_URI . 'lib/theme-option/assets/css/almaira-shop-admin-menu-settings.css', array(), ALMAIRA_SHOP_VRSN ); // Script. wp_enqueue_script( 'almaira-shop-admin-settings', ALMAIRA_SHOP_THEME_URI . 'lib/theme-option/assets/js/almaira-shop-admin-menu-settings.js', array( 'jquery', 'wp-util', 'updates' ), ALMAIRA_SHOP_VRSN ); $localize = array( 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'btnActivating' => __( 'Activating Importer Plugin ', 'almaira-shop' ) . '…', 'almairashopSitesLink' => admin_url( 'themes.php?page=pt-one-click-demo-import' ), 'almairashopSitesLinkTitle' => __( 'See Library', 'almaira-shop' ), ); wp_localize_script( 'almaira-shop-admin-settings', 'almairashop', apply_filters( 'almaira_shop_theme_js_localize', $localize ) ); } /** * Enqueues the needed CSS/JS for Backend. * */ static public function admin_scripts(){ // Styles. wp_enqueue_style( 'almaira-shop', ALMAIRA_SHOP_THEME_URI . 'lib/theme-option/assets/css/almaira-shop-admin.css', array(), ALMAIRA_SHOP_VRSN ); } /** * 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( 'almaira_shop_dashboard_admin_menu', true ) ) { add_theme_page( $page_title, $page_title, $capability, $page_menu_slug, $page_menu_func ); } else { do_action( 'almaira_shop_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 ); $almaira_shop_icon = apply_filters( 'almaira_shop_page_top_icon', true ); $almshp_wrapper_class = apply_filters( 'almaira_shop_welcome_wrapper_class', array( $current_slug ) ); $my_theme = wp_get_theme(); $almaira_shop_theme_version = $my_theme->get( 'Version' ); ?>
' . esc_html( $almaira_shop_knowledge_base_doc_link_text ) . '' : esc_html( $almaira_shop_knowledge_base_doc_link_text ) ); ?>
' . esc_html( $almaira_shop_community_group_link_text ) . '' : esc_html( $almaira_shop_community_group_link_text ) ); ?>
' . esc_html( $almaira_shop_support_link_text ) . '' : esc_html( $almaira_shop_support_link_text ) ); ?>
' . esc_html( $almaira_shop_pro_link_text ) . '' : esc_html( $almaira_shop_pro_link_text ) ); ?>
Page > Add New > Create a Page and select “Home Page Template” from page attribute.', 'almaira-shop' ), self::$page_title ); ?>
Reading and set newly created page as a static page under "Front page displays" and save your changes.', 'almaira-shop' ), self::$page_title ); ?>
' . esc_html($almaira_shop_customize_link_text ) . '' : esc_html( $almaira_shop_customize_link_text ) ); ?>
';
$detail='Lead form builder is a contact form as well as lead generator plugin.';
}elseif($plugin_slug=='hunk-companion'){
echo'
';
$detail= 'Hunk Companion contain all features which are required to create a complete website. Main motive behind this plugin is to boost up functionality of ThemeHunk themes.';
}elseif($plugin_slug=='woocommerce'){
echo'
';
$detail='WooCommerce is a free eCommerce plugin that allows you to sell anything, beautifully.';
}elseif($plugin_slug=='th-advance-product-search'){
echo'
';
$detail='Th Advaced Product Search plugin is a powerful AJAX search plugin which will display search result for Product, post and pages';
}elseif($plugin_slug=='th-variation-swatches'){
echo'
';
$detail='TH Variation Swatches is a Free easy to use Swatches Plugin. This plugin will replace default swatches to professionally styled and colourful swatches.';
}elseif($plugin_slug=='yith-woocommerce-wishlist'){
echo'
';
$detail='YITH WooCommerce Wishlist allows you to add Wishlist functionality to your e-commerce.';
}elseif($plugin_slug=='yith-woocommerce-compare'){
echo'
';
$detail='YITH WooCommerce Compare plugin is an extension of WooCommerce plugin that allow your users to compare some products of your shop.';
}elseif($plugin_slug=='instagram-feed'){
echo'
';
$detail= 'Display Instagram posts from your Instagram accounts, either in the same single feed or in multiple different ones.';
}
elseif($plugin_slug=='wp-popup-builder'){
echo'
';
$detail='WP Popup Builder is a powerfull tool to create amazing popup form for your site.';
}
elseif($plugin_slug=='themehunk-megamenu-plus'){
echo'
';
$detail= 'ThemeHunk Megamenu ThemeHunk Megamenu is a free, fast and most user friendly plugin available for WordPress.';
}
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.';
}
echo ''.esc_html($detail).'
'; echo ''.__('Version:','almaira-shop').esc_html($version).' '.$author.' | '.esc_html__( 'Details', 'almaira-shop' ).'
'; echo''; echo '