'widget_call_to_action', 'description' => __( 'Use this widget to show the call to action section.', 'accelerate' ), 'customize_selective_refresh' => true, ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::__construct( false, $name = __( 'TG: Call To Action Widget', 'accelerate' ), $widget_ops, $control_ops); } function form( $instance ) { $accelerate_defaults[ 'text_main' ] = ''; $accelerate_defaults[ 'text_additional' ] = ''; $accelerate_defaults[ 'button_text' ] = ''; $accelerate_defaults[ 'button_url' ] = ''; $accelerate_defaults[ 'new_tab' ] = '0'; $instance = wp_parse_args( (array) $instance, $accelerate_defaults ); $text_main = esc_textarea( $instance[ 'text_main' ] ); $text_additional = esc_textarea( $instance[ 'text_additional' ] ); $button_text = esc_attr( $instance[ 'button_text' ] ); $button_url = esc_url( $instance[ 'button_url' ] ); $new_tab = $instance['new_tab'] ? 'checked="checked"' : ''; ?>
id="get_field_id('new_tab'); ?>" name="get_field_name('new_tab'); ?>" />