PluginProbe ʕ •ᴥ•ʔ
Kirki – Freeform Page Builder, Website Builder & Customizer / 6.2.3
Kirki – Freeform Page Builder, Website Builder & Customizer v6.2.3
6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.1 6.1.0 6.0.14 6.0.13 6.0.12 6.0.11 6.0.10 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 4.0.19 4.0.20 4.0.21 4.0.22 4.0.23 4.0.24 4.1 4.2.0 5.0.0 5.1.0 5.1.1 5.2.0 5.2.1 5.2.2 5.2.3 6.0.0 trunk 3.0.40 3.0.41 3.0.42 3.0.43 3.0.44 3.0.45 3.1.0 3.1.1 3.1.2
kirki / customizer / packages / controls / headline-divider / src / Control / Headline.php
kirki / customizer / packages / controls / headline-divider / src / Control Last commit date
Divider.php 6 months ago Headline.php 4 months ago HeadlineToggle.php 6 months ago
Headline.php
77 lines
1 <?php
2 /**
3 * Customizer Control: kirki-headline.
4 *
5 * @package kirki-headline
6 * @since 1.0
7 */
8
9 namespace Kirki\Control;
10
11 use Kirki\Control\Base;
12 use Kirki\URL;
13
14 // Exit if accessed directly.
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 /**
20 * Headline control
21 */
22 class Headline extends Base {
23
24 /**
25 * The control type.
26 *
27 * @since 1.0
28 * @var string
29 */
30 public $type = 'kirki-headline';
31
32 /**
33 * The version. Used in scripts & styles for cache-busting.
34 *
35 * @since 1.0
36 * @var string
37 */
38 public static $control_ver = '1.0.0.1';
39
40 /**
41 * Enqueue control related styles/scripts.
42 *
43 * @since 1.0
44 * @access public
45 */
46
47
48 /**
49 * An Underscore (JS) template for this control's content (but not its container).
50 *
51 * Class variables for this control class are available in the `data` JS object;
52 * export custom variables by overriding {@see WP_Customize_Control::to_json()}.
53 *
54 * @see WP_Customize_Control::print_template()
55 * @since 1.0
56 */
57 protected function content_template() {
58 ?>
59
60 <div class="kirki-control-label">
61 <# if (data.label) { #>
62 <h4 class="customize-control-title">
63 {{{ data.label }}}
64 </h4>
65 <# } #>
66
67 <# if (data.description) { #>
68 <p class="customize-control-description">{{{ data.description }}}</p>
69 <# } #>
70 </div>
71
72 <?php
73
74 }
75
76 }
77