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]


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:
 


  1. <!-- BEGIN DOC OPEN -->
  2. <!DOCTYPE....>
  3. <!-- END DOC OPEN -->
  4. <!-- BEGIN HEAD (only head section) -->
  5.     <!-- head elements here -->
  6. </head>
  7. <!-- END HEAD -->
  8. <!-- BEGIN BODY (whole body section) -->
  9. <!-- BEGIN PAGE WRAPPER -->
  10.     <div id="page"> <!--new wrapper, was called //container// in previous draft-->
  11. <!-- BEGIN PAGE HEADER -->
  12.         <div id="header"> <!--//id// instead of //class//-->
  13.             <h1 id="hn_main">PageTitle</h1>
  14.             <ul id="main_menu"> <!-- See WikkaMenus -->
  15.                 <li>menu item</li>
  16.                 ...
  17.             </ul>
  18.         </div><!-- end div "header" -->
  19. <!-- END PAGE HEADER -->
  20. <!-- BEGIN PAGE CONTENT -->    
  21.         <div id="content"> <!--currently called //page//, //id// instead of //class//-->
  22.         The quick brown fox jumps over the lazy dog
  23.         The quick brown fox jumps over the lazy dog
  24.         The quick brown fox jumps over the lazy dog  (main content)
  25.         The quick brown fox jumps over the lazy dog
  26.         The quick brown fox jumps over the lazy dog
  27.         </div><!-- end div "content" -->
  28. <!-- END PAGE CONTENT -->
  29. <!-- BEGIN COMMENT BLOCK -->
  30.         <div id="comments"> <!--new wrapper-->
  31.             <div id="commentheader"> <!--//id// instead of //class//-->
  32.             </div>
  33.             <div id="commentlist">
  34.                 <div class="comment">
  35.                 </div>
  36.                 <div class="comment">
  37.                 </div>
  38.                 ...
  39.             </div><!-- end div "commentlist" -->
  40.             <div id="commentform"> <!--//id// instead of //class//-->
  41.                 <!-- (form here) -->
  42.             </div><!-- end div "commentform" -->
  43.         </div><!-- end div "comments" -->
  44. <!-- END COMMENT BLOCK -->
  45. <!-- BEGIN PAGE FOOTER -->
  46.         <div id="footer"> <!--//id// instead of //class//-->
  47.             <ul id="extra_menu"> <!-- See WikkaMenus -->
  48.                 <li>menu item</li>
  49.                 ...
  50.             </ul>
  51.         </div><!-- end div "footer" -->
  52. <!-- END PAGE FOOTER -->
  53. <!-- BEGIN SYSTEM INFO -->
  54.         <div id="smallprint">
  55.         </div>
  56. <!-- END SYSTEM INFO -->
  57. <!-- BEGIN MICROTIME -->
  58.         <div id="microtime"> <!--new id for formatting (or masking) the microtime information-->
  59.         </div>
  60. <!-- END MICROTIME -->
  61.     </div><!-- end div "page" -->
  62. <!-- END PAGE WRAPPER -->
  63. </body>
  64. <!-- END BODY -->
  65. <!-- BEGIN DOC CLOSE -->
  66. </html>
  67. <!-- 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
There are 18 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki