Subversion Repositories wimsdev

Rev

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

  1. <!-- begin of $wims_theme/header.phtml -->
  2.  
  3. !! Header menu bar definition.
  4. !nocache
  5. !set wims_theme_header=yes
  6.  
  7. !set jquery_defined=yes
  8.  
  9. !default wims_theme_icon=$class_theme_icon
  10. !default wims_theme_icon=standard
  11.  
  12. !if _tool isin $wims_session
  13.     <!-- end of $wims_theme/header.phtml -->
  14.     !changeto themes/$wims_theme/toolheader.phtml
  15. !endif
  16.  
  17. !if _help isin $wims_session
  18.   <div id="wimsmhelp">
  19. !endif
  20.  
  21. !if _exam isin $wims_session
  22.   <div id="wimsexam">
  23. !endif
  24.  
  25. !if $wims_lightpopup=yes
  26.   <!--<div id="wimslightpopup">-->
  27.    <link rel="stylesheet" href="html/themes/$wims_theme/css_theme/light.css" type="text/css">
  28. !endif
  29.  
  30. !set wims_theme_version=1
  31. !set current_module=!replace / by , in $module
  32. !set module_path= !item 1 of $current_module
  33.  
  34. !if $wims_hm_cnt!=0 or ($module_path notitemof home,adm,classes and _exam notin $session and $module_init_parm == $empty)
  35.  <div id="wimstopbox">
  36.  
  37.   !!Site Title
  38.   !read themes/_widgets/site_title.phtml
  39.  
  40.   !!Institution logo
  41.   !set positionlogo=right
  42.   !read themes/_widgets/institution_logo.phtml
  43.  
  44.   <br class="clearall"/>
  45.  
  46.   <ul class="wimsmenu menuglobal">
  47.    !distribute items li into div1
  48.  
  49.    !read themes/_widgets/headmenu.phtml
  50.    !reset div0 div1
  51.  
  52.    !distribute items li,div into div0,div1
  53.    !read themes/_widgets/permalink.phtml
  54.    !reset div0 div1
  55.  
  56.    !!## technical parameters
  57.   !if $class_cas_auth=$empty
  58.      !set m_init_parm=!replace internal & by $ $ in $module_init_parm
  59.      !set class_cas_auth=!getopt class_auth in $m_init_parm
  60.    !endif
  61.  
  62.    !if $class_cas_auth!=$empty
  63.     !!## it is better that the cas logout appears too much ...
  64.    !!## can be useless in the case of a supervisor so the next line is commented
  65.    !!!!!!and $wims_user!=supervisor and ($wims_realuser=$empty or $wims_realuser!=supervisor)
  66.     <li class="topmenuitem">
  67.      !read adm/class/logout_cas
  68.     </li><!--topmenuitem-->
  69.    !endif
  70.   </ul><!--wimsmenu-->
  71.  </div><!--wimstopbox-->
  72. !endif
  73.  
  74.  
  75. !if $module!=home or $wims_user!=
  76.  <div id="wimsbodybox">
  77.  
  78.   <!--Ajout du menu de la zone enseignant-->
  79.   !if $module = adm/class/classes or $module = adm/class/regclass or $module = adm/createxo or $module = adm/createxo or $module = adm/modtool or $module = adm/quicktool or $module = adm/latex2wims
  80.    !set wims_zone=zone_prof
  81.    !read themes/$wims_theme/widgets/menuprof.phtml
  82.   !else
  83.    !set wims_zone=zone_etu
  84.   !endif
  85.  
  86.   <div id="wimspagebox" class="$wims_zone">
  87.   !!! ICI, impossible de placer menumodubox : les variables qu'il utilise ne sont pas encore instanciĆ©es
  88.  !! read themes/_widgets/menumodubox.phtml
  89.  
  90.  !!chat
  91.  !read themes/_widgets/alertchat.phtml
  92. !endif
  93.  
  94. <!-- end of $wims_theme/header.phtml -->
  95.