]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - tpl/readme.txt
Version 0.0.32 beta:
[github/shaarli/Shaarli.git] / tpl / readme.txt
diff --git a/tpl/readme.txt b/tpl/readme.txt
new file mode 100644 (file)
index 0000000..d57080e
--- /dev/null
@@ -0,0 +1,42 @@
+===== Shaarli template organisation =====\r
+\r
+Any Shaarli page should conform to this RainTPL template:\r
+\r
+-----------------------------------------------------\r
+<html>\r
+<head>{include="includes"}</head>\r
+<body>\r
+       <div id="pageheader">{include="page.header"}</div>\r
+    You body goes here...\r
+    {include="page.footer"}\r
+</body>\r
+</html>\r
+-----------------------------------------------------\r
+\r
+If you want to also add something in the page header (in the dark area), do it here:\r
+\r
+<div id="pageheader">{include="page.header"}My menu goes here...</div>\r
+\r
+\r
+Example: "Add new link" form:\r
+-----------------------------------------------------\r
+<html>\r
+<head>{include="includes"}</head>\r
+<body onload="document.addform.post.focus();">\r
+<div id="pageheader">\r
+       {include="page.header"}\r
+       <div id="headerform">\r
+               <form method="GET" action="" name="addform" class="addform">\r
+                       <input type="text" name="post" style="width:50%;"> \r
+                       <input type="submit" value="Add link" class="bigbutton">\r
+               </form>\r
+       </div>\r
+</div>\r
+{include="page.footer"}\r
+</body>\r
+</html>\r
+-----------------------------------------------------\r
+\r
+\r
+\r
+\r