25 lines
860 B
PHP
25 lines
860 B
PHP
<?php
|
|
/**
|
|
* Settings template.
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if ( ! defined( 'WPINC' ) ) {
|
|
die;
|
|
}
|
|
?>
|
|
<div class="cx-ui-kit cx-settings <?php echo esc_attr( $args['class'] ); ?>">
|
|
<?php if ( ! empty( $args['title'] ) ) {
|
|
echo CX_Interface_Builder::kses( $args['title'] );
|
|
} ?>
|
|
<?php if ( ! empty( $args['children'] ) || ! empty( $args['description'] ) ) { ?>
|
|
<div class="cx-ui-kit__content cx-settings__content" role="group" id="<?php echo esc_attr( $args['id'] ); ?>" >
|
|
<?php if ( ! empty( $args['description'] ) ) { ?>
|
|
<div class="cx-ui-kit__description cx-settings__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
|
|
<?php } ?>
|
|
<?php if ( ! empty( $args['children'] ) ) { ?>
|
|
<?php echo CX_Interface_Builder::kses( $args['children'] ); ?>
|
|
<?php } ?>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|