cvs: php-news-web / article.php common.inc group.php
| From: | Hannes Magnusson | Date: | Sun, 26 Apr 2009 18:40:25 +0000 |
| Subject: | cvs: php-news-web / article.php common.inc group.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-4538@lists.php.net to get a copy of this message | ||
bjori Sun Apr 26 18:40:25 2009 UTC
Modified files:
/php-news-web article.php common.inc group.php
Log:
Add hCard
http://cvs.php.net/viewvc.cgi/php-news-web/article.php?r1=1.39&r2=1.40&diff_format=u
Index: php-news-web/article.php
diff -u php-news-web/article.php:1.39 php-news-web/article.php:1.40
--- php-news-web/article.php:1.39 Wed Dec 31 18:15:38 2008
+++ php-news-web/article.php Sun Apr 26 18:40:24 2009
@@ -202,7 +202,7 @@
echo " <blockquote>\n";
echo ' <table border="0" cellpadding="2" cellspacing="2"
width="100%">' . "\n";
# from
- echo ' <tr>' . "\n";
+ echo ' <tr class="vcard">' . "\n";
echo ' <td class="headerlabel">From:</td>' . "\n";
echo ' <td class="headervalue">' .
format_author($headers['from'], $charset)."</td>\n";
# date
http://cvs.php.net/viewvc.cgi/php-news-web/common.inc?r1=1.33&r2=1.34&diff_format=u
Index: php-news-web/common.inc
diff -u php-news-web/common.inc:1.33 php-news-web/common.inc:1.34
--- php-news-web/common.inc:1.33 Sun Sep 25 19:14:46 2005
+++ php-news-web/common.inc Sun Apr 26 18:40:24 2009
@@ -119,14 +119,14 @@
function format_author($a, $charset) {
$a = recode_header($a, $charset);
if (preg_match("/^\s*(.+)\s+\\(\"?(.+?)\"?\\)\s*$/",$a,$ar)) {
- return "<a href=\"mailto:".htmlspecialchars(urlencode(spam_protect($ar[1])))."\">".str_replace("
", " ", htmlspecialchars($ar[2]))."</a>";
+ return "<a href=\"mailto:".htmlspecialchars(urlencode(spam_protect($ar[1])))."\"
class=\"email fn n\">".str_replace(" ", " ",
htmlspecialchars($ar[2]))."</a>";
}
if (preg_match("/^\s*\"?(.+?)\"?\s*<(.+)>\s*$/",$a,$ar)) {
- return "<a href=\"mailto:".htmlspecialchars(urlencode(spam_protect($ar[2])))."\">".str_replace("
", " ", htmlspecialchars($ar[1]))."</a>";
+ return "<a href=\"mailto:".htmlspecialchars(urlencode(spam_protect($ar[2])))."\"
class=\"email fn n\">".str_replace(" ", " ",
htmlspecialchars($ar[1]))."</a>";
}
if (ereg("@",$a)) {
$a = spam_protect($a);
- return "<a href=\"mailto:".htmlspecialchars(urlencode($a))."\">".htmlspecialchars($a)."</a>";
+ return "<a href=\"mailto:".htmlspecialchars(urlencode($a))."\"
class=\"email fn n\">".htmlspecialchars($a)."</a>";
}
return str_replace(" ", " ", htmlspecialchars($a));
}
http://cvs.php.net/viewvc.cgi/php-news-web/group.php?r1=1.24&r2=1.25&diff_format=u
Index: php-news-web/group.php
diff -u php-news-web/group.php:1.24 php-news-web/group.php:1.25
--- php-news-web/group.php:1.24 Sun Jul 27 10:33:17 2008
+++ php-news-web/group.php Sun Apr 26 18:40:24 2009
@@ -121,7 +121,7 @@
echo " <td class=\"$class\"><a
href=\"/$group/$n\">";
echo format_subject($subj, $charset);
echo "</a></td>\n";
- echo " <td class=\"$class\">".format_author($author,
$charset)."</td>\n";
+ echo " <td class=\"$class vcard\">".format_author($author,
$charset)."</td>\n";
echo " <td align=\"center\" class=\"$class\"><tt>" .
format_date($odate) . "</tt></td>\n";
echo " <td align=\"right\"
class=\"$class\">$lines</td>\n";
echo " </tr>\n";