| @@ -29,9 +29,8 @@ | ||
| 29 | 29 | 'a', |
| 30 | 30 | 'article', |
| 31 | 31 | 'aside', |
| 32 | 32 | 'button', |
| 33 | - 'form', | |
| 34 | 33 | 'div', |
| 35 | 34 | 'footer', |
| 36 | 35 | 'h1', |
| 37 | 36 | 'h2', |
| @@ -729,19 +728,13 @@ | ||
| 729 | 728 | if ( $id === $element['id'] ) { |
| 730 | 729 | return $element; |
| 731 | 730 | } |
| 732 | 731 | |
| 733 | - $inner_elements = apply_filters( | |
| 734 | - 'elementor/utils/find_element_recursive/inner_elements', | |
| 735 | - $element['elements'] ?? [], | |
| 736 | - $element | |
| 737 | - ); | |
| 732 | + if ( ! empty( $element['elements'] ) ) { | |
| 733 | + $element = self::find_element_recursive( $element['elements'], $id ); | |
| 738 | 734 | |
| 739 | - if ( ! empty( $inner_elements ) ) { | |
| 740 | - $found = self::find_element_recursive( $inner_elements, $id ); | |
| 741 | - | |
| 742 | - if ( $found ) { | |
| 743 | - return $found; | |
| 735 | + if ( $element ) { | |
| 736 | + return $element; | |
| 744 | 737 | } |
| 745 | 738 | } |
| 746 | 739 | } |
| 747 | 740 | |
| @@ -928,10 +921,10 @@ | ||
| 928 | 921 | return $cache; |
| 929 | 922 | } |
| 930 | 923 | |
| 931 | 924 | public static function is_sale_time(): bool { |
| 932 | - $sale_start_time = gmmktime( 10, 0, 0, 6, 15, 2026 ); | |
| 933 | - $sale_end_time = gmmktime( 3, 59, 0, 6, 17, 2026 ); | |
| 925 | + $sale_start_time = gmmktime( 12, 0, 0, 11, 25, 2025 ); | |
| 926 | + $sale_end_time = gmmktime( 3, 59, 0, 12, 3, 2025 ); | |
| 934 | 927 | |
| 935 | 928 | $now_time = gmdate( 'U' ); |
| 936 | 929 | |
| 937 | 930 | return $now_time >= $sale_start_time && $now_time <= $sale_end_time; |
| @@ -977,19 +970,6 @@ | ||
| 977 | 970 | } |
| 978 | 971 | |
| 979 | 972 | public static function encode_string( string $decoded_string ): string { |
| 980 | 973 | return base64_encode( $decoded_string ); |
| 981 | - } | |
| 982 | - | |
| 983 | - public static function html_to_plain_text( string $html ): string { | |
| 984 | - if ( empty( $html ) ) { | |
| 985 | - return ''; | |
| 986 | - } | |
| 987 | - | |
| 988 | - $text = preg_replace( '#<br\s*/?\s*>#i', ' ', $html ); | |
| 989 | - $text = preg_replace( '#</?[a-z][^>]*>#i', ' ', $text ); | |
| 990 | - $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' ); | |
| 991 | - $text = str_replace( "\xE2\x80\x8B", '', $text ); | |
| 992 | - | |
| 993 | - return trim( preg_replace( '/\s+/', ' ', $text ) ); | |
| 994 | 974 | } |
| 995 | 975 | } |