| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $template; |
|---|
| 4 |
global $template_definition; |
|---|
| 5 |
|
|---|
| 6 |
$template_definition[] = array( |
|---|
| 7 |
'id' => 'weblogpost', |
|---|
| 8 |
'name' => "Weblog Post", |
|---|
| 9 |
'description' => "A template for each weblog post.", |
|---|
| 10 |
'glossary' => array( |
|---|
| 11 |
'{{title}}' => 'Post title', |
|---|
| 12 |
'{{body}}' => 'The text of the post', |
|---|
| 13 |
'{{username}}' => 'The username of the person making the post', |
|---|
| 14 |
'{{usericon}}' => 'Their user icon', |
|---|
| 15 |
'{{fullname}}' => 'Their full name', |
|---|
| 16 |
'{{date}}' => 'The time and date of the post', |
|---|
| 17 |
'{{commentslink}}' => 'A link to any comments', |
|---|
| 18 |
'{{trackbackslink}}' => 'A link to any trackbacks', |
|---|
| 19 |
'{{comments}}' => 'A list of comments, if any' |
|---|
| 20 |
) |
|---|
| 21 |
); |
|---|
| 22 |
|
|---|
| 23 |
$template['weblogpost'] = <<< END |
|---|
| 24 |
|
|---|
| 25 |
<table width="100%" style="border: 0px; border-bottom: 1px; border-style: solid; border-color: #000000"> |
|---|
| 26 |
<tr> |
|---|
| 27 |
<td valign="top" width="100" align="center"> |
|---|
| 28 |
<div style="float:right"> |
|---|
| 29 |
<p><br /> |
|---|
| 30 |
<a href="/{{username}}/weblog/"> |
|---|
| 31 |
<img src="/_icons/data/{{usericon}}" border="0" /><br /> |
|---|
| 32 |
<a href="/{{username}}/weblog/">{{fullname}}</a></p> |
|---|
| 33 |
</td> |
|---|
| 34 |
<td width="20"> </td> |
|---|
| 35 |
<td valign="top"> |
|---|
| 36 |
<p> |
|---|
| 37 |
<br /> |
|---|
| 38 |
<b>{{title}}</b> |
|---|
| 39 |
</p> |
|---|
| 40 |
<div style="margin-left: 20px"> |
|---|
| 41 |
{{body}} |
|---|
| 42 |
</div> |
|---|
| 43 |
<p> |
|---|
| 44 |
<small>Posted by {{username}} at {{date}} | {{commentslink}} {{trackbackslink}}</small> |
|---|
| 45 |
</p> |
|---|
| 46 |
{{comments}} |
|---|
| 47 |
</td> |
|---|
| 48 |
</tr> |
|---|
| 49 |
</table> |
|---|
| 50 |
|
|---|
| 51 |
END; |
|---|
| 52 |
|
|---|
| 53 |
$template_definition[] = array( |
|---|
| 54 |
'id' => 'weblogcomments', |
|---|
| 55 |
'name' => "Weblog Comments", |
|---|
| 56 |
'description' => "A placeholder for weblog comments.", |
|---|
| 57 |
'glossary' => array( |
|---|
| 58 |
'{{comments}}' => 'The list of comments themselves' |
|---|
| 59 |
) |
|---|
| 60 |
); |
|---|
| 61 |
|
|---|
| 62 |
$template['weblogcomments'] = <<< END |
|---|
| 63 |
|
|---|
| 64 |
<hr noshade="noshade" /> |
|---|
| 65 |
<h3>Comments</h3> |
|---|
| 66 |
<ol> |
|---|
| 67 |
{{comments}} |
|---|
| 68 |
</ol> |
|---|
| 69 |
|
|---|
| 70 |
END; |
|---|
| 71 |
|
|---|
| 72 |
$template_definition[] = array( |
|---|
| 73 |
'id' => 'weblogcomment', |
|---|
| 74 |
'name' => "Individual weblog comment", |
|---|
| 75 |
'description' => "A template for each individual weblog comment. (Displayed one after the other, embedded in the comment placeholder.)", |
|---|
| 76 |
'glossary' => array( |
|---|
| 77 |
'{{body}}' => 'Post body', |
|---|
| 78 |
'{{postedname}}' => 'The name of the person making the comment', |
|---|
| 79 |
'{{weblogcomment}}' => 'When the comment was posted' |
|---|
| 80 |
) |
|---|
| 81 |
); |
|---|
| 82 |
|
|---|
| 83 |
$template['weblogcomment'] = <<< END |
|---|
| 84 |
|
|---|
| 85 |
<li> |
|---|
| 86 |
{{body}} |
|---|
| 87 |
<p style="border: 0px; border-bottom: 1px; border-style: solid; border-color: #000000"> |
|---|
| 88 |
<small>Posted by {{postedname}} on {{posted}}</small> |
|---|
| 89 |
</p> |
|---|
| 90 |
</li> |
|---|
| 91 |
|
|---|
| 92 |
END; |
|---|
| 93 |
|
|---|
| 94 |
$template['css'] .= <<< END |
|---|
| 95 |
|
|---|
| 96 |
.weblogdateheader { |
|---|
| 97 |
|
|---|
| 98 |
font-size: 0.6ems; |
|---|
| 99 |
} |
|---|
| 100 |
|
|---|
| 101 |
END; |
|---|
| 102 |
|
|---|
| 103 |
?> |
|---|