root/releases/0.401/_templates/edit.php

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

dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation

  • Property svn:eol-style set to native
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         define("context", "account");
14         
15         $title = run("profile:display:name") . " :: " . gettext("Template Edit");
16         
17         $body = run("content:templates:edit");
18         
19         if (isset($_REQUEST['id'])) {
20             $id = (int) $_REQUEST['id'];
21             $body .= run("templates:edit",$id);
22         } else {
23             $body = run("templates:edit");
24         }
25         
26         $body = run("templates:draw", array(
27                         'context' => 'contentholder',
28                         'title' => $title,
29                         'body' => $body
30                     )
31                     );
32         
33         echo run("templates:draw:page", array(
34                         $title, $body
35                     )
36                     );
37
38 ?>
Note: See TracBrowser for help on using the browser.