'widget_call_to_action_block', 'description' => __( 'Use this widget to show the call to action section.', 'ample' ), 'customize_selective_refresh' => true, ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::__construct( false, $name = __( 'TG: Call To Action Widget', 'ample' ), $widget_ops, $control_ops); } function form( $instance ) { $ample_defaults[ 'background_color' ] = '#80abc8'; $ample_defaults[ 'background_image' ] = ''; $ample_defaults[ 'bg_attachment' ] = 'scroll'; $ample_defaults[ 'text_main' ] = ''; $ample_defaults[ 'button_text' ] = ''; $ample_defaults[ 'button_url' ] = ''; $instance = wp_parse_args( (array) $instance, $ample_defaults ); $background_color = esc_attr( $instance[ 'background_color' ] ); $background_image = esc_url_raw( $instance[ 'background_image' ] ); $bg_attachment = $instance[ 'bg_attachment' ]; $text_main = esc_textarea( $instance[ 'text_main' ] ); $button_text = esc_attr( $instance[ 'button_text' ] ); $button_url = esc_url( $instance[ 'button_url' ] ); ?>





id="get_field_id( 'bg_attachment' ); ?>" name="get_field_name( 'bg_attachment' ); ?>" value="scroll" /> id="get_field_id( 'bg_attachment' ); ?>" name="get_field_name( 'bg_attachment' ); ?>" value="fixed" style="margin-left:20px;"/>