| @@ -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,11 +105,12 @@ | ||
| 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 | 116 | $this->variation_swatch_conditionaly(), |
| @@ -206,9 +202,9 @@ | ||
| 206 | 202 | $this->render_start(); |
| 207 | 203 | $args = [ |
| 208 | 204 | 'posts_per_page' => $settings['posts_limit'], |
| 209 | 205 | 'columns' => $settings['posts_limit'], |
| 210 | - 'orderby' => $settings['posts_order_by'], // @codingStandardsIgnoreLine. | |
| 206 | + 'orderby' => $settings['posts_order_by'], | |
| 211 | 207 | 'order' => $settings['posts_order'], |
| 212 | 208 | ]; |
| 213 | 209 | |
| 214 | 210 | $settings['query_products'] = $this->get_the_products( $args ); |
| @@ -220,11 +216,11 @@ | ||
| 220 | 216 | if ( $this->is_builder_mode() ) { |
| 221 | 217 | add_filter( 'wp_kses_allowed_html', [ FilterHooks::class, 'custom_wpkses_post_tags' ], 10, 2 ); |
| 222 | 218 | } |
| 223 | 219 | |
| 220 | + // Call the template rendering method. | |
| 224 | 221 | Fns::print_html( Render::instance()->setup_loop_for_product_view( $this->render_template_file(), $settings, $this ), true ); |
| 225 | 222 | |
| 226 | 223 | $this->action_button_icon_set_default(); |
| 227 | 224 | $this->render_end(); |
| 228 | 225 | } |
| 229 | - | |
| 230 | 226 | } |