css change
This commit is contained in:
parent
a082ebfdae
commit
c155c0c310
3 changed files with 16 additions and 7 deletions
|
@ -269,8 +269,15 @@ ul {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.blog-tags {
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.blog-publish-date {
|
.blog-publish-date {
|
||||||
float: right;
|
display: inline-block;
|
||||||
|
text-align: right;
|
||||||
|
padding: 0px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment .comment {
|
.comment .comment {
|
||||||
|
|
|
@ -178,7 +178,8 @@ class Blogpost
|
||||||
printf("<h2>%s</h2>", $this->title);
|
printf("<h2>%s</h2>", $this->title);
|
||||||
|
|
||||||
// Display the blog metadata
|
// Display the blog metadata
|
||||||
printf("<div class=\"blog-metadata\">");
|
print_r("<table class=\"noborder-table\" style=\"width: 100%;\">
|
||||||
|
<tr><td class=\"blog-tags\">");
|
||||||
|
|
||||||
// Display tags
|
// Display tags
|
||||||
for($i = 0; $i < count($this->tags); $i++) {
|
for($i = 0; $i < count($this->tags); $i++) {
|
||||||
|
@ -190,7 +191,7 @@ class Blogpost
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display publish date and end metadata div
|
// Display publish date and end metadata div
|
||||||
printf("<span class=\"blog-publish-date\">Published on: %s</span></div>",
|
printf("</td><td class=\"blog-publish-date\">Published on: %s</td></tr></table>",
|
||||||
date("Y-m-d", strtotime($this->date_posted)));
|
date("Y-m-d", strtotime($this->date_posted)));
|
||||||
|
|
||||||
// Display hrule, article content and end the article
|
// Display hrule, article content and end the article
|
||||||
|
|
|
@ -15,9 +15,11 @@ function display_blog_preview($blogpost_id, $title, $abstract,
|
||||||
%s
|
%s
|
||||||
</h3>
|
</h3>
|
||||||
</a>
|
</a>
|
||||||
<div class=\"blog-metadata\">
|
|
||||||
", $blogpost_id, $title);
|
", $blogpost_id, $title);
|
||||||
|
|
||||||
|
print_r("<table class=\"noborder-table\" style=\"width: 100%;\">
|
||||||
|
<tr><td class=\"blog-tags\">");
|
||||||
|
|
||||||
for($i = 0; $i < count($tags); $i++) {
|
for($i = 0; $i < count($tags); $i++) {
|
||||||
$tag = $tags[$i];
|
$tag = $tags[$i];
|
||||||
printf("
|
printf("
|
||||||
|
@ -27,10 +29,9 @@ function display_blog_preview($blogpost_id, $title, $abstract,
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("
|
printf("
|
||||||
<span class=\"blog-publish-date\">
|
</td><td class=\"blog-publish-date\">
|
||||||
Published on: %s
|
Published on: %s
|
||||||
</span>
|
</td></tr></table>
|
||||||
</div>
|
|
||||||
<hr>
|
<hr>
|
||||||
<p>
|
<p>
|
||||||
%s
|
%s
|
||||||
|
|
Loading…
Reference in a new issue