<?php
/*--------------------------------------------------------------
# Copyright (C) joomla-monster.com
# License: http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
# Website: http://www.joomla-monster.com
# Support: info@joomla-monster.com
---------------------------------------------------------------*/

defined('_JEXEC') or die;

// get information about 'back to top' button
$backtotop = $this->params->get('backToTop', '1');

$credits = $this->params->get('credits', '1');
$creditsText = $this->params->get('creditsText', '');

$highContrast = htmlspecialchars($this->params->get('highContrast','0'));

?>
<footer id="jm-footer" <?php if($highContrast) { echo 'role="contentinfo" aria-label="'.JText::_( 'PLG_SYSTEM_JMFRAMEWORK_CONFIG_LABEL_COPYRIGHT' ).'"'; } ?>>
	<div id="jm-footer-in" class="container-fluid">
		<div id="jm-copy-power" class="pull-left">
			<?php if($this->checkModules('copyrights')) : ?>
			<div id="jm-copyrights" class="pull-left <?php echo $this->getClass('copyrights') ?>">
				<jdoc:include type="modules" name="<?php echo $this->getPosition('copyrights') ?>" style="raw" />
			</div>
			<?php endif; ?>
			<?php if(JFactory::getApplication()-> isSite() && ($credits == 1)) : ?>
			<div id="jm-poweredby" class="pull-left">
				<?php if ($creditsText != '') {
					echo $creditsText;
				} else {
					echo JText::_('PLG_SYSTEM_JMFRAMEWORK_CONFIG_CREDITS');
				} ?>
			</div>
			<?php endif; ?>
		</div>
		<?php if($this->checkModules('sitemap') or ($backtotop == '1')) : ?>
		<div id="jm-back-sitemap" class="pull-right">
			<?php if($this->checkModules('sitemap')) : ?>
			<div id="jm-sitemap" class="pull-left">
				<jdoc:include type="modules" name="<?php echo $this->getPosition('sitemap') ?>" style="raw" />
			</div>
			<?php endif; ?>
			<?php if(($backtotop == '1') and JFactory::getApplication()-> isSite()) : ?>
			<div id="jm-back-top" class="pull-right">
				<a href="#jm-allpage"><?php echo JText::_( 'PLG_SYSTEM_JMFRAMEWORK_CONFIG_BACKTOTOP' );?><span class="icon-chevron-up"></span></a>
			</div>
			<?php endif; ?>
		</div>
		<?php endif; ?>
	</div>
</footer>
