@@ -42,7 +42,7 @@ |
||
42 | 42 | $fields = Kirki::$fields; |
43 | 43 | foreach ( $fields as $field ) { |
44 | 44 | if ( isset( $field['required'] ) && is_array( $field['required'] ) && ! empty( $field['required'] ) ) { |
45 | - $field_dependencies[ $field['id'] ] = $field['required']; |
|
45 | + $field_dependencies[$field['id']] = $field['required']; |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | wp_localize_script( 'kirki_field_dependencies', 'fieldDependencies', $field_dependencies ); |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | foreach ( Kirki::$panels as $panel_args ) { |
188 | 188 | // Extra checks for nested panels. |
189 | 189 | if ( isset( $panel_args['panel'] ) ) { |
190 | - if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) { |
|
190 | + if ( isset( Kirki::$panels[$panel_args['panel']] ) ) { |
|
191 | 191 | // Set the type to nested. |
192 | 192 | $panel_args['type'] = 'kirki-nested'; |
193 | 193 | } |
@@ -209,11 +209,11 @@ discard block |
||
209 | 209 | foreach ( Kirki::$sections as $section_args ) { |
210 | 210 | // Extra checks for nested sections. |
211 | 211 | if ( isset( $section_args['section'] ) ) { |
212 | - if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) { |
|
212 | + if ( isset( Kirki::$sections[$section_args['section']] ) ) { |
|
213 | 213 | // Set the type to nested. |
214 | 214 | $section_args['type'] = 'kirki-nested'; |
215 | 215 | // We need to check if the parent section is nested inside a panel. |
216 | - $parent_section = Kirki::$sections[ $section_args['section'] ]; |
|
216 | + $parent_section = Kirki::$sections[$section_args['section']]; |
|
217 | 217 | if ( isset( $parent_section['panel'] ) ) { |
218 | 218 | $section_args['panel'] = $parent_section['panel']; |
219 | 219 | } |
@@ -281,9 +281,9 @@ discard block |
||
281 | 281 | // and run it through the callback function. |
282 | 282 | // If no callback is defined (false) then just get the value. |
283 | 283 | if ( $variable_callback ) { |
284 | - $variables[ $variable_name ] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ); |
|
284 | + $variables[$variable_name] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ); |
|
285 | 285 | } else { |
286 | - $variables[ $variable_name ] = Kirki::get_option( $field['settings'] ); |
|
286 | + $variables[$variable_name] = Kirki::get_option( $field['settings'] ); |
|
287 | 287 | } |
288 | 288 | } |
289 | 289 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | $config = Kirki_Config::get_instance( $config_id, $args ); |
117 | 117 | $config_args = $config->get_config(); |
118 | - self::$config[ $config_args['id'] ] = $config_args; |
|
118 | + self::$config[$config_args['id']] = $config_args; |
|
119 | 119 | |
120 | 120 | } |
121 | 121 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $args['active_callback'] = ( isset( $args['required'] ) ) ? array( 'Kirki_Active_Callback', 'evaluate' ) : '__return_true'; |
139 | 139 | } |
140 | 140 | |
141 | - self::$panels[ $args['id'] ] = $args; |
|
141 | + self::$panels[$args['id']] = $args; |
|
142 | 142 | |
143 | 143 | } |
144 | 144 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $args['active_callback'] = ( isset( $args['required'] ) ) ? array( 'Kirki_Active_Callback', 'evaluate' ) : '__return_true'; |
163 | 163 | } |
164 | 164 | |
165 | - self::$sections[ $args['id'] ] = $args; |
|
165 | + self::$sections[$args['id']] = $args; |
|
166 | 166 | |
167 | 167 | } |
168 | 168 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | /** |
14 | 14 | * The Kirki_Modules_Resize object. |
15 | 15 | */ |
16 | -class Kirki_Modules_Resize { |
|
16 | +class Kirki_Modules_Resize { |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Constructor. |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | 'kirki-multicolor' => 'Kirki_Output_Field_Multicolor', |
172 | 172 | ) ); |
173 | 173 | if ( array_key_exists( self::$field_type, $field_output_classes ) ) { |
174 | - $classname = $field_output_classes[ self::$field_type ]; |
|
174 | + $classname = $field_output_classes[self::$field_type]; |
|
175 | 175 | } |
176 | 176 | $obj = new $classname( $field['kirki_config'], self::$output, self::$value ); |
177 | 177 | return $obj->get_styles(); |
@@ -235,10 +235,10 @@ discard block |
||
235 | 235 | 'transition', |
236 | 236 | 'transition-property', |
237 | 237 | ) ) ) { |
238 | - unset( $css[ $media_query ][ $element ][ $property ] ); |
|
239 | - $css[ $media_query ][ $element ][ '-webkit-' . $property ] = $value; |
|
240 | - $css[ $media_query ][ $element ][ '-moz-' . $property ] = $value; |
|
241 | - $css[ $media_query ][ $element ][ $property ] = $value; |
|
238 | + unset( $css[$media_query][$element][$property] ); |
|
239 | + $css[$media_query][$element]['-webkit-' . $property] = $value; |
|
240 | + $css[$media_query][$element]['-moz-' . $property] = $value; |
|
241 | + $css[$media_query][$element][$property] = $value; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | // Add -ms-* and -o-*. |
@@ -248,10 +248,10 @@ discard block |
||
248 | 248 | 'transition', |
249 | 249 | 'transition-property', |
250 | 250 | ) ) ) { |
251 | - unset( $css[ $media_query ][ $element ][ $property ] ); |
|
252 | - $css[ $media_query ][ $element ][ '-ms-' . $property ] = $value; |
|
253 | - $css[ $media_query ][ $element ][ '-o-' . $property ] = $value; |
|
254 | - $css[ $media_query ][ $element ][ $property ] = $value; |
|
251 | + unset( $css[$media_query][$element][$property] ); |
|
252 | + $css[$media_query][$element]['-ms-' . $property] = $value; |
|
253 | + $css[$media_query][$element]['-o-' . $property] = $value; |
|
254 | + $css[$media_query][$element][$property] = $value; |
|
255 | 255 | } |
256 | 256 | } |
257 | 257 | } |