aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/tools.html
diff options
context:
space:
mode:
authorKnah Tsaeb <Knah-Tsaeb@knah-tsaeb.org>2016-12-07 11:58:25 +0100
committerArthurHoaro <arthur@hoa.ro>2017-01-05 12:04:02 +0100
commitadc4aee80f7cd3242f65f0b316af2b560a64712c (patch)
treeaf62f8bfb21232bc36dd6d12eb5bc2fc35c21146 /tpl/default/tools.html
parentfc11ab2f290a3712b766d78fdbcd354625a35d0a (diff)
downloadShaarli-adc4aee80f7cd3242f65f0b316af2b560a64712c.tar.gz
Shaarli-adc4aee80f7cd3242f65f0b316af2b560a64712c.tar.zst
Shaarli-adc4aee80f7cd3242f65f0b316af2b560a64712c.zip
Change templates set through administration UI
Diffstat (limited to 'tpl/default/tools.html')
-rw-r--r--tpl/default/tools.html104
1 files changed, 104 insertions, 0 deletions
diff --git a/tpl/default/tools.html b/tpl/default/tools.html
new file mode 100644
index 00000000..e06d239d
--- /dev/null
+++ b/tpl/default/tools.html
@@ -0,0 +1,104 @@
1<!DOCTYPE html>
2<html>
3<head>{include="includes"}</head>
4<body>
5<div id="pageheader">
6 {include="page.header"}
7 <div id="toolsdiv">
8 <a href="?do=configure"><b>Configure your Shaarli</b><span>: Change Title, timezone...</span></a>
9 <br><br>
10 <a href="?do=pluginadmin"><b>Plugin administration</b><span>: Enable, disable and configure plugins.</span></a>
11 <br><br>
12 {if="!$openshaarli"}<a href="?do=changepasswd"><b>Change password</b><span>: Change your password.</span></a>
13 <br><br>{/if}
14 <a href="?do=changetag"><b>Rename/delete tags</b><span>: Rename or delete a tag in all links</span></a>
15 <br><br>
16 <a href="?do=import"><b>Import</b><span>: Import Netscape html bookmarks (as exported from Firefox, Chrome, Opera, delicious...)</span></a>
17 <br><br>
18 <a href="?do=export"><b>Export</b><span>: Export Netscape html bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)</span></a>
19 <br><br>
20 <a class="smallbutton"
21 onclick="return alertBookmarklet();"
22 href="javascript:(
23 function(){
24 var%20url%20=%20location.href;
25 var%20title%20=%20document.title%20||%20url;
26 window.open(
27 '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+
28 '&amp;title='%20+%20encodeURIComponent(title)+
29 '&amp;description='%20+%20encodeURIComponent(document.getSelection())+
30 '&amp;source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1'
31 );
32 }
33 )();">
34 <b>✚Shaare link</b>
35 </a>
36 <a href="#" onclick="return alertBookmarklet();">
37 <span>
38 &#x21D0; Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br>
39 &nbsp;&nbsp;&nbsp;&nbsp;Then click "✚Shaare link" button in any page you want to share.
40 </span>
41 </a><br><br>
42 <a class="smallbutton"
43 onclick="return alertBookmarklet();"
44 href="?private=1&amp;post=">
45 <b>✚Add Note</b>
46 </a>
47 <a href="#" onclick="return alertBookmarklet();">
48 <span>
49 &#x21D0; Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br>
50 &nbsp;&nbsp;&nbsp;&nbsp;Then click "✚Add Note" button anytime to start composing a private Note (text post) to your Shaarli.
51 </span>
52 </a><br><br>
53
54 {if="$sslenabled"}
55 <a class="smallbutton" onclick="activateFirefoxSocial(this)">
56 <b>✚Add to Firefox social</b>
57 </a>
58 <a href="#">
59 <span>&#x21D0; Click on this button to add Shaarli to the "Share this page" button in Firefox.</span>
60 </a><br><br>
61 {/if}
62
63 {loop="$tools_plugin"}
64 {$value}
65 {/loop}
66
67 <div class="clear"></div>
68
69 <script>
70 {if="$sslenabled"}
71 function activateFirefoxSocial(node) {
72 var loc = location.href;
73 var baseURL = loc.substring(0, loc.lastIndexOf("/"));
74
75 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
76 var data = {
77 name: "{$shaarlititle}",
78 description: "The personal, minimalist, super-fast, no-database delicious clone.",
79 author: "Shaarli",
80 version: "1.0.0",
81
82 iconURL: baseURL + "/images/favicon.ico",
83 icon32URL: baseURL + "/images/favicon.ico",
84 icon64URL: baseURL + "/images/favicon.ico",
85
86 shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}",
87 homepageURL: baseURL
88 };
89 node.setAttribute("data-service", JSON.stringify(data));
90
91 var activate = new CustomEvent("ActivateSocialFeature");
92 node.dispatchEvent(activate);
93 }
94 {/if}
95 function alertBookmarklet() {
96 alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...');
97 return false;
98 }
99 </script>
100 </div>
101</div>
102{include="page.footer"}
103</body>
104</html>