Difference between revisions of "MediaWiki:BITPlan.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
= Rythm Template =
 
= Rythm Template =
 
<source lang='html'>
 
<source lang='html'>
@// BITPlan style definitions
+
@// Rythm template for the WikiCMS approach
@def style()  
+
@include(wiki.MediaWiki.Bootstrap.rythm)
  <style>
+
@include(wiki.MediaWiki.BITPlanStyle.rythm)
    a:hover {
+
@include(wiki.MediaWiki.Menu.rythm)
      color: #FFFFFF;
+
@// BITPlan header
      background-color: rgba(255,128,00,0.5);
+
@def BITPlanHeader(String languageCode, String title) {
    }
+
@header(languageCode,title)
    h1,h2,h3,.bitplanorange {
+
@bootstrap()
      color: #FF8000;
+
@style()
    }
 
    .floatleft {
 
      float: left;
 
      margin: 1vw;
 
    }
 
    .floatright {
 
      float: right;
 
      margin: 1vw;
 
    }
 
    footer{
 
      text-align: center;
 
    }
 
    .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
span.lang-en, span.lang-En {
+
@def BITPlanMenu(){
padding-right: 25px;
 
background: url(http://wiki.bitplan.com/images/7/78/Lang-En.gif) center right no-repeat;
 
}
 
  </style>
 
}
 
@// the BITPlan imprint footer
 
@def footer(boolean de) {
 
<footer class='container'>
 
      <nav>
 
        <span class='copyright'>© 2017&nbsp;
 
          <a href='http://www.bitplan.com'>BITPlan GmbH.</a>&nbsp;@(de?"Alle Rechte vorbehalten":"All rights reserved").
 
        </span>
 
        &nbsp;
 
        <span class='imprint'><a href='http://training.bitplan.com/index.php/@(de?"Impressum":"Imprint")'>@(de?"Impressum":"Imprint")</a></span>
 
      </nav>
 
    </footer>
 
  </body>
 
</html>
 
 
}
 
}
 
</source>
 
</source>
 
[[Category:RythmTemplate]]
 
[[Category:RythmTemplate]]

Revision as of 09:31, 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(){
}