Jeremy Newman : update the author field to include a contact link
Jeremy Newman
jnewman at winehq.org
Wed Dec 5 13:08:27 CST 2007
Module: website
Branch: master
Commit: 3d1567a18632a885c30810ab57051ee8f92a194b
URL: http://source.winehq.org/git/website.git/?a=commit;h=3d1567a18632a885c30810ab57051ee8f92a194b
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Wed Dec 5 13:08:19 2007 -0600
update the author field to include a contact link
Original Patch By: Zachary Goldberg <zgs at seas.upenn.edu>
---
include/wwn.php | 3 +++
templates/en/wwn.template | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/include/wwn.php b/include/wwn.php
index e81b1bb..0d9f8ec 100644
--- a/include/wwn.php
+++ b/include/wwn.php
@@ -11,6 +11,7 @@ class wwn
var $who;
var $author;
var $email;
+ var $contact;
var $body;
var $summary;
var $person;
@@ -242,6 +243,7 @@ class wwn
'summary' => $summary_box,
'xml' => $wwn{$cur},
'author' => $this->author,
+ 'contact' => $this->contact,
'body' => $this->body,
);
$wwn_body = $html->template("base", "wwn", $wwn_vars);
@@ -349,6 +351,7 @@ class wwn
break;
case "AUTHOR":
$this->email = $attrs{'EMAIL'};
+ $this->contact = $attrs{'CONTACT'};
break;
case "INTRO":
$this->body .= "<a name=\"Intro\"></a>\n";
diff --git a/templates/en/wwn.template b/templates/en/wwn.template
index cc83529..f911335 100644
--- a/templates/en/wwn.template
+++ b/templates/en/wwn.template
@@ -8,7 +8,7 @@
<td align="right">
<span class="big">{$date}</span><br>
<img src="{$root}/images/grey_pixel.gif" width="100%" height="1" alt="-"><br>
- <span class="small">by {$author}</span>
+ <span class="small">by <a href="{$contact}">{$author}</a></span>
</td>
</tr>
</table>
More information about the wine-cvs
mailing list