root/releases/elgg0.8rc2/_templates/index.php

Revision 911, 0.8 kB (checked in by ben, 2 years ago)

Radical template overhaul. You can now add new public templates by simply dropping them into $CFG->templatesroot - the directory name is the name of the template, with underscores converted into spaces. The directory should include the files 'pageshell' and 'css'.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     //    ELGG template create / select page
4
5     // Run includes
6         require_once(dirname(dirname(__FILE__))."/includes.php");
7         
8         protect(1);
9         
10         run("profile:init");
11         templates_actions();
12         
13         define("context", "account");
14         templates_page_setup();       
15         $title = run("profile:display:name") . " :: ". __gettext("Select / Create Themes");
16         
17         $body = templates_view();
18         $body .= templates_add();
19         
20         $body = templates_draw(array(
21                         'context' => 'contentholder',
22                         'title' => $title,
23                         'body' => $body
24                     )
25                     );
26         
27         echo templates_page_draw( array(
28                         $title, $body
29                     )
30                     );
31
32 ?>
Note: See TracBrowser for help on using the browser.