upgrade link, if so use it. */ if ( $is_upgrade_url ) { $option_content_key = str_replace( '-', '_', $filter_key ); $theme_upgrade_option_name = 'themeisle_af_' . $option_content_key . '_themes_upgrade'; $plugin_upgrade_option_name = 'themeisle_af_' . $option_content_key . '_plugins_upgrade'; $theme_option_url = get_option( $theme_upgrade_option_name, false ); if ( ! empty( $theme_option_url ) ) { $utmify_url = esc_url_raw( $theme_option_url ); } $plugin_option_url = get_option( $plugin_upgrade_option_name, false ); if ( ! empty( $plugin_option_url ) ) { $utmify_url = esc_url_raw( $plugin_option_url ); } } return apply_filters( 'tsdk_utmify_url_' . $filter_key, $utmify_url, $url ); } add_filter( 'tsdk_utmify', 'tsdk_utmify', 10, 3 ); } if ( ! function_exists( 'tsdk_lstatus' ) ) { /** * Check license status. * * @param string $file Product basefile. * * @return string Status. */ function tsdk_lstatus( $file ) { return \ThemeisleSDK\Modules\Licenser::status( $file ); } } if ( ! function_exists( 'tsdk_lis_valid' ) ) { /** * Check if license is valid. * * @param string $file Product basefile. * * @return bool Validness. */ function tsdk_lis_valid( $file ) { return \ThemeisleSDK\Modules\Licenser::is_valid( $file ); } } if ( ! function_exists( 'tsdk_lplan' ) ) { /** * Get license plan. * * @param string $file Product basefile. * * @return string Plan. */ function tsdk_lplan( $file ) { return \ThemeisleSDK\Modules\Licenser::plan( $file ); } } if ( ! function_exists( 'tsdk_lkey' ) ) { /** * Get license key. * * @param string $file Product basefile. * * @return string Key. */ function tsdk_lkey( $file ) { return \ThemeisleSDK\Modules\Licenser::key( $file ); } } if ( ! function_exists( 'tsdk_translate_link' ) ) { /** * Function to translate a link based on the current language. * * @param string $url URL to translate. * @param string{'path'|'query'|'domain'} $type Type of localization. Supports path, query and domain. * @param array $available_languages Available language to choose from. * * @return string */ function tsdk_translate_link( $url, $type = 'path', $available_languages = [ 'de_DE' => 'de', 'de_DE_formal' => 'de', ] ) { $language = get_user_locale(); if ( ! isset( $available_languages[ $language ] ) ) { return $url; } $code = $available_languages[ $language ]; // We asume that false is based on query and add the code via query arg. if ( $type === 'query' ) { return add_query_arg( 'lang', $code, $url ); } $parsed_url = wp_parse_url( $url ); // we replace the domain here based on the localized one. if ( $type === 'domain' ) { return $parsed_url['scheme'] . '://' . $code . ( isset( $parsed_url['path'] ) ? $parsed_url['path'] : '' ) . ( isset( $parsed_url['query'] ) ? '?' . $parsed_url['query'] : '' ) . ( isset( $parsed_url['fragment'] ) ? '#' . $parsed_url['fragment'] : '' ); } // default is the path based approach. $new_path = isset( $parsed_url['path'] ) ? "/$code" . $parsed_url['path'] : "/$code"; return $parsed_url['scheme'] . '://' . $parsed_url['host'] . $new_path . ( isset( $parsed_url['query'] ) ? '?' . $parsed_url['query'] : '' ) . ( isset( $parsed_url['fragment'] ) ? '#' . $parsed_url['fragment'] : '' ); } } if ( ! function_exists( 'tsdk_support_link' ) ) { /** * Get Themeisle Support URL. * * @param string $file Product basefile. * * @return false|string Return support URL or false if no license is active. */ function tsdk_support_link( $file ) { if ( ! did_action( 'init' ) ) { _doing_it_wrong( __FUNCTION__, 'tsdk_support_link() should not be called before the init action.', '3.2.39' ); } $params = []; if ( ! tsdk_lis_valid( $file ) ) { return false; } $product = \ThemeisleSDK\Product::get( $file ); if ( ! $product->requires_license() ) { return false; } static $site_params = null; if ( $site_params === null ) { if ( is_user_logged_in() && function_exists( 'wp_get_current_user' ) ) { $current_user = wp_get_current_user(); $site_params['semail'] = urlencode( $current_user->user_email ); } $site_params['swb'] = urlencode( home_url() ); global $wp_version; $site_params['snv'] = urlencode( sprintf( 'WP-%s-PHP-%s', $wp_version, ( PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION ) ) ); } $params['slkey'] = tsdk_lkey( $file ); $params['sprd'] = urlencode( $product->get_name() ); $params['svrs'] = urlencode( $product->get_version() ); return add_query_arg( array_merge( $site_params, $params ), 'https://store.themeisle.com/direct-support/' ); } }
Warning: Cannot modify header information - headers already sent by (output started at /home/deltakeprico/public_html/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php:1) in /home/deltakeprico/public_html/wp-includes/pluggable.php on line 1435

Warning: Cannot modify header information - headers already sent by (output started at /home/deltakeprico/public_html/wp-content/plugins/menu-icons/vendor/codeinwp/themeisle-sdk/load.php:1) in /home/deltakeprico/public_html/wp-includes/pluggable.php on line 1438