PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.4
ShopBuilder – WooCommerce Builder For Elementor v2.6.4
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/Abstracts/AdditionalQueryCustomLayout.php +16 -10 2.0.22.6.4 View file →
@@ -23,13 +23,8 @@
23 23 * ProductsGrid class.
24 24 */
25 25 abstract class AdditionalQueryCustomLayout extends ElementorWidgetBase {
26 26 /**
27 - * Control Fields
28 - *
29 - * @var array
30 - */
31 - /**
32 27 * Action Button Traits.
33 28 */
34 29 use ActionBtnTraits;
35 30
@@ -82,9 +77,9 @@
82 77 $this->widget_query()
83 78 )
84 79 );
85 80
86 - unset( $fields['grid_style'] );
81 + // unset( $fields['grid_style'] );
87 82
88 83 return $fields;
89 84 }
90 85
@@ -110,15 +105,16 @@
110 105 unset( $content_visibility['show_title']['separator'] );
111 106
112 107 $sections = array_merge(
113 108 $content_visibility,
109 + Controls\SettingsFields::content_ordering( $this ),
110 + Controls\SettingsFields::section_title( $this ),
114 111 Controls\SettingsFields::image( $this ),
115 112 Controls\SettingsFields::action_buttons( $this ),
116 - Controls\SettingsFields::section_title( $this ),
117 113 Controls\SettingsFields::product_title( $this ),
118 114 Controls\SettingsFields::product_excerpt( $this ),
119 115 Controls\SettingsFields::badges( $this ),
120 - Controls\SettingsFields::variation_swatch( $this ),
116 + $this->variation_swatch_conditionaly(),
121 117 Controls\SettingsFields::links( $this )
122 118 );
123 119 return apply_filters( 'rtsb/elements/elementor/product_custom_settings_tab', $sections, $this );
124 120 }
@@ -129,8 +125,18 @@
129 125 */
130 126 protected function widget_layout() {
131 127 return Controls\LayoutFields::grid_layout( $this );
132 128 }
129 + public function variation_swatch_conditionaly() {
130 + if ( ! function_exists( 'rtwpvsp' ) ) {
131 + return [];
132 + }
133 + $swatches_controls = Controls\SettingsFields::variation_swatch( $this );
134 + $swatches_controls['swatch_position']['condition'] = [
135 + 'layout' => [ 'grid-layout1' ],
136 + ];
137 + return $swatches_controls;
138 + }
133 139 /**
134 140 * Controls for layout tab
135 141 *
136 142 * @return array
@@ -196,9 +202,9 @@
196 202 $this->render_start();
197 203 $args = [
198 204 'posts_per_page' => $settings['posts_limit'],
199 205 'columns' => $settings['posts_limit'],
200 - 'orderby' => $settings['posts_order_by'], // @codingStandardsIgnoreLine.
206 + 'orderby' => $settings['posts_order_by'],
201 207 'order' => $settings['posts_order'],
202 208 ];
203 209
204 210 $settings['query_products'] = $this->get_the_products( $args );
@@ -210,11 +216,11 @@
210 216 if ( $this->is_builder_mode() ) {
211 217 add_filter( 'wp_kses_allowed_html', [ FilterHooks::class, 'custom_wpkses_post_tags' ], 10, 2 );
212 218 }
213 219
220 + // Call the template rendering method.
214 221 Fns::print_html( Render::instance()->setup_loop_for_product_view( $this->render_template_file(), $settings, $this ), true );
215 222
216 223 $this->action_button_icon_set_default();
217 224 $this->render_end();
218 225 }
219 -
220 226 }