Compare commits

..

No commits in common. "c06300a1fbd2be40a825af5e4f8a5cd31d8edc38" and "3d2053c3376cf3d55edf5c8943151f16044c8eaf" have entirely different histories.

2 changed files with 195 additions and 209 deletions

View File

@ -20,16 +20,11 @@ foreach($statement->fetchAll() as $ROW) {
$newlines = array("\r\n", "\n\r", "\r", "\n"); // two-character newlines first to prevent placing two line breaks instead of one
$post_content = str_replace($newlines, "<br />", $post_content);
// if this is a reply, build reference
// post id of the original post this is a reply to, negative numbers mean no reply
$reply_to = $ROW['reply_to'];
if ($reply_to > -1) {
$reply_reference = "<p class=\"post_reply\" >This is a reply to <a href=./?id=$_GET['id']#$reply_to >this</a> message.</p>"
} else {
$reply_reference = ""
}
echo "<section id=\"$post_id\" >
<h1 class=\"post\">$post_title</h1>
<h1>$post_title</h1>
<article>
<header>
<div>

View File

@ -238,9 +238,7 @@ ul.topnav {
box-shadow: 0 0.7em 1.2em 0 rgba(0,0,0,0.2);
}
ul.topnav li {
float: left;
}
ul.topnav li {float: left;}
ul.topnav li a {
display: block;
@ -388,10 +386,3 @@ header {
padding: 40px 40px 10px 40px;
box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.2);
}
h1.post{
margin: 0;
}
p.post_reply {
margin: 0.1em;
}