Merge branch 'master' into myShaarli
This commit is contained in:
commit
0605188d4e
10 changed files with 204 additions and 143 deletions
|
@ -45,7 +45,7 @@ http://sebsauvage.net/wiki/doku.php?id=php:shaarli
|
||||||
|
|
||||||
myShaarli Features :
|
myShaarli Features :
|
||||||
|
|
||||||
* Markdown syntax
|
* Markdown support (web+RSS+Atom)
|
||||||
* Define external thumbnailer
|
* Define external thumbnailer
|
||||||
* Add favicon
|
* Add favicon
|
||||||
* Better configuration page
|
* Better configuration page
|
||||||
|
@ -54,7 +54,7 @@ myShaarli Features :
|
||||||
* New default theme
|
* New default theme
|
||||||
* Add link to archive.org (qwertygc https://github.com/nodiscc/Shaarli/commit/b113dc8e6bba052883297ab575dd36fd3073805e)
|
* Add link to archive.org (qwertygc https://github.com/nodiscc/Shaarli/commit/b113dc8e6bba052883297ab575dd36fd3073805e)
|
||||||
* myShaali can use Firefox social API (Marsup https://github.com/shaarli/Shaarli/commit/d33c5d4c3b9c70441391a08e8bcb2a8c639a4635)
|
* myShaali can use Firefox social API (Marsup https://github.com/shaarli/Shaarli/commit/d33c5d4c3b9c70441391a08e8bcb2a8c639a4635)
|
||||||
* myShaali can post original article to wallabag (nodiscc https://github.com/nodiscc/Shaarli/tree/new-plugin-system/tpl/plugins/wallabag)
|
* myShaali can post original article to Wallabag (v1/v2)(nodiscc https://github.com/nodiscc/Shaarli/tree/new-plugin-system/tpl/plugins/wallabag)
|
||||||
* myShaali implement OpenSearch (ArthurHoaro https://github.com/shaarli/Shaarli/issues/176)
|
* myShaali implement OpenSearch (ArthurHoaro https://github.com/shaarli/Shaarli/issues/176)
|
||||||
* Few small fix
|
* Few small fix
|
||||||
* You can upgrade original Shaarli to myShaarli without lost your data
|
* You can upgrade original Shaarli to myShaarli without lost your data
|
||||||
|
|
16
index.php
16
index.php
|
@ -32,7 +32,7 @@
|
||||||
// Note: You must have publisher.php in the same directory as Shaarli index.php
|
// Note: You must have publisher.php in the same directory as Shaarli index.php
|
||||||
$GLOBALS['config']['UPDATECHECK_FILENAME'] = $GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt'; // For updates check of Shaarli.
|
$GLOBALS['config']['UPDATECHECK_FILENAME'] = $GLOBALS['config']['DATADIR'].'/lastupdatecheck.txt'; // For updates check of Shaarli.
|
||||||
$GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400; // Updates check frequency for Shaarli. 86400 seconds=24 hours
|
$GLOBALS['config']['UPDATECHECK_INTERVAL'] = 86400; // Updates check frequency for Shaarli. 86400 seconds=24 hours
|
||||||
$GLOBALS['config']['UPDATECHECK_URL'] = 'http://book.knah-tsaeb.org/shaarli_version.txt'; // Define last version of myShaarli
|
$GLOBALS['config']['UPDATECHECK_URL'] = 'https://book.knah-tsaeb.org/shaarli_version.txt'; // Define last version of myShaarli
|
||||||
$GLOBALS['config']['UPDATECHECK_DOWNLOAD'] = 'https://forge.leslibres.org/Knah-Tsaeb/MyShaarli';
|
$GLOBALS['config']['UPDATECHECK_DOWNLOAD'] = 'https://forge.leslibres.org/Knah-Tsaeb/MyShaarli';
|
||||||
$GLOBALS['config']['ENABLE_UPDATECHECK'] = true;
|
$GLOBALS['config']['ENABLE_UPDATECHECK'] = true;
|
||||||
$GLOBALS['config']['externalThumbshot'] = ''; // Url for external thumbnailer
|
$GLOBALS['config']['externalThumbshot'] = ''; // Url for external thumbnailer
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
// the last param must be a url
|
// the last param must be a url
|
||||||
$GLOBALS['config']['ENABLE_MARKDOWN'] = true;
|
$GLOBALS['config']['ENABLE_MARKDOWN'] = true;
|
||||||
$GLOBALS['config']['WALLABAG_URL'] = '';
|
$GLOBALS['config']['WALLABAG_URL'] = '';
|
||||||
|
$GLOBALS['config']['WALLABAG_VERSION'] = ''; // 1 for V1 or 2 for v2
|
||||||
$GLOBALS['config']['contactLink'] = ''; // Define link for contact Example : http://example.com/contact.php or mailo:contact@example.com
|
$GLOBALS['config']['contactLink'] = ''; // Define link for contact Example : http://example.com/contact.php or mailo:contact@example.com
|
||||||
$GLOBALS['config']['THEME'] = 'myShaarli';
|
$GLOBALS['config']['THEME'] = 'myShaarli';
|
||||||
$GLOBALS['config']['DATE_FORMAT'] = '%A %d %B %Y %T'; // see http://php.net/manual/en/function.strftime.php for more example
|
$GLOBALS['config']['DATE_FORMAT'] = '%A %d %B %Y %T'; // see http://php.net/manual/en/function.strftime.php for more example
|
||||||
|
@ -54,7 +55,7 @@
|
||||||
require $GLOBALS['config']['DATADIR'].'/options.php';
|
require $GLOBALS['config']['DATADIR'].'/options.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
define('myShaarli_version', '1.1.4');
|
define('myShaarli_version', '1.1.5');
|
||||||
define('PHPPREFIX', '<?php /* '); // Prefix to encapsulate data in php code.
|
define('PHPPREFIX', '<?php /* '); // Prefix to encapsulate data in php code.
|
||||||
define('PHPSUFFIX', ' */ ?>'); // Suffix to encapsulate data in php code.
|
define('PHPSUFFIX', ' */ ?>'); // Suffix to encapsulate data in php code.
|
||||||
// http://server.com/x/shaarli --> /shaarli/
|
// http://server.com/x/shaarli --> /shaarli/
|
||||||
|
@ -206,7 +207,7 @@ function checkUpdate()
|
||||||
if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME']) < time() - ($GLOBALS['config']['UPDATECHECK_INTERVAL']))) {
|
if (!is_file($GLOBALS['config']['UPDATECHECK_FILENAME']) || (filemtime($GLOBALS['config']['UPDATECHECK_FILENAME']) < time() - ($GLOBALS['config']['UPDATECHECK_INTERVAL']))) {
|
||||||
$version = myShaarli_version;
|
$version = myShaarli_version;
|
||||||
list($httpstatus, $headers, $data) = getHTTP($GLOBALS['config']['UPDATECHECK_URL'], 2);
|
list($httpstatus, $headers, $data) = getHTTP($GLOBALS['config']['UPDATECHECK_URL'], 2);
|
||||||
if (strpos($httpstatus, '200 OK') !== false) {
|
if (strpos($httpstatus, '200 OK') !== false || strpos($httpstatus, '301') !== false) {
|
||||||
$version = $data;
|
$version = $data;
|
||||||
}
|
}
|
||||||
// If failed, nevermind. We don't want to bother the user with that.
|
// If failed, nevermind. We don't want to bother the user with that.
|
||||||
|
@ -223,7 +224,6 @@ function checkUpdate()
|
||||||
if (version_compare(strtolower(myShaarli_version), strtolower($newestversion)) == -1) {
|
if (version_compare(strtolower(myShaarli_version), strtolower($newestversion)) == -1) {
|
||||||
return 'New update of myShaarli available.';
|
return 'New update of myShaarli available.';
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1770,6 +1770,9 @@ function renderPage()
|
||||||
$GLOBALS['config']['contactLink'] = $_POST['contactLink'];
|
$GLOBALS['config']['contactLink'] = $_POST['contactLink'];
|
||||||
$_SESSION['LINKS_PER_PAGE'] = (int) $_POST['linkPerPage'];
|
$_SESSION['LINKS_PER_PAGE'] = (int) $_POST['linkPerPage'];
|
||||||
$GLOBALS['config']['DATE_FORMAT'] = strip_tags($_POST['dateFormat']);
|
$GLOBALS['config']['DATE_FORMAT'] = strip_tags($_POST['dateFormat']);
|
||||||
|
$GLOBALS['config']['WALLABAG_URL'] = $_POST['wallabagUrl'];
|
||||||
|
$GLOBALS['config']['WALLABAG_VERSION'] = (int)$_POST['wallabagVersion'];
|
||||||
|
|
||||||
writeConfig();
|
writeConfig();
|
||||||
echo '<script>alert("Configuration was saved.");document.location=\'?do=configure\';</script>';
|
echo '<script>alert("Configuration was saved.");document.location=\'?do=configure\';</script>';
|
||||||
exit;
|
exit;
|
||||||
|
@ -2811,7 +2814,10 @@ function writeConfig()
|
||||||
$config .= '$GLOBALS[\'config\'][\'externalThumbshot\'] = '.var_export($GLOBALS['config']['externalThumbshot'], true).';'."\n";
|
$config .= '$GLOBALS[\'config\'][\'externalThumbshot\'] = '.var_export($GLOBALS['config']['externalThumbshot'], true).';'."\n";
|
||||||
$config .= '$GLOBALS[\'config\'][\'contactLink\'] = '.var_export($GLOBALS['config']['contactLink'], true).';'."\n";
|
$config .= '$GLOBALS[\'config\'][\'contactLink\'] = '.var_export($GLOBALS['config']['contactLink'], true).';'."\n";
|
||||||
$config .= '$GLOBALS[\'config\'][\'DATE_FORMAT\'] = '.var_export($GLOBALS['config']['DATE_FORMAT'], true).';'."\n";
|
$config .= '$GLOBALS[\'config\'][\'DATE_FORMAT\'] = '.var_export($GLOBALS['config']['DATE_FORMAT'], true).';'."\n";
|
||||||
if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'], $config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']), $config) != 0) {
|
$config .= '$GLOBALS[\'config\'][\'WALLABAG_URL\'] = '.var_export($GLOBALS['config']['WALLABAG_URL'], true).';'."\n";
|
||||||
|
$config .= '$GLOBALS[\'config\'][\'WALLABAG_VERSION\'] = '.var_export($GLOBALS['config']['WALLABAG_VERSION'], true).';'."\n";
|
||||||
|
if (!file_put_contents($GLOBALS['config']['CONFIG_FILE'],$config) || strcmp(file_get_contents($GLOBALS['config']['CONFIG_FILE']),$config)!=0)
|
||||||
|
{
|
||||||
echo '<script>alert("Shaarli could not create the config file. Please make sure Shaarli has the right to write in the folder is it installed in.");document.location=\'?\';</script>';
|
echo '<script>alert("Shaarli could not create the config file. Please make sure Shaarli has the right to write in the folder is it installed in.");document.location=\'?\';</script>';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1.1.4
|
1.1.5
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
{include="includes"}
|
{include="includes"}
|
||||||
<link type="text/css" rel="stylesheet" href="myShaarli.css?version={$version|urlencode}" />
|
<link type="text/css" rel="stylesheet" href="myShaarli.css?version={$version|urlencode}" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"} {$timezone_js}
|
||||||
{$timezone_js}
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<form method="post" action="" name="configform" id="configform">
|
<form method="post" action="" name="configform" id="configform">
|
||||||
|
@ -35,8 +36,7 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="redirector">Redirector : </label>
|
<label for="redirector">Redirector : </label>
|
||||||
<input type="text" name="redirector" id="redirector" value="{$redirector}">
|
<input type="text" name="redirector" id="redirector" value="{$redirector}"> (e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)
|
||||||
(e.g. <i>http://anonym.to/?</i> will mask the HTTP_REFERER)
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="enableCache">Enable local cache : </label>
|
<label for="enableCache">Enable local cache : </label>
|
||||||
|
@ -59,8 +59,7 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="banDuration">Ban time : </label>
|
<label for="banDuration">Ban time : </label>
|
||||||
<input type="text" name="banDuration" id="banDuration" value="{$GLOBALS['config']['BAN_DURATION']}"/>
|
<input type="text" name="banDuration" id="banDuration" value="{$GLOBALS['config']['BAN_DURATION']}" /> in second
|
||||||
in second
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="updateCheck">Update :</label>
|
<label for="updateCheck">Update :</label>
|
||||||
|
@ -91,7 +90,8 @@
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="dateFormat">Date Format : </label>
|
<label for="dateFormat">Date Format : </label>
|
||||||
<input type="text" name="dateFormat" id="dateFormat" value="{$GLOBALS['config']['DATE_FORMAT']}"/><label>See <a href="http://php.net/manual/en/function.strftime.php">PHP documentation</a></label>
|
<input type="text" name="dateFormat" id="dateFormat" value="{$GLOBALS['config']['DATE_FORMAT']}" />
|
||||||
|
<label>See <a href="http://php.net/manual/en/function.strftime.php">PHP documentation</a></label>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -120,6 +120,17 @@
|
||||||
<label for="enableFavicon">Enable favicon : </label>
|
<label for="enableFavicon">Enable favicon : </label>
|
||||||
<input type="checkbox" name="enableFavicon" id="enableFavicon" {if="!empty($GLOBALS['config']['ENABLE_FAVICON'])"}checked{/if}/>
|
<input type="checkbox" name="enableFavicon" id="enableFavicon" {if="!empty($GLOBALS['config']['ENABLE_FAVICON'])"}checked{/if}/>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="wallabagUrl">Wallabag URL : </label>
|
||||||
|
<input type="text" name="wallabagUrl" id="wallabagUrl" value="{$GLOBALS['config']['WALLABAG_URL']}">
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="wallabagVersion">Wallabag version : </label>
|
||||||
|
<select name="wallabagVersion" id="wallabagVersion">
|
||||||
|
<option {if="$GLOBALS['config']['WALLABAG_VERSION']===1"}selected{/if} value="1">v1</option>
|
||||||
|
<option {if="$GLOBALS['config']['WALLABAG_VERSION']===2"}selected{/if} value="2">v2</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -131,4 +142,5 @@
|
||||||
</div>
|
</div>
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -80,9 +80,12 @@ <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirecto
|
||||||
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
|
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
|
||||||
{/if}
|
{/if}
|
||||||
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
|
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
|
||||||
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn()"}
|
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn() && $GLOBALS['config']['WALLABAG_VERSION']===1"}
|
||||||
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
||||||
{/if}
|
{/if}
|
||||||
|
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn() && $GLOBALS['config']['WALLABAG_VERSION']===2"}
|
||||||
|
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/bookmarklet?url={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
||||||
|
{/if}
|
||||||
<span><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
|
<span><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
|
||||||
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
|
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -113,6 +113,17 @@
|
||||||
<label for="enableFavicon">Enable favicon : </label>
|
<label for="enableFavicon">Enable favicon : </label>
|
||||||
<input type="checkbox" name="enableFavicon" id="enableFavicon" {if="!empty($GLOBALS['config']['ENABLE_FAVICON'])"}checked{/if}/>
|
<input type="checkbox" name="enableFavicon" id="enableFavicon" {if="!empty($GLOBALS['config']['ENABLE_FAVICON'])"}checked{/if}/>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="wallabagUrl">Wallabag URL : </label>
|
||||||
|
<input type="text" name="wallabagUrl" id="wallabagUrl" value="{$GLOBALS['config']['WALLABAG_URL']}">
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="wallabagVersion">Wallabag version : </label>
|
||||||
|
<select name="wallabagVersion" id="wallabagVersion">
|
||||||
|
<option {if="$GLOBALS['config']['WALLABAG_VERSION']===1"}selected{/if} value="1">v1</option>
|
||||||
|
<option {if="$GLOBALS['config']['WALLABAG_VERSION']===2"}selected{/if} value="2">v2</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -80,9 +80,12 @@ <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirecto
|
||||||
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
|
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
|
||||||
{/if}
|
{/if}
|
||||||
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
|
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
|
||||||
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn()"}
|
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn() && $GLOBALS['config']['WALLABAG_VERSION']===1"}
|
||||||
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
||||||
{/if}
|
{/if}
|
||||||
|
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn() && $GLOBALS['config']['WALLABAG_VERSION']===2"}
|
||||||
|
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/bookmarklet?url={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
||||||
|
{/if}
|
||||||
<span><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
|
<span><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
|
||||||
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
|
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -113,6 +113,17 @@
|
||||||
<label for="enableFavicon">Enable favicon : </label>
|
<label for="enableFavicon">Enable favicon : </label>
|
||||||
<input type="checkbox" name="enableFavicon" id="enableFavicon" {if="!empty($GLOBALS['config']['ENABLE_FAVICON'])"}checked{/if}/>
|
<input type="checkbox" name="enableFavicon" id="enableFavicon" {if="!empty($GLOBALS['config']['ENABLE_FAVICON'])"}checked{/if}/>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="wallabagUrl">Wallabag URL : </label>
|
||||||
|
<input type="text" name="wallabagUrl" id="wallabagUrl" value="{$GLOBALS['config']['WALLABAG_URL']}">
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<label for="wallabagVersion">Wallabag version : </label>
|
||||||
|
<select name="wallabagVersion" id="wallabagVersion">
|
||||||
|
<option {if="$GLOBALS['config']['WALLABAG_VERSION']===1"}selected{/if} value="1">v1</option>
|
||||||
|
<option {if="$GLOBALS['config']['WALLABAG_VERSION']===2"}selected{/if} value="2">v2</option>
|
||||||
|
</select>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -80,9 +80,12 @@ <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirecto
|
||||||
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
|
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
|
||||||
{/if}
|
{/if}
|
||||||
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
|
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
|
||||||
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn()"}
|
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn() && $GLOBALS['config']['WALLABAG_VERSION']===1"}
|
||||||
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
||||||
{/if}
|
{/if}
|
||||||
|
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn() && $GLOBALS['config']['WALLABAG_VERSION']===2"}
|
||||||
|
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/bookmarklet?url={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
|
||||||
|
{/if}
|
||||||
<span><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
|
<span><a href="http://qrfree.kaywa.com/?l=1&s=8&d={$scripturl|urlencode}%3F{$value.linkdate|smallHash}"
|
||||||
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
|
onclick="showQrCode(this); return false;" class="qrcode" data-permalink="{$scripturl}?{$value.linkdate|smallHash}"><img src="images/qrcode.png#" title="QR-Code" alt="qrcode logo"></a></span> - <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
|
@ -232,7 +232,7 @@ cursor:pointer;
|
||||||
.linktitle { font-size:14pt; font-weight:bold; }
|
.linktitle { font-size:14pt; font-weight:bold; }
|
||||||
.linktitle a { text-decoration: none; color:#80AD48; }
|
.linktitle a { text-decoration: none; color:#80AD48; }
|
||||||
.linktitle a:hover { color:#F57900; }
|
.linktitle a:hover { color:#F57900; }
|
||||||
.linkdate, .linkarchive { font-size:8pt; color:#888; }
|
.linkdate, .linkarchive, .linkWallabag { font-size:8pt; color:#888; }
|
||||||
.linkdate a, .linkarchive a { color:#E28E3F;text-decoration: none;}
|
.linkdate a, .linkarchive a { color:#E28E3F;text-decoration: none;}
|
||||||
.linkarchive a {background-image:url('../../images/logo_Archive.org.jpg');padding:2px 0 3px 20px;background-repeat:no-repeat;}
|
.linkarchive a {background-image:url('../../images/logo_Archive.org.jpg');padding:2px 0 3px 20px;background-repeat:no-repeat;}
|
||||||
.linkdate a {background-image:url('../../images/calendar.png');padding:2px 0 3px 20px;background-repeat:no-repeat;}
|
.linkdate a {background-image:url('../../images/calendar.png');padding:2px 0 3px 20px;background-repeat:no-repeat;}
|
||||||
|
@ -469,3 +469,15 @@ div.dailyEntryDescription { font-size:10pt; }
|
||||||
|
|
||||||
/* Highlight search results */
|
/* Highlight search results */
|
||||||
.highlight { background-color: #FFFF33; }
|
.highlight { background-color: #FFFF33; }
|
||||||
|
|
||||||
|
.linkWallabag a {
|
||||||
|
background-image: url(../../images/logo_wallabag.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.linkBottom a {
|
||||||
|
color: #E28E3F;
|
||||||
|
line-height: 1.6em;
|
||||||
|
padding: 2px 0 3px 20px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue