moved footer to navigation and removed left-padding of headings, reworked credits
This commit is contained in:
parent
15668bad18
commit
b26994f518
|
@ -73,46 +73,7 @@ function make_navigation_for($name, $pages) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function make_menu() {
|
function make_menu() {
|
||||||
return make_navigation() . make_onlineusers() . make_langselect();
|
return make_navigation() . make_langselect();
|
||||||
}
|
|
||||||
|
|
||||||
function make_onlineusers() {
|
|
||||||
global $privileges, $user;
|
|
||||||
$html = '<nav class="container online"><h4>Helfer online</h4>';
|
|
||||||
|
|
||||||
$query = "SELECT UID, Nick, lastLogIn " . "FROM User " . "WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "') " . "ORDER BY lastLogIn DESC";
|
|
||||||
$users = sql_select($query);
|
|
||||||
|
|
||||||
if (count($users) > 0) {
|
|
||||||
$html .= "<ul class=\"content\">";
|
|
||||||
|
|
||||||
foreach ($users as $online_user) {
|
|
||||||
if (isset ($user) && $online_user['UID'] == $user['UID'])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
$html .= "<li>";
|
|
||||||
|
|
||||||
//if (isset ($user))
|
|
||||||
//$html .= DisplayAvatar($online_user['UID']);
|
|
||||||
|
|
||||||
// Show Admin Page
|
|
||||||
if (in_array("admin_user_edit", $privileges)) {
|
|
||||||
$html .= '<a href="admin/userChangeNormal.php?enterUID=' . $online_user['UID'] . '&Type=Normal">' . $online_user['Nick'] . '</a>';
|
|
||||||
} else {
|
|
||||||
$html .= $online_user['Nick'];
|
|
||||||
}
|
|
||||||
$last_action = time() - $online_user['lastLogIn'];
|
|
||||||
|
|
||||||
$html .= " " . date("i:s", $last_action);
|
|
||||||
$html .= "</li>\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
$html .= "</ul>";
|
|
||||||
} else {
|
|
||||||
$html .= '<p class="content">Nobody...</p>';
|
|
||||||
}
|
|
||||||
$html .= '</nav>';
|
|
||||||
return $html;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function make_langselect() {
|
function make_langselect() {
|
||||||
|
|
|
@ -19,16 +19,8 @@ article, details {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
.small {
|
||||||
clear: both;
|
|
||||||
display: block;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: center;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer p {
|
|
||||||
margin: 10px auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#logo {
|
#logo {
|
||||||
|
@ -52,11 +44,6 @@ footer p {
|
||||||
margin-left: 200px;
|
margin-left: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container.online .content {
|
|
||||||
max-height: 15em;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
@ -76,6 +63,9 @@ dd {
|
||||||
|
|
||||||
h1, h2, h3, h4 {
|
h1, h2, h3, h4 {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h4 {
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +86,11 @@ nav {
|
||||||
}
|
}
|
||||||
|
|
||||||
#content h2 {
|
#content h2 {
|
||||||
margin-top: 20px;
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content h2:first-child {
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 885 B |
Binary file not shown.
After Width: | Height: | Size: 572 B |
|
@ -1,18 +1,8 @@
|
||||||
<h2>The angelsystem has been (re)done by:</h2>
|
<h2>Source code</h2>
|
||||||
<ul>
|
<p>The original system was written by <a href="https://github.com/cookieBerlin/engelsystem">cookie</a>. It was then completely rewritten and greatly enhanced by <a href="http://notrademark.de/">msquare</a> and <a href="http://helios.planetcyborg.de/">helios</a> of <a href="http://planetcyborg.de">planet cyborg</a> and <a href="http://jplitza.de/">jplitza</a>.</p>
|
||||||
<li>
|
|
||||||
cookie
|
<h2>Hosting</h2>
|
||||||
</li>
|
<p>The webspace, development platform and domain is currently provided by <a href="https://www.wybt.net/">Would you buy this?</a> (ichdasich).</p>
|
||||||
<li>
|
|
||||||
helios
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
msquare
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
jplitza
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>Icons</h2>
|
<h2>Icons</h2>
|
||||||
<p>Some icons from the <a href="http://www.famfamfam.com/lab/icons/silk/">famfamfam.com silk iconset</a> have been used. They are licensed under the <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5 License</a>.</p>
|
<p>Some icons from the <a href="http://www.famfamfam.com/lab/icons/silk/">famfamfam.com silk iconset</a> have been used. They are licensed under the <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5 License</a>.</p>
|
||||||
|
|
|
@ -23,6 +23,14 @@
|
||||||
<div id="body">
|
<div id="body">
|
||||||
<div id="menu">
|
<div id="menu">
|
||||||
%menu%
|
%menu%
|
||||||
|
<nav class="container small">
|
||||||
|
<ul>
|
||||||
|
<li><a href="mailto:erzengel@lists.ccc.de">Contact <img src="pic/icons/email.png" alt="E-Mail"></a></li>
|
||||||
|
<li><a href="mailto:bugs@engelsystem.de">Bugs / Features <img src="pic/icons/email.png" alt="E-Mail"></a></li>
|
||||||
|
<li><a href="https://vcs.wybt.net/engelsystem/trac/">Development Platform</a></li>
|
||||||
|
<li><a href="?p=credits">Credits</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div id="content" class="container">
|
<div id="content" class="container">
|
||||||
<h1>%title%</h1>
|
<h1>%title%</h1>
|
||||||
|
@ -33,13 +41,6 @@
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<p>
|
|
||||||
© copyleft | <a href="mailto:erzengel@lists.ccc.de">Contact</a>
|
|
||||||
| <a href="mailto:bugs@engelsystem.de">Bugs / Features</a>
|
|
||||||
| <a href="?p=credits">Credits</a>
|
|
||||||
<br/>
|
|
||||||
This is hell. Temporarily.
|
|
||||||
</p>
|
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue