@@ -133,11 +133,11 @@ discard block |
||
133 | 133 | return; |
134 | 134 | } |
135 | 135 | $output['media_query'] = ( isset( $output['media_query'] ) ) ? $output['media_query'] : 'global'; |
136 | - $output['prefix'] = ( isset( $output['prefix'] ) ) ? $output['prefix'] : ''; |
|
137 | - $output['units'] = ( isset( $output['units'] ) ) ? $output['units'] : ''; |
|
138 | - $output['suffix'] = ( isset( $output['suffix'] ) ) ? $output['suffix'] : ''; |
|
136 | + $output['prefix'] = ( isset( $output['prefix'] ) ) ? $output['prefix'] : ''; |
|
137 | + $output['units'] = ( isset( $output['units'] ) ) ? $output['units'] : ''; |
|
138 | + $output['suffix'] = ( isset( $output['suffix'] ) ) ? $output['suffix'] : ''; |
|
139 | 139 | |
140 | - $this->styles[ $output['media_query'] ][ $output['element'] ][ $output['property'] ] = $output['prefix'] . $value . $output['units'] . $output['suffix']; |
|
140 | + $this->styles[$output['media_query']][$output['element']][$output['property']] = $output['prefix'] . $value . $output['units'] . $output['suffix']; |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | /** |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | 'background-position' => 'Kirki_Output_Property_Background_Position', |
158 | 158 | ) ); |
159 | 159 | if ( array_key_exists( $property, $properties ) ) { |
160 | - $classname = $properties[ $property ]; |
|
160 | + $classname = $properties[$property]; |
|
161 | 161 | $obj = new $classname( $property, $value ); |
162 | 162 | return $obj->get_value(); |
163 | 163 | } |
@@ -24,13 +24,13 @@ |
||
24 | 24 | // Add backup font |
25 | 25 | if ( Kirki_Fonts::is_google_font( $this->value ) ) { |
26 | 26 | |
27 | - if ( isset( $google_fonts_array[ $this->value ] ) && isset( $google_fonts_array[ $this->value ]['category'] ) ) { |
|
28 | - if ( isset( $backup_fonts[ $google_fonts_array[ $this->value ]['category'] ] ) ) { |
|
27 | + if ( isset( $google_fonts_array[$this->value] ) && isset( $google_fonts_array[$this->value]['category'] ) ) { |
|
28 | + if ( isset( $backup_fonts[$google_fonts_array[$this->value]['category']] ) ) { |
|
29 | 29 | // Add double quotes if needed |
30 | 30 | if ( false !== strpos( $this->value, ' ' ) && false === strpos( $this->value, '"' ) ) { |
31 | - $this->value = '"' . $this->value . '", ' . $backup_fonts[ $google_fonts_array[ $this->value ]['category'] ]; |
|
31 | + $this->value = '"' . $this->value . '", ' . $backup_fonts[$google_fonts_array[$this->value]['category']]; |
|
32 | 32 | } else { |
33 | - $this->value .= ', ' . $backup_fonts[ $google_fonts_array[ $this->value ]['category'] ]; |
|
33 | + $this->value .= ', ' . $backup_fonts[$google_fonts_array[$this->value]['category']]; |
|
34 | 34 | } |
35 | 35 | } |
36 | 36 | } |