/
prefs_titlebar;misc;default
46 lines (39 loc) · 1.27 KB
/
prefs_titlebar;misc;default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
__section__
default
__description__
* tab_selected = label of selected tab
__title__
__page__
misc
__lang__
en_US
__name__
prefs_titlebar
__template__
[%# <!-- prefs_titlebar tab_selected=tab_selected uid=user.uid --> %]
[% title = title || "$user.nickname (This is you!)";
PROCESS titlebar title=title width="100%";
plugins = Slash.db.getDescriptions("plugins");
tabs = [
{ link = "/users.pl?op=edituser", label = "User", sel_label = "user" },
{ link = "/users.pl?op=edithome", label = "Homepage", sel_label = "home" },
{ link = "/users.pl?op=editcomm", label = "Comments", sel_label = "comments" }
];
IF plugins.Messages; tabs.push(
{ link = "/my/messages", label = "Messages", sel_label = "messages" },
); END;
IF plugins.Journal; tabs.push(
{ link = "/journal.pl?op=editprefs", label = "Journal", sel_label = "journal" },
); END;
IF Slash.db.getMiscUserOpts.size; tabs.push(
{ link = "/users.pl?op=editmiscopts", label = "Misc", sel_label = "misc" },
); END;
IF plugins.Subscribe; tabs.push(
{ link = "/subscribe.pl", label = "Subscription", sel_label = "subscription" },
); END;
tabs.push(
{ link = "/users.pl?op=changepasswd", label = "Password", sel_label = "password" },
);
PROCESS tabbedmenu tabs=tabs color='white' justify='left' tab_selected=tab_selected %]
__seclev__
10000