Mercurial > defr > DualBlog
changeset 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 | ef5fd86d30ec |
children | caef2b6e5690 |
files | includes/class.post.php includes/class.skeleton.php templates/main.xml |
diffstat | 3 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/includes/class.post.php Tue Jan 29 14:34:03 2008 +0100 +++ b/includes/class.post.php Wed Feb 06 18:15:17 2008 +0100 @@ -56,7 +56,11 @@ if($nbTags > 0) { while(0 !== ($tag = $db->GetRow(2))) - $tags .= " <a href='/blog/tags/{$tag['Tag']}'>{$tag['Tag']}</a> |"; + { + $tags .= sprintf("<a href='%s'>%s</a> |", + '/blog/tags/' . urlencode($tag['Tag']), + $tag['Tag']); + } $tags = substr($tags, 0, -1); $this->tags = $this->tpl->getDocumentFragment(); $this->tags->appendXML($tags);
--- a/includes/class.skeleton.php Tue Jan 29 14:34:03 2008 +0100 +++ b/includes/class.skeleton.php Wed Feb 06 18:15:17 2008 +0100 @@ -78,7 +78,7 @@ // On commence par définir les paramètres généraux $params = array( '#CommentAuthor' => $row['Auteur'], - '#CommentAuthor@href' => $row['Adresse'], + '#CommentAuthor@href' => urlencode($row['Adresse']), '#Post' => $row['Titre'], '#Post@href' => $c_url );
--- a/templates/main.xml Tue Jan 29 14:34:03 2008 +0100 +++ b/templates/main.xml Wed Feb 06 18:15:17 2008 +0100 @@ -2,6 +2,8 @@ <html xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml" xmlns:tr="http://defr.net/2007/template"> <head> + <meta http-equiv='content-type' content='text/html; charset=utf-8' /> + <meta name='author' content='Franck Deroche' /> <title /> <link rel='StyleSheet' type='Text/CSS' href='/blog/css/comment.css' /> <tr:possibleStyleSheets> @@ -9,9 +11,7 @@ </tr:possibleStyleSheets> <link rel="alternate" type="application/atom+xml" title="Atom feed" href="/blog/dualblog.atom" /> <link rel="icon" type="image/png" href="/favicon.png" /> - <meta http-equiv='content-type' content='text/html; charset=utf-8' /> - <meta name='author' content='Franck Deroche' /> - <script type="Text/JavaScript" src="/blog/RollUp.js">//Stupid IE...</script> + <script type="Text/JavaScript" src="/blog/RollUp.js"></script> </head> <body id="Main">