<?php

/**
 * @package Unlimited Elements
 * @author unlimited-elements.com
 * @copyright (C) 2021 Unlimited Elements, All Rights Reserved.
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

if ( ! defined( 'ABSPATH' ) ) exit;

if(!isset($headerTitle))
	UniteFunctionsUC::throwError("header template error: \$headerTitle variable not defined");

$headerPrefix = HelperUC::getText("addon_library");

if(!empty(GlobalsUC::$alterViewHeaderPrefix))
	$headerPrefix = GlobalsUC::$alterViewHeaderPrefix;

$adminPageTitle = $headerTitle . " - " . $headerPrefix;

UniteProviderFunctionsUC::setAdminPageTitle($adminPageTitle);

?>

<div class="unite_header_wrapper">
	<div class="title_line">
		<div class="title_line_text">
			<?php 
			uelm_echo( $headerTitle ); ?>
		</div>
		<?php if(isset($headerAddHtml)): ?>
			<div class="title_line_add_html"><?php echo esc_html($headerAddHtml); ?></div>
		<?php endif ?>
	</div>
	<div class="unite-clear"></div>
</div>

<?php HelperHtmlUC::putHtmlAdminNotices() ?>
