Skip to content

Commit

Permalink
do the same for backend login panel
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Apr 2, 2016
1 parent a97690c commit 8cd6132
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion administrator/templates/isis/login.php
Expand Up @@ -13,6 +13,11 @@
$doc = JFactory::getDocument();
$lang = JFactory::getLanguage();

// Gets the FrontEnd Main page Uri
$frontEndUri = JUri::getInstance(JUri::root());
$frontEndUri->setScheme(((int) JFactory::getApplication()->get('force_ssl', 0) === 2) ? 'https' : 'http');
$mainPageUri = $frontEndUri->toString();

// Color Params
$background_color = $this->params->get('loginBackgroundColor') ? $this->params->get('loginBackgroundColor') : '';
$color_is_light = ($background_color && colorIsLight($background_color));
Expand Down Expand Up @@ -128,7 +133,7 @@ function colorIsLight($color)
&copy; <?php echo date('Y'); ?> <?php echo $sitename; ?>
</p>
<a class="login-joomla hasTooltip" href="https://www.joomla.org" target="_blank" title="<?php echo JHtml::tooltipText('TPL_ISIS_ISFREESOFTWARE'); ?>"><span class="icon-joomla"></span></a>
<a href="<?php echo JUri::root(); ?>" target="_blank" class="pull-left"><span class="icon-out-2"></span> <?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a>
<a href="<?php echo $mainPageUri; ?>" target="_blank" class="pull-left"><span class="icon-out-2"></span> <?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a>
</div>
<jdoc:include type="modules" name="debug" style="none" />
</body>
Expand Down

0 comments on commit 8cd6132

Please sign in to comment.