%PDF- %PDF-
Direktori : /var/www/projetos/fungraca.org.br/wp-content/plugins/styler-for-wpforms/includes/ |
Current File : /var/www/projetos/fungraca.org.br/wp-content/plugins/styler-for-wpforms/includes/field-labels.php |
<?php // form fields section $wp_customize->add_section( 'sfwf_form_id_field_labels', array( 'title' => 'Field Labels', 'panel' => 'sfwf_panel', ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][display]', array( 'default' => false, 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( 'sfwf_form_id_' . $current_form_id . '[field-labels][display]', array( 'type' => 'checkbox', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( 'Hide Labels' ), ) ); // font style buttons $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][font-style]', array( 'default' => '', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Font_Style_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][font-style]', array( 'label' => 'Font Style', 'section' => 'sfwf_form_id_field_labels', 'type' => 'font_style', 'choices' => $font_style_choices, ) ) ); // Font size label $wp_customize->add_control( new Sfwf_Label_Only( $wp_customize, // WP_Customize_Manager. 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size-label-only]', // Setting id. array( // Args, including any custom ones. 'label' => __( 'Font Size' ), 'section' => 'sfwf_form_id_field_labels', 'settings' => array(), ) ) ); /* for pc*/ $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size]', array( 'default' => '', 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Desktop_Text_Input_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( '' ), 'input_attrs' => array( 'placeholder' => 'Ex.40px', ), ) ) ); /* for_tablet*/ $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size-tab]', array( 'default' => '', 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Tab_Text_Input_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size-tab]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( '' ), 'input_attrs' => array( 'placeholder' => 'Ex.40px', ), ) ) ); /* for mobile*/ $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size-phone]', array( 'default' => '', 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Mobile_Text_Input_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][font-size-phone]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( '' ), 'input_attrs' => array( 'placeholder' => 'Ex.40px', ), ) ) ); /* Start of Section */ // Line height label. $wp_customize->add_control( new Sfwf_Label_Only( $wp_customize, // WP_Customize_Manager. 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height-label-only]', // Setting id. array( // Args, including any custom ones. 'label' => __( 'Line Height' ), 'section' => 'sfwf_form_id_field_labels', 'settings' => array(), ) ) ); /* for pc*/ $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height]', array( 'default' => '', 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Desktop_Text_Input_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( '' ), 'input_attrs' => array( 'placeholder' => 'Ex.40px', ), ) ) ); /* for_tablet*/ $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height-tab]', array( 'default' => '', 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Tab_Text_Input_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height-tab]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( '' ), 'input_attrs' => array( 'placeholder' => 'Ex.40px', ), ) ) ); /* for mobile*/ $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height-phone]', array( 'default' => '', 'transport' => 'refresh', 'type' => 'option', ) ); $wp_customize->add_control( new Sfwf_Mobile_Text_Input_Option( $wp_customize, 'sfwf_form_id_' . $current_form_id . '[field-labels][line-height-phone]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( '' ), 'input_attrs' => array( 'placeholder' => 'Ex.40px', ), ) ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][font-color]', array( 'default' => '', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, // WP_Customize_Manager. 'sfwf_form_id_' . $current_form_id . '[field-labels][font-color]', // Setting id. array( // Args, including any custom ones. 'label' => __( 'Label Font Color' ), 'section' => 'sfwf_form_id_field_labels', ) ) ); $wp_customize->add_setting( 'sfwf_form_id_' . $current_form_id . '[field-labels][padding]', array( 'default' => '', 'transport' => 'postMessage', 'type' => 'option', ) ); $wp_customize->add_control( 'sfwf_form_id_' . $current_form_id . '[field-labels][padding]', array( 'type' => 'text', 'priority' => 10, // Within the section. 'section' => 'sfwf_form_id_field_labels', // Required, core or custom. 'label' => __( 'Padding' ), 'input_attrs' => array( 'placeholder' => 'Example: 5px 10px 5px 10px', ), ) );