root/releases/elgg0.8rc2/_weblog/edit.php

Revision 659, 1.1 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 weblog edit / add post page
4
5     // Run includes
6         require_once(dirname(dirname(__FILE__))."/includes.php");
7         
8         run("weblogs:init");
9         run("profile:init");
10         run("friends:init");
11         
12         global $page_owner;
13         if (!logged_on) {
14             $page_owner = -1;
15         } else {
16             if (!run("permissions:check", "weblog")) {
17                 $page_owner = $_SESSION['userid'];
18             }
19         }
20         
21         define("context", "weblog");
22         templates_page_setup();
23         
24         $title = run("profile:display:name") . " :: " . __gettext("Blog");
25         
26         $body = run("content:weblogs:edit");
27         $body .= run("weblogs:edit");
28
29         $body = templates_draw(array(
30                         'context' => 'contentholder',
31                         'title' => $title,
32                         'body' => $body
33                     )
34                     );
35         
36         echo templates_page_draw( array(
37                     $title, $body
38                 )
39                 );
40                     
41 ?>
Note: See TracBrowser for help on using the browser.