root/releases/0.1.1b/units/templates/main.php

Revision 2, 1.4 kB (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     /*
4     *    Templates unit
5     */
6
7     // Load default values
8         $function['init'][] = path . "units/templates/default_template.php";
9         
10     // Actions
11         $function['templates:init'][] = path . "units/templates/template_actions.php";
12
13     // Draw template (returns HTML as opposed to echoing it straight to the screen)
14         $function['templates:draw'][] = path . "units/templates/template_draw.php";
15         
16     // Function to substitute variables within a template, used in templates:draw
17         $function['templates:variables:substitute'][] = path . "units/templates/variables_substitute.php";
18
19     // Function to draw the page, once supplied with a main body and title
20         $function['templates:draw:page'][] = path . "units/templates/page_draw.php";
21         
22     // Function to display a list of templates
23         $function['templates:view'][] = path . "units/templates/templates_view.php";
24         $function['templates:preview'][] = path . "units/templates/templates_preview.php";
25                 
26     // Function to display input fields for template editing
27         $function['templates:edit'][] = path . "units/templates/templates_edit.php";
28         
29     // Function to allow the user to create a new template
30         $function['templates:add'][] = path . "units/templates/templates_add.php";
31         
32     // Template-related menu functions
33         $function['menu:user'] = array_merge(array(path . "units/templates/menu_main.php"), $function['menu:user']);
34         
35 ?>
Note: See TracBrowser for help on using the browser.