Skip to content

Commit

Permalink
minor code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Apr 2, 2016
1 parent 2f1fedc commit f8c13c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions administrator/templates/hathor/login.php
Expand Up @@ -16,7 +16,6 @@
// 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();

// jQuery needed by template.js
JHtml::_('jquery.framework');
Expand Down Expand Up @@ -117,7 +116,7 @@
<div class="login-inst">
<p><?php echo JText::_('COM_LOGIN_VALID') ?></p>
<div id="lock"></div>
<a href="<?php echo $mainPageUri; ?>" target="_blank"><?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a>
<a href="<?php echo $frontEndUri->toString(); ?>" target="_blank"><?php echo JText::_('COM_LOGIN_RETURN_TO_SITE_HOME_PAGE'); ?></a>
</div>
<!-- Login Component -->
<div class="login-box">
Expand Down
3 changes: 1 addition & 2 deletions administrator/templates/isis/login.php
Expand Up @@ -16,7 +16,6 @@
// 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') : '';
Expand Down Expand Up @@ -133,7 +132,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 $mainPageUri; ?>" 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 $frontEndUri->toString(); ?>" 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 f8c13c5

Please sign in to comment.