root/devel-backup/units/weblogs/default_template.php

Revision 169, 2.7 kB (checked in by dave, 3 years ago)

Small data holder changes which effect the flagged content page. Change ems to em on weblog page.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     global $template;
4     global $template_definition;
5     
6     $template_definition[] = array(
7         'id' => 'weblogpost',
8         'name' => gettext("Weblog Post"),
9         'description' => gettext("A template for each weblog post."),
10         'glossary' => array(
11             '{{title}}' => gettext('Post title'),
12             '{{body}}' => gettext('The text of the post'),
13             '{{username}}' => gettext('The username of the person making the post'),
14             '{{usericon}}' => gettext('Their user icon'),
15             '{{fullname}}' => gettext('Their full name'),
16             '{{date}}' => gettext('The time and date of the post'),
17             '{{commentslink}}' => gettext('A link to any comments'),
18             '{{trackbackslink}}' => gettext('A link to any trackbacks'),
19             '{{comments}}' => gettext('A list of comments, if any')
20         )
21     );
22     
23     $postedby = gettext("Posted by");
24     $template['weblogpost'] = <<< END
25
26
27 <div class="weblog_posts"><!-- Holds all aspects of a blog post -->
28     <div class="entry"><!-- Open class entry -->
29         <div class="user"><!-- Open class user -->
30             <a href="{{url}}{{username}}/weblog/"><img src="{{url}}_icons/data/{{usericon}}"/></a><br /><a href="{{url}}{{username}}/weblog/">{{fullname}}</a>
31         </div><!-- Close class user -->
32         <div class="weblog_title"><h3>{{title}}</h3></div>
33         <div class="post"><!-- Open class post -->
34             {{body}}
35             <div class="info"><!-- Open class info -->
36             <p>
37                 $postedby {{username}}
38                  | {{commentslink}}
39             </p>
40             </div><!-- Close class info -->
41         </div><!-- Close class post -->
42         {{comments}}
43     </div><!-- Close class entry -->
44 </div><!-- Close weblog_posts -->
45 <div class="clearing"></div>   
46 END;
47
48     $template_definition[] = array(
49         'id' => 'weblogcomments',
50         'name' => gettext("Weblog Comments"),
51         'description' => gettext("A placeholder for weblog comments."),
52         'glossary' => array(
53             '{{comments}}' => gettext('The list of comments themselves')
54         )
55     );
56     
57     $comments = gettext("Comments");
58
59     $template['weblogcomments'] = <<< END
60
61 <hr noshade="noshade" />
62 <div id="comments"><!-- start comments div -->
63     <h4>$comments</h4>
64     <ol>
65         {{comments}}
66     </ol>
67 </div><!-- end comments div -->
68 END;
69
70     $template_definition[] = array(
71         'id' => 'weblogcomment',
72         'name' => gettext("Individual weblog comment"),
73         'description' => gettext("A template for each individual weblog comment. (Displayed one after the other, embedded in the comment placeholder.)"),
74         'glossary' => array(
75             '{{body}}' => gettext('Post body'),
76             '{{postedname}}' => gettext('The name of the person making the comment'),
77             '{{weblogcomment}}' => gettext('When the comment was posted')
78         )
79     );
80
81     $template['weblogcomment'] = <<< END
82
83 <li>
84     {{body}}
85     <p>
86         $postedby {{postedname}} on {{posted}}
87     </p>
88 </li>
89
90 END;
91
92     $template['css'] .= <<< END
93     
94         .weblogdateheader {
95             font-size: 0.6em;
96         }
97     
98 END;
99
100 ?>
Note: See TracBrowser for help on using the browser.