Difference between revisions of "MediaWiki:BITPlan.rythm"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
@// BITPlan menu | @// BITPlan menu | ||
@def BITPlanMenu(){ | @def BITPlanMenu(){ | ||
+ | @{ | ||
+ | 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); | ||
+ | } | ||
+ | @showMenu(de,menu) | ||
} | } | ||
</source> | </source> | ||
[[Category:RythmTemplate]] | [[Category:RythmTemplate]] |
Revision as of 09:33, 9 November 2017
Links
Rythm Template
@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@include(wiki.MediaWiki.BITPlanStyle.rythm)
@include(wiki.MediaWiki.Menu.rythm)
@// BITPlan header
@def BITPlanHeader(String languageCode, String title) {
@header(languageCode,title)
@bootstrap()
@style()
}
@// BITPlan menu
@def BITPlanMenu(){
@{
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);
}
@showMenu(de,menu)
}