@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * select2 Customizer Control. |
|
4 | - * |
|
5 | - * @package Kirki |
|
6 | - * @subpackage Controls |
|
7 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | - * @since 1.0 |
|
10 | - */ |
|
3 | + * select2 Customizer Control. |
|
4 | + * |
|
5 | + * @package Kirki |
|
6 | + * @subpackage Controls |
|
7 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | + * @since 1.0 |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | // Exit if accessed directly |
13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * select2 Customizer Control. |
|
4 | - * |
|
5 | - * @package Kirki |
|
6 | - * @subpackage Controls |
|
7 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | - * @since 1.0 |
|
10 | - */ |
|
3 | + * select2 Customizer Control. |
|
4 | + * |
|
5 | + * @package Kirki |
|
6 | + * @subpackage Controls |
|
7 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
8 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | + * @since 1.0 |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | // Exit if accessed directly |
13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * |
88 | 88 | * @param string $handle |
89 | 89 | * @param string $file |
90 | - * @param array $deps |
|
90 | + * @param string[] $deps |
|
91 | 91 | */ |
92 | 92 | public static function enqueue_customizer_control_script( $handle, $file = null, $deps = array(), $in_footer = false ) { |
93 | 93 | if ( ( false !== strpos( $file, 'controls/' ) && Kirki_Toolkit::kirki_debug() ) || false === strpos( $file, 'controls/' ) ) { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Changes the styling of the customizer |
|
4 | - * based on the settings set using the kirki/config filter. |
|
5 | - * For documentation please see |
|
6 | - * https://github.com/aristath/kirki/wiki/Styling-the-Customizer |
|
7 | - * |
|
8 | - * @package Kirki |
|
9 | - * @category Core |
|
10 | - * @author Aristeides Stathopoulos |
|
11 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
12 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
13 | - * @since 1.0 |
|
14 | - */ |
|
3 | + * Changes the styling of the customizer |
|
4 | + * based on the settings set using the kirki/config filter. |
|
5 | + * For documentation please see |
|
6 | + * https://github.com/aristath/kirki/wiki/Styling-the-Customizer |
|
7 | + * |
|
8 | + * @package Kirki |
|
9 | + * @category Core |
|
10 | + * @author Aristeides Stathopoulos |
|
11 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
12 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
13 | + * @since 1.0 |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | // Exit if accessed directly |
17 | 17 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Generates the styles for the frontend. |
|
4 | - * Handles the 'output' argument of fields. |
|
5 | - * Usage instructions on https://github.com/aristath/kirki/wiki/output |
|
6 | - * |
|
7 | - * @package Kirki |
|
8 | - * @category Core |
|
9 | - * @author Aristeides Stathopoulos |
|
10 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
11 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
12 | - * @since 1.0 |
|
13 | - */ |
|
3 | + * Generates the styles for the frontend. |
|
4 | + * Handles the 'output' argument of fields. |
|
5 | + * Usage instructions on https://github.com/aristath/kirki/wiki/output |
|
6 | + * |
|
7 | + * @package Kirki |
|
8 | + * @category Core |
|
9 | + * @author Aristeides Stathopoulos |
|
10 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
11 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
12 | + * @since 1.0 |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | // Exit if accessed directly |
16 | 16 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -113,8 +113,8 @@ |
||
113 | 113 | } |
114 | 114 | $css = $array_replace_recursive( $css, Kirki_Styles_Output_CSS::css( $field ) ); |
115 | 115 | // Add the globals |
116 | - if ( isset( self::$css_array[ $config_id ] ) && ! empty( self::$css_array[ $config_id ] ) ) { |
|
117 | - $array_replace_recursive( $css, self::$css_array[ $config_id ] ); |
|
116 | + if ( isset( self::$css_array[$config_id] ) && ! empty( self::$css_array[$config_id] ) ) { |
|
117 | + $array_replace_recursive( $css, self::$css_array[$config_id] ); |
|
118 | 118 | } |
119 | 119 | |
120 | 120 | } |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Generates the styles for the frontend. |
|
4 | - * Handles the 'output' argument of fields |
|
5 | - * |
|
6 | - * @package Kirki |
|
7 | - * @category Core |
|
8 | - * @author Aristeides Stathopoulos |
|
9 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
10 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
11 | - * @since 1.0 |
|
12 | - */ |
|
3 | + * Generates the styles for the frontend. |
|
4 | + * Handles the 'output' argument of fields |
|
5 | + * |
|
6 | + * @package Kirki |
|
7 | + * @category Core |
|
8 | + * @author Aristeides Stathopoulos |
|
9 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
10 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
11 | + * @since 1.0 |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | // Exit if accessed directly |
15 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | 'typography' => 'Kirki_Output_Control_Typography', |
97 | 97 | ) ); |
98 | 98 | if ( array_key_exists( self::$field_type, $field_output_classes ) ) { |
99 | - $classname = $field_output_classes[ self::$field_type ]; |
|
99 | + $classname = $field_output_classes[self::$field_type]; |
|
100 | 100 | } |
101 | 101 | $obj = new $classname( $field['kirki_config'], self::$output, self::$value ); |
102 | 102 | return $obj->get_styles(); |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | 'transition', |
173 | 173 | 'transition-property', |
174 | 174 | ) ) ) { |
175 | - $css[ $media_query ][ $element ][ '-webkit-' . $property ] = $value; |
|
176 | - $css[ $media_query ][ $element ][ '-moz-' . $property ] = $value; |
|
175 | + $css[$media_query][$element]['-webkit-' . $property] = $value; |
|
176 | + $css[$media_query][$element]['-moz-' . $property] = $value; |
|
177 | 177 | } |
178 | 178 | /** |
179 | 179 | * Add -ms-* and -o-* |
@@ -184,8 +184,8 @@ discard block |
||
184 | 184 | 'transition', |
185 | 185 | 'transition-property', |
186 | 186 | ) ) ) { |
187 | - $css[ $media_query ][ $element ][ '-ms-' . $property ] = $value; |
|
188 | - $css[ $media_query ][ $element ][ '-o-' . $property ] = $value; |
|
187 | + $css[$media_query][$element]['-ms-' . $property] = $value; |
|
188 | + $css[$media_query][$element]['-o-' . $property] = $value; |
|
189 | 189 | } |
190 | 190 | } |
191 | 191 | } |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Try to automatically generate the script necessary for adding icons to panels & section |
|
4 | - * |
|
5 | - * @package Kirki |
|
6 | - * @category Core |
|
7 | - * @author Aristeides Stathopoulos |
|
8 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
9 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
10 | - * @since 1.0 |
|
11 | - */ |
|
3 | + * Try to automatically generate the script necessary for adding icons to panels & section |
|
4 | + * |
|
5 | + * @package Kirki |
|
6 | + * @category Core |
|
7 | + * @author Aristeides Stathopoulos |
|
8 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
9 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
10 | + * @since 1.0 |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | // Exit if accessed directly |
14 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,15 +1,15 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Try to automatically generate the script necessary for postMessage to work. |
|
4 | - * for documentation see https://github.com/aristath/kirki/wiki/required |
|
5 | - * |
|
6 | - * @package Kirki |
|
7 | - * @category Core |
|
8 | - * @author Aristeides Stathopoulos |
|
9 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
10 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
11 | - * @since 1.0 |
|
12 | - */ |
|
3 | + * Try to automatically generate the script necessary for postMessage to work. |
|
4 | + * for documentation see https://github.com/aristath/kirki/wiki/required |
|
5 | + * |
|
6 | + * @package Kirki |
|
7 | + * @category Core |
|
8 | + * @author Aristeides Stathopoulos |
|
9 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
10 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
11 | + * @since 1.0 |
|
12 | + */ |
|
13 | 13 | |
14 | 14 | // Exit if accessed directly |
15 | 15 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Injects tooltips to controls when the 'tooltip' argument is used. |
|
4 | - * |
|
5 | - * @package Kirki |
|
6 | - * @category Core |
|
7 | - * @author Aristeides Stathopoulos |
|
8 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
9 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
10 | - * @since 1.0 |
|
11 | - */ |
|
3 | + * Injects tooltips to controls when the 'tooltip' argument is used. |
|
4 | + * |
|
5 | + * @package Kirki |
|
6 | + * @category Core |
|
7 | + * @author Aristeides Stathopoulos |
|
8 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
9 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
10 | + * @since 1.0 |
|
11 | + */ |
|
12 | 12 | |
13 | 13 | // Exit if accessed directly |
14 | 14 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -21,8 +21,8 @@ |
||
21 | 21 | |
22 | 22 | $previous_path = ''; |
23 | 23 | for ( $i = 0; $i < $levels; $i++ ) { |
24 | - $paths[] = $path . $previous_path . strtolower( $exploded[ $i ] ) . '/' . $filename; |
|
25 | - $previous_path .= strtolower( $exploded[ $i ] ) . '/'; |
|
24 | + $paths[] = $path . $previous_path . strtolower( $exploded[$i] ) . '/' . $filename; |
|
25 | + $previous_path .= strtolower( $exploded[$i] ) . '/'; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | foreach ( $paths as $path ) { |