From 8a93529664b7217535366b48085aed51914fcb72 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Wed, 20 May 2015 12:19:47 +0200 Subject: [PATCH] [add] option for post original article to wallabag (nodiscc plugin) --- inc/user.css | 17 +++++++++++++++++ index.php | 1 + tpl/linklist.html | 9 ++++++--- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/inc/user.css b/inc/user.css index d206756..5639a86 100644 --- a/inc/user.css +++ b/inc/user.css @@ -478,6 +478,23 @@ em { /*display: none;*/ } +.linkWallabag { + font-size:8pt; + color:#888; + } +.linkWallabag a { + color:#E28E3F; + text-decoration: none; + } +.linkWallabag a { + background-image:url('../images/logo_wallabag.png'); + padding:2px 0 3px 20px; + background-repeat:no-repeat; + } +.linkWallabag a:hover { + color: #F57900 + } + @media handheld, only screen and (max-width: 480px) , only screen and (max-device-width: 854px) { /* A few fixes for mobile devices (far from perfect). */ .nomobile { diff --git a/index.php b/index.php index 84b9a91..ac5b1fd 100644 --- a/index.php +++ b/index.php @@ -35,6 +35,7 @@ $GLOBALS['config']['externalThumbshot'] = ''; // Url for external thumbnailer // exemple : http://images.thumbshots.com/image.aspx?cid=dgdfgdfg&v=1&w=120&url= // the last param must be a url $GLOBALS['config']['ENABLE_MARKDOWN'] = TRUE; +$GLOBALS['config']['WALLABAG_URL'] = ''; // ----------------------------------------------------------------------------------------------- // You should not touch below (or at your own risks !) // Optionnal config file. diff --git a/tpl/linklist.html b/tpl/linklist.html index 1724a16..65c99c6 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -20,7 +20,7 @@ {include="linklist.paging"} {if="count($links)==0"} -
Nothing found.
+
Nothing found.
{else} {if="$search_type=='fulltext'"}
{$result_count} results for {$search_crits}
@@ -55,8 +55,11 @@ permalink - {/if} Archive.org - -
- + {if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn()"} + Save to Wallabag - + {/if} +
qrcode logo
- {$value.url|htmlspecialchars}
{if="$value.tags"}