@@ -146,8 +146,8 @@ discard block |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * Get value from the associative array of the plugin defaults option |
|
150 | - * |
|
149 | + * Get value from the associative array of the plugin defaults option |
|
150 | + * |
|
151 | 151 | * @param $key |
152 | 152 | * @param bool $default |
153 | 153 | * |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | if ( isset( $attribute_value ) && ctype_alnum( $attribute_value ) && key_exists( $attribute_value, \PodloveSubscribeButton\Model\Button::$$attribute ) ) { |
234 | 234 | return $attribute_value; |
235 | 235 | } else { |
236 | - $default = get_option( 'podlove_psb_defaults', \PodloveSubscribeButton\Defaults::options() ); |
|
236 | + $default = get_option( 'podlove_psb_defaults', \PodloveSubscribeButton\Defaults::options() ); |
|
237 | 237 | return $default[ $attribute ]; |
238 | 238 | } |
239 | 239 |
@@ -152,11 +152,11 @@ |
||
152 | 152 | |
153 | 153 | public static function sanitize_settings( $input = null ) { |
154 | 154 | |
155 | - $output = $input; |
|
155 | + $output = $input; |
|
156 | 156 | |
157 | - if ( ! array_key_exists('autowidth', $input ) ) { |
|
158 | - $output['autowidth'] = 'off'; |
|
159 | - } |
|
157 | + if ( ! array_key_exists('autowidth', $input ) ) { |
|
158 | + $output['autowidth'] = 'off'; |
|
159 | + } |
|
160 | 160 | |
161 | 161 | return $output; |
162 | 162 | } |
@@ -40,13 +40,13 @@ discard block |
||
40 | 40 | <div id="post-body" class="columns-2"> |
41 | 41 | <div id="post-body-content"> |
42 | 42 | <?php |
43 | - switch ( $action ) { |
|
44 | - case 'new': self::new_template(); break; |
|
45 | - case 'edit': self::edit_template(); break; |
|
46 | - case 'index': self::view_template(); break; |
|
47 | - default: self::view_template(); break; |
|
48 | - } |
|
49 | - ?> |
|
43 | + switch ( $action ) { |
|
44 | + case 'new': self::new_template(); break; |
|
45 | + case 'edit': self::edit_template(); break; |
|
46 | + case 'index': self::view_template(); break; |
|
47 | + default: self::view_template(); break; |
|
48 | + } |
|
49 | + ?> |
|
50 | 50 | </div> |
51 | 51 | <div id="postbox-container-1" class="postbox-container"> |
52 | 52 | <?php self::sidebar(); ?> |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | </div> |
93 | 93 | <?php |
94 | 94 | |
95 | - } |
|
95 | + } |
|
96 | 96 | |
97 | 97 | /** |
98 | 98 | * Process form: save/update a format |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | $table->display(); |
203 | 203 | |
204 | 204 | if ( $is_network ) { |
205 | - // https://vedovini.net/2015/10/using-the-wordpress-settings-api-with-network-admin-pages/ |
|
205 | + // https://vedovini.net/2015/10/using-the-wordpress-settings-api-with-network-admin-pages/ |
|
206 | 206 | ?> |
207 | 207 | <form method="post" action="edit.php?action=podlove_psb_update_network_options"> |
208 | 208 | <?php |