Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/jet-engine   php

Repository URL to install this package:

Version: 2.7.7 

/ interface-builder / views / settings.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 $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 $args['children']; ?>
			<?php } ?>
		</div>
	<?php } ?>
</div>