芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/techleez.site/wp-content/plugins/ultimate-elementor/class-brainstorm-update-uael.php
'
' . esc_html__( 'Settings', 'uael' ) . '
', ); $links = array_merge( $action_links, $links ); if ( function_exists( 'get_bsf_inline_license_form' ) ) { $args = array( 'product_id' => 'uael', 'popup_license_form' => true, 'bsf_license_allow_email' => false, ); return get_bsf_inline_license_form( $links, $args, 'edd' ); } return $links; } /** * Get registration page url for addon. * * @since 1.0.0 * @return String URL of the licnense registration page. */ public function get_registration_page_url() { $url = admin_url( 'plugins.php?bsf-inline-license-form=uael' ); return $url; } /** * Skip Menu. * * @param array $products products. * @return array $products updated products. */ public function skip_menu( $products ) { $products[] = 'uael'; return $products; } /** * Update brainstorm product version and product path. * * @return void */ public static function version_check() { $bsf_core_version_file = realpath( dirname( __FILE__ ) . '/admin/bsf-core/version.yml' ); // Is file 'version.yml' exist? if ( is_file( $bsf_core_version_file ) ) { global $bsf_core_version, $bsf_core_path; $bsf_core_dir = realpath( dirname( __FILE__ ) . '/admin/bsf-core/' ); $version = file_get_contents( realpath( plugin_dir_path( __FILE__ ) . '/admin/bsf-core/version.yml' ) ); // Compare versions. if ( version_compare( $version, $bsf_core_version, '>' ) ) { $bsf_core_version = $version; $bsf_core_path = $bsf_core_dir; } } } /** * Add Message for license. * * @param string $content get the link content. * @param string $purchase_url purchase_url. * @return string output message. */ public function license_message_uael( $content, $purchase_url ) { $purchase_url = apply_filters( 'uael_licence_url', $purchase_url ); $message = "
" . esc_html__( 'Get the license >>', 'uael' ) . '
'; $branding = UAEL_Helper::get_white_labels(); if ( isset( $branding['plugin']['name'] ) && '' !== $branding['plugin']['name'] ) { $message = ''; } return $message; } /** * Check if beta update is enabled or disabled. * * @return bool true / false beta enable arg. */ public function beta_updates_check() { $allow_beta = UAEL_Helper::get_admin_settings_option( '_uael_beta', 'disable' ); if ( 'enable' === $allow_beta ) { return true; } return false; } /** * Product Name. * * @param string $name Product Name. * @return string product name. */ public function product_name( $name ) { $branding = UAEL_Helper::get_white_labels(); if ( isset( $branding['plugin']['name'] ) && '' !== $branding['plugin']['name'] ) { $name = $branding['plugin']['name']; } return $name; } } /** * Kicking this off by calling 'get_instance()' method */ Brainstorm_Update_UAEL::get_instance(); endif;