diff options
Diffstat (limited to 'tpl/default/tools.html')
-rw-r--r-- | tpl/default/tools.html | 166 |
1 files changed, 166 insertions, 0 deletions
diff --git a/tpl/default/tools.html b/tpl/default/tools.html new file mode 100644 index 00000000..72fd58af --- /dev/null +++ b/tpl/default/tools.html | |||
@@ -0,0 +1,166 @@ | |||
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-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="?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-24"></div> | ||
61 | <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light"> | ||
62 | <h2 class="window-title">Bookmarklets</h2> | ||
63 | <p> | ||
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 | </p> | ||
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 | class="bookmarklet-link" | ||
71 | href="javascript:( | ||
72 | function(){ | ||
73 | var%20url%20=%20location.href; | ||
74 | var%20title%20=%20document.title%20||%20url; | ||
75 | var%20desc=document.getSelection().toString(); | ||
76 | if(desc.length>4000){ | ||
77 | desc=desc.substr(0,4000)+'...'; | ||
78 | alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); | ||
79 | } | ||
80 | window.open( | ||
81 | '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+ | ||
82 | '&title='%20+%20encodeURIComponent(title)+ | ||
83 | '&description='%20+%20encodeURIComponent(desc)+ | ||
84 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | ||
85 | ); | ||
86 | } | ||
87 | )();"> | ||
88 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Shaare link'|t}</span> | ||
89 | </a> | ||
90 | </div> | ||
91 | <div class="tools-item"> | ||
92 | <a title="{'Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link'|t}, | ||
93 | {'Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli'|t}" | ||
94 | class="bookmarklet-link" | ||
95 | href="javascript:( | ||
96 | function(){ | ||
97 | var%20desc=document.getSelection().toString(); | ||
98 | if(desc.length>4000){ | ||
99 | desc=desc.substr(0,4000)+'...'; | ||
100 | alert('{function="str_replace(' ', '%20', t('The selected text is too long, it will be truncated.'))"}'); | ||
101 | } | ||
102 | window.open( | ||
103 | '{$pageabsaddr}?private=1&post='+ | ||
104 | '&description='%20+%20encodeURIComponent(desc)+ | ||
105 | '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' | ||
106 | ); | ||
107 | } | ||
108 | )();"> | ||
109 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add Note'|t}</span> | ||
110 | </a> | ||
111 | </div> | ||
112 | </div> | ||
113 | </div> | ||
114 | |||
115 | {if="$sslenabled"} | ||
116 | <div class="pure-g"> | ||
117 | <div class="pure-u-lg-1-3 pure-u-1-24"></div> | ||
118 | <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light"> | ||
119 | <h2 class="window-title">Firefox Social API</h2> | ||
120 | <p>{'You need to browse your Shaarli over <strong>HTTPS</strong> to use this functionality.'|t}</p> | ||
121 | |||
122 | <div class="tools-item"> | ||
123 | <a title="{'Click on this button to add Shaarli to the 'Share this page' button in Firefox" | ||
124 | id="ff-social-button"> | ||
125 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">✚ {'Add to'|t} Firefox Social</span> | ||
126 | </a> | ||
127 | </div> | ||
128 | </div> | ||
129 | </div> | ||
130 | {/if} | ||
131 | |||
132 | <div class="pure-g"> | ||
133 | <div class="pure-u-lg-1-3 pure-u-1-24"></div> | ||
134 | <div class="pure-u-lg-1-3 pure-u-22-24 page-form page-form-light"> | ||
135 | <h2 class="window-title">{'3rd party'|t}</h2> | ||
136 | <div class="tools-item"> | ||
137 | <a href="https://addons.mozilla.org/fr/firefox/addon/shaarli/" title="Firefox {'Plugin'|t}"> | ||
138 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Firefox {'plugin'|t}</span> | ||
139 | </a> | ||
140 | </div> | ||
141 | <div class="tools-item"> | ||
142 | <a href="https://chrome.google.com/webstore/detail/shiny-shaarli/hajdfkmbdmadjmmpkkbbcnllepomekin" | ||
143 | title="Chrome {'Plugin'|t}"> | ||
144 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Chrome {'plugin'|t}</span> | ||
145 | </a> | ||
146 | </div> | ||
147 | <div class="tools-item"> | ||
148 | <a href="https://play.google.com/store/apps/details?id=com.dimtion.shaarlier&hl=fr" | ||
149 | title="Android"> | ||
150 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">Android</span> | ||
151 | </a> | ||
152 | </div> | ||
153 | <div class="tools-item"> | ||
154 | <a href="https://itunes.apple.com/app/ShaarliOS/id1027441388?mt=8" | ||
155 | title="iOS"> | ||
156 | <span class="pure-button pure-u-lg-2-3 pure-u-3-4">iOS</span> | ||
157 | </a> | ||
158 | </div> | ||
159 | </div> | ||
160 | </div> | ||
161 | |||
162 | {include="page.footer"} | ||
163 | <input type="hidden" id="bookmarklet-alert" | ||
164 | value="{'Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link'|t}"> | ||
165 | </body> | ||
166 | </html> | ||