| @@ -25,9 +25,8 @@ | ||
| 25 | 25 | */ |
| 26 | 26 | public function default_attributes() { |
| 27 | 27 | return [ |
| 28 | 28 | 'text' => '', |
| 29 | - 'text_tag' => 'h5', | |
| 30 | 29 | 'layout' => 'layout-1', |
| 31 | 30 | 'happy' => true, |
| 32 | 31 | 'happy_icon' => '', |
| 33 | 32 | 'normal' => true, |
| @@ -68,9 +67,9 @@ | ||
| 68 | 67 | $this->views( 'widgets/reactions-2', $args ); |
| 69 | 68 | } elseif ( isset( $atts['layout'] ) && $atts['layout'] == 'layout-3' ) { |
| 70 | 69 | $this->views( 'widgets/reactions-3', $args ); |
| 71 | 70 | } else { |
| 72 | - $this->views( 'widgets/reactions', $args ); | |
| 71 | + $this->views( 'widgets/reactions' ); | |
| 73 | 72 | } |
| 74 | 73 | } |
| 75 | 74 | |
| 76 | 75 | public function view_params() { |
| @@ -78,16 +77,11 @@ | ||
| 78 | 77 | $reactions_text = ! empty( $this->attributes['text'] ) ? $this->attributes['text'] : $this->customizer->get( |
| 79 | 78 | 'betterdocs_post_reactions_text', |
| 80 | 79 | __( 'What are your Feelings', 'betterdocs' ) |
| 81 | 80 | ); |
| 82 | - $text_tag = ! empty( $this->attributes['text_tag'] ) ? $this->attributes['text_tag'] : $this->customizer->get( | |
| 83 | - 'betterdocs_reactions_title_tag', | |
| 84 | - 'h5' | |
| 85 | - ); | |
| 86 | 81 | |
| 87 | 82 | return [ |
| 88 | 83 | 'wrapper_attr' => $wrapper_attr, |
| 89 | - 'reactions_text' => $reactions_text, | |
| 90 | - 'text_tag' => $text_tag | |
| 84 | + 'reactions_text' => $reactions_text | |
| 91 | 85 | ]; |
| 92 | 86 | } |
| 93 | 87 | } |