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/image-carousel.php +20 -0 4.0.94.3.0-beta3 View file →
@@ -1142,5 +1142,25 @@
1142 1142 }
1143 1143
1144 1144 Icons_Manager::render_icon( $icon_settings, [ 'aria-hidden' => 'true' ] );
1145 1145 }
1146 +
1147 + public function render_markdown(): string {
1148 + $settings = $this->get_settings_for_display();
1149 + if ( empty( $settings['carousel'] ) ) {
1150 + return '';
1151 + }
1152 + $images = [];
1153 + foreach ( $settings['carousel'] as $item ) {
1154 + $url = $item['url'] ?? '';
1155 + if ( empty( $url ) ) {
1156 + continue;
1157 + }
1158 + $alt = '';
1159 + if ( ! empty( $item['id'] ) ) {
1160 + $alt = get_post_meta( $item['id'], '_wp_attachment_image_alt', true );
1161 + }
1162 + $images[] = '![' . $alt . '](' . esc_url( $url ) . ')';
1163 + }
1164 + return implode( "\n\n", $images );
1165 + }
1146 1166 }