@@ -8,12 +8,12 @@ discard block |
||
8 | 8 | } |
9 | 9 | |
10 | 10 | public function widget( $args, $instance ) { |
11 | - if ( empty($instance['title']) ) { |
|
12 | - $title = FrmForm::getName( $instance['form'] ); |
|
13 | - } else { |
|
14 | - $title = $instance['title']; |
|
15 | - } |
|
16 | - $title = apply_filters('widget_title', $title); |
|
11 | + if ( empty($instance['title']) ) { |
|
12 | + $title = FrmForm::getName( $instance['form'] ); |
|
13 | + } else { |
|
14 | + $title = $instance['title']; |
|
15 | + } |
|
16 | + $title = apply_filters('widget_title', $title); |
|
17 | 17 | |
18 | 18 | echo $args['before_widget']; |
19 | 19 | |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | public function form( $instance ) { |
42 | - //Defaults |
|
42 | + //Defaults |
|
43 | 43 | $instance = wp_parse_args( (array) $instance, array( |
44 | - 'title' => false, 'form' => false, 'description' => false, |
|
44 | + 'title' => false, 'form' => false, 'description' => false, |
|
45 | 45 | ) ); |
46 | 46 | ?> |
47 | 47 | <p><label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e( 'Title', 'formidable' ) ?>:</label><br/> |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | |
50 | 50 | <p><label for="<?php echo esc_attr( $this->get_field_id('form') ); ?>"><?php _e( 'Form', 'formidable' ) ?>:</label><br/> |
51 | 51 | <?php |
52 | - FrmFormsHelper::forms_dropdown( $this->get_field_name('form'), $instance['form'], array( |
|
53 | - 'blank' => false, 'field_id' => $this->get_field_id('form'), |
|
54 | - 'class' => 'widefat', |
|
55 | - ) ); |
|
52 | + FrmFormsHelper::forms_dropdown( $this->get_field_name('form'), $instance['form'], array( |
|
53 | + 'blank' => false, 'field_id' => $this->get_field_id('form'), |
|
54 | + 'class' => 'widefat', |
|
55 | + ) ); |
|
56 | 56 | ?> |
57 | 57 | </p> |
58 | 58 |