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 / component-tab-horizontal.php

<?php
/**
 * Horizontal tab template.
 */

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}
?>
<div class="cx-ui-kit cx-component cx-tab cx-tab--horizontal <?php echo esc_attr( $args['class'] ) ?>" data-compotent-id="#<?php echo esc_attr( $args['id'] ); ?>">
	<?php if ( ! empty( $args['title'] ) ) { ?>
		<div class="h2-style cx-ui-kit__title cx-component__title" role="banner" ><?php echo wp_kses_post( $args['title'] ); ?></div>
	<?php } ?>
	<?php if ( ! empty( $args['description'] ) ) { ?>
		<div class="cx-ui-kit__description cx-component__description" role="note" ><?php echo wp_kses_post( $args['description'] ); ?></div>
	<?php } ?>
	<?php if ( ! empty( $args['children'] ) ) { ?>
		<div class="cx-tab__body" >
			<div class="cx-tab__tabs" role="navigation" >
				<?php echo $args['tabs']; ?>
			</div>
			<div class="cx-ui-kit__content cx-component__content cx-tab__content" role="group" >
				<?php echo $args['children']; ?>
			</div>
		</div>
	<?php } ?>
</div>