Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Kirki_Controls { |
||
16 | |||
17 | /** |
||
18 | * An array of templates to load. |
||
19 | * |
||
20 | * @access private |
||
21 | * @since 3.0.17 |
||
22 | * @var array |
||
23 | */ |
||
24 | private $templates = array( |
||
25 | 'code', |
||
26 | 'color', |
||
27 | 'generic', |
||
28 | 'image', |
||
29 | 'number', |
||
30 | 'radio', |
||
31 | 'select', |
||
32 | 'textarea', |
||
33 | ); |
||
34 | |||
35 | /** |
||
36 | * Path to controls views. |
||
37 | * |
||
38 | * @access private |
||
39 | * @since 3.0.17 |
||
40 | * @var string |
||
41 | */ |
||
42 | private $views_path; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | * |
||
47 | * @access public |
||
48 | * @since 3.0.17 |
||
49 | */ |
||
50 | public function __construct() { |
||
51 | if ( ! $this->views_path ) { |
||
52 | $this->views_path = wp_normalize_path( dirname( KIRKI_PLUGIN_FILE ) . '/controls/views/' ); |
||
53 | } |
||
54 | add_action( 'customize_controls_print_footer_scripts', array( $this, 'underscore_templates' ) ); |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Adds underscore.js templates to the footer. |
||
59 | * |
||
60 | * @access public |
||
61 | * @since 3.0.17 |
||
62 | */ |
||
63 | public function underscore_templates() { |
||
69 | } |
||
70 | } |
||
73 |