PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.3
ShopBuilder – WooCommerce Builder For Elementor v2.6.3
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Elementor/Widgets/Controls/LayoutFields.php +41 -23 2.1.42.6.3 View file →
@@ -366,17 +366,35 @@
366 366 'label' => esc_html__( 'Number of Columns', 'shopbuilder' ),
367 367 'description' => esc_html__( 'Please select the number of columns to show per row.', 'shopbuilder' ),
368 368 'options' => ControlHelper::layout_columns(),
369 369 'label_block' => true,
370 + 'render_type' => 'template',
370 371 'default' => '0',
371 372 'tablet_default' => '2',
372 373 'mobile_default' => '1',
373 374 'required' => true,
375 + 'separator' => rtsb()->has_pro() ? 'default' : 'default elementor-control-separator-after',
374 376 'selectors' => [
375 - $obj->selectors['columns']['cols'] => 'grid-template-columns: repeat({{VALUE}}, minmax(0, 1fr));',
377 + $obj->selectors['columns']['cols'] => 'grid-template-columns: repeat({{VALUE}}, minmax(0, 1fr));',
378 + $obj->selectors['columns']['masonry'] => '--rtsb-masonry-columns: {{VALUE}};',
379 + $obj->selectors['columns']['list_masonry'] => '--rtsb-masonry-list-columns: {{VALUE}};',
376 380 ],
377 381 ];
378 382
383 + $fields['grid_style'] = [
384 + 'type' => 'select2',
385 + 'label' => esc_html__( 'Layout Grid Style', 'shopbuilder' ),
386 + 'options' => [
387 + 'even' => esc_html__( 'Default', 'shopbuilder' ),
388 + 'masonry' => esc_html__( 'Masonry', 'shopbuilder' ),
389 + 'equal' => esc_html__( 'Equal Height', 'shopbuilder' ),
390 + ],
391 + 'label_block' => true,
392 + 'default' => 'even',
393 + 'description' => esc_html__( 'Please select the layout grid style.', 'shopbuilder' ),
394 + 'classes' => $obj->pro_class(),
395 + ];
396 +
379 397 $fields['image_width'] = [
380 398 'type' => 'slider',
381 399 'mode' => 'responsive',
382 400 'label' => esc_html__( 'Image Width', 'shopbuilder' ),
@@ -392,8 +410,9 @@
392 410 'unit' => '%',
393 411 'size' => 32,
394 412 ],
395 413 'description' => esc_html__( 'Please select the image width in %.', 'shopbuilder' ),
414 + 'separator' => rtsb()->has_pro() ? 'default' : 'before',
396 415 'selectors' => [
397 416 $obj->selectors['columns']['image_width']['image'] => 'flex-basis: {{SIZE}}{{UNIT}}; max-width: {{SIZE}}{{UNIT}};',
398 417 // $obj->selectors['columns']['image_width']['content'] => 'flex-basis: calc(100% - {{SIZE}}{{UNIT}}); max-width: calc(100% - {{SIZE}}{{UNIT}});',
399 418 ],
@@ -441,25 +460,8 @@
441 460 ],
442 461 'condition' => [ 'layout' => [ 'list-layout3' ] ],
443 462 ];
444 463
445 - // Todo: Need to add later.
446 - /*
447 - $fields['grid_style'] = [
448 - 'type' => 'select2',
449 - 'label' => esc_html__( 'Grid Style', 'shopbuilder' ),
450 - 'options' => [
451 - 'even' => esc_html__( 'Even', 'shopbuilder' ),
452 - 'masonry' => esc_html__( 'Masonry', 'shopbuilder' ),
453 - 'equal' => esc_html__( 'Equal Height', 'shopbuilder' ),
454 - ],
455 - 'label_block' => true,
456 - 'default' => 'even',
457 - 'description' => esc_html__( 'Please select the grid style.', 'shopbuilder' ),
458 - 'classes' => $obj->pro_class(),
459 - ];
460 - */
461 -
462 464 return apply_filters( 'rtsb/elements/elementor/columns_control', $fields, $obj );
463 465 }
464 466
465 467 /**
@@ -516,8 +518,19 @@
516 518 'required' => true,
517 519 'classes' => $obj->pro_class(),
518 520 ];
519 521
522 + $fields['grid_style'] = [
523 + 'type' => 'select',
524 + 'label' => esc_html__( 'Layout Grid Style', 'shopbuilder' ),
525 + 'options' => [
526 + 'even' => esc_html__( 'Default', 'shopbuilder' ),
527 + ],
528 + 'label_block' => true,
529 + 'default' => 'even',
530 + 'description' => esc_html__( 'Please select the layout grid style.', 'shopbuilder' ),
531 + ];
532 +
520 533 $fields['image_width'] = [
521 534 'type' => 'slider',
522 535 'mode' => 'responsive',
523 536 'label' => esc_html__( 'Image Width', 'shopbuilder' ),
@@ -693,9 +706,13 @@
693 706 'default' => 'date',
694 707 ];
695 708
696 709 if ( rtsb()->has_pro() ) {
697 - $fields['posts_order_by']['condition'] = [ 'products_filter' => 'recent' ];
710 + $fields['products_filter']['condition'] = [ 'ajax_filter_type' => [ 'taxonomy' ] ];
711 + $fields['posts_order_by']['condition'] = [
712 + 'ajax_filter_type' => [ 'taxonomy' ],
713 + 'products_filter' => 'recent',
714 + ];
698 715 }
699 716
700 717 $fields['posts_order'] = [
701 718 'type' => 'select2',
@@ -969,9 +986,9 @@
969 986 $fields['pagination_per_page'] = [
970 987 'type' => 'number',
971 988 'label' => esc_html__( 'Number of Posts Per Page', 'shopbuilder' ),
972 989 'default' => 8,
973 - 'description' => esc_html__( 'Please enter the number of team members per page to show.', 'shopbuilder' ),
990 + 'description' => esc_html__( 'Please enter the number of products per page to show.', 'shopbuilder' ),
974 991 'condition' => [ 'show_pagination' => [ 'yes' ] ],
975 992 ];
976 993
977 994 $pagination_description = esc_html__( 'Please choose the pagination type', 'shopbuilder' );
@@ -976,9 +993,10 @@
976 993
977 994 $pagination_description = esc_html__( 'Please choose the pagination type', 'shopbuilder' );
978 995
979 996 if ( ! rtsb()->has_pro() ) {
980 - $pagination_description = __( 'Please choose the pagination type.<span class="elementor-pro-notice"><a target="_blank" href="' . esc_url( rtsb()->pro_version_link() ) . '">Upgrade to PRO</a> to unlock Load More and Ajax Pagination.</span>', 'shopbuilder' );
997 + $upgrade_link = '<span class="elementor-pro-notice"><a target="_blank" href="' . esc_url( rtsb()->pro_version_link() ) . '">Upgrade to PRO</a> to unlock Load More and Ajax Pagination.</span>';
998 + $pagination_description .= $upgrade_link;
981 999 }
982 1000
983 1001 $fields['pagination_type'] = [
984 1002 'type' => 'select',
@@ -1015,10 +1033,10 @@
1015 1033 ];
1016 1034
1017 1035 $fields['tax_filter'] = [
1018 1036 'type' => 'switch',
1019 - 'label' => esc_html__( 'Enable Taxonomy Filter Button?', 'shopbuilder' ),
1020 - 'description' => esc_html__( 'Switch on to enable taxonomy filter button.', 'shopbuilder' ),
1037 + 'label' => esc_html__( 'Enable Ajax Tab Filter Buttons?', 'shopbuilder' ),
1038 + 'description' => esc_html__( 'Switch on to enable Ajax tab filter buttons.', 'shopbuilder' ),
1021 1039 'label_on' => esc_html__( 'On', 'shopbuilder' ),
1022 1040 'label_off' => esc_html__( 'Off', 'shopbuilder' ),
1023 1041 'separator' => $obj->pro_class(),
1024 1042 'classes' => $obj->pro_class(),