<?php
/**
 * Control template.
 *
 * @package    Cherry_Interface_Builder
 * @subpackage Views
 * @author     Cherry Team <cherryframework@gmail.com>
 * @copyright  Copyright (c) 2012 - 2016, Cherry Team
 * @link       http://www.cherryframework.com/
 * @license    http://www.gnu.org/licenses/gpl-3.0.html
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}
?>
<div class="cherry-ui-kit cherry-control <?php echo $__data['class']; ?>">
	<?php if ( ! empty( $__data['title'] ) || ! empty( $__data['description'] ) ) { ?>
		<div class="cherry-control__info">
			<?php if ( ! empty( $__data['title'] ) ) { ?>
				<h4 class="cherry-ui-kit__title cherry-control__title" role="banner" ><?php echo $__data['title']; ?></h4>
			<?php } ?>
			<?php if ( ! empty( $__data['description'] ) ) { ?>
				<div class="cherry-ui-kit__description cherry-control__description" role="note" ><?php echo $__data['description']; ?></div>
			<?php } ?>
		</div>
	<?php } ?>
	<?php if ( ! empty( $__data['children'] ) ) { ?>
		<div class="cherry-ui-kit__content cherry-control__content" role="group" >
			<?php echo $__data['children']; ?>
		</div>
	<?php } ?>
</div>
