]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/tools.html
ae794ce9d91a11c45cd35fe4d8e1e1bf4fe6e2fd
[github/shaarli/Shaarli.git] / tpl / default / tools.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 {include="includes"}
5 </head>
6 <body>
7 {include="page.header"}
8
9 <div class="pure-g">
10 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
11 <div class="pure-u-lg-1-3 pure-u-3-4 page-form page-form-light">
12 <h2 class="window-title">{'Settings'|t}</h2>
13 <div class="tools-item">
14 <a href="?do=configure" title="{'Change Shaarli settings: title, timezone, etc.'|t}">
15 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Configure your Shaarli'|t}</span>
16 </a>
17 </div>
18 <div class="tools-item">
19 <a href="?do=pluginadmin" title="{'Enable, disable and configure plugins'|t}">
20 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Plugin administration'|t}</span>
21 </a>
22 </div>
23 {if="!$openshaarli"}
24 <div class="tools-item">
25 <a href="?do=changepasswd" title="{'Change your password'|t}">
26 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Change password'|t}</span>
27 </a>
28 </div>
29 {/if}
30 <div class="tools-item">
31 <a href="?do=changetag" title="{'Rename or delete a tag in all links'|t}">
32 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Manage tags'|t}</span>
33 </a>
34 </div>
35 <div class="tools-item">
36 <a href="?do=import"
37 title="{'Import Netscape HTML bookmarks (as exported from Firefox, Chrome, Opera, delicious...)'|t}">
38 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Import links'|t}</span>
39 </a>
40 </div>
41 <div class="tools-item">
42 <a href="?do=export"
43 title="{'Export Netscape HTML bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)'|t}">
44 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Export database'|t}</span>
45 </a>
46 </div>
47
48 {loop="$tools_plugin"}
49 <div class="tools-item">
50 {$value}
51 </div>
52 {/loop}
53 </div>
54
55
56 <div class="clear"></div>
57 </div>
58
59 <div class="pure-g">
60 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
61 <div class="pure-u-lg-1-3 pure-u-3-4 page-form page-form-light">
62 <h2 class="window-title">Bookmarklets</h2>
63 <div>
64 {'Drag one of these button to your bookmarks toolbar or right-click it and "Bookmark This Link"'|t},
65 {'then click on the bookmarklet in any page you want to share.'|t}
66 </div>
67 <div class="tools-item">
68 <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
69 {'then click ✚Shaare link button in any page you want to share'|t}"
70 onclick="return alertBookmarklet();"
71 href="javascript:(
72 function(){
73 var%20url%20=%20location.href;
74 var%20title%20=%20document.title%20||%20url;
75 window.open(
76 '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+
77 '&amp;title='%20+%20encodeURIComponent(title)+
78 '&amp;description='%20+%20encodeURIComponent(document.getSelection())+
79 '&amp;source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1'
80 );
81 }
82 )();">
83 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Shaare link'|t}</span>
84 </a>
85 </div>
86 <div class="tools-item">
87 <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
88 {'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}"
89 onclick="return alertBookmarklet();"
90 href="?private=1&amp;post=">
91 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span>
92 </a>
93 </div>
94 </div>
95 </div>
96
97 <div class="pure-g">
98 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
99 <div class="pure-u-lg-1-3 pure-u-3-4 page-form page-form-light">
100 <h2 class="window-title">Firefox Social API</h2>
101 <p>{'You need to browse your Shaarli over <strong>HTTPS</strong> to use this functionality.'|t}</p>
102
103 <div class="tools-item">
104 <a title="{'Click on this button to add Shaarli to the 'Share this page' button in Firefox"
105 onclick="activateFirefoxSocial(this)">
106 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add to'|t} Firefox Social</span>
107 </a>
108 </div>
109 </div>
110 </div>
111
112 <div class="pure-g">
113 <div class="pure-u-lg-1-3 pure-u-1-8"></div>
114 <div class="pure-u-lg-1-3 pure-u-3-4 page-form page-form-light">
115 <h2 class="window-title">{'3rd party'|t}</h2>
116 <div class="tools-item">
117 <a href="https://addons.mozilla.org/fr/firefox/addon/shaarli/" title="Firefox {'Plugin'|t}">
118 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Firefox {'plugin'|t}</span>
119 </a>
120 </div>
121 <div class="tools-item">
122 <a href="https://chrome.google.com/webstore/detail/shiny-shaarli/hajdfkmbdmadjmmpkkbbcnllepomekin"
123 title="Chrome {'Plugin'|t}">
124 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Chrome {'plugin'|t}</span>
125 </a>
126 </div>
127 </div>
128 </div>
129
130 {include="page.footer"}
131 <script>
132 function activateFirefoxSocial(node) {
133 var loc = location.href;
134 var baseURL = loc.substring(0, loc.lastIndexOf("/"));
135
136 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
137 var data = {
138 name: "{$shaarlititle}",
139 description: "The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community.",
140 author: "Shaarli",
141 version: "1.0.0",
142
143 iconURL: baseURL + "/images/favicon.ico",
144 icon32URL: baseURL + "/images/favicon.ico",
145 icon64URL: baseURL + "/images/favicon.ico",
146
147 shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}",
148 homepageURL: baseURL
149 };
150 node.setAttribute("data-service", JSON.stringify(data));
151
152 var activate = new CustomEvent("ActivateSocialFeature");
153 node.dispatchEvent(activate);
154 }
155
156 function alertBookmarklet() {
157 alert({"'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'"|t});
158 return false;
159 }
160 </script>
161 </body>
162 </html>
163