From 7aace8be26a100f2bc9694b435f76ac10f4ac4ee Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 18 Sep 2013 07:42:54 +0200 Subject: [PATCH] [IMPROVEMENT] Added secondary login box in header --- public/site_assets/test/css/layout.css | 8 ++++++++ public/templates/test/global/header.tpl | 3 +++ public/templates/test/login/small.tpl | 11 +++++++++++ 3 files changed, 22 insertions(+) create mode 100644 public/templates/test/login/small.tpl diff --git a/public/site_assets/test/css/layout.css b/public/site_assets/test/css/layout.css index dfae1524..220be7fd 100644 --- a/public/site_assets/test/css/layout.css +++ b/public/site_assets/test/css/layout.css @@ -866,3 +866,11 @@ span.unconfirmed { border:1px solid #ffb573; border-radius: 4px; } +div.login_small { + float: right; + background: #E0E0E3; + position: absolute; + padding: 5px; + top: 10px; + right: 10px; +} diff --git a/public/templates/test/global/header.tpl b/public/templates/test/global/header.tpl index fc8621dc..8083e632 100644 --- a/public/templates/test/global/header.tpl +++ b/public/templates/test/global/header.tpl @@ -2,3 +2,6 @@

{$GLOBAL.website.name}

{if $smarty.request.action|default:""}{$smarty.request.action|capitalize}{else}{$smarty.request.page|default:"home"|capitalize}{/if}

+
+ {include file="login/small.tpl"} +
diff --git a/public/templates/test/login/small.tpl b/public/templates/test/login/small.tpl new file mode 100644 index 00000000..0fa665b0 --- /dev/null +++ b/public/templates/test/login/small.tpl @@ -0,0 +1,11 @@ +{if $smarty.session.AUTHENTICATED|default:"0" == 0} +
+ + + + + + + +
+{/if}