root/devel/mod/file/default_templates.php

Revision 1539, 2.8 kB (checked in by renato, 1 year ago)

Setting prop svn:eol-style in LOTS of files.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3 global $template;
4 global $template_definition;
5
6 $template_definition[] = array( 'id' => 'folder',
7                                 'name' => __gettext("Folder"),
8                                 'description' => __gettext("Each individual folder"),
9                                 'glossary' => array('{{username}}' => __gettext("The owner of the folder"),
10                                                     '{{name}}' => __gettext("The name of the folder"),
11                                                     '{{url}}' => __gettext("The folder's URL"),
12                                                     '{{menu}}' => __gettext("Menu items for folder owner (edit, delete, etc)"),
13                                                     '{{icon}}' => __gettext("The URL of the file's icon"),
14                                                     '{{keywords}}' => __gettext("Keywords associated with the folder")
15                                                     )
16                                 );
17
18
19 $template_definition[] = array( 'id' => 'file',
20                                 'name' => __gettext("File"),
21                                 'description' => __gettext("Each individual file within a folder"),
22                                 'glossary' => array('{{url}}' => __gettext("The file's URL"),
23                                                     '{{originalname}}' => __gettext("Its filename"),
24                                                     '{{description}}' => __gettext("A description of the file"),
25                                                     '{{title}}' => __gettext("Its title"),
26                                                     '{{menu}}' => __gettext("Menu items for file owner (edit, delete, etc)"),
27                                                     '{{icon}}' => __gettext("The URL of its icon"),
28                                                     '{{keywords}}' => __gettext("Keywords associated with the folder")
29                                                     )
30                                 );
31
32 $template_definition[] = array('id'=> 'file_wizard',
33                                'name' => __gettext("File selection wizard"),
34                                'description' => __gettext("Wizard page that show the file list"),
35                                'glossary' => array('{{user_id}}' => __gettext("File's owner id"),
36                                                    '{{folder}}' => __gettext("Initial folder"),
37                                                    '{{input_field}}' => __gettext("Input field to be modified by the wizard")
38                                              )
39                          );
40                         
41 templates_add_context('folder', 'mod/file/templates/file_folder.html');
42 templates_add_context('file', 'mod/file/templates/file_file.html');
43 templates_add_context('file_wizard', 'mod/file/templates/file_wizard.html');
44 ?>
Note: See TracBrowser for help on using the browser.