diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/addlink.html | 15 | ||||
-rw-r--r-- | tpl/changepassword.html | 14 | ||||
-rw-r--r-- | tpl/changetag.html | 15 | ||||
-rw-r--r-- | tpl/configure.html | 19 | ||||
-rw-r--r-- | tpl/editlink.html | 27 | ||||
-rw-r--r-- | tpl/export.html | 14 | ||||
-rw-r--r-- | tpl/import.html | 20 | ||||
-rw-r--r-- | tpl/includes.html | 7 | ||||
-rw-r--r-- | tpl/install.html | 20 | ||||
-rw-r--r-- | tpl/linklist.html | 61 | ||||
-rw-r--r-- | tpl/linklist.paging.html | 9 | ||||
-rw-r--r-- | tpl/loginform.html | 25 | ||||
-rw-r--r-- | tpl/page.footer.html | 20 | ||||
-rw-r--r-- | tpl/page.header.html | 24 | ||||
-rw-r--r-- | tpl/page.html | 8 | ||||
-rw-r--r-- | tpl/picwall.html | 16 | ||||
-rw-r--r-- | tpl/picwall2.html | 18 | ||||
-rw-r--r-- | tpl/readme.txt | 42 | ||||
-rw-r--r-- | tpl/tagcloud.html | 14 | ||||
-rw-r--r-- | tpl/tools.html | 18 |
20 files changed, 406 insertions, 0 deletions
diff --git a/tpl/addlink.html b/tpl/addlink.html new file mode 100644 index 00000000..7dd767cc --- /dev/null +++ b/tpl/addlink.html | |||
@@ -0,0 +1,15 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body onload="document.addform.post.focus();"> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="headerform"> | ||
7 | <form method="GET" action="" name="addform" class="addform"> | ||
8 | <input type="text" name="post" style="width:50%;"> | ||
9 | <input type="submit" value="Add link" class="bigbutton"> | ||
10 | </form> | ||
11 | </div> | ||
12 | </div> | ||
13 | {include="page.footer"} | ||
14 | </body> | ||
15 | </html> \ No newline at end of file | ||
diff --git a/tpl/changepassword.html b/tpl/changepassword.html new file mode 100644 index 00000000..acd61f55 --- /dev/null +++ b/tpl/changepassword.html | |||
@@ -0,0 +1,14 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body onload="document.changepasswordform.oldpassword.focus();"> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <form method="POST" action="" name="changepasswordform" id="changepasswordform"> | ||
7 | Old password: <input type="password" name="oldpassword"> | ||
8 | New password: <input type="password" name="setpassword"> | ||
9 | <input type="hidden" name="token" value="{$token}"> | ||
10 | <input type="submit" name="Save" value="Save password" class="bigbutton"></form> | ||
11 | </div> | ||
12 | {include="page.footer"} | ||
13 | </body> | ||
14 | </html> \ No newline at end of file | ||
diff --git a/tpl/changetag.html b/tpl/changetag.html new file mode 100644 index 00000000..a8ecfb4f --- /dev/null +++ b/tpl/changetag.html | |||
@@ -0,0 +1,15 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body onload="document.changetag.fromtag.focus();"> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <form method="POST" action="" name="changetag" id="changetag"> | ||
7 | <input type="hidden" name="token" value="{$token}"> | ||
8 | Tag: <input type="text" name="fromtag" id="fromtag"> | ||
9 | <input type="text" name="totag" style="margin-left:40px;"><input type="submit" name="renametag" value="Rename tag" class="bigbutton"> | ||
10 | or <input type="submit" name="deletetag" value="Delete tag" class="bigbutton" onClick="return confirmDeleteTag();"><br>(Case sensitive)</form> | ||
11 | <script language="JavaScript">function confirmDeleteTag() { var agree=confirm("Are you sure you want to delete this tag from all links ?"); if (agree) return true ; else return false ; }</script> | ||
12 | </div> | ||
13 | {include="page.footer"} | ||
14 | </body> | ||
15 | </html> \ No newline at end of file | ||
diff --git a/tpl/configure.html b/tpl/configure.html new file mode 100644 index 00000000..f13ecb9a --- /dev/null +++ b/tpl/configure.html | |||
@@ -0,0 +1,19 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body onload="document.configform.title.focus();"> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | {$timezone_js} | ||
7 | <form method="POST" action="" name="configform" id="configform"> | ||
8 | <input type="hidden" name="token" value="{$token}"> | ||
9 | <table border="0" cellpadding="20"> | ||
10 | <tr><td><b>Page title:</b></td><td><input type="text" name="title" id="title" size="50" value="{$title}"></td></tr> | ||
11 | <tr><td valign="top"><b>Timezone:</b></td><td>{$timezone_form}</td></tr> | ||
12 | <tr><td valign="top"><b>Redirector</b></td><td><input type="text" name="redirector" id="redirector" size="50" value="{$redirector}"><br>(e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)</td></tr> | ||
13 | <tr><td></td><td align="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr> | ||
14 | </table> | ||
15 | </form> | ||
16 | </div> | ||
17 | {include="page.footer"} | ||
18 | </body> | ||
19 | </html> \ No newline at end of file | ||
diff --git a/tpl/editlink.html b/tpl/editlink.html new file mode 100644 index 00000000..2225fbab --- /dev/null +++ b/tpl/editlink.html | |||
@@ -0,0 +1,27 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body | ||
4 | {if condition="$link.title==''"}onload="document.linkform.lf_title.focus();" | ||
5 | {elseif condition="$link.description==''"}onload="document.linkform.lf_description.focus();" | ||
6 | {else}onload="document.linkform.lf_tags.focus();"{/if} > | ||
7 | <div id="pageheader"> | ||
8 | {include="page.header"} | ||
9 | <div id="editlinkform"> | ||
10 | <form method="post" name="linkform"> | ||
11 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> | ||
12 | <i>URL</i><br><input type="text" name="lf_url" value="{$link.url|htmlspecialchars}" style="width:100%"><br> | ||
13 | <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br> | ||
14 | <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br> | ||
15 | <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br> | ||
16 | <input type="checkbox" {if condition="$link.private!=0"}checked="yes"{/if} style="margin:7 0 10 0;" name="lf_private"> <i>Private</i><br> | ||
17 | <input type="submit" value="Save" name="save_edit" class="bigbutton" style="margin-left:40px;"> | ||
18 | <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton" style="margin-left:40px;"> | ||
19 | {if condition="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton" style="margin-left:180px;" onClick="return confirmDeleteLink();">{/if} | ||
20 | <input type="hidden" name="token" value="{$token}"> | ||
21 | {if condition="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer|htmlspecialchars}">{/if} | ||
22 | </form> | ||
23 | </div> | ||
24 | </div> | ||
25 | {include="page.footer"} | ||
26 | </body> | ||
27 | </html> \ No newline at end of file | ||
diff --git a/tpl/export.html b/tpl/export.html new file mode 100644 index 00000000..ccfcfcf1 --- /dev/null +++ b/tpl/export.html | |||
@@ -0,0 +1,14 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="toolsdiv"> | ||
7 | <a href="?do=export&what=all"><b>Export all</b> <span>: Export all links</span></a><br><br> | ||
8 | <a href="?do=export&what=public"><b>Export public</b> <span>: Export public links only</a><br><br> | ||
9 | <a href="?do=export&what=private"><b>Export private</b> <span>: Export private links only</a><br><br style="clear:both;"> | ||
10 | </div> | ||
11 | </div> | ||
12 | {include="page.footer"} | ||
13 | </body> | ||
14 | </html> \ No newline at end of file | ||
diff --git a/tpl/import.html b/tpl/import.html new file mode 100644 index 00000000..95df723e --- /dev/null +++ b/tpl/import.html | |||
@@ -0,0 +1,20 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body onload="document.uploadform.filetoupload.focus();"> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="uploaddiv"> | ||
7 | Import Netscape html bookmarks (as exported from Firefox/Chrome/Opera/delicious/diigo...) (Max: {$maxfilesize|htmlspecialchars} bytes). | ||
8 | <form method="POST" action="?do=upload" enctype="multipart/form-data" name="uploadform" id="uploadform"> | ||
9 | <input type="hidden" name="token" value="{$token}"> | ||
10 | <input type="file" name="filetoupload" size="80"> | ||
11 | <input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize|htmlspecialchars}"> | ||
12 | <input type="submit" name="import_file" value="Import" class="bigbutton"><br> | ||
13 | <input type="checkbox" name="private" id="private"><label for="private"> Import all links as private</label><br> | ||
14 | <input type="checkbox" name="overwrite" id="overwrite"><label for="overwrite"> Overwrite existing links</label> | ||
15 | </form> | ||
16 | </div> | ||
17 | </div> | ||
18 | {include="page.footer"} | ||
19 | </body> | ||
20 | </html> \ No newline at end of file | ||
diff --git a/tpl/includes.html b/tpl/includes.html new file mode 100644 index 00000000..c70b44e3 --- /dev/null +++ b/tpl/includes.html | |||
@@ -0,0 +1,7 @@ | |||
1 | <title>{$pagetitle}</title> | ||
2 | <link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" /> | ||
3 | <link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" /> | ||
4 | <link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" /> | ||
5 | <link type="text/css" rel="stylesheet" href="inc/shaarli.css?version={$version}#" /> | ||
6 | {if condition="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />{/if} | ||
7 | <script language="JavaScript" src="inc/jquery.min.js#"></script><script language="JavaScript" src="inc/jquery-ui.custom.min.js#"></script> | ||
diff --git a/tpl/install.html b/tpl/install.html new file mode 100644 index 00000000..1e48a185 --- /dev/null +++ b/tpl/install.html | |||
@@ -0,0 +1,20 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}{$timezone_js}</head> | ||
3 | <body onload="document.installform.setlogin.focus();"> | ||
4 | <div style="margin-left:20px;"> | ||
5 | <h1>Shaarli</h1> | ||
6 | It looks like it's the first time you run Shaarli. Please configure it:<br> | ||
7 | <div style="color:white !important;"> | ||
8 | <form method="POST" action="" name="installform" id="installform" style="border:1px solid black; padding:10 10 10 10;"> | ||
9 | <table border="0" cellpadding="20"> | ||
10 | <tr><td><b>Login:</b></td><td><input type="text" name="setlogin" size="30"></td></tr> | ||
11 | <tr><td><b>Password:</b></td><td><input type="password" name="setpassword" size="30"></td></tr> | ||
12 | {$timezone_html} | ||
13 | <tr><td><b>Page title:</b></td><td><input type="text" name="title" size="30"></td></tr> | ||
14 | <tr><td></td><td align="right"><input type="submit" name="Save" value="Save config" class="bigbutton"></td></tr> | ||
15 | </table> | ||
16 | </form> | ||
17 | </div> | ||
18 | {include="page.footer"} | ||
19 | </body> | ||
20 | </html> \ No newline at end of file | ||
diff --git a/tpl/linklist.html b/tpl/linklist.html new file mode 100644 index 00000000..c7de5b87 --- /dev/null +++ b/tpl/linklist.html | |||
@@ -0,0 +1,61 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="headerform" style="width:100%; white-space:nowrap;";> | ||
7 | <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form> | ||
8 | <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="searchtags" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form> | ||
9 | </div> | ||
10 | </div> | ||
11 | |||
12 | <div id="linklist"> | ||
13 | |||
14 | {include="linklist.paging"} | ||
15 | |||
16 | {if="$search_type=='fulltext'"} | ||
17 | <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> | ||
18 | {/if} | ||
19 | {if="$search_type=='tags'"} | ||
20 | <div id="searchcriteria">{$result_count} results for tags <i> | ||
21 | {loop="search_crits"} | ||
22 | <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span style="border-left:1px solid #aaa; padding-left:5px; color:#6767A7;">x</span></a></span> | ||
23 | {/loop}</i></div> | ||
24 | {/if} | ||
25 | |||
26 | <ul> | ||
27 | {loop="links"} | ||
28 | <li{if="$value.class"} class="{$value.class}"{/if}> | ||
29 | <div class="thumbnail">{$value.url|thumbnail}</div> | ||
30 | <div class="linkcontainer"> | ||
31 | <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span> | ||
32 | {if="isLoggedIn()"} | ||
33 | <form method="GET" class="buttoneditform"><input type="hidden" name="edit_link" value="{$value.linkdate}"><input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"></form> | ||
34 | <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> | ||
35 | <input type="hidden" name="token" value="{$token}"><input type="hidden" name="delete_link"><input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();"></form> | ||
36 | {/if} | ||
37 | <br> | ||
38 | {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if} | ||
39 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | ||
40 | <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> | ||
41 | {else} | ||
42 | <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span> | ||
43 | {/if} | ||
44 | <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br> | ||
45 | {if="$value.tags"} | ||
46 | <div class="linktaglist"> | ||
47 | {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|htmlspecialchars}">{$value|htmlspecialchars}</a></span> {/loop} | ||
48 | </div> | ||
49 | {/if} | ||
50 | </div> | ||
51 | </li> | ||
52 | {/loop} | ||
53 | </ul> | ||
54 | |||
55 | {include="linklist.paging"} | ||
56 | |||
57 | </div> | ||
58 | |||
59 | {include="page.footer"} | ||
60 | </body> | ||
61 | </html> \ No newline at end of file | ||
diff --git a/tpl/linklist.paging.html b/tpl/linklist.paging.html new file mode 100644 index 00000000..27e7440d --- /dev/null +++ b/tpl/linklist.paging.html | |||
@@ -0,0 +1,9 @@ | |||
1 | <div class="paging"> | ||
2 | <div style="float:right; padding-right:5px;"> | ||
3 | Links per page: <a href="?linksperpage=20">20</a> <a href="?linksperpage=50">50</a> <a href="?linksperpage=100">100</a> | ||
4 | <form method="GET" style="display:inline;" class="linksperpage"><input type="text" name="linksperpage" size="2" style="height:15px;"></form> | ||
5 | </div> | ||
6 | {if="$previous_page_url"} <a href="{$previous_page_url}">◄Older</a> {/if} | ||
7 | <span style="color:#fff; padding:0 20 0 20;">page {$page_current} / {$page_max} </span> | ||
8 | {if="$next_page_url"} <a href="{$next_page_url}">Newer►</a> {/if} | ||
9 | </div> \ No newline at end of file | ||
diff --git a/tpl/loginform.html b/tpl/loginform.html new file mode 100644 index 00000000..5a81fde1 --- /dev/null +++ b/tpl/loginform.html | |||
@@ -0,0 +1,25 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body{if="ban_canLogin()"} onload="document.loginform.login.focus();"{/if}> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | |||
7 | <div id="headerform"> | ||
8 | {if="!ban_canLogin()"} | ||
9 | You have been banned from login after too many failed attempts. Try later. | ||
10 | {else} | ||
11 | <form method="post" name="loginform"> | ||
12 | Login: <input type="text" name="login" tabindex="1"> | ||
13 | Password : <input type="password" name="password" tabindex="2"> | ||
14 | <input type="submit" value="Login" class="bigbutton" tabindex="4"><br> | ||
15 | <input style="margin:10 0 0 40;" type="checkbox" name="longlastingsession" id="longlastingsession" tabindex="3"><label for="longlastingsession"> Stay signed in (Do not check on public computers)</label> | ||
16 | <input type="hidden" name="token" value="{$token}"> | ||
17 | {if="$returnurl"}<input type="hidden" name="returnurl" value="{$returnurl|htmlspecialchars}">{/if} | ||
18 | </form> | ||
19 | {/if} | ||
20 | </div> | ||
21 | </div> | ||
22 | |||
23 | {include="page.footer"} | ||
24 | </body> | ||
25 | </html> \ No newline at end of file | ||
diff --git a/tpl/page.footer.html b/tpl/page.footer.html new file mode 100644 index 00000000..80a000bb --- /dev/null +++ b/tpl/page.footer.html | |||
@@ -0,0 +1,20 @@ | |||
1 | <div id="footer"> | ||
2 | <b><a href="http://sebsauvage.net/wiki/doku.php?id=php:shaarli">Shaarli {$version}</a></b> - The personal, minimalist, super-fast, no-database delicious clone. By <a href="http://sebsauvage.net" target="_blank">sebsauvage.net</a>. Theme by <a href="http://blog.idleman.fr" target="_blank">idleman.fr</a>. | ||
3 | </div> | ||
4 | {if="$newversion"} | ||
5 | <div id="newversion"><span style="text-decoration:blink;">●</span> Shaarli {$newversion|htmlspecialchars} is <a href="http://sebsauvage.net/wiki/doku.php?id=php:shaarli#download">available</a>.</div> | ||
6 | {/if} | ||
7 | {if="isLoggedIn()"} | ||
8 | <script language="JavaScript">function confirmDeleteLink() { var agree=confirm("Are you sure you want to delete this link ?"); if (agree) return true ; else return false ; }</script> | ||
9 | {/if} | ||
10 | |||
11 | {if="$GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()"} | ||
12 | <script language="JavaScript"> | ||
13 | $(document).ready(function() | ||
14 | { | ||
15 | $('#lf_tags').autocomplete({source:'{$source}?ws=tags',minLength:1}); | ||
16 | $('#searchtags').autocomplete({source:'{$source}?ws=tags',minLength:1}); | ||
17 | $('#fromtag').autocomplete({source:'{$source}?ws=singletag',minLength:1}); | ||
18 | }); | ||
19 | </script> | ||
20 | {/if} | ||
diff --git a/tpl/page.header.html b/tpl/page.header.html new file mode 100644 index 00000000..72965a87 --- /dev/null +++ b/tpl/page.header.html | |||
@@ -0,0 +1,24 @@ | |||
1 | |||
2 | <div id="logo" title="Share your links !" onclick="document.location='?';"></div> | ||
3 | <div style="float:right; font-style:italic; color:#bbb; text-align:right; padding:0 5 0 0;">Shaare your links...<br>{$linkcount} links</div> | ||
4 | <span id="shaarli_title"><a href="?">{$shaarlititle}</a></span> | ||
5 | |||
6 | {if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"} | ||
7 | {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore} | ||
8 | {else} | ||
9 | <a href="?">Home</a> | ||
10 | {if="isLoggedIn()"} | ||
11 | <a href="?do=logout">Logout</a><a href="?do=tools">Tools</a><a href="?do=addlink"><b>Add link</b></a> | ||
12 | {elseif="$GLOBALS['config']['OPEN_SHAARLI']"} | ||
13 | <a href="?do=tools">Tools</a><a href="?do=addlink"><b>Add link</b></a> | ||
14 | {else} | ||
15 | <a href="?do=login">Login</a> | ||
16 | {/if} | ||
17 | <a href="{$feedurl}?do=rss{$searchcrits}">RSS Feed</a> | ||
18 | <a href="{$feedurl}?do=atom{$searchcrits}" style="padding-left:10px;">ATOM Feed</a> | ||
19 | <a href="?do=tagcloud">Tag cloud</a> | ||
20 | <a href="?do=picwall{$searchcrits}">Picture wall</a> | ||
21 | {/if} | ||
22 | <div class="clear"></div> | ||
23 | |||
24 | |||
diff --git a/tpl/page.html b/tpl/page.html new file mode 100644 index 00000000..2601169e --- /dev/null +++ b/tpl/page.html | |||
@@ -0,0 +1,8 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader">{include="page.header"}</div> | ||
5 | You body goes here... | ||
6 | {include="page.footer"} | ||
7 | </body> | ||
8 | </html> \ No newline at end of file | ||
diff --git a/tpl/picwall.html b/tpl/picwall.html new file mode 100644 index 00000000..48a1acf1 --- /dev/null +++ b/tpl/picwall.html | |||
@@ -0,0 +1,16 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader">{include="page.header"}</div> | ||
5 | <center> | ||
6 | <div class="picwall_container"> | ||
7 | {loop="linksToDisplay"} | ||
8 | <div class="picwall_pictureframe"> | ||
9 | {$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a> | ||
10 | </div> | ||
11 | {/loop} | ||
12 | </div> | ||
13 | </center> | ||
14 | {include="page.footer"} | ||
15 | </body> | ||
16 | </html> \ No newline at end of file | ||
diff --git a/tpl/picwall2.html b/tpl/picwall2.html new file mode 100644 index 00000000..765cf439 --- /dev/null +++ b/tpl/picwall2.html | |||
@@ -0,0 +1,18 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader">{include="page.header"}</div> | ||
5 | <div style="background-color:#003;"> | ||
6 | {loop="linksToDisplay"} | ||
7 | <div style="float:left;width:48%;border-right:2px solid white;height:120px;overflow:hide;"> | ||
8 | <div style="float:left;width:120px;text-align:center">{$value.thumbnail}</div> | ||
9 | <a href="{$value.permalink}" style="color:yellow;font-weight:bold;text-decoration:none;">{$value.title|htmlspecialchars}</a><br> | ||
10 | <span style="font-size:8pt;color:#eee;">{$value.description|htmlspecialchars}</span> | ||
11 | <div style="clear:both;"></div> | ||
12 | </div><br> | ||
13 | {/loop} | ||
14 | </div> | ||
15 | |||
16 | {include="page.footer"} | ||
17 | </body> | ||
18 | </html> \ No newline at end of file | ||
diff --git a/tpl/readme.txt b/tpl/readme.txt new file mode 100644 index 00000000..d57080ea --- /dev/null +++ b/tpl/readme.txt | |||
@@ -0,0 +1,42 @@ | |||
1 | ===== Shaarli template organisation ===== | ||
2 | |||
3 | Any Shaarli page should conform to this RainTPL template: | ||
4 | |||
5 | ----------------------------------------------------- | ||
6 | <html> | ||
7 | <head>{include="includes"}</head> | ||
8 | <body> | ||
9 | <div id="pageheader">{include="page.header"}</div> | ||
10 | You body goes here... | ||
11 | {include="page.footer"} | ||
12 | </body> | ||
13 | </html> | ||
14 | ----------------------------------------------------- | ||
15 | |||
16 | If you want to also add something in the page header (in the dark area), do it here: | ||
17 | |||
18 | <div id="pageheader">{include="page.header"}My menu goes here...</div> | ||
19 | |||
20 | |||
21 | Example: "Add new link" form: | ||
22 | ----------------------------------------------------- | ||
23 | <html> | ||
24 | <head>{include="includes"}</head> | ||
25 | <body onload="document.addform.post.focus();"> | ||
26 | <div id="pageheader"> | ||
27 | {include="page.header"} | ||
28 | <div id="headerform"> | ||
29 | <form method="GET" action="" name="addform" class="addform"> | ||
30 | <input type="text" name="post" style="width:50%;"> | ||
31 | <input type="submit" value="Add link" class="bigbutton"> | ||
32 | </form> | ||
33 | </div> | ||
34 | </div> | ||
35 | {include="page.footer"} | ||
36 | </body> | ||
37 | </html> | ||
38 | ----------------------------------------------------- | ||
39 | |||
40 | |||
41 | |||
42 | |||
diff --git a/tpl/tagcloud.html b/tpl/tagcloud.html new file mode 100644 index 00000000..4bd78115 --- /dev/null +++ b/tpl/tagcloud.html | |||
@@ -0,0 +1,14 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader">{include="page.header"}</div> | ||
5 | <center> | ||
6 | <div id="cloudtag"> | ||
7 | {loop="tags"} | ||
8 | <span style="color:#99f; font-size:9pt; padding-left:5px; padding-right:2px;">{$value.count}</span><a href="?searchtags={$key|htmlspecialchars}" style="font-size:{$value.size}pt; font-weight:bold; color:black; text-decoration:none">{$key|htmlspecialchars}</a> | ||
9 | {/loop} | ||
10 | </div> | ||
11 | </center> | ||
12 | {include="page.footer"} | ||
13 | </body> | ||
14 | </html> \ No newline at end of file | ||
diff --git a/tpl/tools.html b/tpl/tools.html new file mode 100644 index 00000000..bf70021c --- /dev/null +++ b/tpl/tools.html | |||
@@ -0,0 +1,18 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="toolsdiv"> | ||
7 | {if="!$GLOBALS['config']['OPEN_SHAARLI']"}<a href="?do=changepasswd"><b>Change password</b> <span>: Change your password.</span></a><br><br>{/if} | ||
8 | <a href="?do=configure"><b>Configure your Shaarli</b> <span>: Change Title, timezone...</span></a><br><br> | ||
9 | <a href="?do=changetag"><b>Rename/delete tags</b> <span>: Rename or delete a tag in all links</span></a><br><br> | ||
10 | <a href="?do=import"><b>Import</b> <span>: Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)</span></a> <br><br> | ||
11 | <a href="?do=export"><b>Export</b> <span>: Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)</span></a><br><br> | ||
12 | <a class="smallbutton" onclick="alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...');return false;" href="javascript:javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+'&title='%20+%20encodeURIComponent(title)+'&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no');})();"><b>Shaare link</b></a> <a href="#" style="clear:none;"><span>⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br> Then click "Shaare link" button in any page you want to share.</span></a><br><br> | ||
13 | <div class="clear"></div> | ||
14 | </div> | ||
15 | </div> | ||
16 | {include="page.footer"} | ||
17 | </body> | ||
18 | </html> \ No newline at end of file | ||