Subversion Repositories wimsdev

Rev

Rev 10858 | Rev 13836 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !!## Dropdown Menu on top right (user links + languages + wims about)
  2.  
  3. !!! _help _test _tool
  4. !if _help isin $wims_session or _test isin $wims_session
  5.   !if $div1=li
  6.     <ul>
  7.   !endif
  8.   !read themes/_widgets/headmenu.phtml
  9.   !if $div1=li
  10.     </ul>
  11.   !endif
  12.   !exit
  13. !endif
  14.  
  15. !set div1=li
  16.  
  17. <ul class="wimsmenu dropdown menu" data-dropdown-menu data-options="data-autoclose:true;">
  18.   !!head menus
  19.   !if $module=home and $wims_user=$empty
  20.     !default wims_name_aboutw=$wims_name_about
  21.     !set wims_hm = !append line aboutw,4,cmd=help&special_parm=about,mhelp to $wims_hm
  22.     !set wims_hm_cnt = !linecnt $wims_hm
  23.   !endif
  24.   !read themes/_widgets/headmenu.phtml
  25.   !if _ notin $wims_session
  26.   !! USER LINKS
  27.    !if $wims_firstname$wims_lastname$wims_user$wims_developer!=$empty
  28.     !read themes/_procs/userlinks.proc
  29.     !default wims_which_user=[no_name]
  30.     <li class="menuitem is-dropdown-submenu-parent">
  31.       <a href="#user_links" class="account">
  32.         <span>$wims_which_user</span>
  33.         !if $wims_developer!=$empty
  34.           <span class="user_type">[modtool]</span>
  35.         !endif
  36.       </a>
  37.       <ul id="user_links" class="menu">
  38.         !for i_=1 to $wims_user_links_cnt
  39.           !set 1_=!line $i_ of $wims_user_links
  40.           <li class="menuitem">
  41.             !read $(path)oneitem.phtml $1_
  42.           </li>
  43.         !next
  44.  
  45.         !! "WIMS logout"
  46.         !read themes/_widgets/logout.phtml
  47.         !! "CAS logout"
  48.         !read themes/_widgets/authlogout.phtml
  49.       </ul>
  50.     </li>
  51.     !endif
  52.     !if $module iswordof adm/modtool or $wims_firstname$wims_lastname$wims_user=$empty
  53.     !readproc languages
  54.     !! Language selector (displayed only if you're not connected)
  55.      !if $wims_language_cnt>1
  56.      <li id="language_selector" class="menuitem is-dropdown-submenu-parent">
  57.        <a href="#lang_list" class="lang">
  58.          <span><img src="gifs/$lang.gif" alt="$(Lang_name_$lang)" /> $wims_name_Language</span>
  59.        </a>
  60.        !read themes/_widgets/language_selector.phtml
  61.      </li>
  62.      !endif
  63.    !endif
  64. !endif
  65. </ul>
  66.  
  67. <!-- Foundation Dropdown Menu -->
  68. <script type="text/javascript" src="html/themes/_inc/foundation_dropdown_menu.js"></script>
  69. <script type="text/javascript" src="scripts/js/bower_components/what-input/dist/what-input.min.js"></script>
  70. <script type="text/javascript" >jQuery(function($$) {$$(document).foundation();});</script>
  71.