Difference between revisions of "Design.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
@include(wiki.MediaWiki.Bootstrap.rythm)
 
@include(wiki.MediaWiki.Bootstrap.rythm)
 
@include(wiki.MediaWiki.BITPlan.rythm)
 
@include(wiki.MediaWiki.BITPlan.rythm)
 +
@include(wiki.MediaWiki.Menu.rythm)
 
@header(languageCode,title)
 
@header(languageCode,title)
 
@bootstrap()
 
@bootstrap()
Line 12: Line 13:
 
</head>
 
</head>
 
<body>
 
<body>
    <header>
+
@{
@if ("de".equals(languageCode)) {
+
  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");
        <a class='logo' href='http://training.bitplan.com/index.php/Willkommen'>
+
  MenuItem menuItems[]={
          <img src='http://wiki.bitplan.com/images/wiki/7/7a/BITPlanLogo2012FontLess.svg' width='100%'>
+
    new MenuItem("training","Trainings","http://training.bitplan.com/index.php/Trainings/en","Trainings","http://training.bitplan.com/index.php/Trainings"),
        </a>
+
    new MenuItem("services","Services","http://www.bitplan.com/index.php/Services","Leistungen","http://www.bitplan.com/index.php/Leistungen"),
        <nav>
+
    new MenuItem("contact","Contact","http://www.bitplan.com/index.php/Contact","Kontakt","http://www.bitplan.com/index.php/Kontakt")
          <a href='http://training.bitplan.com/index.php/Trainings'>Trainings</a>
+
  };
          <a href='http://www.bitplan.com/index.php/Leistungen'>Leistungen</a>
+
  menu.addMenuItems(menuItems);
          <a href='http://www.bitplan.com/index.php/Kontakt'>Kontakt</a>
 
        </nav>
 
} else {
 
        <a class='logo' href='http://training.bitplan.com/index.php/Welcome'>
 
          <img src='http://wiki.bitplan.com/images/wiki/7/7a/BITPlanLogo2012FontLess.svg' width='100%'>
 
        </a>
 
        <nav>
 
          <a href='http://training.bitplan.com/index.php/Trainings/en'>Trainings</a>
 
          <a href='http://www.bitplan.com/index.php/Services'>Services</a>
 
          <a href='http://www.bitplan.com/index.php/Contact'>Contact</a>
 
        </nav>
 
 
}
 
}
    </header>
+
@showMenu(de,menu)
 
   <div class="container">
 
   <div class="container">
 
   @(content)
 
   @(content)

Revision as of 09:11, 9 November 2017

Links

Source

@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@include(wiki.MediaWiki.BITPlan.rythm)
@include(wiki.MediaWiki.Menu.rythm)
@header(languageCode,title)
@bootstrap()
<script src="http://io.bitplan.com/js/tagcanvas.min.js" type="text/javascript"></script>
@style()
</head>
<body>
@{
  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)
  <div class="container">
  @(content)
  </div><!-- /.container -->
@footer(de)