7 {
include="page.header"}
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">
13 <div class=
"tools-item">
14 <a href=
"?do=configure" title=
"Change Shaarli settings: title, timezone, etc.">
15 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Configure your Shaarli
</span>
18 <div class=
"tools-item">
19 <a href=
"?do=pluginadmin" title=
"Enable, disable and configure plugins">
20 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Plugin administration
</span>
24 <div class=
"tools-item">
25 <a href=
"?do=changepasswd" title=
"Change your password">
26 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Change password
</span>
30 <div class=
"tools-item">
31 <a href=
"?do=changetag" title=
"Rename or delete a tag in all links">
32 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Manage tags
</span>
35 <div class=
"tools-item">
36 <a href=
"?do=import" title=
"Import Netscape HTML bookmarks (as exported from Firefox, Chrome, Opera, delicious...)">
37 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Import links
</span>
40 <div class=
"tools-item">
41 <a href=
"?do=export" title=
"<!--Export Netscape HTML bookmarks (which can be imported in Firefox, Chrome, Opera, delicious...)-->">
42 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Export database
</span>
48 {
loop="$tools_plugin"}
52 <div class=
"clear"></div>
54 <div class=
"pure-u-lg-1-3 pure-u-1-8"></div>
58 <div class=
"pure-u-lg-1-3 pure-u-1-8"></div>
59 <div class=
"pure-u-lg-1-3 pure-u-3-4 page-form">
62 Drag one of these button to your bookmarks toolbar or right-click it and "Bookmark This Link",
63 then click on the bookmarklet in any page you want to share.
65 <div class=
"tools-item">
66 <a title=
"Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link,
67 then click ✚Shaare link button in any page you want to share"
68 onclick=
"return alertBookmarklet();"
71 var%20url%20=%20location.href;
72 var%20title%20=%20document.title%20||%20url;
74 '{$pageabsaddr}?post='%20+%20encodeURIComponent(url)+
75 '&title='%20+%20encodeURIComponent(title)+
76 '&description='%20+%20encodeURIComponent(document.getSelection())+
77 '&source=bookmarklet','_blank','menubar=no,height=390,width=600,toolbar=no,scrollbars=no,status=no,dialog=1'
81 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">✚ Shaare link
</span>
84 <div class=
"tools-item">
85 <a title=
"Drag this link to your bookmarks toolbar or right-click it and Bookmark This Link,
86 Then click ✚Add Note button anytime to start composing a private Note (text post) to your Shaarli"
87 onclick=
"return alertBookmarklet();"
88 href=
"?private=1&post=">
89 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">✚ Add Note
</span>
93 <div class=
"pure-u-lg-1-3 pure-u-1-8"></div>
97 <div class=
"pure-u-lg-1-3 pure-u-1-8"></div>
98 <div class=
"pure-u-lg-1-3 pure-u-3-4 page-form">
99 <h2>Firefox Social API
</h2>
100 <p>You need to browse your Shaarli over
<strong>HTTPS
</strong> to use this functionality.
</p>
102 <div class=
"tools-item">
103 <a title=
"Click on this button to add Shaarli to the 'Share this page' button in Firefox"
104 onclick=
"activateFirefoxSocial(this)">
105 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">✚ Add to Firefox social
</span>
109 <div class=
"pure-u-lg-1-3 pure-u-1-8"></div>
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">
116 <div class=
"tools-item">
117 <a href=
"https://addons.mozilla.org/fr/firefox/addon/shaarli/" title=
"Firefox Plugin">
118 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Firefox plugin
</span>
121 <div class=
"tools-item">
122 <a href=
"https://chrome.google.com/webstore/detail/shiny-shaarli/hajdfkmbdmadjmmpkkbbcnllepomekin"
123 title=
"Chrome Plugin">
124 <span class=
"pure-button pure-u-lg-2-3 pure-u-3-4">Chrome plugin
</span>
130 {
include="page.footer"}
132 function activateFirefoxSocial(node) {
133 var loc = location.href;
134 var baseURL = loc.substring(
0, loc.lastIndexOf("/"));
136 // Keeping the data separated (ie. not in the DOM) so that it's maintainable and diffable.
138 name: "{$shaarlititle}",
139 description: "The personal, minimalist, super-fast, no-database delicious clone.",
143 iconURL: baseURL + "/images/favicon.ico",
144 icon32URL: baseURL + "/images/favicon.ico",
145 icon64URL: baseURL + "/images/favicon.ico",
147 shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}",
150 node.setAttribute("data-service", JSON.stringify(data));
152 var activate = new CustomEvent("ActivateSocialFeature");
153 node.dispatchEvent(activate);
156 function alertBookmarklet() {
157 alert('Drag this link to your bookmarks toolbar, or right-click it and choose Bookmark This Link...');