first commit without licensingg
This commit is contained in:
45
core/customizer/controls/class-control-heading.php
Normal file
45
core/customizer/controls/class-control-heading.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* Customizer Heading
|
||||
*
|
||||
* @package Revision
|
||||
*/
|
||||
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'CSCO_Customize_Heading_Control' ) ) {
|
||||
/**
|
||||
* Class Customize Heading
|
||||
*/
|
||||
class CSCO_Customize_Heading_Control extends WP_Customize_Control {
|
||||
|
||||
/**
|
||||
* The field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'heading';
|
||||
|
||||
/**
|
||||
* Render the control content.
|
||||
*/
|
||||
protected function render_content() {
|
||||
?>
|
||||
<label>
|
||||
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
|
||||
|
||||
<?php
|
||||
if ( isset( $this->description ) && $this->description ) {
|
||||
?>
|
||||
<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</label>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user