You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-de.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Der Code der offiziellen Buttons von Facebook, Google+ und Twitter überträgt v
8
8
9
9
Shariff `(/ˈʃɛɹɪf/)` ist ein Open-Source Projekt von c't und heise online.
10
10
11
-
Shariff besteht aus zwei Teilen. Der erste Teil ist eine einfache JavaScript-Bibliothek einschließlich Vektor-Icons und CSS zur Formatierung der Knöpfe. Der zweite ist die optionale, server-seitige Komponente (derzeit für PHP, Perl oder NodeJS). Mit dem Shariff-Backend auf dem eigenen Server muss der Browser des Besuchers zur Darstellung der Share-Counts keine Verbindung zu Facebook oder Google+ aufbauen. Daten werden erst dann zum Social-Media-Netzwerk übertragen, wenn der Besucher den Inhalt tatsächlich teilen möchte.
11
+
Shariff besteht aus zwei Teilen. Der erste Teil ist eine einfache JavaScript-Bibliothek einschließlich Vektor-Icons und CSS zur Formatierung der Knöpfe. Der zweite ist die optionale, server-seitige Komponente (derzeit für PHP, Perl oder NodeJS). Mit dem Shariff-Backend auf dem eigenen Server muss der Browser des Besuchers zur Darstellung der Share-Counts keine Verbindung zu den Social-Media-Netzwerken aufbauen. Daten werden erst dann übertragen, wenn der Besucher den Inhalt tatsächlich teilen möchte.
12
12
13
13
## Erste Schritte
14
14
@@ -89,7 +89,7 @@ $ npm run dev
89
89
|`data-flattr-user`| Benutzer, der die Flattr-Spende erhält. |`null`|
90
90
|`data-info-url`| URL der Infoseite. |`http://ct.de/-2467514`|
91
91
|`data-info-display`| Wie die Infoseite angezeigt wird. Werte: `blank`, `popup`, `self`. |`blank`|
|`data-mail-body`| Wenn `data-mail-url` ein `mailto:`-Link ist, wird dieser Wert als Mail-Body verwendet. Der Mail-Body-Text sollte den Platzhalter `{url}` enthalten. Dieser wird durch die zu teilende URL ersetzt. | siehe `data-url`|
94
94
|`data-mail-subject`| Wenn `data-mail-url` ein `mailto:`-Link ist, wird dieser Wert als Mail-Betreff verwendet. | siehe `data-title`|
95
95
|`data-mail-url`| Der Link des `mail`-Buttons |`?view=mail`|
@@ -157,10 +157,8 @@ Die URL dieser Seite kann mit einer Option festgelegt werden. Standardwert: `htt
157
157
158
158
## Backends
159
159
160
-
Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird eines der folgenden Backends benötigt:
160
+
Wenn in den Shariff-Buttons die Share-Counts angezeigt werden sollen, wird das folgende Backend benötigt:
Copy file name to clipboardExpand all lines: README.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Facebook, Google+ and Twitter supply official sharing code snippets which quietl
9
9
10
10
Shariff `(/ˈʃɛɹɪf/)` is an open-source, low-maintenance, high-privacy solution maintained by German computer magazine c't and heise online.
11
11
12
-
Shariff consists of two parts: a simple JavaScript client library and an optional server-side component. The latter fetches the number of likes and plus-ones. Share buttons and share counts work without a connection between your visitors' browsers and *social networks* (unless they decide to share, of course).
12
+
Shariff consists of two parts: a simple JavaScript client library and an optional server-side component. The latter fetches the number of likes or shares. Share buttons and share counts work without a connection between your visitors' browsers and *social networks* (unless they decide to share, of course).
13
13
14
14
## Getting Started
15
15
@@ -85,12 +85,12 @@ $ npm run dev
85
85
86
86
| Attribute | Description | Default |
87
87
|------------------|-------------|---------|
88
-
|`data-backend-url`| The path to your Shariff backend, see below. Settings the value to `null` disables the backend feature. No counts will occur. |`null`|
88
+
|`data-backend-url`| The path to your Shariff backend, see below. Setting the value to `null` disables the backend feature. No counts will occur. |`null`|
89
89
|`data-flattr-category`| Category to be used for Flattr. |`null`|
90
90
|`data-flattr-user`| User that receives Flattr donation. |`null`|
91
91
|`data-info-url`| URL of the info page. |`http://ct.de/-2467514`|
92
92
|`data-info-display`| How to display the info page. Values: `blank`, `popup`, `self`. |`blank`|
|`data-mail-body`| If a `mailto:` link is used in `data-mail-url`, then this value is used as the mail body. The body text should contain the placeholder `{url}` which will be replaced with the share URL. | see `data-url`|
95
95
|`data-mail-subject`| If a `mailto:` link is used in `data-mail-url`, then this value is used as the mail subject. | see `data-title`|
96
96
|`data-mail-url`| The url target used for the `mail` service button |`?view=mail`|
@@ -159,13 +159,12 @@ The URL of this page can be set with an option. Default value: `http://ct.de/-24
159
159
160
160
## Backends
161
161
162
-
In order to display share counts with Shariff, you need one of the following backends:
162
+
In order to display share counts with Shariff, you need the following backend:
Once you have one of these backends up and running, insert its URL into the `data-backend-url` attribute. For example, if the backend runs under `http://example.com/my-shariff-backend/`, the `data-backend-url` should be `/my-shariff-backend/`. The script will handle the rest.
0 commit comments