Sindbad~EG File Manager

Current Path : /home/xiedrke/entrepot/wp-content/themes/realpro/inc/admin/customizer-sections/
Upload File :
Current File : /home/xiedrke/entrepot/wp-content/themes/realpro/inc/admin/customizer-sections/general-button.php

<?php

thim_customizer()->add_section(
	array(
		'id'       => 'thim_button',
		'panel'    => 'general',
		'priority' => 75,
		'title'    => esc_html__( 'Button', 'realpro' ),
	)
);

thim_customizer()->add_group( array(
    'id'       => 'button_global_typography',
    'section'  => 'thim_button',
    'priority' => 10,
    'groups'   => array(
        array(
            'id'     => 'button_global_group',
            'label'  => esc_html__( 'Button', 'realpro' ),
            'fields' => array(
                array(
                    'id'        => 'button_global',
                    'label'     => esc_html__( 'Font Title Button', 'realpro' ),
                    'tooltip'  => esc_html__( 'Allow to select all the font properties of the sidebar tag for site', 'realpro' ),
                    'type'      => 'typography',
                    'priority'    => 10,
                    'default'     => array(
                        'font-size'      => '14px',
                        'line-height'    => '24px',
                        'color'          => '#fff',
                        'text-transform' => 'none',
                    ),
                    'transport' => 'postMessage',
                    'js_vars'   => array(
                        array(
                            'choice'   => 'font-size',
                            'element'  => '.widget-title',
                            'property' => 'font-size',
                        ),
                        array(
                            'choice'   => 'line-height',
                            'element'  => '.widget-title',
                            'property' => 'line-height',
                        ),
                        
                        array(
                            'choice'   => 'color',
                            'element'  => '.widget-title',
                            'property' => 'color',
                        ),
                        array(
                            'choice'   => 'text-transform',
                            'element'  => '.widget-title',
                            'property' => 'text-transform',
                        ),
                    )
                ),
            ),
        ),
    )
) );


thim_customizer()->add_field(
	array(
		'id'            => 'button_global_font_weight',
		'type'          => 'select',
		'label'         => esc_html__( 'Font Weight Button', 'realpro' ),
		'section'       => 'thim_button',
		'priority'      => 20,
		'multiple'      => 0,
		'default'       => '600',
		'choices'       => array(
			'300'    => '300',
			'normal' => esc_html__( 'Normal', 'realpro' ),
			'500'    => '500',
			'600'    => '600',
			'700'    => '700',
			'900'    => '900',
		),
		'wrapper_attrs' => array(
			'class' => '{default_class} thim-group-item'
		)
	)
);

thim_customizer()->add_field(
	array(
		'id'            => 'button_global_padding',
		'type'          => 'dimensions',
		'label'         => esc_html__( 'Padding Button', 'realpro' ),
		'section'       => 'thim_button',
		'priority'      => 30,

		'choices'   => array(
			'top' => esc_html__( 'Top', 'realpro' ),
			'right'     => esc_html__( 'Right', 'realpro' ),
			'bottom' => esc_html__( 'Bottom', 'realpro' ),
			'left' => esc_html__( 'Left', 'realpro' ),
		),

        'default'   => array(
			'top' => '10px',
			'right'     => '30px',
			'bottom' => '10px',
			'left' => '30px',
		),

        'transport' => 'postMessage',

        'js_vars' => array(
			array(
				'choice'   => 'top',
				'property' => 'padding-top',
			),

			array(
				'choice'   => 'right',
				'property' => 'padding-right',
			),

			array(
				'choice'   => 'bottom',
				'property' => 'padding-bottom',
            ),

			array(
				'choice'   => 'left',
				'property' => 'padding-left',
			)
            
		)
	)
);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists