Difference between revisions of "MediaWiki:BITPlan.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Links =
 
= Links =
 +
* {{Link|target=MediaWiki:Menu.rythm}}
 +
* {{Link|target=MediaWiki:Bootstrap.rythm}}
 +
 
= Rythm Template =
 
= Rythm Template =
 
<source lang='html'>
 
<source lang='html'>
@def style()  
+
@// Rythm template for the WikiCMS approach
  <style>
+
@include(wiki.MediaWiki.Bootstrap.rythm)
    body{
+
@include(wiki.MediaWiki.BITPlanStyle.rythm)
      margin: 2vw auto;
+
@include(wiki.MediaWiki.Menu.rythm)
      max-width: 60em;
+
@include(wiki.MediaWiki.Form.rythm)
    }
+
@// BITPlan header
    * {
+
@def BITPlanHeader(String languageCode, String title) {
      font-family: Arial, Helvetica, sans-serif;
+
@header(languageCode,title)
    }
+
@bootstrap()
    header,footer{
+
@style()
      background-color: #FFFFFF;
 
      text-align: center;
 
    }
 
    footer {
 
      clear:both;
 
    }
 
    nav a:link,a:visited {
 
      text-decoration: none;
 
    }
 
    a:hover {
 
      color: #FFFFFF;
 
      background-color: rgba(255,128,00,0.5);
 
    }
 
    main,article{
 
    }
 
    main {
 
      padding: 2vw;margin:1vw;
 
    }
 
    h1,h2,h3 {
 
      color: #FF8000;
 
    }
 
    .floatleft {
 
      float: left;
 
      margin: 1vw;
 
    }
 
    .floatright {
 
      float: right;
 
      margin: 1vw;
 
    }
 
    .logo {
 
      width: 6vw;
 
      float:left;
 
    }
 
    .copyright {
 
      font-size: 0.5vw;
 
    }
 
    .imprint {
 
      font-size: 0.8vw;
 
    }
 
    ul li{
 
      margin-bottom:1vh;
 
    }
 
 
 
/** Language styles */
 
 
 
span.lang-de, span.lang-De {
 
padding-right: 25px;
 
background: url(http://wiki.bitplan.com/images/e/e7/Lang-De.gif) center right no-repeat;
 
 
}
 
}
 +
@// 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("products","Products","http://www.bitplan.com/index.php/Products","Produkte","http://www.bitplan.com/index.php/Produkte"),
 +
    new MenuItem("opensource","Open Source","http://www.bitplan.com/index.php/OpenSource","Open Source","http://www.bitplan.com/index.php/OpenSource"),
 +
    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 productMenuItems[]={
 +
    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")
 +
  };
 +
  menu.getMenuItem("products").addMenuItems(productMenuItems);
 +
MenuItem openSourceMenuItems[]={
 +
  new MenuItem("Self Driving RC Car","Dukes of Hazzard self driving RC car","http://www.bitplan.com/Self_Driving_RC_Car","Dukes of Hazzard self driving RC car","http://www.bitplan.com/Self_Driving_RC_Car"),
 +
  new MenuItem("radolan","RADOLAN - Regenradar Parser","http://www.bitplan.com/index.php/Radolan","Radolan Rainradar Parser","http://www.bitplan.com/index.php/Radolan"),
 +
  new MenuItem("can4eve","In-Car Software for Electric Vehicles","http://can4eve.bitplan.com/index.php/Main_Page","In-Car Software for Electric Vehicles","http://can4eve.bitplan.com/index.php/Main_Page"),
 +
  new MenuItem("simplegraph","Simple Graph wrapper for Gremlin/Tinkerpop","http://www.bitplan.com/index.php/SimpleGraph","Simple Graph wrapper for Gremlin/Tinkerpop","http://www.bitplan.com/index.php/SimpleGraph"),
 +
  new MenuItem("simplerest","Simple Jersey RESTFul Framework","http://www.bitplan.com/index.php/SimpleRest","Simple Jersey RESTFul Framework","http://www.bitplan.com/index.php/SimpleRest")
 +
  };
 +
menu.getMenuItem("opensource").addMenuItems(openSourceMenuItems);
 +
  MenuItem servicesMenuItems[]={
 +
    new MenuItem("coaching","Coaching","http://www.bitplan.com/index.php/Coaching_en","Coaching","http://www.bitplan.com/index.php/Coaching"),
 +
    new MenuItem("qualitygate","Quality Gate","http://www.bitplan.com/index.php/Quality_Gate_en","Quality Gate","http://www.bitplan.com/index.php/Quality Gate"),
 +
    new MenuItem("development","Professional Services","http://www.bitplan.com/index.php/Professional_Services","Software Entwicklung","http://www.bitplan.com/index.php/Softwareentwicklung"),
 +
    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);
  
span.lang-en, span.lang-En {
 
padding-right: 25px;
 
background: url(http://wiki.bitplan.com/images/7/78/Lang-En.gif) center right no-repeat;
 
 
}
 
}
  </style>
+
@showMenu(de,menu)
 
}
 
}
@// the BITPlan imprint footer
+
@//BITPlan form handling
@def footer(String languageCode) {
+
@def BITPlanForm(boolean de,Form form){
  <footer>
+
@{
      <nav>
+
  for (Field field:form.getFields()) {  
        <span class='copyright'>© 2017&nbsp;
+
    field.labelClass="bitplanorange";
          <a href='http://www.bitplan.com'>BITPlan GmbH.</a>&nbsp;Alle Rechte vorbehalten.
+
  }
        </span>
 
        &nbsp;
 
@if ("de".equals(languageCode)) {
 
        <span class='imprint'><a href='http://training.bitplan.com/index.php/Impressum'>Impressum</a></span>
 
} else {
 
        <span class='imprint'><a href='http://training.bitplan.com/index.php/Imprint'>Imprint</a></span>
 
 
}
 
}
      </nav>
+
@formvalidate(form)
    </footer>
+
  </head>
   </body>
+
  <body>
</html>
+
   <div class="container">
 +
@BITPlanMenu(de)
 +
@showform(form)
 +
@formDebug(form)
 +
  </div><!-- /.container -->
 +
@footer(de)
 
}
 
}
 
</source>
 
</source>
 +
[[Category:RythmTemplate]]

Latest revision as of 08:31, 24 September 2019

Links

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("products","Products","http://www.bitplan.com/index.php/Products","Produkte","http://www.bitplan.com/index.php/Produkte"),
    new MenuItem("opensource","Open Source","http://www.bitplan.com/index.php/OpenSource","Open Source","http://www.bitplan.com/index.php/OpenSource"),
    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 productMenuItems[]={
     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")
  };
  menu.getMenuItem("products").addMenuItems(productMenuItems);
MenuItem openSourceMenuItems[]={
   new MenuItem("Self Driving RC Car","Dukes of Hazzard self driving RC car","http://www.bitplan.com/Self_Driving_RC_Car","Dukes of Hazzard self driving RC car","http://www.bitplan.com/Self_Driving_RC_Car"),
  new MenuItem("radolan","RADOLAN - Regenradar Parser","http://www.bitplan.com/index.php/Radolan","Radolan Rainradar Parser","http://www.bitplan.com/index.php/Radolan"),
   new MenuItem("can4eve","In-Car Software for Electric Vehicles","http://can4eve.bitplan.com/index.php/Main_Page","In-Car Software for Electric Vehicles","http://can4eve.bitplan.com/index.php/Main_Page"),
   new MenuItem("simplegraph","Simple Graph wrapper for Gremlin/Tinkerpop","http://www.bitplan.com/index.php/SimpleGraph","Simple Graph wrapper for Gremlin/Tinkerpop","http://www.bitplan.com/index.php/SimpleGraph"),
   new MenuItem("simplerest","Simple Jersey RESTFul Framework","http://www.bitplan.com/index.php/SimpleRest","Simple Jersey RESTFul Framework","http://www.bitplan.com/index.php/SimpleRest")
  };
 menu.getMenuItem("opensource").addMenuItems(openSourceMenuItems);
  MenuItem servicesMenuItems[]={
     new MenuItem("coaching","Coaching","http://www.bitplan.com/index.php/Coaching_en","Coaching","http://www.bitplan.com/index.php/Coaching"),
     new MenuItem("qualitygate","Quality Gate","http://www.bitplan.com/index.php/Quality_Gate_en","Quality Gate","http://www.bitplan.com/index.php/Quality Gate"),
     new MenuItem("development","Professional Services","http://www.bitplan.com/index.php/Professional_Services","Software Entwicklung","http://www.bitplan.com/index.php/Softwareentwicklung"),
     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)
}