PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.0-beta3
Elementor Website Builder – more than just a page builder v4.3.0-beta3
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/widgets/icon-list.php +26 -0 4.0.84.3.0-beta3 View file →
@@ -802,8 +802,34 @@
802 802 *
803 803 * @since 2.9.0
804 804 * @access protected
805 805 */
806 + public function render_markdown(): string {
807 + $settings = $this->get_settings_for_display();
808 +
809 + if ( empty( $settings['icon_list'] ) ) {
810 + return '';
811 + }
812 +
813 + $lines = [];
814 +
815 + foreach ( $settings['icon_list'] as $item ) {
816 + $text = Utils::html_to_plain_text( $item['text'] ?? '' );
817 +
818 + if ( empty( $text ) ) {
819 + continue;
820 + }
821 +
822 + if ( ! empty( $item['link']['url'] ) ) {
823 + $text = '[' . $text . '](' . esc_url( $item['link']['url'] ) . ')';
824 + }
825 +
826 + $lines[] = '- ' . $text;
827 + }
828 +
829 + return implode( "\n", $lines );
830 + }
831 +
806 832 protected function content_template() {
807 833 ?>
808 834 <#
809 835 view.addRenderAttribute( 'icon_list', 'class', 'elementor-icon-list-items' );