From: Michael Wallner Date: Fri, 22 Nov 2013 12:55:33 +0000 (+0100) Subject: footer X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7020cbf364610fa9eb0f455eaaee688e1f2ae387;p=mdref%2Fmdref footer --- 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("