root/releases/0.673/_templates/edit.php

Revision 659, 0.9 kB (checked in by misja, 2 years ago)

Taking gettext to a new level, see message <http://lists.elgg.org/pipermail/development/2006-October/000590.html>. In a nutshell: all gettext calls are replaced by gettext, revamped gettext handling plus some additional fixes.

  • 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 protect(1);
9
10 run("profile:init");
11 run("templates:init");
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 $body = templates_draw(array(
27                              'context' => 'contentholder',
28                              'title' => $title,
29                              'body' => $body
30                              )
31                        );
32                       
33 echo templates_page_draw( array(
34                                       $title, $body
35                                       )
36          );
37
38 ?>
Note: See TracBrowser for help on using the browser.