| @@ -966,26 +966,5 @@ | ||
| 966 | 966 | |
| 967 | 967 | public function on_import( $element ) { |
| 968 | 968 | return Icons_Manager::on_import_migration( $element, 'icon', 'selected_icon', true ); |
| 969 | 969 | } |
| 970 | - | |
| 971 | - public function render_markdown(): string { | |
| 972 | - $settings = $this->get_settings_for_display(); | |
| 973 | - $title = Utils::html_to_plain_text( $settings['title_text'] ?? '' ); | |
| 974 | - $description = Utils::html_to_plain_text( $settings['description_text'] ?? '' ); | |
| 975 | - if ( empty( $title ) && empty( $description ) ) { | |
| 976 | - return ''; | |
| 977 | - } | |
| 978 | - $parts = []; | |
| 979 | - if ( ! empty( $title ) ) { | |
| 980 | - if ( ! empty( $settings['link']['url'] ) ) { | |
| 981 | - $parts[] = '### [' . $title . '](' . esc_url( $settings['link']['url'] ) . ')'; | |
| 982 | - } else { | |
| 983 | - $parts[] = '### ' . $title; | |
| 984 | - } | |
| 985 | - } | |
| 986 | - if ( ! empty( $description ) ) { | |
| 987 | - $parts[] = $description; | |
| 988 | - } | |
| 989 | - return implode( "\n\n", $parts ); | |
| 990 | - } | |
| 991 | 970 | } |