芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/sthwholesaler.com/wp-content/plugins/woo-alidropship/admin/recommend.php
dismiss = 'wad_install_recommended_plugins_dismiss'; add_action( 'admin_menu', array( $this, 'menu_page' ), 30 ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); add_action( 'admin_init', array( $this, 'fix_dismiss_notice' ) ); } public function fix_dismiss_notice() { $dismiss = get_option( $this->dismiss ); if ( $dismiss ) { if ( $dismiss > 1600852690 ) {//2020-09-23 09:18:10 version 1.0.3.3 update time update_option( "{$this->dismiss}__email-template-customizer-for-woo", $dismiss ); } update_option( "{$this->dismiss}__product-variations-swatches-for-woocommerce", $dismiss ); delete_option( $this->dismiss ); } } public static function admin_notices_html( $message, $button, $plugin_slug ) { ?>
'exmage-wp-image-links', 'pro' => 'exmage-wordpress-image-links', 'name' => 'EXMAGE – WordPress Image Links', 'message_not_install' => __( 'Need to save your server storage?
EXMAGE – WordPress Image Links
will help you solve the problem by using external image URLs. When this plugin is active, "Use external links for images" option will be available in the ALD plugin settings/Product which allows to use original AliExpress product image URLs for featured image, gallery images and variation image of imported AliExpress products.', 'woo-alidropship' ), 'message_not_active' => __( '
EXMAGE – WordPress Image Links
is currently inactive, external images added by this plugin(Post/product featured image, product gallery images...) will no longer work properly.', 'woo-alidropship' ), ), array( 'slug' => 'woo-photo-reviews', 'pro' => 'woocommerce-photo-reviews', 'name' => 'Photo Reviews for WooCommerce', 'message_not_install' => __( '
Photo Reviews for WooCommerce
helps you send review reminder emails automatically to request a review, and lets your customer include photos in their feedback.', 'woo-alidropship' ), 'message_not_active' => __( '
Photo Reviews for WooCommerce
is currently inactive. Activate it to automatically send email to your customers to request reviews', 'woo-alidropship' ), ), array( 'slug' => 'woo-notification', 'pro' => 'woocommerce-notification', 'name' => 'Notification for WooCommerce', 'message_not_install' => __( '
Notification for WooCommerce
display recent orders as popup notifications, boosting conversion rates by showing real-time purchase, creating urgency, and showcasing new products.', 'woo-alidropship' ), 'message_not_active' => __( '
Notification for WooCommerce
is currently inactive. Activate it to display recent orders as popup notifications', 'woo-alidropship' ), ), array( 'slug' => 'product-variations-swatches-for-woocommerce', 'pro' => 'woocommerce-product-variations-swatches', 'name' => 'Product Variations Swatches for WooCommerce', 'message_not_install' => __( 'Need a variations swatches plugin that works perfectly with ALD - Dropshipping and Fulfillment for AliExpress and WooCommerce?
Product Variations Swatches for WooCommerce
is what you need.', 'woo-alidropship' ), 'message_not_active' => __( '
Product Variations Swatches for WooCommerce
is currently inactive, this prevents variable products from displaying beautifully.', 'woo-alidropship' ), ), array( 'slug' => 'bulky-bulk-edit-products-for-woo', 'pro' => '', 'name' => 'Bulky – Bulk Edit Products for WooCommerce', 'message_not_install' => __( 'Quickly and easily edit your products in bulk with
Bulky – Bulk Edit Products for WooCommerce
', 'woo-alidropship' ), // 'message_not_active' => __( '
Bulky – Bulk Edit Products for WooCommerce
is currently inactive. Activate it to quickly edit your products in bulk', 'woo-alidropship' ), ), array( 'slug' => 'email-template-customizer-for-woo', 'pro' => 'woocommerce-email-template-customizer', 'name' => 'Email Template Customizer for WooCommerce', 'message_not_install' => __( 'Try our brand new
Email Template Customizer for WooCommerce
plugin to easily customize your WooCommerce emails and make them more beautiful and professional.', 'woo-alidropship' ), // 'message_not_active' => __( '
Email Template Customizer for WooCommerce
is currently inactive. Activate it to customize WooCommerce emails with ease and make your customers more satisfied when receiving your emails.', 'woo-alidropship' ), ), array( 'slug' => 'vargal-additional-variation-gallery-for-woo', 'name' => 'VARGAL – Additional Variation Gallery for Woo', 'desc' => esc_html__( 'Easily set unlimited images or MP4/WebM videos for each WC product variation and display them when the customer selects', 'woo-alidropship' ), 'message_not_install' => sprintf( "%s
VARGAL – Additional Variation Gallery for Woo
%s", esc_html__( 'Looking for a plugin that lets you add unlimited images or MP4/WebM videos to each WooCommerce product variation?', 'woo-alidropship' ), esc_html__( 'is what you need.', 'woo-alidropship' ) ), 'message_not_active' => sprintf( "
VARGAL
%s", esc_html__( 'is currently inactive, the variation gallery setting will not be set.', 'woo-alidropship' ) ), ), ); $plugins = get_plugins(); foreach ( $recommended_plugins as $recommended_plugin ) { $plugin_slug = $recommended_plugin['slug']; if ( ! get_option( "{$this->dismiss}__{$plugin_slug}" ) ) { if ( ! empty( $recommended_plugin['pro'] ) && is_plugin_active( "{$recommended_plugin['pro']}/{$recommended_plugin['pro']}.php" ) ) { continue; } $plugin = "{$plugin_slug}/{$plugin_slug}.php"; if ( ! isset( $plugins[ $plugin ] ) ) { if ( ! ( $pagenow === 'update.php' && $action === 'install-plugin' && $_plugin === $plugin_slug ) ) { $button = '
' . esc_html__( 'Install now', 'woo-alidropship' ) . '
'; self::admin_notices_html( $recommended_plugin['message_not_install'], $button, $plugin_slug ); } } elseif ( ! is_plugin_active( $plugin ) && ! empty( $recommended_plugin['message_not_active'] ) ) { $button = '
' . esc_html__( 'Activate now', 'woo-alidropship' ) . '
'; self::admin_notices_html( $recommended_plugin['message_not_active'], $button, $plugin_slug ); } } } } public function admin_enqueue_scripts() { global $pagenow; $page = isset( $_REQUEST['page'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['page'] ) ) : ''; if ( $pagenow === 'admin.php' && $page === 'woo-alidropship-recommend' ) { wp_dequeue_style( 'eopa-admin-css' ); wp_enqueue_style( 'vi-woo-alidropship-form', VI_WOO_ALIDROPSHIP_CSS . 'form.min.css', [], VI_WOO_ALIDROPSHIP_VERSION ); wp_enqueue_style( 'vi-woo-alidropship-table', VI_WOO_ALIDROPSHIP_CSS . 'table.min.css', [], VI_WOO_ALIDROPSHIP_VERSION ); wp_enqueue_style( 'vi-woo-alidropship-icon', VI_WOO_ALIDROPSHIP_CSS . 'icon.min.css', [], VI_WOO_ALIDROPSHIP_VERSION ); wp_enqueue_style( 'vi-woo-alidropship-segment', VI_WOO_ALIDROPSHIP_CSS . 'segment.min.css', [], VI_WOO_ALIDROPSHIP_VERSION ); wp_enqueue_style( 'vi-woo-alidropship-button', VI_WOO_ALIDROPSHIP_CSS . 'button.min.css', [], VI_WOO_ALIDROPSHIP_VERSION ); if ( ! wp_style_is( 'viwad-recommended_plugins' ) ) { wp_register_style( 'viwad-recommended_plugins', false, [], VI_WOO_ALIDROPSHIP_VERSION ); wp_enqueue_style( 'viwad-recommended_plugins' ); wp_add_inline_style( 'viwad-recommended_plugins', '.fist-col { min-width: 300px;}.vi-wad-plugin-name {font-weight: 600;}.vi-wad-plugin-name a { text-decoration: none;}' ); } /* $wad_dismiss_nonce = isset( $_REQUEST['wad_dismiss_nonce'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['wad_dismiss_nonce'] ) ) : ''; $dismiss_plugin = isset( $_REQUEST['plugin'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['plugin'] ) ) : ''; if ( wp_verify_nonce( $wad_dismiss_nonce, 'wad_dismiss_nonce' ) ) { $option = $dismiss_plugin ? "{$this->dismiss}__{$dismiss_plugin}" : $this->dismiss; if ( ! get_option( $option ) ) { update_option( $option, time() ); } } if ( ! get_option( $this->dismiss ) ) { add_action( 'admin_notices', array( $this, 'admin_notices' ) ); }*/ } } public function page_callback() { $plugins = Vi_Wad_Setup_Wizard::recommended_plugins(); ?>
">
">
" target="_blank">
" target="_blank">