@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * number Customizer Control. |
|
4 | - * |
|
5 | - * @package Kirki |
|
6 | - * @subpackage Controls |
|
7 | - * @copyright Copyright (c) 2015, Aristeides Stathopoulos |
|
8 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
9 | - * @since 1.0 |
|
10 | - */ |
|
3 | + * number Customizer Control. |
|
4 | + * |
|
5 | + * @package Kirki |
|
6 | + * @subpackage Controls |
|
7 | + * @copyright Copyright (c) 2015, 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' ) ) { |
@@ -7,10 +7,10 @@ |
||
7 | 7 | die( 'File can\'t be accessed directly' ); |
8 | 8 | } |
9 | 9 | /** |
10 | - * Make sure we set the correct MIME type |
|
11 | - */ |
|
10 | + * Make sure we set the correct MIME type |
|
11 | + */ |
|
12 | 12 | header( 'Content-Type: text/css' ); |
13 | 13 | /** |
14 | - * Echo the styles |
|
15 | - */ |
|
14 | + * Echo the styles |
|
15 | + */ |
|
16 | 16 | echo Kirki_Styles_Frontend::loop_controls(); |
@@ -50,9 +50,9 @@ |
||
50 | 50 | // Make sure that every row is an array, not an object |
51 | 51 | foreach ( $sanitized as $key => $_value ) { |
52 | 52 | if ( empty( $_value ) ) { |
53 | - unset( $sanitized[ $key ] ); |
|
53 | + unset( $sanitized[$key] ); |
|
54 | 54 | } else { |
55 | - $sanitized[ $key ] = (array) $_value; |
|
55 | + $sanitized[$key] = (array) $_value; |
|
56 | 56 | } |
57 | 57 | } |
58 | 58 |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Repeater Customizer Setting. |
|
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 | + * Repeater Customizer Setting. |
|
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' ) ) { |
@@ -15,11 +15,11 @@ |
||
15 | 15 | $fields = Kirki::$fields; |
16 | 16 | |
17 | 17 | // Make sure the current object matches a registered field. |
18 | - if ( ! isset( $object->setting->id ) || ! isset( $fields[ $object->setting->id ] ) ) { |
|
18 | + if ( ! isset( $object->setting->id ) || ! isset( $fields[$object->setting->id] ) ) { |
|
19 | 19 | return true; |
20 | 20 | } |
21 | 21 | |
22 | - $current_object = $fields[ $object->setting->id ]; |
|
22 | + $current_object = $fields[$object->setting->id]; |
|
23 | 23 | |
24 | 24 | if ( isset( $current_object['required'] ) ) { |
25 | 25 |
@@ -172,9 +172,9 @@ |
||
172 | 172 | * If no callback is defined (false) then just get the value. |
173 | 173 | */ |
174 | 174 | if ( $variable_callback ) { |
175 | - $variables[ $variable_name ] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ); |
|
175 | + $variables[$variable_name] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ); |
|
176 | 176 | } else { |
177 | - $variables[ $variable_name ] = Kirki::get_option( $field['settings'] ); |
|
177 | + $variables[$variable_name] = Kirki::get_option( $field['settings'] ); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | } |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Instantiates all other needed scripts. |
|
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 | + * Instantiates all other needed scripts. |
|
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,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Checkbox 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 | + * Checkbox 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,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * code Customizer Control. |
|
4 | - * |
|
5 | - * Creates a new custom control. |
|
6 | - * Custom controls accept raw HTML/JS. |
|
7 | - * |
|
8 | - * @package Kirki |
|
9 | - * @subpackage Controls |
|
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 | + * code Customizer Control. |
|
4 | + * |
|
5 | + * Creates a new custom control. |
|
6 | + * Custom controls accept raw HTML/JS. |
|
7 | + * |
|
8 | + * @package Kirki |
|
9 | + * @subpackage Controls |
|
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' ) ) { |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * color-alpha 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 | + * color-alpha 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' ) ) { |