A new layout for Wikka?
Last edited by DarTar:
Replaces old-style internal links with new pipe-split links.
Fri, 20 May 2016 07:38 UTC [diff]
Replaces old-style internal links with new pipe-split links.
Fri, 20 May 2016 07:38 UTC [diff]
See also:
For several (mainly "historical") reasons, the HTML output produced by Wikka does not allow optimal control on the layout. Here's a proposal for a more structured template:- The current Wikka CSS: WikkaSkins
- <!-- BEGIN DOC OPEN -->
- <!DOCTYPE....>
- <html>
- <!-- END DOC OPEN -->
- <!-- BEGIN HEAD (only head section) -->
- <head>
- <!-- head elements here -->
- </head>
- <!-- END HEAD -->
- <!-- BEGIN BODY (whole body section) -->
- <body>
- <!-- BEGIN PAGE WRAPPER -->
- <div id="page"> <!--new wrapper, was called //container// in previous draft-->
- <!-- BEGIN PAGE HEADER -->
- <div id="header"> <!--//id// instead of //class//-->
- <ul id="main_menu"> <!-- See WikkaMenus -->
- ...
- </ul>
- </div><!-- end div "header" -->
- <!-- END PAGE HEADER -->
- <!-- BEGIN PAGE CONTENT -->
- <div id="content"> <!--currently called //page//, //id// instead of //class//-->
- The quick brown fox jumps over the lazy dog
- The quick brown fox jumps over the lazy dog
- The quick brown fox jumps over the lazy dog (main content)
- The quick brown fox jumps over the lazy dog
- The quick brown fox jumps over the lazy dog
- </div><!-- end div "content" -->
- <!-- END PAGE CONTENT -->
- <!-- BEGIN COMMENT BLOCK -->
- <div id="comments"> <!--new wrapper-->
- <div id="commentheader"> <!--//id// instead of //class//-->
- </div>
- <div id="commentlist">
- <div class="comment">
- </div>
- <div class="comment">
- </div>
- ...
- </div><!-- end div "commentlist" -->
- <div id="commentform"> <!--//id// instead of //class//-->
- <!-- (form here) -->
- </div><!-- end div "commentform" -->
- </div><!-- end div "comments" -->
- <!-- END COMMENT BLOCK -->
- <!-- BEGIN PAGE FOOTER -->
- <div id="footer"> <!--//id// instead of //class//-->
- <ul id="extra_menu"> <!-- See WikkaMenus -->
- ...
- </ul>
- </div><!-- end div "footer" -->
- <!-- END PAGE FOOTER -->
- <!-- BEGIN SYSTEM INFO -->
- <div id="smallprint">
- </div>
- <!-- END SYSTEM INFO -->
- <!-- BEGIN MICROTIME -->
- <div id="microtime"> <!--new id for formatting (or masking) the microtime information-->
- </div>
- <!-- END MICROTIME -->
- </div><!-- end div "page" -->
- <!-- END PAGE WRAPPER -->
- </body>
- <!-- END BODY -->
- <!-- BEGIN DOC CLOSE -->
- </html>
- <!-- END DOC CLOSE -->
Hope it's clear what I'm trying to do... if not, let me know. We definitely should move to a better structure, both in generated code as well as in which parts of PHP code do the generating. More later... --JavaWoman
Small tweak: wrapped comments in a div as well which may help in styling. And main heading properly a h1, with id. Small id name changes. --JavaWoman
CategoryDevelopmentDiscussion CategoryLayout