diff --git a/assets/common/styles.css b/assets/common/styles.css index 58cbadc..12557d3 100755 --- a/assets/common/styles.css +++ b/assets/common/styles.css @@ -34,7 +34,7 @@ h1, h2, h3, h4, h5, h6 { font-family: sans-serif; } -h3, h4, h5, h6 { +h2, h3, h4, h5, h6 { margin-bottom: 8px; } @@ -260,16 +260,16 @@ ul { padding-right: 1em; } -.blog-metadata .blog-tag { +.blog-tag { border-style: solid; border-width: thin; border-color: black; border-radius: 0.5em; padding: 0.2em; - margin: 0.2em; + display: inline-block; } -.blog-metadata .blog-publish-date { +.blog-publish-date { float: right; } diff --git a/docs/www/blog/article.php b/docs/www/blog/article.php index e0855e6..86b1ad7 100644 --- a/docs/www/blog/article.php +++ b/docs/www/blog/article.php @@ -371,8 +371,8 @@ function load_blog($conn, $blogId){ // Check DB connection if($conn == null){ - header($_SERVER["SERVER_PROTOCOL"]." 503 Not Foud", true, 503); - include_once($_SERVER["DOCUMENT_ROOT"]."/errors/504.php"); + header($_SERVER["SERVER_PROTOCOL"]." 503 Service Unavailable", true, 503); + include_once($_SERVER["DOCUMENT_ROOT"]."/errors/503.php"); include_once($COMMONS."/footer.php"); die(); } diff --git a/docs/www/blog/index.php b/docs/www/blog/index.php index a10643c..fe2cf92 100755 --- a/docs/www/blog/index.php +++ b/docs/www/blog/index.php @@ -31,6 +31,7 @@ function display_blog_preview($blogpost_id, $title, $abstract, Published on: %s +
%s
diff --git a/docs/www/blog/tageditor.php b/docs/www/blog/tageditor.php new file mode 100644 index 0000000..2bb1d1a --- /dev/null +++ b/docs/www/blog/tageditor.php @@ -0,0 +1,102 @@ +permissions & 128)) { + header($_SERVER["SERVER_PROTOCOL"]." 403 Forbidden", true, 403); + include_once($_SERVER["DOCUMENT_ROOT"]."/errors/403.php"); + include_once($COMMONS."/footer.php"); + die(); +} + +/** + * Display tags existing in the database. + */ +function display_tags($conn) { + $stmt = $conn->prepare("SELECT tag_id, name, color + FROM blogpost_tags ORDER BY tag_id ASC;"); + $stmt->execute(); + $tags = $stmt->fetchall(PDO::FETCH_ASSOC); + + $tagCount = count($tags); + + print("