Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 4 |
lars |
1 |
'use strict';
|
|
|
2 |
|
|
|
3 |
module.exports = function(shariff) {
|
|
|
4 |
var url = encodeURIComponent(shariff.getURL());
|
|
|
5 |
var title = shariff.getMeta('DC.title');
|
|
|
6 |
var creator = shariff.getMeta('DC.creator');
|
|
|
7 |
var description = shariff.getMeta('description');
|
|
|
8 |
|
|
|
9 |
if (title.length > 0 && creator.length > 0) {
|
|
|
10 |
title += ' - ' + creator;
|
|
|
11 |
} else {
|
|
|
12 |
title = shariff.getTitle();
|
|
|
13 |
}
|
|
|
14 |
|
|
|
15 |
return {
|
|
|
16 |
popup: true,
|
|
|
17 |
shareText: 'Flattr',
|
|
|
18 |
name: 'flattr',
|
|
|
19 |
faName: 'fa-money',
|
|
|
20 |
title: {
|
|
|
21 |
'de': 'Artikel flattrn',
|
|
|
22 |
'en': 'Flattr this'
|
|
|
23 |
},
|
|
|
24 |
shareUrl: 'https://flattr.com/submit/auto?title=' + encodeURIComponent(title) + '&description=' + encodeURIComponent(description) + '&category=' + encodeURIComponent(shariff.options.flattrCategory || 'text') + '&user_id=' + encodeURIComponent(shariff.options.flattrUser) + '&url=' + url + shariff.getReferrerTrack()
|
|
|
25 |
};
|
|
|
26 |
};
|