root/releases/0.1.2a/_templates/edit.php

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

importing elgg-0.1.1a

Line 
1 <?php
2
3     //    ELGG template edit page
4
5     // Run includes
6         require("../includes.php");
7         
8         protect(1);
9         
10         run("profile:init");
11         run("templates:init");
12         
13         $title = run("profile:display:name") . " :: Template Edit";
14         
15         $body = run("content:templates:edit");
16         
17         if (isset($_REQUEST['id'])) {
18             $id = (int) $_REQUEST['id'];
19             $body .= run("templates:edit",$id);
20         } else {
21             $body = run("templates:edit");
22         }
23         
24         $body = run("templates:draw", array(
25                         'context' => 'infobox',
26                         'name' => $title,
27                         'contents' => $body
28                     )
29                     );
30         
31         echo run("templates:draw:page", array(
32                         $title, $body
33                     )
34                     );
35
36 ?>
Note: See TracBrowser for help on using the browser.