PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.0-dev4
Elementor Website Builder – more than just a page builder v3.26.0-dev4
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-gallery.php +6 -71 4.2.03.26.0-dev4 View file →
@@ -213,48 +213,8 @@
213 213 ],
214 214 'condition' => [
215 215 'gallery_link' => 'file',
216 216 ],
217 - 'assets' => [
218 - 'styles' => [
219 - [
220 - 'name' => 'e-swiper',
221 - 'conditions' => [
222 - 'terms' => [
223 - [
224 - 'name' => 'gallery_link',
225 - 'operator' => '===',
226 - 'value' => 'file',
227 - ],
228 - [
229 - 'name' => 'open_lightbox',
230 - 'operator' => '!==',
231 - 'value' => 'no',
232 - ],
233 - ],
234 - ],
235 - ],
236 - ],
237 - 'scripts' => [
238 - [
239 - 'name' => 'swiper',
240 - 'conditions' => [
241 - 'terms' => [
242 - [
243 - 'name' => 'gallery_link',
244 - 'operator' => '===',
245 - 'value' => 'file',
246 - ],
247 - [
248 - 'name' => 'open_lightbox',
249 - 'operator' => '!==',
250 - 'value' => 'no',
251 - ],
252 - ],
253 - ],
254 - ],
255 - ],
256 - ],
257 217 ]
258 218 );
259 219
260 220 $this->add_control(
@@ -282,9 +242,9 @@
282 242
283 243 $this->add_control(
284 244 'image_spacing',
285 245 [
286 - 'label' => esc_html__( 'Gap', 'elementor' ),
246 + 'label' => esc_html__( 'Spacing', 'elementor' ),
287 247 'type' => Controls_Manager::SELECT,
288 248 'options' => [
289 249 '' => esc_html__( 'Default', 'elementor' ),
290 250 'custom' => esc_html__( 'Custom', 'elementor' ),
@@ -299,9 +259,9 @@
299 259
300 260 $this->add_control(
301 261 'image_spacing_custom',
302 262 [
303 - 'label' => esc_html__( 'Custom Gap', 'elementor' ),
263 + 'label' => esc_html__( 'Custom Spacing', 'elementor' ),
304 264 'type' => Controls_Manager::SLIDER,
305 265 'size_units' => [ 'px', 'em', 'rem', 'custom' ],
306 266 'range' => [
307 267 'px' => [
@@ -366,10 +326,10 @@
366 326 [
367 327 'label' => esc_html__( 'Alignment', 'elementor' ),
368 328 'type' => Controls_Manager::CHOOSE,
369 329 'options' => [
370 - 'start' => [
371 - 'title' => esc_html__( 'Start', 'elementor' ),
330 + 'left' => [
331 + 'title' => esc_html__( 'Left', 'elementor' ),
372 332 'icon' => 'eicon-text-align-left',
373 333 ],
374 334 'center' => [
375 335 'title' => esc_html__( 'Center', 'elementor' ),
@@ -374,10 +334,10 @@
374 334 'center' => [
375 335 'title' => esc_html__( 'Center', 'elementor' ),
376 336 'icon' => 'eicon-text-align-center',
377 337 ],
378 - 'end' => [
379 - 'title' => esc_html__( 'End', 'elementor' ),
338 + 'right' => [
339 + 'title' => esc_html__( 'Right', 'elementor' ),
380 340 'icon' => 'eicon-text-align-right',
381 341 ],
382 342 'justify' => [
383 343 'title' => esc_html__( 'Justified', 'elementor' ),
@@ -383,13 +343,8 @@
383 343 'title' => esc_html__( 'Justified', 'elementor' ),
384 344 'icon' => 'eicon-text-align-justify',
385 345 ],
386 346 ],
387 - 'classes' => 'elementor-control-start-end',
388 - 'selectors_dictionary' => [
389 - 'left' => is_rtl() ? 'end' : 'start',
390 - 'right' => is_rtl() ? 'start' : 'end',
391 - ],
392 347 'default' => 'center',
393 348 'selectors' => [
394 349 '{{WRAPPER}} .gallery-item .gallery-caption' => 'text-align: {{VALUE}};',
395 350 ],
@@ -498,26 +453,6 @@
498 453 remove_filter( 'wp_get_attachment_link', [ $this, 'add_lightbox_data_to_image_link' ] );
499 454 ?>
500 455 </div>
501 456 <?php
502 - }
503 -
504 - public function render_markdown(): string {
505 - $settings = $this->get_settings_for_display();
506 - if ( empty( $settings['wp_gallery'] ) ) {
507 - return '';
508 - }
509 - $images = [];
510 - foreach ( $settings['wp_gallery'] as $image ) {
511 - $url = $image['url'] ?? '';
512 - if ( empty( $url ) ) {
513 - continue;
514 - }
515 - $alt = '';
516 - if ( ! empty( $image['id'] ) ) {
517 - $alt = get_post_meta( $image['id'], '_wp_attachment_image_alt', true );
518 - }
519 - $images[] = '![' . $alt . '](' . esc_url( $url ) . ')';
520 - }
521 - return implode( "\n\n", $images );
522 457 }
523 458 }