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;
|
||||
}
|
||||
|
||||
.blog-tags {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.blog-publish-date {
|
||||
float: right;
|
||||
display: inline-block;
|
||||
text-align: right;
|
||||
padding: 0px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment .comment {
|
||||
|
|
|
@ -178,7 +178,8 @@ class Blogpost
|
|||
printf("<h2>%s</h2>", $this->title);
|
||||
|
||||
// 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
|
||||
for($i = 0; $i < count($this->tags); $i++) {
|
||||
|
@ -190,7 +191,7 @@ class Blogpost
|
|||
}
|
||||
|
||||
// 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)));
|
||||
|
||||
// Display hrule, article content and end the article
|
||||
|
|
|
@ -15,9 +15,11 @@ function display_blog_preview($blogpost_id, $title, $abstract,
|
|||
%s
|
||||
</h3>
|
||||
</a>
|
||||
<div class=\"blog-metadata\">
|
||||
", $blogpost_id, $title);
|
||||
|
||||
print_r("<table class=\"noborder-table\" style=\"width: 100%;\">
|
||||
<tr><td class=\"blog-tags\">");
|
||||
|
||||
for($i = 0; $i < count($tags); $i++) {
|
||||
$tag = $tags[$i];
|
||||
printf("
|
||||
|
@ -27,10 +29,9 @@ function display_blog_preview($blogpost_id, $title, $abstract,
|
|||
}
|
||||
|
||||
printf("
|
||||
<span class=\"blog-publish-date\">
|
||||
</td><td class=\"blog-publish-date\">
|
||||
Published on: %s
|
||||
</span>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
<hr>
|
||||
<p>
|
||||
%s
|
||||
|
|
Loading…
Reference in a new issue