root/devel-backup/units/weblogs/menu_sub.php

Revision 45, 1.6 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     global $page_owner;
4     
5     $weblog_username = run("users:id_to_name",$page_owner);
6     
7     if (context=="weblog") {
8         
9         if ($page_owner != -1) {
10             
11             if (run("permissions:check", "weblog") && logged_on) {
12                 
13                 $run_result .= run("templates:draw", array(
14                             'context' => 'submenuitem',
15                             'name' => gettext("Post a new entry"),
16                             'location' =>  url . "_weblog/edit.php?owner=" . $page_owner
17                         )
18                         );
19                     
20             }
21             
22             $run_result .= run("templates:draw", array(
23                                 'context' => 'submenuitem',
24                                 'name' => gettext("View blog"),
25                                 'location' =>  url . $weblog_username . "/weblog/"
26                             )
27                             );
28             
29             $run_result .= run("templates:draw", array(
30                                 'context' => 'submenuitem',
31                                 'name' => gettext("RSS feed"),
32                                 'location' =>  url . $weblog_username . "/weblog/rss/"
33                             )
34                             );
35             
36             $run_result .= run("templates:draw", array(
37                                 'context' => 'submenuitem',
38                                 'name' => gettext("Archive"),
39                                 'location' =>  url . $weblog_username . "/weblog/archive/"
40                             )
41                             );
42             
43             $run_result .= run("templates:draw", array(
44                             'context' => 'submenuitem',
45                             'name' => gettext("Friends blogs"),
46                             'location' =>  url . $weblog_username . "/weblog/friends/"
47                         )
48                         );
49             
50         }
51         
52         $run_result .= run("templates:draw", array(
53                         'context' => 'submenuitem',
54                         'name' => gettext("View all posts"),
55                         'location' =>  url . "_weblog/everyone.php"
56                     )
57                     );
58         
59         $run_result .= run("templates:draw", array(
60                         'context' => 'submenuitem',
61                         'name' => gettext("Page help"),
62                         'location' => url . 'help/blogs_help.php'
63                     )
64                     );
65         
66     }
67
68 ?>
Note: See TracBrowser for help on using the browser.