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

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

- Page: https://pluginprobe.com/plugins/shopbuilder/1.1.4/code/app/Elementor/Widgets/Controls/InfoboxSettings.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/1.1.4/raw/app/Elementor/Widgets/Controls/InfoboxSettings.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/InfoboxSettings.php#L10-L20`.

```php
<?php
/**
 * Main ProductDescription class.
 *
 * @package RadiusTheme\SB
 */

namespace RadiusTheme\SB\Elementor\Widgets\Controls;

// Do not allow directly accessing this file.
if (!defined('ABSPATH')) {
    exit('This script cannot be accessed directly.');
}

/**
 * Product Description class
 */
class InfoboxSettings
{
    /**
     * Widget Field
     *
     * @return array
     */
    public static function style_settings($widget)
    {
        $fields = [
            'infobox_style' => [
                'mode'  => 'section_start',
                'tab'   => 'style',
                'label' => esc_html__('Infobox style', 'shopbuilder'),
            ],

            'infobox_typography'   => [
                'mode'     => 'group',
                'type'     => 'typography',
                'label'    => esc_html__('Typography', 'shopbuilder'),
                'selector' => $widget->selectors['infobox_typography'],
            ],
            'infobox_bg_color'     => [
                'label' => esc_html__('Background Color', 'shopbuilder'),
                'type'  => 'color',

                'selectors' => [
                    $widget->selectors['infobox_bg_color'] => 'background-color: {{VALUE}};',
                ],
            ],
            'infobox_text_color'   => [
                'label' => esc_html__('Color', 'shopbuilder'),
                'type'  => 'color',

                'selectors' => [
                    $widget->selectors['infobox_text_color'] => 'color: {{VALUE}};',
                ],
            ],
            'infobox_text_link_color'   => [
                'label' => esc_html__('Link Color', 'shopbuilder'),
                'type'  => 'color',

                'selectors' => [
                    $widget->selectors['infobox_text_link_color'] => 'color: {{VALUE}};',
                ],
            ],
            'infobox_border_color' => [
                'label' => esc_html__('Border Color', 'shopbuilder'),
                'type'  => 'color',

                'selectors' => [
                    $widget->selectors['infobox_border_color'] => 'border-color: {{VALUE}};',
                ],
            ],
            'infobox_icon_size'    => [
                'label'     => esc_html__('Icon Size', 'shopbuilder'),
                'type'      => 'slider',
                'range'     => [
                    'px' => [
                        'min' => 10,
                        'max' => 100,
                    ],
                ],
                'selectors' => [
                    $widget->selectors['infobox_icon_size'] => 'font-size: {{SIZE}}{{UNIT}};',
                ],
            ],
            'infobox_icon_color'   => [
                'label' => esc_html__('Icon Color', 'shopbuilder'),
                'type'  => 'color',

                'selectors' => [
                    $widget->selectors['infobox_icon_color'] => 'color: {{VALUE}};',
                ],
            ],
            'infobox_padding'      => [
                'label'      => esc_html__('Padding (px)', 'shopbuilder'),
                'type'       => 'dimensions',
                'mode'       => 'responsive',
                'size_units' => ['px'],
                'selectors'  => [
                    $widget->selectors['infobox_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
                ],
                'separator'  => 'before',
            ],

            'infobox_style_end' => [
                'mode' => 'section_end',
            ],
        ];
        return $fields;
    }
}

```
