Zuglói Egészségügyi Szolgálat
You are here: Főoldal » SiteMenu

SiteMenu

Default SiteMenu component: SiteMenu instead.

Implementation

%STARTINCLUDE%<!-- -->
%SET{"ZESZMENU" value="%SUBST{text="%WEB%" pattern="/.*"}%.WebSiteMenu"}%<!-- -->
<ul>
%IF{"'%USERNAME%' != 'guest'"
  then="$percntINCLUDE{\"%MAINWEB%.SiteMenu\" section=\"mainmenu\"}$percnt"
}%<!-- -->
  <!-- li class="%IF{"$CURRENT_MENU='News'" then="current" else="notcurrent"}%">[[News.%HOMETOPIC%][%MAKETEXT{"News"}%]]</li -->
  <!-- li class="%IF{"$CURRENT_MENU='Knowledge'" then="current" else="notcurrent"}%">[[Knowledge.%HOMETOPIC%][%MAKETEXT{"Knowledge"}%]]</li -->
  <!-- li class="%IF{"$CURRENT_MENU='Projects'" then="current" else="notcurrent"}%">[[Projects.%HOMETOPIC%][%MAKETEXT{"Projects"}%]]</li -->
%IF{"'%USERNAME%' ingroup 'AdminGroup'"
  then="$percntINCLUDE{\"%MAINWEB%.SiteMenu\" section=\"adminmenu\"}$percnt"
}%<!-- -->
%IF{"'%USERNAME%' != 'guest'"
  then="$percntINCLUDE{\"%MAINWEB%.SiteMenu\" section=\"helpmenu\"}$percnt"
}%<!-- -->
%IF{"istopic '%ZESZMENU%'"
   then="$percntINCLUDE{\"%ZESZMENU%\"}$percnt"
}%<!-- -->
%IF{"'%USERNAME%' = 'guest' AND '%WEB%' = 'Main'"
   then="$percntINCLUDE{\"Hu.WebSiteMenu\"}$percnt"
}%<!-- -->
</ul>
<!-- -->%STOPINCLUDE%

Subwebs

%STARTSECTION{"subwebs"}%%FLEXWEBLIST{
  include="%URLPhttps://www.cetli.eu/foswiki/bin/edit/Main/SiteMenu?t=1486649267&nowysiwyg=on&natedit_engine=raw#saveARAM{"theweb" default="%theweb{default=""}%"}%.*"
  exclude="%URLPARAM{"theweb" default="%theweb%"}%|.*(%URLPARAM{"excludeweb" default="does not exist"}%).*"
  exclude="%URLPARAM{"theweb" default="%theweb{default=""}%"}%|.*(%URLPARAM{"excludeweb" default="%exclude{default="does not exist"}%"}%).*"
  header="<li>"
  subheader="<ul><li>"
  format="[[$web.%HOMETOPIC%][%JQICON{"%URLPARAM{"icon" default="%icon{default="bullet_white"}%"}%"}% $title]]"
  separator="</li><li>"
  subfooter="</li></ul>"
  footer="</li>"
}%%ENDSECTION{"subwebs"}%

%STARTSECTION{"mainmenu"}%<!-- -->
<li class="%IF{"$CURRENT_MENU='%MAINWEB%'" then="current" else="notcurrent"}%">
  [[%USERSWEB%.%HOMETOPIC%][%TMPL:P{"HOME_ICON"}%]]
  <ul>
    <li>[[Hu.WebHome][%TMPL:P{"HOME_ICON"}% %MAKETEXT{"ZESZ magyar nyelvű honlap"}%]]</li>
    <li>[[En.WebHome][%TMPL:P{"HOME_ICON"}% %MAKETEXT{"ZESZ angol nyelvű honlap"}%]]</li>
  </ul>
</li>
<!-- -->%ENDSECTION{"mainmenu"}%

Help menu

%STARTSECTION{"helpmenu"}%<li class="%IF{"$CURRENT_MENU='%SYSTEMWEB%'" then="current" else="notcurrent"}%">[[%SYSTEMWEB%.WebHome][%MAKETEXT{"Help"}%]]
  <ul>
    <li>[[%SYSTEMWEB%.WelcomeGuest][%TMPL:P{"HOME_ICON"}% %MAKETEXT{"Welcome"}%]]</li>
    <li>[[%SYSTEMWEB%.UserDocumentationCategory][%TMPL:P{"DOCU_ICON"}% %MAKETEXT{"User docs"}%]]</li>
    <li>[[%SYSTEMWEB%.AdminDocumentationCategory][%TMPL:P{"DOCU_ICON"}% %MAKETEXT{"Admin docs"}%]]</li>
    <li>[[%SYSTEMWEB%.DeveloperDocumentationCategory][%TMPL:P{"DOCU_ICON"}% %MAKETEXT{"Developer docs"}%]]</li>
    <li>[[%SYSTEMWEB%.ReferenceManual][%TMPL:P{"MANUAL_ICON"}% %MAKETEXT{"Reference manual"}%]]</li>
    <li>[[%SYSTEMWEB%.InstalledPlugins][%TMPL:P{"PLUGIN_ICON"}% %MAKETEXT{"Installed plugins"}%]]</li>
    <li><hr /></li>
    <li>[[Sandbox.%HOMETOPIC%][%TMPL:P{"SANDBOX_ICON"}% %MAKETEXT{"Sandbox"}%]]</li>%IF{"context passwords_modifyable" then="
    <li>[[%SYSTEMWEB%.ResetPassword][%TMPL:P{"PASSWORD_ICON"}% %MAKETEXT{"Password forgotten"}%]]</li>"}%
    <li><hr /></li>
    <li>[[https://foswiki.org/Support][%TMPL:P{"HELP_ICON"}% %MAKETEXT{"Online support forum"}%]]</li>
    <li>[[https://foswiki.org/Support/FAQ][%TMPL:P{"QUESTION_ICON"}% %MAKETEXT{"Foswiki FAQ"}%]]</li>
    <li>[[https://foswiki.org/Support/WikiConsultants][%TMPL:P{"ONLINE_HELP_ICON"}% %MAKETEXT{"Professional help"}%]]</li>
    <li>[[https://foswiki.org/Tasks][%TMPL:P{"BUG_ICON"}% %MAKETEXT{"Bugreport"}%]]</li>
  </ul>
</li>%ENDSECTION{"helpmenu"}%

Admin menu

%STARTSECTION{"adminmenu"}%<noautolink>
<li><a>%MAKETEXT{"Admin"}%</a>
  <ul>
    %IF{"isweb 'Applications'"
       then="<li>
         [[Applications.%HOMETOPIC%][%TMPL:P{"FOLDER_OPEN_ICON"}% %MAKETEXT{"Applications"}%]]
         <ul class=\"ajaxMenu {url:'%SCRIPTURL{"view"}%/%MAINWEB%/SiteMenu?skin=text;section=subwebs;theweb=Applications;icon=fa-folder-o%IF{"defined EXCLUDEWIKIAPPS" then=";excludeweb=%EXCLUDEWIKIAPPS%"}%'}\"></ul>
       </li>"
    }%<!-- -->
    <li>[[%TRASHWEB%.%HOMETOPIC%][%TMPL:P{"TRASH_ICON"}% %MAKETEXT{"Trash"}%]]</li>
    <li>[[%BASEWEB%.%WEBPREFSTOPIC%][%TMPL:P{"SETTINGS_ICON"}% %MAKETEXT{"Web preferences"}%]]</li>
    <li>[[%LOCALSITEPREFS%][%TMPL:P{"SETTINGS_ICON"}% %MAKETEXT{"Site preferences"}%]]</li>
    <li>[[%SYSTEMWEB%.SitePermissions][%TMPL:P{"PASSWORD_ICON"}% %MAKETEXT{"Site permissions"}%]]</li>
    <li>[[%SCRIPTURLPATH{"configure"}%][%TMPL:P{"CONFIGURE_ICON"}% %MAKETEXT{"Configure Foswiki"}%]]</li>
    <li> <hr /> </li>
    <li>[[%SYSTEMWEB%.WebCreateNewWeb][%JQICON{"fa-plus"}% %MAKETEXT{"Create a new web"}%]]</li>
    <li>[[%SCRIPTURL{"rename"}%/%BASEWEB%/%BASETOPIC%?action=renameweb][%JQICON{"fa-arrows"}% %MAKETEXT{"Rename current web"}%]]</li>
  </ul>
</li>
</noautolink>%ENDSECTION{"adminmenu"}%