TLS Switching button

This commit is contained in:
MaZderMind 2015-07-03 13:21:09 +02:00
parent 01510fa8bd
commit a0069a0b6c
2 changed files with 10 additions and 0 deletions

View file

@ -56,6 +56,9 @@ nav {
.button-wrapper > .btn {
width: 40px;
}
.button-wrapper > .btn-ssl {
width: auto;
}
}
body {

View file

@ -8,6 +8,13 @@
</div>
<div class="nav navbar-form navbar-right button-wrapper">
<? if(startswith('//', @$GLOBALS['CONFIG']['BASEURL'])): ?>
<a class="form-control btn btn-ssl btn-<?= ssl() ? 'success' : 'warning' ?>" href="<?=h( (ssl() ? 'http:' : 'https:').$GLOBALS['CONFIG']['BASEURL'])?>">
<span class="fa fa-<?= ssl() ? 'lock' : 'unlock-alt' ?>"></span>
TLS
</a>
<? endif ?>
<? if(!$conference->isClosed() && $feedback->isEnabled()): ?>
<a class="form-control btn btn-default" href="<?=h($feedback->getUrl())?>">
<span class="fa fa-bullhorn"></span>