<?php
/**
 * Template part for displaying page header.
 *
 * @package     Business Interface
 * @author  WPInterface Team
 * @since   1.0.0
 */

?>

<div <?php business_interface_page_header_classes(); ?><?php business_interface_page_header_atts(); ?>>
	<div class="interface-container">

	<?php do_action( 'business_interface_page_header_start' ); ?>

	<?php if ( business_interface_page_header_has_title() ) { ?>

		<div class="si-page-header-wrapper">

			<div class="si-page-header-title">
				<?php business_interface_page_header_title(); ?>
			</div>

			<?php $business_interface_description = apply_filters( 'business_interface_page_header_description', business_interface_get_the_description() ); ?>

			<?php if ( $business_interface_description ) { ?>

				<div class="si-page-header-description">
					<?php echo wp_kses( $business_interface_description, business_interface_get_allowed_html_tags() ); ?>
				</div>

			<?php } ?>
		</div>

	<?php } ?>

	<?php do_action( 'business_interface_page_header_end' ); ?>

	</div>
</div>
