diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-10 19:22:47 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-10 19:22:47 +0200 |
commit | 12d9cfbcaa236a7d1aa3208a836519af1e1af8ce (patch) | |
tree | 939a744a000668327e29293826564e3a9e3d0da3 /inc/poche | |
parent | f3a6080fce5d0473b6452a5984a2092c97df77ec (diff) | |
parent | 964481d023676bee964141a1d14f638995ac8d30 (diff) | |
download | wallabag-12d9cfbcaa236a7d1aa3208a836519af1e1af8ce.tar.gz wallabag-12d9cfbcaa236a7d1aa3208a836519af1e1af8ce.tar.zst wallabag-12d9cfbcaa236a7d1aa3208a836519af1e1af8ce.zip |
Merge branch 'Flattr' of git://github.com/tcitworld/poche into tcitworld-Flattr
Conflicts:
inc/3rdparty/site_config
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Poche.class.php | 14 | ||||
-rwxr-xr-x | inc/poche/config.inc.php | 1 | ||||
-rw-r--r-- | inc/poche/define.inc.php | 5 |
3 files changed, 16 insertions, 4 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 534e660a..9db4a034 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -247,17 +247,23 @@ class Poche | |||
247 | $tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8'); | 247 | $tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8'); |
248 | $tidy->cleanRepair(); | 248 | $tidy->cleanRepair(); |
249 | $content = $tidy->value; | 249 | $content = $tidy->value; |
250 | } | 250 | |
251 | $tpl_vars = array( | 251 | # flattr checking |
252 | $flattr = new FlattrItem(); | ||
253 | $flattr->checkItem($entry['url']); | ||
254 | |||
255 | $tpl_vars = array( | ||
252 | 'entry' => $entry, | 256 | 'entry' => $entry, |
253 | 'content' => $content, | 257 | 'content' => $content, |
254 | ); | 258 | 'flattr' => $flattr |
259 | ); | ||
260 | } | ||
255 | } | 261 | } |
256 | else { | 262 | else { |
257 | Tools::logm('error in view call : entry is null'); | 263 | Tools::logm('error in view call : entry is null'); |
258 | } | 264 | } |
259 | break; | 265 | break; |
260 | default: # home, favorites and archive views | 266 | default: # home, favorites and archive views |
261 | $entries = $this->store->getEntriesByView($view, $this->user->getId()); | 267 | $entries = $this->store->getEntriesByView($view, $this->user->getId()); |
262 | $tpl_vars = array( | 268 | $tpl_vars = array( |
263 | 'entries' => '', | 269 | 'entries' => '', |
diff --git a/inc/poche/config.inc.php b/inc/poche/config.inc.php index 7f1b8c92..45526695 100755 --- a/inc/poche/config.inc.php +++ b/inc/poche/config.inc.php | |||
@@ -37,6 +37,7 @@ require_once __DIR__ . '/../../inc/3rdparty/humble-http-agent/CookieJar.php'; | |||
37 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedItem.php'; | 37 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedItem.php'; |
38 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedWriter.php'; | 38 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/FeedWriter.php'; |
39 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/DummySingleItemFeed.php'; | 39 | require_once __DIR__ . '/../../inc/3rdparty/feedwriter/DummySingleItemFeed.php'; |
40 | require_once __DIR__ . '/../../inc/3rdparty/FlattrItem.class.php'; | ||
40 | 41 | ||
41 | if (DOWNLOAD_PICTURES) { | 42 | if (DOWNLOAD_PICTURES) { |
42 | require_once __DIR__ . '/../../inc/poche/pochePictures.php'; | 43 | require_once __DIR__ . '/../../inc/poche/pochePictures.php'; |
diff --git a/inc/poche/define.inc.php b/inc/poche/define.inc.php index 53c275dd..40f77b5c 100644 --- a/inc/poche/define.inc.php +++ b/inc/poche/define.inc.php | |||
@@ -22,6 +22,11 @@ define ('SHARE_TWITTER', TRUE); | |||
22 | define ('SHARE_MAIL', TRUE); | 22 | define ('SHARE_MAIL', TRUE); |
23 | define ('SHARE_SHAARLI', FALSE); | 23 | define ('SHARE_SHAARLI', FALSE); |
24 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); | 24 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); |
25 | define ('FLATTR', TRUE); | ||
26 | define ('FLATTR_API', 'https://api.flattr.com/rest/v2/things/lookup/?url='); | ||
27 | define ('NOT_FLATTRABLE', '0'); | ||
28 | define ('FLATTRABLE', '1'); | ||
29 | define ('FLATTRED', '2'); | ||
25 | define ('ABS_PATH', 'assets/'); | 30 | define ('ABS_PATH', 'assets/'); |
26 | define ('TPL', __DIR__ . '/../../tpl'); | 31 | define ('TPL', __DIR__ . '/../../tpl'); |
27 | define ('LOCALE', __DIR__ . '/../../locale'); | 32 | define ('LOCALE', __DIR__ . '/../../locale'); |