Difference between revisions of "Grid.rythm"

From BITPlan Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
   </div>
 
   </div>
 
}
 
}
 +
@(content)
 
</div>
 
</div>
@(content)
 
 
</body>
 
</body>
 
</html>
 
</html>
 
</source>
 
</source>
 
[[Category:RythmTemplate]]
 
[[Category:RythmTemplate]]

Revision as of 15:40, 8 November 2017

Links

Rythm template

@// Rythm template for the WikiCMS approach
@include(wiki.MediaWiki.Bootstrap.rythm)
@header(lang,title)
@bootstrap()
</head>
<body>
<div class='container'>
@{ 
  int cols[]={1,2,3,4,6,12};
}
@for (int colnum:cols) {
  <div class='row' style='background:#FCFCFC;'>
  @for (int cindex=1;cindex<=colnum;cindex++) {
    @{ int colwidth=12/colnum;}
     <div class='col-xs-@(colwidth)'>@(cindex)</div>
  }
  </div>
}
@(content)
</div>
</body>
</html>