From 7020cbf364610fa9eb0f455eaaee688e1f2ae387 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 22 Nov 2013 13:55:33 +0100 Subject: [PATCH] footer --- index.css | 12 +++++++++++- index.php | 22 +++++++++++++++------- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/index.css b/index.css index 0f33468..a48ac00 100644 --- a/index.css +++ b/index.css @@ -146,7 +146,17 @@ li h3 a:hover { footer { font-size: smaller; text-align: center; - word-spacing: 1em; clear: both; margin-top: 8em; } + +footer ul { + margin: 0; + padding: 0; +} + +footer li { + list-style-type: none; + display: inline-block; + margin: 0 1em; +} diff --git a/index.php b/index.php index 5c4b909..5124243 100644 --- a/index.php +++ b/index.php @@ -88,6 +88,16 @@ function urlpath($dir, $file) { return (strlen($dir) ? $dir . "/" : "") . basename($file, ".md"); } +function email($email) { + if (preg_match("/^([^<]+) <([^>]+)>/", $email, $matches)) { + list(, $name, $mail) = $matches; + return sprintf('%s', + htmlspecialchars($mail), + htmlspecialchars($name)); + } + var_dump(sscanf($email, "%s <%s>")); +} + function ls($dir) { $dir = rtrim(is_dir($dir) ? $dir : dirname($dir) ."/". basename($dir, ".md"), "/"); printf("