aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-07-03 13:21:09 +0200
committerMaZderMind2015-07-03 13:21:09 +0200
commita0069a0b6c2b28c1760c26d5e713337917cab933 (patch)
tree3208b7ee0ce0d16cea976653d2976176ff4ee434
parent01510fa8bdd2f5920a1121b2b7f7b5a2487623e1 (diff)
TLS Switching button
Diffstat (limited to '')
-rw-r--r--assets/css/_structure.less3
-rw-r--r--template/assemblies/header.phtml7
2 files changed, 10 insertions, 0 deletions
diff --git a/assets/css/_structure.less b/assets/css/_structure.less
index 6500773..89f91a6 100644
--- a/assets/css/_structure.less
+++ b/assets/css/_structure.less
@@ -56,6 +56,9 @@ nav {
.button-wrapper > .btn {
width: 40px;
}
+ .button-wrapper > .btn-ssl {
+ width: auto;
+ }
}
body {
diff --git a/template/assemblies/header.phtml b/template/assemblies/header.phtml
index cdffea7..9043c82 100644
--- a/template/assemblies/header.phtml
+++ b/template/assemblies/header.phtml
@@ -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>