Theme: Fix login footer, simplify and optimize code.

This commit is contained in:
reliberate
2016-05-21 17:38:23 -06:00
parent bf5f1223af
commit 8755205681
2 changed files with 30 additions and 20 deletions

View File

@@ -217,6 +217,18 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
<?php unset($br); ?>
}
div#footer_login {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
background: <?php echo ($_SESSION['theme']['footer_background_color']['text'] != '') ? $_SESSION['theme']['footer_background_color']['text'] : 'rgba(0,0,0,0.2)'; ?>;
text-align: center;
vertical-align: middle;
padding: 8px;
}
.footer {
font-size: 11px;
font-family: arial;
@@ -653,7 +665,13 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
/* DOMAIN SELECTOR: END ********************************************************/
#default_login {
display: inline-block;
position: fixed;
top: 50%;
left: 50%;
-moz-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-khtml-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding: <?php echo ($_SESSION['theme']['login_body_padding']['text'] != '') ? $_SESSION['theme']['login_body_padding']['text'] : '30px'; ?>;
<?php echo ($_SESSION['theme']['login_body_width']['text'] != '') ? 'width: '.$_SESSION['theme']['login_body_width']['text'].";\n" : null; ?>
background: <?php echo ($_SESSION['theme']['login_body_background_color']['text'] != '') ? $_SESSION['theme']['login_body_background_color']['text'] : "rgba(255,255,255,0.35)"; ?>;
@@ -671,6 +689,11 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
box-shadow: <?php echo ($_SESSION['theme']['login_body_shadow_color']['text'] != '') ? '0 1px 20px '.$_SESSION['theme']['login_body_shadow_color']['text'] : 'none'; ?>;
}
#login_logo {
width: 250px;
height: auto;
}
a.login_link {
color: <?php echo ($_SESSION['theme']['login_link_text_color']['text'] != '') ? $_SESSION['theme']['login_link_text_color']['text'] : '#004083'; ?>;
font-size: <?php echo ($_SESSION['theme']['login_link_text_size']['text'] != '') ? $_SESSION['theme']['login_link_text_size']['text'] : '11px'; ?>;

View File

@@ -531,26 +531,13 @@
else {
$logo = (isset($_SESSION['theme']['logo']['text'])) ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH."/themes/default/images/logo.png";
?>
<div id="main_content" style='position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0;'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' height='100%'>
<tr>
<td align='center' valign='middle'>
<div id='default_login'>
<a href='<?php echo PROJECT_PATH; ?>/'><img src='<?php echo $logo; ?>' style='width: 250px; height: auto;'></a><br />
<!--{body}-->
</div>
</td>
</tr>
<tr>
<td style='width: 100%; height: 35px; vertical-align: bottom;'>
<div id='footer' style='width: 100%;'>
<span class='footer'><?php echo (isset($_SESSION['theme']['footer']['text'])) ? $_SESSION['theme']['footer']['text'] : "&copy; ".$text['theme-label-copyright']." 2008 - ".date("Y")." <a href='http://www.fusionpbx.com' class='footer' target='_blank'>fusionpbx.com</a> ".$text['theme-label-all_rights_reserved']; ?></span>
</div>
</td>
</tr>
</table>
<div id='default_login'>
<a href='<?php echo PROJECT_PATH; ?>/'><img id='login_logo' src='<?php echo $logo; ?>'></a><br />
<!--{body}-->
</div>
<div id='footer_login'>
<span class='footer'><?php echo (isset($_SESSION['theme']['footer']['text'])) ? $_SESSION['theme']['footer']['text'] : "&copy; ".$text['theme-label-copyright']." 2008 - ".date("Y")." <a href='http://www.fusionpbx.com' class='footer' target='_blank'>fusionpbx.com</a> ".$text['theme-label-all_rights_reserved']; ?></span>
</div>
<?php
unset($_SESSION['background_image']);
}