Files
medicalalert-web-reloaded/wp/wp-content/themes/thbusiness/inc/customizer/custom-controls/control-custom-content.php
Rachit Bhargava 5d0f0734d8 first commit
2023-07-21 17:12:10 -04:00

34 lines
792 B
PHP

<?php
if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Thbusiness_Custom_Content' ) ) :
class Thbusiness_Custom_Content extends WP_Customize_Control {
// Whitelist content parameter
public $content = '';
/**
* Render the control's content.
*
* Allows the content to be overriden without having to rewrite the wrapper.
*
* @since 1.0.0
* @return void
*/
public function render_content() {
if ( isset( $this->label ) ) {
echo '<span class="customize-control-title">' . $this->label . '</span>';
}
if ( isset( $this->content ) ) {
echo $this->content;
}
if ( isset( $this->description ) ) {
echo '<span class="description customize-control-description">' . $this->description . '</span>';
}
}
}
endif;