diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-content/plugins/portfolio/bws_menu/bws_functions.php --- a/wp/wp-content/plugins/portfolio/bws_menu/bws_functions.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-content/plugins/portfolio/bws_menu/bws_functions.php Fri Sep 05 18:40:08 2025 +0200 @@ -1,10 +1,14 @@
@@ -132,12 +144,15 @@ } } -/** - * Function display license notification - * - * @echo string - */ if ( ! function_exists( 'bws_plugin_update_row' ) ) { + /** + * Function display license notification + * + * @param string $plugin_key Plugin key. + * @param string $link_slug (Optional) Link slug. + * @param string $free_plugin_name (Optional) Free version plugin name. + * @echo string + */ function bws_plugin_update_row( $plugin_key, $link_slug = false, $free_plugin_name = false ) { global $bstwbsftwppdtplgns_options, $wp_version; $wp_list_table = _get_list_table( 'WP_Plugins_List_Table' ); @@ -210,12 +225,12 @@ } } -/** - * Function display admin notices - * - * @echo string - */ if ( ! function_exists( 'bws_admin_notices' ) ) { + /** + * Function display admin notices + * + * @echo string + */ function bws_admin_notices() { global $bws_versions_notice_array, $bws_plugin_banner_to_settings, $bstwbsftwppdtplgns_options, $bws_plugin_banner_go_pro, $bstwbsftwppdtplgns_banner_array, $bws_plugin_banner_timeout; @@ -264,7 +279,7 @@
-
' . esc_html__( $banner_value['plugin_name'] ) . '', esc_html__( $bstwbsftwppdtplgns_options['time_out'][ $banner_value['plugin_key'] ] ) ); ?>
+
' . esc_html( $banner_value['plugin_name'] ) . '', esc_html( $bstwbsftwppdtplgns_options['time_out'][ $banner_value['plugin_key'] ] ) ); ?>
%s %s WordPress %s %s', - esc_html__( $value['name'] ), + esc_html( $value['name'] ), esc_html__( 'requires', 'bestwebsoft' ), - esc_html__( $value['version'] ), + esc_html( $value['version'] ), esc_html__( 'or higher! We do not guarantee that our plugin will work correctly. Please upgrade to WordPress latest version.', 'bestwebsoft' ) ); ?> @@ -389,12 +404,19 @@ } } -/** - * Function display banner - * - * @return array - */ if ( ! function_exists( 'bws_plugin_banner_go_pro' ) ) { + /** + * Function display banner + * + * @param array $plugin_options Plugin options array. + * @param array $plugin_info Plugin info array. + * @param string $this_banner_prefix Banner prefix. + * @param string $bws_link_slug Slug for link. + * @param string $link_key Key for plugin. + * @param string $link_pn PN for plugin. + * @param string $banner_url_or_slug Url or slug for icon. + * @return array + */ function bws_plugin_banner_go_pro( $plugin_options, $plugin_info, $this_banner_prefix, $bws_link_slug, $link_key, $link_pn, $banner_url_or_slug ) { global $bws_plugin_banner_go_pro, $wp_version, $bstwbsftwppdtplgns_banner_array; @@ -424,12 +446,15 @@ } } -/** - * Function update banner params - * - * @return global array - */ if ( ! function_exists( 'bws_add_plugin_banner_timeout' ) ) { + /** + * Function update banner params + * + * @param string $plugin_key Plugin key. + * @param string $plugin_prefix Plugin prefix. + * @param string $plugin_name Plugin name. + * @param string $banner_url_or_slug Url or slug for icon. + */ function bws_add_plugin_banner_timeout( $plugin_key, $plugin_prefix, $plugin_name, $banner_url_or_slug ) { global $bws_plugin_banner_timeout; @@ -449,12 +474,17 @@ } } -/** - * Function settings for banner - * - * @return global array - */ if ( ! function_exists( 'bws_plugin_banner_to_settings' ) ) { + /** + * Function settings for banner + * + * @param array $plugin_info Plugin info. + * @param array $plugin_options_name Plugin option name. + * @param array $banner_url_or_slug Url or slug for icon. + * @param array $settings_url Url for settings. + * @param array $post_type_url (Optional) Url for banner. + * @return global array + */ function bws_plugin_banner_to_settings( $plugin_info, $plugin_options_name, $banner_url_or_slug, $settings_url, $post_type_url = false ) { global $bws_plugin_banner_to_settings; @@ -490,12 +520,15 @@ } } -/** - * Function display for feature banner - * - * @echo string - */ if ( ! function_exists( 'bws_plugin_suggest_feature_banner' ) ) { + /** + * Function display for feature banner + * + * @param array $plugin_info Plugin info. + * @param array $plugin_options_name Plugin option name. + * @param array $banner_url_or_slug Url or slug for icon. + * @echo string + */ function bws_plugin_suggest_feature_banner( $plugin_info, $plugin_options_name, $banner_url_or_slug ) { $is_network_admin = is_network_admin(); @@ -507,17 +540,20 @@ if ( ! isset( $plugin_options['first_install'] ) ) { $plugin_options['first_install'] = strtotime( 'now' ); - $update_option = $return = true; + $update_option = true; + $return = true; } elseif ( strtotime( '-2 week' ) < $plugin_options['first_install'] ) { $return = true; } if ( ! isset( $plugin_options['go_settings_counter'] ) ) { $plugin_options['go_settings_counter'] = 1; - $update_option = $return = true; + $update_option = true; + $return = true; } elseif ( 20 > $plugin_options['go_settings_counter'] ) { $plugin_options['go_settings_counter'] = $plugin_options['go_settings_counter'] + 1; - $update_option = $return = true; + $update_option = true; + $return = true; } if ( isset( $update_option ) ) { @@ -567,12 +603,12 @@ } } -/** - * Function display affiliate postbox - * - * @echo string - */ if ( ! function_exists( 'bws_affiliate_postbox' ) ) { + /** + * Function display affiliate postbox + * + * @echo string + */ function bws_affiliate_postbox() { $dismissed = get_user_meta( get_current_user_id(), '_bws_affiliate_postbox_dismissed', true ); @@ -621,12 +657,12 @@ } } -/** - * Function display settings notice - * - * @echo string - */ if ( ! function_exists( 'bws_show_settings_notice' ) ) { + /** + * Function display settings notice + * + * @echo string + */ function bws_show_settings_notice() { ?>