<?php
/**
 *---------------------------------------------------------------------------------------
 * @package       VP Smart Template
 *---------------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2012-2020 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('footer-left') && $this->countModules('footer-right'))
{
	$rightWidth = 'col-md-6';
	$leftWidth = 'col-md-6';
}
elseif(!$this->countModules('footer-left') && $this->countModules('footer-right'))
{
	$rightWidth = 'col-md-12';
}
elseif($this->countModules('footer-left') && !$this->countModules('footer-right'))
{
	$leftWidth = 'col-md-12';
}
?>
<?php if($this->countModules('footer-left') || $this->countModules('footer-right')) : ?>
	<footer class="footer">
		<div class="container">
			<div class="inner-container">
				<div class="row">
					<?php if($this->countModules('footer-left')) : ?>
						<div class="footer-mods footer-left <?php echo $leftWidth ?>">
							<jdoc:include type="modules" name="footer-left" style="normal" />
						</div>
					<?php endif; ?>
					<?php if($this->countModules('footer-right')) : ?>
						<div class="footer-mods footer-right <?php echo $rightWidth ?>">
							<jdoc:include type="modules" name="footer-right" style="normal" />
						</div>
					<?php endif; ?>
				</div>
			</div>
		</div>
	</footer>
<?php endif; ?>