corrected spelling mistake
[elgg.git] / _templates / edit.php
blobace1ade46f268d5f98cffd69e18ac6c4a045c5dc
1 <?php
3 // ELGG template edit page
5 // Run includes
6 require_once(dirname(dirname(__FILE__))."/includes.php");
8 protect(1);
10 run("profile:init");
11 run("templates:init");
13 define("context", "account");
14 templates_page_setup();
15 $title = run("profile:display:name") . " :: " . __gettext("Template Edit");
17 $body = run("content:templates:edit");
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");
26 $body = templates_draw(array(
27 'context' => 'contentholder',
28 'title' => $title,
29 'body' => $body
33 echo templates_page_draw( array(
34 $title, $body