# shopbuilder/1.1.4/app/Elementor/Widgets/Controls/OrderReviewSettings.php

ShopBuilder – WooCommerce Builder For Elementor, version 1.1.4. 198 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/1.1.4/code/app/Elementor/Widgets/Controls/OrderReviewSettings.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/1.1.4/raw/app/Elementor/Widgets/Controls/OrderReviewSettings.php
- Modified: 2023-07-11T10:48:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shopbuilder/1.1.4/code/app/Elementor/Widgets/Controls/OrderReviewSettings.php#L10-L20`.

```php
<?php
/**
 * Main ProductDescription class.
 *
 * @package RadiusTheme\SB
 */

namespace RadiusTheme\SB\Elementor\Widgets\Controls;

use Elementor\Controls_Manager;
use RadiusTheme\SB\Helpers\Fns;

// Do not allow directly accessing this file.
if (!defined('ABSPATH')) {
    exit('This script cannot be accessed directly.');
}

/**
 * Product Description class
 */
class OrderReviewSettings
{
    /**
     * Widget Control Selectors
     *
     * @var object
     */
    private static $widget = [];
    /**
     * Widget Control Selectors
     *
     * @var array
     */
    private static $selectors = [];

    /**
     * Controls Settings
     *
     * @param object $widget widget object.
     * @return array
     */
    public static function widget_fields($widget)
    {
        self::$widget = $widget;
        self::$selectors = self::$widget->selectors;
        return self::general_settings() + TitleSettings::title_settings( self::$widget ) + self::review_tables();
    }

    /**
     * Widget Field
     *
     * @return array
     */
    public static function general_settings()
    {
        // The function will Overwrite.
        return TitleSettings::general_settings();
    }

    /**
     * Widget Field
     *
     * @return array
     */
    public static function review_tables(): array
    {
        // The function will Overwrite.
        return [
            'review_table_start'            => [
                'mode'  => 'section_start',
                'tab'       => 'style',
                'label' => esc_html__( 'Review Table', 'shopbuilder' ),
            ],
            'table_border'             => [
                'mode'       => 'group',
                'type'       => 'border',
                'selector'   => self::$selectors['table_border'],
                'size_units' => [ 'px' ],
                'separator'       => 'default',

            ],

            'table_label'   => [
                'type'            => 'html',
                'raw'             => sprintf(
                    '<h3 class="rtsb-elementor-group-heading">%s</h3>',
                    esc_html__( 'Label', 'shopbuilder' )
                ),
                'content_classes' => 'elementor-panel-heading-title',
                'separator'       => 'default',
            ],
            'label_typo'       => [
                'mode'     => 'group',
                'type'     => 'typography',
                'label'    => esc_html__( 'Label Typography', 'shopbuilder' ),
                'selector' => self::$selectors['label_typo'],
            ],
            'label_color'      => [
                'label'     => esc_html__( 'Label Color', 'shopbuilder' ),
                'type'      => 'color',
                'selectors' => [
                    self::$selectors['label_color'] => 'color: {{VALUE}} !important;',
                ],
            ],
            'label_item_padding'             => [
                'label'      => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
                'type'       => 'dimensions',
                'size_units' => [ 'px' ],
                'selectors'  => [
                    self::$selectors['label_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
                ],
            ],

            'label_bg_color'         => [
                'label'     => esc_html__( 'Background Color', 'shopbuilder' ),
                'type'      => 'color',
                'alpha'     => true,
                'selectors' => [
                    self::$selectors['label_bg_color'] => 'background-color: {{VALUE}};',
                ],
            ],
            'table_body'   => [
                'type'            => 'html',
                'raw'             => sprintf(
                    '<h3 class="rtsb-elementor-group-heading">%s</h3>',
                    esc_html__( 'Table Body', 'shopbuilder' )
                ),
                'content_classes' => 'elementor-panel-heading-title',
                'separator'       => 'default',
            ],
            'body_text_typo'       => [
                'mode'     => 'group',
                'type'     => 'typography',
                'label'    => esc_html__( 'Typography', 'shopbuilder' ),
                'selector' => self::$selectors['body_text_typo'],
            ],
            'table_text_color'      => [
                'label'     => esc_html__( 'Body Text Color', 'shopbuilder' ),
                'type'      => 'color',
                'selectors' => [
                    self::$selectors['body_text_color'] => 'color: {{VALUE}} !important;',
                ],
            ],
            'body_item_padding'             => [
                'label'      => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
                'type'       => 'dimensions',
                'size_units' => [ 'px' ],
                'selectors'  => [
                    self::$selectors['body_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
                ],
            ],
            'table_footer'   => [
                'type'            => 'html',
                'raw'             => sprintf(
                    '<h3 class="rtsb-elementor-group-heading">%s</h3>',
                    esc_html__( 'Table Footer', 'shopbuilder' )
                ),
                'content_classes' => 'elementor-panel-heading-title',
                'separator'       => 'default',
            ],
            'table_footer_label_typo'       => [
                'mode'     => 'group',
                'type'     => 'typography',
                'label'    => esc_html__( 'Footer Typography', 'shopbuilder' ),
                'selector' => self::$selectors['table_footer_label_typo'],
            ],
            'table_footer_label_color'      => [
                'label'     => esc_html__( 'Label Color', 'shopbuilder' ),
                'type'      => 'color',
                'selectors' => [
                    self::$selectors['table_footer_label_color'] => 'color: {{VALUE}} !important;',
                ],
            ],

            'table_footer_text_color'      => [
                'label'     => esc_html__( 'Value Color', 'shopbuilder' ),
                'type'      => 'color',
                'selectors' => [
                    self::$selectors['table_footer_text_color'] => 'color: {{VALUE}} !important;',
                ],
            ],
            'table_footer_item_padding'             => [
                'label'      => esc_html__( 'Item Padding (px)', 'shopbuilder' ),
                'type'       => 'dimensions',
                'size_units' => [ 'px' ],
                'selectors'  => [
                    self::$selectors['table_footer_item_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}} !important;',
                ],
            ],
            'review_table_end'        => [
                'mode' => 'section_end',
            ],
        ];

    }

}

```
