diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-07-28 11:07:55 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2018-07-28 11:07:55 +0200 |
commit | 83faedadff76c5bdca036f39f13943f63b27e164 (patch) | |
tree | 6f44cede16ec6a60f10b9699e211e0818f06d2c8 /tpl/vintage/tools.html | |
parent | 1d9eb22a3df85b67fe6652c0876cd7382c2fb525 (diff) | |
parent | 658988f3aeba7a5a938783249ccf2765251e5597 (diff) | |
download | Shaarli-83faedadff76c5bdca036f39f13943f63b27e164.tar.gz Shaarli-83faedadff76c5bdca036f39f13943f63b27e164.tar.zst Shaarli-83faedadff76c5bdca036f39f13943f63b27e164.zip |
Merge tag 'v0.9.7' into stable
Release v0.9.7
Diffstat (limited to 'tpl/vintage/tools.html')
-rw-r--r-- | tpl/vintage/tools.html | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/tpl/vintage/tools.html b/tpl/vintage/tools.html new file mode 100644 index 00000000..69689807 --- /dev/null +++ b/tpl/vintage/tools.html | |||
@@ -0,0 +1,106 @@ | |||
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 | '&title='%20+%20encodeURIComponent(title)+ | ||
29 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | ||
30 | '&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1' | ||
31 | ); | ||
32 | } | ||
33 | )();"><b>✚Shaare link</b></a> | ||
34 | <a href="#" onclick="return alertBookmarklet();"> | ||
35 | <span> | ||
36 | ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br> | ||
37 | Then click "✚Shaare link" button in any page you want to share. | ||
38 | </span> | ||
39 | </a><br><br> | ||
40 | <a class="smallbutton" | ||
41 | onclick="return alertBookmarklet();" | ||
42 | href="javascript:( | ||
43 | function(){ | ||
44 | window.open( | ||
45 | '{$pageabsaddr}?private=1&post='+ | ||
46 | '&description='%20+%20encodeURIComponent(document.getSelection())+ | ||
47 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | ||
48 | ); | ||
49 | } | ||
50 | )();"><b>✚Add Note</b></a> | ||
51 | <a href="#" onclick="return alertBookmarklet();"> | ||
52 | <span> | ||
53 | ⇐ Drag this link to your bookmarks toolbar (or right-click it and choose Bookmark This Link....).<br> | ||
54 | Then click "✚Add Note" button anytime to start composing a private Note (text post) to your Shaarli. | ||
55 | </span> | ||
56 | </a><br><br> | ||
57 | |||
58 | {if="$sslenabled"} | ||
59 | <a class="smallbutton" onclick="activateFirefoxSocial(this)"><b>✚Add to Firefox social</b></a> | ||
60 | <a href="#"> | ||
61 | <span>⇐ Click on this button to add Shaarli to the "Share this page" button in Firefox.</span> | ||
62 | </a><br><br> | ||
63 | {/if} | ||
64 | |||
65 | {loop="$tools_plugin"} | ||
66 | {$value} | ||
67 | {/loop} | ||
68 | |||
69 | <div class="clear"></div> | ||
70 | |||
71 | <script> | ||
72 | {if="$sslenabled"} | ||
73 | function activateFirefoxSocial(node) { | ||
74 | var loc = location.href; | ||
75 | var baseURL = loc.substring(0, loc.lastIndexOf("/")); | ||
76 | |||
77 | // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable. | ||
78 | var data = { | ||
79 | name: "{$shaarlititle}", | ||
80 | description: "The personal, minimalist, super-fast, no-database delicious clone.", | ||
81 | author: "Shaarli", | ||
82 | version: "1.0.0", | ||
83 | |||
84 | iconURL: baseURL + "/images/favicon.ico", | ||
85 | icon32URL: baseURL + "/images/favicon.ico", | ||
86 | icon64URL: baseURL + "/images/favicon.ico", | ||
87 | |||
88 | shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}", | ||
89 | homepageURL: baseURL | ||
90 | }; | ||
91 | node.setAttribute("data-service", JSON.stringify(data)); | ||
92 | |||
93 | var activate = new CustomEvent("ActivateSocialFeature"); | ||
94 | node.dispatchEvent(activate); | ||
95 | } | ||
96 | {/if} | ||
97 | function alertBookmarklet() { | ||
98 | alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...'); | ||
99 | return false; | ||
100 | } | ||
101 | </script> | ||
102 | </div> | ||
103 | </div> | ||
104 | {include="page.footer"} | ||
105 | </body> | ||
106 | </html> | ||