@@ -188,8 +188,9 @@ |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | // Fetch the (network)button by it's name |
191 | - if ( ! $button = \PodloveSubscribeButton\Model\Button::get_button_by_name( $args[ 'button' ] ) ) |
|
192 | - return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args[ 'button' ] ); |
|
191 | + if ( ! $button = \PodloveSubscribeButton\Model\Button::get_button_by_name( $args[ 'button' ] ) ) { |
|
192 | + return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args[ 'button' ] ); |
|
193 | + } |
|
193 | 194 | |
194 | 195 | // Get button styling and options |
195 | 196 | $autowidth = self::interpret_width_attribute( self::get_array_value_with_fallback( $args, 'width' ) ); |
@@ -98,8 +98,10 @@ |
||
98 | 98 | <optgroup label="<?php _e( 'Network', 'podlove-subscribe-button' ); ?>"> |
99 | 99 | <?php $buttons_as_options( $network_buttons ); ?> |
100 | 100 | </optgroup> |
101 | - <?php else : |
|
101 | + <?php else { |
|
102 | + : |
|
102 | 103 | $buttons_as_options( $buttons ); |
104 | +} |
|
103 | 105 | endif; ?> |
104 | 106 | </select> |
105 | 107 | <?php |
@@ -35,8 +35,9 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | public function column_button_preview( $button ) { |
38 | - if ( ! $button->feeds ) |
|
39 | - return; |
|
38 | + if ( ! $button->feeds ) { |
|
39 | + return; |
|
40 | + } |
|
40 | 41 | |
41 | 42 | $is_network = is_network_admin(); |
42 | 43 |
@@ -182,11 +182,13 @@ |
||
182 | 182 | * @return string |
183 | 183 | */ |
184 | 184 | private static function interpret_autowidth_attribute( $autowidth ) { |
185 | - if ( $autowidth == 'default' && get_option( 'podlove_subscribe_button_default_autowidth' ) !== 'on' ) |
|
186 | - return ''; |
|
185 | + if ( $autowidth == 'default' && get_option( 'podlove_subscribe_button_default_autowidth' ) !== 'on' ) { |
|
186 | + return ''; |
|
187 | + } |
|
187 | 188 | |
188 | - if ( $autowidth !== 'default' && $autowidth !== 'on' ) |
|
189 | - return ''; |
|
189 | + if ( $autowidth !== 'default' && $autowidth !== 'on' ) { |
|
190 | + return ''; |
|
191 | + } |
|
190 | 192 | |
191 | 193 | return ' auto'; |
192 | 194 | } |