root/devel/mod/template/edit.php

Revision 1387, 0.5 kB (checked in by rho, 1 year ago)

minor cleanup code

  • Property svn:eol-style set to native
Line 
1 <?php
2
3 //    ELGG template edit page
4
5 // Run includes
6 require_once(dirname(dirname(__FILE__))."/../includes.php");
7
8 run("profile:init");
9 run("templates:init");
10
11 require_login();
12
13 define("context", "account");
14 templates_page_setup();
15 $title = run("profile:display:name") . " :: " . __gettext("Template Edit");
16
17 $body = run("content:templates:edit");
18
19 $id = optional_param('id',0,PARAM_INT);
20 if (!empty($id)) {
21     $body .= run("templates:edit",$id);
22 } else {
23     $body = run("templates:edit");
24 }
25
26 templates_page_output($title, $body);
27
28 ?>
Note: See TracBrowser for help on using the browser.