]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/blog.tmpl
More refactoring to use templated output. Use page meta "summary" field.
[SourceForge/phpwiki.git] / themes / default / templates / blog.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: blog.tmpl,v 1.2 2003-01-11 22:22:57 carstenklapp Exp $ -->
3 <?php
4 $tableSummary = sprintf(_("Comments on %s by %s."), $PAGENAME, $AUTHOR);
5
6 // FIXME: move to css
7 //$div_wikiblog = "border:1px solid cyan;margin-bottom:1ex;margin-left:2em;margin-right:2em"; // border for visual debugging only
8 $div_wikiblog = "margin-bottom:1ex;margin-left:2em;margin-right:2em";
9 ///////////////////////////////////////////////////////////////////////
10 ?>
11 <?php // Blog Heading
12 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ?>
13 <?php if ($SHOWHEADER) { ?>
14 <div class="wikiblog" style="<?=$div_wikiblog?>">
15 <h4><?=fmt("Comments on %s:", $PAGELINK)?></h4>
16 <?php } // SHOWHEADER ?>
17
18 <?php // One Blog comment
19 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ?>
20 <?php if ($SHOWBLOG) { ?>
21   <?php if (!$SHOWHEADER) { ?>
22 <div class="wikiblog" style="<?=$div_wikiblog?>">
23   <?php } //!SHOWHEADER ?>
24 <!-- FIXME: move table formatting to css -->
25 <table summary="<?=$tableSummary?>" class="wikiblog" border="0"
26        align="center" width="100%">
27   <tr bgcolor="#ccf">
28     <td align="left"><strong><?= $DATELINK ?></strong></td>
29     <td align="right"><strong><?= $AUTHORLINK ?></strong></td>
30   </tr>
31   <tr bgcolor="#eee">
32     <td colspan="1"><strong><?= $SUMMARY ?></strong>
33     <br /><?= $CONTENT ?></td><td></td>
34   </tr>
35   <tr bgcolor="#eef">
36     <td><small><?= $EDITLINK ?> <?= $REMOVELINK ?></small></td>
37     <td align="right">
38 <?php if ($DATEMODIFIED) { ?>
39       <small><?= fmt("Comment modified on %s by %s", $datemodified,
40                      $authormodified) ?></small>
41 <?php } ?>
42     </td>
43   </tr>
44 </table>
45 </div>
46 <?php } //SHOWBLOG ?>
47
48 <?php // New comment form
49 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ?>
50 <?php if ($SHOWBLOGFORM) { ?>
51
52 <div class="wikiblog" style="<?=$div_wikiblog?>">
53 <h4><?=_("Add new comment:")?></h4>
54 <form action="<?=$PAGENAME?>" method="post" class="wikiaction"
55       accept-charset="<?=CHARSET?>">
56   <div class="wikiaction">
57   <input type="hidden" name="blog[page]" value="<?=$PAGENAME?>" />
58   <table align="center" border="0">
59      <tr bgcolor="#eee">
60          <th><?=_("Summary:")?></th>
61          <td><input class="wikitext" type="text" size="60"
62                     maxlength="256" name="blog[summary]" value="" /></td>
63         </tr>
64      <tr bgcolor="#eee">
65          <th><?=_("Comment:")?></th>
66          <td><textarea class="blogedit" rows="5" cols="51"
67                        name="blog[body]" wrap="virtual"></textarea></td>
68         </tr>
69      <tr>
70         <th></th>
71         <td align="right"><input type="submit" value="<?=_("Submit")?>"
72                                   name="addblog" class="wikiaction" /></td>
73        </tr>
74   </table>
75   </div>
76 </form>
77 </div>
78 <?php } //SHOWBLOGFORM ?>
79
80 <?php
81 // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -                         
82 // $Log: not supported by cvs2svn $
83 // Revision 1.1  2003/01/06 02:17:08  carstenklapp
84 // New template for WikiBlog plugin.
85 //
86 ?>