Difference between revisions of "MediaWiki:BITPlan.rythm"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
= Rythm Template = | = Rythm Template = | ||
<source lang='html'> | <source lang='html'> | ||
+ | @import com.bitplan.smw.PropertyMap | ||
+ | @import com.bitplan.wikifrontend.PostService | ||
+ | @import javax.ws.rs.core.MultivaluedMap | ||
+ | @args() { | ||
+ | String content, | ||
+ | String lang, | ||
+ | String title, | ||
+ | PostService postService, | ||
+ | String postToken, | ||
+ | PropertyMap smwprops; | ||
+ | } | ||
@{ | @{ | ||
Object languageCodeObj=smwprops.get("_LCODE"); | Object languageCodeObj=smwprops.get("_LCODE"); |
Revision as of 14:18, 3 November 2017
Links
Rythm Template
@import com.bitplan.smw.PropertyMap
@import com.bitplan.wikifrontend.PostService
@import javax.ws.rs.core.MultivaluedMap
@args() {
String content,
String lang,
String title,
PostService postService,
String postToken,
PropertyMap smwprops;
}
@{
Object languageCodeObj=smwprops.get("_LCODE");
String languageCode="de";
if (languageCodeObj!=null) {
languageCode=languageCodeObj.toString();
}
boolean de="de".equals(languageCode);
}
@// BITPlan style definitions
@def style()
<style>
body{
margin: 2vw auto;
max-width: 60em;
}
* {
font-family: Arial, Helvetica, sans-serif;
}
header,footer{
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;
}
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>
}
@// the BITPlan imprint footer
@def footer(String languageCode) {
<footer>
<nav>
<span class='copyright'>© 2017
<a href='http://www.bitplan.com'>BITPlan GmbH.</a> Alle Rechte vorbehalten.
</span>
@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>
</footer>
</body>
</html>
}