@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * switch 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 | + * switch 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 | - * toggle 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 | + * toggle 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 | - * typography 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.1 |
|
| 10 | - */ |
|
| 3 | + * typography 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.1 |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | 13 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This file contains all the deprecated functions. |
|
| 4 | - * We could easily delete all these but they are kept for backwards-compatibility purposes. |
|
| 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 | + * This file contains all the deprecated functions. |
|
| 4 | + * We could easily delete all these but they are kept for backwards-compatibility purposes. |
|
| 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 | - * Retrieve colors from the Colourlovers API. |
|
| 4 | - * |
|
| 5 | - * @package Kirki |
|
| 6 | - * @category Addon |
|
| 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 | + * Retrieve colors from the Colourlovers API. |
|
| 4 | + * |
|
| 5 | + * @package Kirki |
|
| 6 | + * @category Addon |
|
| 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,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 | } |