add contact mail address (implements #31)

This commit is contained in:
oliver 2015-04-08 13:09:44 +02:00
commit 64a47dfc5f
4 changed files with 11 additions and 3 deletions

View file

@ -34,7 +34,8 @@
'genericname' => 'The Legend of Z',
'namespace' => 'hhu\\z\\',
'timeZone' => 'Europe/Berlin',
'mailsender' => 'questlab@hhu.de',
'mailsender' => '',
'mailcontact' => '',
'registration_host' => ''
);

View file

@ -74,6 +74,9 @@
// Set notifications
$this->set('notifications', $this->Notification->getNotifications());
// Set some application data
$this->set('mailcontact', \nre\configs\AppConfig::$app['mailcontact']);
}

View file

@ -48,6 +48,9 @@
<label for="toggle" class="toggle" onclick><i class="fa fa-bars"></i>Menü</label>
<div id="home">
<a href="<?=$linker->link(array(), 0, true, array(), true)?>"><?=\nre\configs\AppConfig::$app['name']?></a>
<?php if(!empty($mailcontact)) : ?>
<a class="contact" href="mailto:<?=$mailcontact?>"><?=$mailcontact?></a>
<?php endif ?>
</div>
<?php if(!is_null($loggedUser)) : ?>
<div id="profile" class="cf">

View file

@ -69,8 +69,9 @@ header a:hover{color:#fff}
header .fa{color:#5e9499}
header a:hover .fa{color:#7fb0b4}
#home{display:none;opacity:0}
#home a{line-height:93px;font-size:22px;letter-spacing:8px}
#home{display:none;opacity:0;margin-bottom:25px}
#home a{font-size:22px;letter-spacing:8px;padding-top:25px}
#home a.contact{font-size:14px;letter-spacing:0;text-transform:none;padding-top:0}
#profile{float:right}
#profile a{padding-top:10px;font-size:.875em;font-family:"Open sans",sans-serif;text-transform:none;margin-left:0}
#profile img{float:left;width:36px;height:36px;margin-right:15px;border-radius:18px}