| @@ -637,8 +637,12 @@ | ||
| 637 | 637 | public static function has_pro() { |
| 638 | 638 | return defined( 'ELEMENTOR_PRO_VERSION' ); |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | + public static function is_license_active(): bool { | |
| 642 | + return class_exists( '\ElementorPro\License\API' ) && \ElementorPro\License\API::is_license_active(); | |
| 643 | + } | |
| 644 | + | |
| 641 | 645 | public static function is_pro_installed_and_not_active(): bool { |
| 642 | 646 | if ( ! function_exists( 'get_plugins' ) ) { |
| 643 | 647 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 644 | 648 | } |
| @@ -835,8 +839,14 @@ | ||
| 835 | 839 | |
| 836 | 840 | echo wp_kses( $text, $allowed_html ); |
| 837 | 841 | } |
| 838 | 842 | |
| 843 | + public static function kses_post_deep( $data ) { | |
| 844 | + return map_deep( $data, function ( $value ) { | |
| 845 | + return is_string( $value ) ? wp_kses_post( $value ) : $value; | |
| 846 | + } ); | |
| 847 | + } | |
| 848 | + | |
| 839 | 849 | public static function is_elementor_path( $path ) { |
| 840 | 850 | $path = wp_normalize_path( $path ); |
| 841 | 851 | |
| 842 | 852 | /** |
| @@ -928,10 +938,10 @@ | ||
| 928 | 938 | return $cache; |
| 929 | 939 | } |
| 930 | 940 | |
| 931 | 941 | public static function is_sale_time(): bool { |
| 932 | - $sale_start_time = gmmktime( 12, 0, 0, 11, 25, 2025 ); | |
| 933 | - $sale_end_time = gmmktime( 3, 59, 0, 12, 3, 2025 ); | |
| 942 | + $sale_start_time = gmmktime( 10, 0, 0, 6, 15, 2026 ); | |
| 943 | + $sale_end_time = gmmktime( 3, 59, 0, 6, 17, 2026 ); | |
| 934 | 944 | |
| 935 | 945 | $now_time = gmdate( 'U' ); |
| 936 | 946 | |
| 937 | 947 | return $now_time >= $sale_start_time && $now_time <= $sale_end_time; |