# shopbuilder/2.2.0/app/Elementor/Widgets/Controls/TextStyleSettings.php

ShopBuilder – WooCommerce Builder For Elementor, version 2.2.0. 69 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/2.2.0/code/app/Elementor/Widgets/Controls/TextStyleSettings.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/2.2.0/raw/app/Elementor/Widgets/Controls/TextStyleSettings.php
- Modified: 2024-08-12T05:53:38+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/2.2.0/code/app/Elementor/Widgets/Controls/TextStyleSettings.php#L10-L20`.

```php
<?php
/**
 * Main ProductDescription class.
 *
 * @package RadiusTheme\SB
 */

namespace RadiusTheme\SB\Elementor\Widgets\Controls;

use RadiusTheme\SB\Elementor\Helper\ControlHelper;

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'This script cannot be accessed directly.' );
}

/**
 * Product Description class
 */
class TextStyleSettings {
	/**
	 * Widget Field
	 *
	 * @return array
	 */
	public static function widget_fields( $widget ) {
		$fields = [
			'section_style'     => [
				'mode'  => 'section_start',
				'label' => esc_html__( 'Style', 'shopbuilder' ),
			],
			'typo'              => [
				'mode'     => 'group',
				'type'     => 'typography',
				'label'    => esc_html__( 'Typography', 'shopbuilder' ),
				'selector' => $widget->selectors['typo'],
			],
			'align'             => [
				'mode'      => 'responsive',
				'label'     => esc_html__( 'Alignment', 'shopbuilder' ),
				'type'      => 'choose',
				'options'   => ControlHelper::alignment(),
				'selectors' => [
					$widget->selectors['align'] => 'text-align: {{VALUE}};',
				],
			],
			'text_color'        => [
				'label'     => esc_html__( 'Text Color', 'shopbuilder' ),
				'type'      => 'color',
				'default'   => '',
				'selectors' => [
					$widget->selectors['text_color'] => 'color: {{VALUE}};',
				],
			],
			'text_shadow'       => [
				'mode'     => 'group',
				'type'     => 'text-shadow',
				'selector' => $widget->selectors['text_shadow'],
			],
			'section_style_end' => [
				'mode' => 'section_end',
			],
		];
		return $fields;
	}


}

```
