Difference between revisions of "MediaWiki:BITPlan.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 32: Line 32:
 
   MenuItem servicesMenuItems[]={
 
   MenuItem servicesMenuItems[]={
 
     new MenuItem("profiwiki","ProfiWiki","http://www.bitplan.com/index.php/ProfiWiki_en","ProfiWiki","http://www.bitplan.com/index.php/ProfiWiki"),
 
     new MenuItem("profiwiki","ProfiWiki","http://www.bitplan.com/index.php/ProfiWiki_en","ProfiWiki","http://www.bitplan.com/index.php/ProfiWiki"),
       new MenuItem("bitmypaper","Software Engineering Joker","http://www.bitplan.com/index.php/Joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker"),
+
       new MenuItem("bitmypaper","bit my paper","http://www.bitplan.com/index.php/Bitmypaper","bit my paper","http://www.bitplan.com/index.php/Bitmypaper"),
 
     new MenuItem("smartGENERATOR","smartGENERATOR","http://www.bitplan.com/index.php/SmartGENERATOR","smartGENERATOR","http://www.bitplan.com/index.php/SmartGENERATOR"),
 
     new MenuItem("smartGENERATOR","smartGENERATOR","http://www.bitplan.com/index.php/SmartGENERATOR","smartGENERATOR","http://www.bitplan.com/index.php/SmartGENERATOR"),
 
     new MenuItem("joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker")
 
     new MenuItem("joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker")

Revision as of 13:21, 29 November 2017

Links

MediaWiki:Menu.rythm

Rythm Template

@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@include(wiki.MediaWiki.BITPlanStyle.rythm)
@include(wiki.MediaWiki.Menu.rythm)
@include(wiki.MediaWiki.Form.rythm)
@// BITPlan header
@def BITPlanHeader(String languageCode, String title) {
@header(languageCode,title)
@bootstrap()
@style()
}
@// BITPlan menu
@def BITPlanMenu(boolean de){
@{
  Menu menu=new Menu("http://training.bitplan.com/index.php/Welcome","http://training.bitplan.com/index.php/Willkommen","http://wiki.bitplan.com/images/wiki/7/7a/BITPlanLogo2012FontLess.svg");
  MenuItem menuItems[]={
    new MenuItem("training","Trainings","http://training.bitplan.com/index.php/Trainings/en","Trainings","http://training.bitplan.com/index.php/Trainings"),
    new MenuItem("services","Services","http://www.bitplan.com/index.php/Services","Leistungen","http://www.bitplan.com/index.php/Leistungen"),
    new MenuItem("contact","Contact","http://www.bitplan.com/index.php/Contact","Kontakt","http://www.bitplan.com/index.php/Kontakt")
  };
  menu.addMenuItems(menuItems);
  MenuItem trainingMenuItems[]={
    new MenuItem("cpsaf","Software Architecture (iSAQB CPSA-F)","http://training.bitplan.com/index.php/Software_Architektur_(CPSA-F)_en","Software Architektur (iSAQB CPSA-F)","http://training.bitplan.com/index.php/Software_Architektur_(CPSA-F)"),
    new MenuItem("cprefl","Requirements Engineeering (IREB CPRE-FL)","http://training.bitplan.com/index.php/Requirements_Engineering_(CPRE-FL)_en","Requirements Engineeering (IREB CPRE-FL)","http://training.bitplan.com/index.php/Requirements_Engineering_(CPRE-FL)"),
    new MenuItem("cprealreqman","Requirements Engineering (IREB CPRE-AL)","http://wiki.bitplan.com/index.php/Requirements_Engineering_(CPRE-AL)_en","Requirements Engineering (IREB CPRE-AL)","http://www.bitplan.com/index.php/Requirements_Engineering_(CPRE-AL)")
  };
  menu.getMenuItem("training").addMenuItems(trainingMenuItems);
  MenuItem servicesMenuItems[]={
     new MenuItem("profiwiki","ProfiWiki","http://www.bitplan.com/index.php/ProfiWiki_en","ProfiWiki","http://www.bitplan.com/index.php/ProfiWiki"),
      new MenuItem("bitmypaper","bit my paper","http://www.bitplan.com/index.php/Bitmypaper","bit my paper","http://www.bitplan.com/index.php/Bitmypaper"),
     new MenuItem("smartGENERATOR","smartGENERATOR","http://www.bitplan.com/index.php/SmartGENERATOR","smartGENERATOR","http://www.bitplan.com/index.php/SmartGENERATOR"),
     new MenuItem("joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker","Software Engineering Joker","http://www.bitplan.com/index.php/Joker")
  };
  menu.getMenuItem("services").addMenuItems(servicesMenuItems);
}
@showMenu(de,menu)
}
@//BITPlan form handling
@def BITPlanForm(boolean de,Form form){
@{
 for (Field field:form.getFields()) { 
    field.labelClass="bitplanorange";
  }
}
@formvalidate(form)
  </head>
  <body>
  <div class="container">
@BITPlanMenu(de)
@showform(form) 
@formDebug(form)
   </div><!-- /.container -->
@footer(de)
}