Rev 15525 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13836 | obado | 1 | !!## Menu on top right (headmenus + wims about + user links + languages) |
2 | !! user links and languages have dropdown submenus. |
||
10507 | obado | 3 | |
13836 | obado | 4 | !! _help _test _tool |
10507 | obado | 5 | |
13885 | obado | 6 | !set div1=li |
15049 | obado | 7 | <!-- widget user_links --> |
13885 | obado | 8 | <ul class="wimsmenu dropdown menu" data-dropdown-menu data-options="data-autoclose:true;"> |
10443 | obado | 9 | |
13885 | obado | 10 | !if _help isin $wims_session or _test isin $wims_session |
11 | !read themes/_widgets/headmenu.phtml |
||
12 | !else |
||
10376 | obado | 13 | |
13885 | obado | 14 | !! about WIMS |
15 | !if $module=home and $wims_user=$empty |
||
16 | !default wims_name_aboutw=$wims_name_about |
||
17 | !set wims_hm = !append line aboutw,4,cmd=help&special_parm=about,mhelp to $wims_hm |
||
18 | !set wims_hm_cnt = !linecnt $wims_hm |
||
19 | !endif |
||
13836 | obado | 20 | |
13885 | obado | 21 | !! head menus |
22 | !read themes/_widgets/headmenu.phtml |
||
23 | |||
24 | !! User Links |
||
14777 | guerimand | 25 | !if _ notin $wims_session and $wims_firstname$wims_lastname$wims_user$wims_developer!=$empty and ($module!=adm/class/tchat or $job!=viewpage) |
13885 | obado | 26 | !read themes/_procs/userlinks.proc |
27 | !default wims_which_user=[no_name] |
||
28 | <li class="menuitem is-dropdown-submenu-parent"> |
||
29 | <a href="#user_links" class="account"> |
||
30 | <span>$wims_which_user</span> |
||
31 | !if $wims_developer!=$empty |
||
32 | <span class="user_type">[modtool]</span> |
||
33 | !endif |
||
34 | </a> |
||
35 | <ul id="user_links" class="menu"> |
||
36 | !for i_=1 to $wims_user_links_cnt |
||
37 | !set 1_=!line $i_ of $wims_user_links |
||
38 | <li class="menuitem"> |
||
15525 | bpr | 39 | !read $(w_path)oneitem.phtml $1_ |
13885 | obado | 40 | </li> |
41 | !next |
||
42 | |||
43 | !! "WIMS logout" |
||
44 | !read themes/_widgets/logout.phtml |
||
45 | !! "CAS logout" |
||
46 | !read themes/_widgets/authlogout.phtml |
||
47 | </ul> |
||
48 | </li> |
||
49 | !endif |
||
50 | !if $module iswordof adm/modtool or $wims_firstname$wims_lastname$wims_user=$empty |
||
51 | !readproc languages |
||
52 | !! Language selector (displayed only if you're not connected) |
||
53 | !if $wims_language_cnt>1 |
||
16176 | obado | 54 | <li id="language_selector" class="language_selector menuitem is-dropdown-submenu-parent"> |
13885 | obado | 55 | <a href="#lang_list" class="lang"> |
56 | <span><img src="gifs/$lang.gif" alt="$(Lang_name_$lang)" /> $wims_name_Language</span> |
||
13836 | obado | 57 | </a> |
13885 | obado | 58 | !read themes/_widgets/language_selector.phtml |
13836 | obado | 59 | </li> |
60 | !endif |
||
13885 | obado | 61 | !endif |
13901 | bpr | 62 | !endif |
13885 | obado | 63 | </ul> |
15049 | obado | 64 | <!-- end widget user_links --> |