Mercurial > defr > DualBlog
comparison includes/class.post.php @ 58:ded2849cf38c
On rend le validator HTML5 content avec ces quelques changements.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Wed, 06 Feb 2008 18:15:17 +0100 |
parents | ec0c926a78a6 |
children | 25c6e59f019e |
comparison
equal
deleted
inserted
replaced
57:ef5fd86d30ec | 58:ded2849cf38c |
---|---|
54 ", 2); | 54 ", 2); |
55 $tags = ''; | 55 $tags = ''; |
56 if($nbTags > 0) | 56 if($nbTags > 0) |
57 { | 57 { |
58 while(0 !== ($tag = $db->GetRow(2))) | 58 while(0 !== ($tag = $db->GetRow(2))) |
59 $tags .= " <a href='/blog/tags/{$tag['Tag']}'>{$tag['Tag']}</a> |"; | 59 { |
60 $tags .= sprintf("<a href='%s'>%s</a> |", | |
61 '/blog/tags/' . urlencode($tag['Tag']), | |
62 $tag['Tag']); | |
63 } | |
60 $tags = substr($tags, 0, -1); | 64 $tags = substr($tags, 0, -1); |
61 $this->tags = $this->tpl->getDocumentFragment(); | 65 $this->tags = $this->tpl->getDocumentFragment(); |
62 $this->tags->appendXML($tags); | 66 $this->tags->appendXML($tags); |
63 } | 67 } |
64 else { | 68 else { |