A series of changes to push Elgg's approach to themes in a more CSS driven direction...
[elgg.git] / units / files / default_templates.php
blobaed8628197ce46428146e8d13e7ac567b91fb3ac
1 <?php
3 global $template;
4 global $template_definition;
6 $template_definition[] = array(
7 'id' => 'folder',
8 'name' => gettext("Folder"),
9 'description' => gettext("Each individual folder"),
10 'glossary' => array(
11 '{{username}}' => gettext("The owner of the folder"),
12 '{{name}}' => gettext("The name of the folder"),
13 '{{url}}' => gettext("The folder's URL"),
14 '{{menu}}' => gettext("Menu items for folder owner (edit, delete, etc)"),
15 '{{icon}}' => gettext("The URL of the file's icon"),
16 '{{keywords}}' => gettext("Keywords associated with the folder")
20 $template['folder'] = <<< END
21 <div class="foldertable">
22 <table>
23 <tr>
24 <td>
25 <a href="{{url}}">
26 <img src="{{icon}}" width="93" height="90" border="0" alt="" />
27 </a>
28 </td>
29 <td>
30 <p><a href="{{url}}">{{name}}</a> {{menu}}</p>
31 <p>{{keywords}}</p>
32 </td>
33 </tr>
34 </table>
35 </div>
36 END;
38 $template_definition[] = array(
39 'id' => 'file',
40 'name' => gettext("File"),
41 'description' => gettext("Each individual file within a folder"),
42 'glossary' => array(
43 '{{url}}' => gettext("The file's URL"),
44 '{{originalname}}' => gettext("Its filename"),
45 '{{description}}' => gettext("A description of the file"),
46 '{{title}}' => gettext("Its title"),
47 '{{menu}}' => gettext("Menu items for file owner (edit, delete, etc)"),
48 '{{icon}}' => gettext("The URL of its icon"),
49 '{{keywords}}' => gettext("Keywords associated with the folder")
53 $template['file'] = <<< END
55 <div class="filetable">
56 <table>
57 <tr>
58 <td>
59 <a href="{{url}}">
60 <img src="{{icon}}" width="90" height="90" border="0" alt="" />
61 </a>
62 </td>
63 <td>
64 <a href="{{url}}"><b>{{title}}</b></a>
65 <p>{{menu}}</p>
66 <p>{{description}}</p>
67 <p>{{originalname}}</p>
68 <p>{{keywords}}</p>
69 </td>
70 </tr>
71 </table>
72 </div>
74 END;