<?php
/**
 *---------------------------------------------------------------------------------------
 * @package       VP Smart Template
 *---------------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2012-2021 VirtuePlanet Services LLP. All rights reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       Abhishek Das
 * @email         info@virtueplanet.com
 * @link          https://www.virtueplanet.com
 *---------------------------------------------------------------------------------------
 */
defined('_JEXEC') or die;

if($this->countModules('top-left') && $this->countModules('top-right'))
{
	$left = 'col-xs-12 col-sm-6 col-md-6';
	$right = 'col-xs-12 col-sm-6 col-md-6';
}
elseif($this->countModules('top-left') && !$this->countModules('top-right'))
{
	$left = 'col-xs-12 col-sm-12 col-md-12';
}
elseif(!$this->countModules('top-left') && $this->countModules('top-right'))
{
	$right = 'col-xs-12 col-sm-12 col-md-12';
}
?>
<?php if($this->countModules('top-left') || $this->countModules('top-right')) : ?>
	<div class="vpf-topbar">
		<div class="container-fluid">
			<div class="inner-container">
				<div class="row">
					<?php if($this->countModules('top-left')) : ?>
						<div class="top-left <?php echo $left ?>">
							<jdoc:include type="modules" name="top-left" style="inline" />
						</div>
					<?php endif; ?>
					<?php if($this->countModules('top-right')) : ?>
						<div class="top-right <?php echo $right ?>">
							<jdoc:include type="modules" name="top-right" style="topright" />
						</div>
					<?php endif; ?>
				</div>
			</div>
		</div>
	</div>
<?php endif; ?>