!!## Dropdown Menu on top right (user links + languages + wims about)
!!! _help _test _tool
!if _help isin $wims_session or _test isin $wims_session
!if $div1=li
<ul>
!endif
!read themes/_widgets/headmenu.phtml
!if $div1=li
</ul>
!endif
!endif
!set div1=li
<ul class="wimsmenu dropdown menu" data-dropdown-menu data-options="data-autoclose:true;">
!!head menus
!if $module=home and $wims_user=$empty
!default wims_name_aboutw=$wims_name_about
!set wims_hm = !append line aboutw,4,cmd=help&special_parm=about,mhelp to $wims_hm
!set wims_hm_cnt = !linecnt $wims_hm
!endif
!read themes/_widgets/headmenu.phtml
!if _ notin $wims_session
!! USER LINKS
!if $wims_firstname$wims_lastname$wims_user$wims_developer!=$empty
!read themes/_procs/userlinks.proc
!default wims_which_user=[no_name]
<li class="menuitem is-dropdown-submenu-parent">
<a href="#user_links" class="account">
<span>$wims_which_user</span>
!if $wims_developer!=$empty
<span class="user_type">[modtool]</span>
!endif
</a>
<ul id="user_links" class="menu">
!for i_=1 to $wims_user_links_cnt
!set 1_=!line $i_ of $wims_user_links
<li class="menuitem">
!read $(path)oneitem.phtml $1_
</li>
!! "WIMS logout"
!read themes/_widgets/logout.phtml
!! "CAS logout"
!read themes/_widgets/authlogout.phtml
</ul>
</li>
!endif
!if $module iswordof adm/modtool or $wims_firstname$wims_lastname$wims_user=$empty
!readproc languages
!! Language selector (displayed only if you're not connected)
!if $wims_language_cnt>1
<li id="language_selector" class="menuitem is-dropdown-submenu-parent">
<a href="#lang_list" class="lang">
<span><img src="gifs/$lang.gif" alt="$(Lang_name_$lang)" /> $wims_name_Language</span>
</a>
!read themes/_widgets/language_selector.phtml
</li>
!endif
!endif
!endif
</ul>
<!-- Foundation Dropdown Menu -->
<script type="text/javascript" src="html/themes/_inc/foundation_dropdown_menu.js"></script>
<script type="text/javascript" src="scripts/js/bower_components/what-input/dist/what-input.min.js"></script>
<script type="text/javascript" >jQuery(function($$) {$$(document).foundation();});</script>