@@ -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(); |
@@ -46,8 +46,9 @@ |
||
| 46 | 46 | parent::to_json(); |
| 47 | 47 | |
| 48 | 48 | $this->json['choicesLength'] = 0; |
| 49 | - if ( is_array( $this->choices ) && count( $this->choices ) ) |
|
| 50 | - $this->json['choicesLength'] = count( $this->choices ); |
|
| 49 | + if ( is_array( $this->choices ) && count( $this->choices ) ) { |
|
| 50 | + $this->json['choicesLength'] = count( $this->choices ); |
|
| 51 | + } |
|
| 51 | 52 | |
| 52 | 53 | $values = $this->value() == '' ? array_keys( $this->choices ) : $this->value(); |
| 53 | 54 | $filtered_values = array(); |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * sortable 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 | + * sortable 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' ) ) { |
@@ -80,11 +80,14 @@ |
||
| 80 | 80 | public static function array_flatten( array $array ) { |
| 81 | 81 | $flat = array(); // initialize return array |
| 82 | 82 | $stack = array_values( $array ); |
| 83 | - while ( $stack ) { // process stack until done |
|
| 83 | + while ( $stack ) { |
|
| 84 | +// process stack until done |
|
| 84 | 85 | $value = array_shift( $stack ); |
| 85 | - if ( is_array( $value ) ) { // a value to further process |
|
| 86 | + if ( is_array( $value ) ) { |
|
| 87 | +// a value to further process |
|
| 86 | 88 | $stack = array_merge( array_keys( $value ), $stack ); |
| 87 | - } else { // a value to take |
|
| 89 | + } else { |
|
| 90 | +// a value to take |
|
| 88 | 91 | $flat[] = $value; |
| 89 | 92 | } |
| 90 | 93 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package Kirki |
|
| 4 | - * @subpackage Controls |
|
| 5 | - * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
| 6 | - * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 7 | - * @since 1.0 |
|
| 8 | - */ |
|
| 3 | + * @package Kirki |
|
| 4 | + * @subpackage Controls |
|
| 5 | + * @copyright Copyright (c) 2016, Aristeides Stathopoulos |
|
| 6 | + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
|
| 7 | + * @since 1.0 |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | // Exit if accessed directly |
| 11 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Enqueue the scripts that are required by the customizer. |
|
| 4 | - * Any additional scripts that are required by individual controls |
|
| 5 | - * are enqueued in the control classes themselves. |
|
| 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 | + * Enqueue the scripts that are required by the customizer. |
|
| 4 | + * Any additional scripts that are required by individual controls |
|
| 5 | + * are enqueued in the control classes themselves. |
|
| 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' ) ) { |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Additional sanitization methods for controls. |
|
| 4 | - * These are used in the field's 'sanitize_callback' argument. |
|
| 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 | + * Additional sanitization methods for controls. |
|
| 4 | + * These are used in the field's 'sanitize_callback' argument. |
|
| 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 | - * 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,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The main Kirki object |
|
| 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 | + * The main Kirki object |
|
| 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' ) ) { |