"> "/> "/> "/> "/> "/> "/> "/> "/> "/> "/>
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "

$r[title]

\n"; if ($r_image != null){ echo "
\n"; echo "\n"; echo "$r[title]\n"; echo "
\n"; } echo "

$r[text]

\n"; //Other images if ($r_image != null){ echo "\n"; while ($r_image = mysqli_fetch_array($q_image)){ echo "\n"; echo "\n"; } echo "
\n"; } # Tags (if any) and date echo "
\n"; $q_tag = mysqli_query($con, "SELECT tag FROM post_tag WHERE post= $id;"); if (mysqli_num_rows($q_tag) > 0){ $tag_string = "Tags: "; $tag_raw = ""; while ($r_tag = mysqli_fetch_array($q_tag)){ $tag_string = $tag_string . "$r_tag[tag], "; $tag_raw = $tag_raw . "$r_tag[tag],"; } $tag_string = substr($tag_string, 0, strlen($tag_string) - 2); $tag_string = $tag_string . ""; $tag_raw = substr($tag_raw, 0, strlen($tag_raw) - 1); echo "\n"; echo "\n"; } else{ echo "\n"; } #Share echo "\n"; echo "\n"; #Comments if ($r['comments'] == 1){ echo "
\n"; $q_comment = mysqli_query($con, "SELECT id, post, DATE_FORMAT(dtime, '%Y-%m-%dT%T') AS isodate, dtime, user, username, lang, text FROM post_comment WHERE post = $id AND approved = 1 ORDER BY dtime;"); $count = mysqli_num_rows($q_comment); echo "\n"; switch ($count){ case 0: echo "

$lng[blog_comments_0]

\n"; break; case 1: echo "

1 $lng[blog_comments_1]

\n"; break; default: echo "

$count $lng[blog_comments_multiple]

\n"; } echo "
\n"; //WARNING: If changes are done here, do the same in comment.php while ($r_comment = mysqli_fetch_array($q_comment)){ echo "
\n"; //When official users are implementes, see if there is user or username echo "$r_comment[username]\n"; echo "" . formatDate($r_comment['dtime'], $lang) . "\n"; echo "

$r_comment[text]

"; echo "
\n"; echo "
\n"; } echo "
\n"; #Comment form echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; } else{ echo "

$lng[blog_comments_closed]

"; } echo "
\n"; ?>