MyShaarli/tpl
Sébastien SAUVAGE af77b2fd9a New QR-Code generation code
* QR-Code generation now uses a client-side javascript library instead of an external service. This is better for user privacy.
* Library used is http://neocotic.com/qr.js/ (11 kb).
* jQuery is no longer used to display QR-Code (this is a first step in removing jQuery entirely).
* This library is loaded *only* if the QR-Code icon is clicked.
* If javascript is disabled, it will fallback to the external service.
* External service was changed from "invx.com" to "qrfree.kaywa.com" because invx has become bloated.

By loading the javascript library *only* if the icon is clicked, it will prevent the 11 kb lib to be loaded in every page.
2013-09-25 15:17:09 +02:00
..
addlink.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
changepassword.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
changetag.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
configure.html [add] https://github.com/sebsauvage/Shaarli/issues/20 New links created as private by default. 2013-03-04 10:18:39 +01:00
daily.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
dailyrss.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
editlink.html [add] https://github.com/sebsauvage/Shaarli/issues/20 New links created as private by default. 2013-03-04 10:18:39 +01:00
export.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
import.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
includes.html Added option to disable jQuery and heavy javascript 2013-03-01 22:21:10 +01:00
install.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
linklist.html New QR-Code generation code 2013-09-25 15:17:09 +02:00
linklist.paging.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
loginform.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
page.footer.html Avoid highlighting paging stuff 2013-03-10 18:26:16 +01:00
page.header.html Corrected vulnerabilities (see report below) 2013-03-03 22:15:38 +01:00
page.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
picwall.html Move lazyload init inside the body tag 2013-03-10 19:04:48 +01:00
picwall2.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
readme.txt Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
tagcloud.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01:00
tools.html Initial commit (version 0.0.40 beta) 2013-02-26 10:09:41 +01: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>
-----------------------------------------------------