MyShaarli/tpl
ArthurHoaro 5f85fcd863 Working on shaarli/Shaarli#224
I reviewed character escaping everywhere with the following ideas:

  * use a single common function to escape user data: `escape` using `htmlspecialchars`.
  * sanitize fields in `index.php` after reading them from datastore and before sending them to templates.
  	It means no escaping function in Twig templates.
    2 reasons:
    * it reduces risks of security issue for future user made templates
    * more readable templates
  * sanitize user configuration fields after loading them.
2015-06-23 16:35:36 +02:00
..
addlink.html CSS: remove hardcoded style from templates 2014-12-03 19:28:43 +01:00
changepassword.html W3C compliance (work on issue #64 - https://github.com/shaarli/Shaarli/issues/64): 2015-01-08 10:15:05 +01:00
changetag.html Use awesomplete as autocomplete lib and remove jQuery - shaarli/Shaarli#148 2015-03-12 20:27:16 +01:00
configure.html change wording and variable names for "Hide public links" feature 2015-04-10 20:52:12 +02:00
daily.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
dailyrss.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
editlink.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
export.html W3C compliance (work on issue #64 - https://github.com/shaarli/Shaarli/issues/64): 2015-01-08 10:15:05 +01:00
import.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
includes.html fix broken URL for user.css 2015-03-05 18:14:25 +01:00
install.html shaarli/Shaarli#34: Make update check optional 2015-02-20 22:49:41 +01:00
linklist.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
linklist.paging.html W3C compliance (work on issue #64 - https://github.com/shaarli/Shaarli/issues/64): 2015-01-08 10:15:05 +01:00
loginform.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
page.footer.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
page.header.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
page.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
picwall.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
readme.txt Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
tagcloud.html Working on shaarli/Shaarli#224 2015-06-23 16:35:36 +02:00
tools.html Add Firefox Social API to the tools. Fixes #101. 2015-05-15 16:18:54 +00:00

===== Shaarli template organisation =====

Any Shaarli page should conform to this RainTPL template:

-----------------------------------------------------
<html>
<head>{include="includes"}</head>
<body>
	<div id="pageheader">{include="page.header"}</div>
    You body goes here...
    {include="page.footer"}
</body>
</html>
-----------------------------------------------------

If you want to also add something in the page header (in the dark area), do it here:

<div id="pageheader">{include="page.header"}My menu goes here...</div>


Example: "Add new link" form:
-----------------------------------------------------
<html>
<head>{include="includes"}</head>
<body onload="document.addform.post.focus();">
<div id="pageheader">
	{include="page.header"}
	<div id="headerform">
		<form method="GET" action="" name="addform" class="addform">
			<input type="text" name="post" style="width:50%;"> 
			<input type="submit" value="Add link" class="bigbutton">
		</form>
	</div>
</div>
{include="page.footer"}
</body>
</html>
-----------------------------------------------------