]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tpl/default/tools.html
New plugin hook: ability to add custom filters to Shaarli search engine
[github/shaarli/Shaarli.git] / tpl / default / tools.html
1 <!DOCTYPE html>
2 <html{if="$language !== 'auto'"} lang="{$language}"{/if}>
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-24"></div>
11 <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light">
12 <h2 class="window-title">{'Settings'|t}</h2>
13 <div class="tools-item">
14 <a href="{$base_path}/admin/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="{$base_path}/admin/plugins" 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 <div class="tools-item">
24 <a href="{$base_path}/admin/server"
25 title="{'Check instance\'s server configuration'|t}">
26 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Server administration'|t}</span>
27 </a>
28 </div>
29 {if="!$openshaarli"}
30 <div class="tools-item">
31 <a href="{$base_path}/admin/password" title="{'Change your password'|t}">
32 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Change password'|t}</span>
33 </a>
34 </div>
35 {/if}
36 <div class="tools-item">
37 <a href="{$base_path}/admin/tags" title="{'Rename or delete a tag in all links'|t}">
38 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Manage tags'|t}</span>
39 </a>
40 </div>
41 <div class="tools-item">
42 <a href="{$base_path}/admin/import"
43 title="{'Import Netscape HTML bookmarks (as exported from Firefox, Chrome, Opera, delicious...)'|t}">
44 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Import links'|t}</span>
45 </a>
46 </div>
47 <div class="tools-item">
48 <a href="{$base_path}/admin/export"
49 title="{'Export Netscape HTML bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)'|t}">
50 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">{'Export database'|t}</span>
51 </a>
52 </div>
53
54 {loop="$tools_plugin"}
55 <div class="tools-item">
56 {$value}
57 </div>
58 {/loop}
59 </div>
60
61
62 <div class="clear"></div>
63 </div>
64
65 <div class="pure-g">
66 <div class="pure-u-lg-1-3 pure-u-1-24"></div>
67 <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light">
68 <h2 class="window-title">Bookmarklets</h2>
69 <p>
70 {'Drag one of these button to your bookmarks toolbar or right-click it and "Bookmark This Link"'|t},
71 {'then click on the bookmarklet in any page you want to share.'|t}
72 </p>
73 <div class="tools-item">
74 <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
75 {'then click ✚Shaare link button in any page you want to share'|t}"
76 class="bookmarklet-link"
77 href="javascript:(
78 function(){
79 var%20url%20=%20location.href;
80 var%20title%20=%20document.title%20||%20url;
81 var%20desc=document.getSelection().toString();
82 if(desc.length>4000){
83 desc=desc.substr(0,4000)+'...';
84 alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
85 }
86 window.open(
87 '{$pageabsaddr}admin/shaare?post='%20+%20encodeURIComponent(url)+
88 '&amp;title='%20+%20encodeURIComponent(title)+
89 '&amp;description='%20+%20encodeURIComponent(desc)+
90 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
91 );
92 }
93 )();">
94 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Shaare link'|t}</span>
95 </a>
96 </div>
97 <div class="tools-item">
98 <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t},
99 {'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}"
100 class="bookmarklet-link"
101 href="javascript:(
102 function(){
103 var%20desc=document.getSelection().toString();
104 if(desc.length>4000){
105 desc=desc.substr(0,4000)+'...';
106 alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}');
107 }
108 window.open(
109 '{$pageabsaddr}?private=1&amp;post='+
110 '&amp;description='%20+%20encodeURIComponent(desc)+
111 '&amp;source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1'
112 );
113 }
114 )();">
115 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span>
116 </a>
117 </div>
118 </div>
119 </div>
120
121 <div class="pure-g">
122 <div class="pure-u-lg-1-3 pure-u-1-24"></div>
123 <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light">
124 <h2 class="window-title">{'3rd party'|t}</h2>
125 <div class="tools-item">
126 <a href="https://addons.mozilla.org/fr/firefox/addon/shaarli/">
127 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Firefox {'plugin'|t}</span>
128 </a>
129 </div>
130 <div class="tools-item">
131 <a href="https://chrome.google.com/webstore/detail/shiny-shaarli/hajdfkmbdmadjmmpkkbbcnllepomekin">
132 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Chrome {'plugin'|t}</span>
133 </a>
134 </div>
135 <div class="tools-item">
136 <a href="https://play.google.com/store/apps/details?id=com.dimtion.shaarlier&hl=fr">
137 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Android Shaarlier</span>
138 </a>
139 </div>
140 <div class="tools-item">
141 <a href="https://stakali.toneiv.eu/">
142 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Android Stakali</span>
143 </a>
144 </div>
145 <div class="tools-item">
146 <a href="https://itunes.apple.com/app/ShaarliOS/id1027441388?mt=8"
147 title="iOS">
148 <span class="pure-button pure-u-lg-2-3 pure-u-3-4">iOS</span>
149 </a>
150 </div>
151 </div>
152 </div>
153
154 {include="page.footer"}
155 <input type="hidden" id="bookmarklet-alert"
156 value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}">
157 </body>
158 </html>