[chg] clean up html code and format
This commit is contained in:
parent
d02bf19916
commit
b6d9d9b37a
16 changed files with 295 additions and 230 deletions
|
@ -377,6 +377,12 @@ a, .linkdescription a {
|
||||||
width: 2em;
|
width: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.removeTag {
|
||||||
|
border-left: 1px solid #aaa;
|
||||||
|
color: #6767A7;
|
||||||
|
padding-left: .2em;
|
||||||
|
}
|
||||||
|
|
||||||
.tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton {
|
.tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton {
|
||||||
background: linear-gradient(#dedede,#ffffff);
|
background: linear-gradient(#dedede,#ffffff);
|
||||||
background-color: #dedede;
|
background-color: #dedede;
|
||||||
|
|
|
@ -652,6 +652,12 @@ a, .linkdescription a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.removeTag {
|
||||||
|
border-left: 1px solid #aaa;
|
||||||
|
color: #6767A7;
|
||||||
|
padding-left: .2em;
|
||||||
|
}
|
||||||
|
|
||||||
.markdownHelp {
|
.markdownHelp {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
padding: .3em;
|
padding: .3em;
|
||||||
|
@ -1090,7 +1096,7 @@ a:hover, .linkdescription a:hover, .linktitle a:hover, .linkWallabag a:hover, .l
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media handheld, only screen and (max-width: 480px), only screen and (max-device-width: 854px) {
|
@media handheld, only screen and (max-width: 480px) , only screen and (max-device-width: 854px) {
|
||||||
#pageheader a {
|
#pageheader a {
|
||||||
border-radius: 5px 5px 5px 5px;
|
border-radius: 5px 5px 5px 5px;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
<div id="headerform">
|
<div id="headerform">
|
||||||
<form method="GET" action="" name="addform" class="addform">
|
<form method="get" name="addform" class="addform">
|
||||||
<input type="text" name="post" autofocus>
|
<input type="text" name="post" autofocus>
|
||||||
<input type="submit" value="Add link" class="bigbutton">
|
<input type="submit" value="Add link" class="bigbutton">
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
<form method="POST" action="" name="changepasswordform" id="changepasswordform">
|
<form method="post" name="changepasswordform" id="changepasswordform">
|
||||||
<p>
|
<p>
|
||||||
<label for="oldpassword">Old password:</label>
|
<label for="oldpassword">Old password:</label>
|
||||||
<input type="password" name="oldpassword" id="oldpassword" autofocus/>
|
<input type="password" name="oldpassword" id="oldpassword" autofocus/>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
<form method="POST" action="" name="changetag" id="editlinkform">
|
<form method="post" name="changetag" id="editlinkform">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>
|
||||||
Rename tag
|
Rename tag
|
||||||
|
@ -43,7 +43,15 @@
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
{include="page.footer"}
|
||||||
|
{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
|
||||||
<script>
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('.fromtag').autocomplete({
|
||||||
|
source : '{$source}?ws=singletag',
|
||||||
|
minLength : 1
|
||||||
|
});
|
||||||
function confirmDeleteTag() {
|
function confirmDeleteTag() {
|
||||||
var agree = confirm("Are you sure you want to delete this tag from all links ?");
|
var agree = confirm("Are you sure you want to delete this tag from all links ?");
|
||||||
if (agree) {
|
if (agree) {
|
||||||
|
@ -52,16 +60,6 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
</div>
|
|
||||||
{include="page.footer"}
|
|
||||||
{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
|
|
||||||
<script language="JavaScript">
|
|
||||||
$(document).ready(function() {
|
|
||||||
$('.fromtag').autocomplete({
|
|
||||||
source : '{$source}?ws=singletag',
|
|
||||||
minLength : 1
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
{$timezone_js}
|
{$timezone_js}
|
||||||
<form method="POST" action="" name="configform" id="configform">
|
<form method="post" action="" name="configform" id="configform">
|
||||||
<ul class="tabs">
|
<ul class="tabs">
|
||||||
<li>
|
<li>
|
||||||
<input type="radio" checked name="tabs" id="tab1">
|
<input type="radio" checked name="tabs" id="tab1">
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<input type="text" id="lf_title" name="lf_title" value="{$link.title|htmlspecialchars}">
|
<input type="text" id="lf_title" name="lf_title" value="{$link.title|htmlspecialchars}">
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<label for="lf_description">Description</label><a href="" id="help"><img src="../images/help_icon.png" alt="help icon"/></a>
|
<label for="lf_description">Description</label><a href="doc/markdown.php" id="help"><img src="../images/help_icon.png" alt="help icon"/></a>
|
||||||
<textarea id="lf_description" name="lf_description" rows="4" cols="25">{$link.description|htmlspecialchars}</textarea>
|
<textarea id="lf_description" name="lf_description" rows="4" cols="25">{$link.description|htmlspecialchars}</textarea>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -1,15 +1,28 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>{include="includes"}</head>
|
<head>
|
||||||
<body>
|
{include="includes"}
|
||||||
<div id="pageheader">
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
<div id="toolsdiv">
|
<div id="toolsdiv">
|
||||||
<a href="?do=export&what=all"><b>Export all</b> <span>: Export all links</span></a><br><br>
|
<ul>
|
||||||
<a href="?do=export&what=public"><b>Export public</b> <span>: Export public links only</a><br><br>
|
<li>
|
||||||
<a href="?do=export&what=private"><b>Export private</b> <span>: Export private links only</a><br><br style="clear:both;">
|
<a href="?do=export&what=all">Export all <span>: Export all links</span></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="?do=export&what=public">Export public <span>: Export public links only</span></a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="?do=export&what=private">Export private <span>: Export private links only</span></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="clearFix">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{include="page.footer"}
|
</div>
|
||||||
</body>
|
{include="page.footer"}
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,21 +1,33 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>{include="includes"}</head>
|
<head>
|
||||||
<body onload="document.uploadform.filetoupload.focus();">
|
{include="includes"}
|
||||||
<div id="pageheader">
|
</head>
|
||||||
|
<body onload="document.uploadform.filetoupload.focus();">
|
||||||
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
<div id="uploaddiv">
|
<div id="uploaddiv">
|
||||||
Import Netscape html bookmarks (as exported from Firefox/Chrome/Opera/delicious/diigo...) (Max: {$maxfilesize|htmlspecialchars} bytes).
|
Import Netscape html bookmarks (as exported from Firefox/Chrome/Opera/delicious/diigo...) (Max: {$maxfilesize|htmlspecialchars} bytes).
|
||||||
<form method="POST" action="?do=upload" enctype="multipart/form-data" name="uploadform" id="uploadform">
|
<form method="post" action="?do=upload" enctype="multipart/form-data" name="uploadform" id="uploadform">
|
||||||
<input type="hidden" name="token" value="{$token}">
|
<p>
|
||||||
<input type="file" name="filetoupload" size="80">
|
<input type="file" name="filetoupload" size="80">
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="checkbox" name="private" id="private">
|
||||||
|
<label for="private"> Import all links as private</label>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<input type="checkbox" name="overwrite" id="overwrite">
|
||||||
|
<label for="overwrite"> Overwrite existing links</label>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
<input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize|htmlspecialchars}">
|
<input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize|htmlspecialchars}">
|
||||||
<input type="submit" name="import_file" value="Import" class="bigbutton"><br>
|
<input type="hidden" name="token" value="{$token}">
|
||||||
<input type="checkbox" name="private" id="private"><label for="private"> Import all links as private</label><br>
|
<input type="submit" name="import_file" value="Import" class="bigbutton">
|
||||||
<input type="checkbox" name="overwrite" id="overwrite"><label for="overwrite"> Overwrite existing links</label>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -10,4 +10,6 @@
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon_32.png#" />
|
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon_32.png#" />
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon_16.png#" />
|
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon_16.png#" />
|
||||||
<link type="text/css" rel="stylesheet" href="inc/styles/{$theme}.css?version={$version|urlencode}#" />
|
<link type="text/css" rel="stylesheet" href="inc/styles/{$theme}.css?version={$version|urlencode}#" />
|
||||||
{if condition="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />{/if}
|
{if condition="is_file('inc/user.css')"}
|
||||||
|
<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />
|
||||||
|
{/if}
|
|
@ -7,55 +7,73 @@
|
||||||
<script src="inc/jquery-ui.min.js#"></script>
|
<script src="inc/jquery-ui.min.js#"></script>
|
||||||
{/if}
|
{/if}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
<div id="headerform">
|
<div id="headerform">
|
||||||
<form method="GET" class="searchform" name="searchform">
|
<form method="get" class="searchform" name="searchform">
|
||||||
<input type="text" id="searchform_value" name="searchterm" value="" placeholder="Search text"/>
|
<input type="text" id="searchform_value" name="searchterm" value="" placeholder="Search text"/>
|
||||||
<input type="submit" value="Search" class="bigbutton"/>
|
<input type="submit" value="Search" class="bigbutton"/>
|
||||||
</form>
|
</form>
|
||||||
<form method="GET" class="tagfilter" name="tagfilter">
|
<form method="get" class="tagfilter" name="tagfilter">
|
||||||
<input type="text" name="searchtags" id="tagfilter_value" value="{loop="search_crits"}{$value|htmlspecialchars} {/loop}" placeholder="Filter by tag"/>
|
<input type="text" name="searchtags" id="tagfilter_value" value="{loop="search_crits"}{$value|htmlspecialchars} {/loop}" placeholder="Filter by tag"/>
|
||||||
<input type="submit" value="Filter by tag" class="bigbutton"/>
|
<input type="submit" value="Filter by tag" class="bigbutton"/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="linklist">
|
<div id="linklist">
|
||||||
|
|
||||||
{include="linklist.paging"}
|
{include="linklist.paging"}
|
||||||
|
|
||||||
{if="count($links)==0"}
|
{if="count($links)==0"}
|
||||||
<div id="searchcriteria">Nothing found.</div>
|
<div id="searchcriteria">
|
||||||
|
Nothing found.
|
||||||
|
</div>
|
||||||
{else}
|
{else}
|
||||||
{if="$search_type=='fulltext'"}
|
{if="$search_type=='fulltext'"}
|
||||||
<div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div>
|
<div id="searchcriteria">
|
||||||
|
{$result_count} results for <i>{$search_crits}</i>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{if="$search_type=='tags'"}
|
{if="$search_type=='tags'"}
|
||||||
<div id="searchcriteria">{$result_count} results for tags <i>
|
<div id="searchcriteria">
|
||||||
{loop="search_crits"}
|
{$result_count} results for tags <i> {loop="search_crits"} <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span class="removeTag">x</span></a></span> {/loop}</i>
|
||||||
<span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span style="border-left:1px solid #aaa; padding-left:5px; color:#6767A7;">x</span></a></span>
|
</div>
|
||||||
{/loop}</i></div>
|
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<ul class="linkList">
|
<ul class="linkList">
|
||||||
{loop="links"}
|
{loop="links"}
|
||||||
<li{if="$value.class"} class="{$value.class}"{/if}>
|
<li {if="$value.class"} class="{$value.class}"{/if} >
|
||||||
<a name="{$value.linkdate|smallHash}" id="{$value.linkdate|smallHash}"></a>
|
<!--<a name="{$value.linkdate|smallHash}" id="{$value.linkdate|smallHash}"></a>-->
|
||||||
{if="$GLOBALS['config']['ENABLE_THUMBNAILS']"}
|
{if="$GLOBALS['config']['ENABLE_THUMBNAILS']"}
|
||||||
<div class="thumbnail">{$value.url|thumbnail}</div>
|
<div class="thumbnail">
|
||||||
|
{$value.url|thumbnail}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="linkcontainer {if="$GLOBALS['config']['ENABLE_THUMBNAILS']"}linkcontainerThumb{/if}">
|
<div class="linkcontainer {if="$GLOBALS['config']['ENABLE_THUMBNAILS']"}linkcontainerThumb{/if}">
|
||||||
{if="isLoggedIn()"}
|
{if="isLoggedIn()"}
|
||||||
<div class="linkeditbuttons">
|
<div class="linkeditbuttons">
|
||||||
<form method="GET" class="buttoneditform"><input type="hidden" name="edit_link" value="{$value.linkdate}"><input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"></form><br>
|
<form method="get" class="buttoneditform">
|
||||||
<form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
|
<input type="hidden" name="edit_link" value="{$value.linkdate}">
|
||||||
<input type="hidden" name="token" value="{$token}"><input type="hidden" name="delete_link"><input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();"></form>
|
<input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
|
||||||
|
</form>
|
||||||
|
<br>
|
||||||
|
<form method="post" class="buttoneditform">
|
||||||
|
<input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
|
||||||
|
<input type="hidden" name="token" value="{$token}">
|
||||||
|
<input type="hidden" name="delete_link">
|
||||||
|
<input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();">
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></h3>
|
<h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></h3>
|
||||||
{if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"}{/if}>{$value.description}</div>{/if}
|
{if="$value.description"}
|
||||||
{if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">Origine => {$value.via|getJustDomain}</a></div>{/if}
|
<div class="linkdescription" {if condition="$search_type=='permalink'"}{/if}>
|
||||||
|
{$value.description}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
{if condition="isset($value.via) && !empty($value.via)"}
|
||||||
|
<div>
|
||||||
|
<a href="{$value.via}">Origine => {$value.via|getJustDomain}</a>
|
||||||
|
</div>{/if}
|
||||||
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
|
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
|
||||||
<span class="linkdate linkBottom" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
|
<span class="linkdate linkBottom" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
|
||||||
{else}
|
{else}
|
||||||
|
@ -66,80 +84,76 @@ <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirecto
|
||||||
<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}
|
||||||
<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#" width="13" height="13" title="QR-Code" alt="qrcode logo"></a></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>
|
||||||
<span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br>
|
<br>
|
||||||
{if="$value.tags"}
|
{if="$value.tags"}
|
||||||
<div class="linktaglist">
|
<div class="linktaglist">
|
||||||
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop}
|
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<span class="clearFix"></span>
|
<span class="clearFix"> </span>
|
||||||
</li>
|
</li>
|
||||||
{/loop}
|
{/loop}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{include="linklist.paging"}
|
{include="linklist.paging"}
|
||||||
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
|
<script>
|
||||||
<script>
|
$('#tagfilter_value').autocomplete({
|
||||||
|
|
||||||
$('#tagfilter_value').autocomplete({
|
|
||||||
source : '{$source}?ws=tags',
|
source : '{$source}?ws=tags',
|
||||||
minLength : 1
|
minLength : 1
|
||||||
});
|
});
|
||||||
|
// Remove any displayed QR-Code
|
||||||
// Remove any displayed QR-Code
|
function remove_qrcode() {
|
||||||
function remove_qrcode()
|
|
||||||
{
|
|
||||||
var elem = document.getElementById("permalinkQrcode");
|
var elem = document.getElementById("permalinkQrcode");
|
||||||
if (elem) elem.parentNode.removeChild(elem);
|
if (elem)
|
||||||
|
elem.parentNode.removeChild(elem);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Show the QR-Code of a permalink (when the QR-Code icon is clicked).
|
||||||
// Show the QR-Code of a permalink (when the QR-Code icon is clicked).
|
function showQrCode(caller,loading=false) {
|
||||||
function showQrCode(caller,loading=false)
|
|
||||||
{
|
|
||||||
// Dynamic javascript lib loading: We only load qr.js if the QR code icon is clicked:
|
// Dynamic javascript lib loading: We only load qr.js if the QR code icon is clicked:
|
||||||
if (typeof(qr)=='undefined') // Load qr.js only if not present.
|
if ( typeof (qr) == 'undefined')// Load qr.js only if not present.
|
||||||
{
|
{
|
||||||
if (!loading) // If javascript lib is still loading, do not append script to body.
|
if (!loading)// If javascript lib is still loading, do not append script to body.
|
||||||
{
|
{
|
||||||
var element = document.createElement("script");
|
var element = document.createElement("script");
|
||||||
element.src = "inc/qr.min.js";
|
element.src = "inc/qr.min.js";
|
||||||
document.body.appendChild(element);
|
document.body.appendChild(element);
|
||||||
}
|
}
|
||||||
setTimeout(function() { showQrCode(caller,true);}, 200); // Retry in 200 milliseconds.
|
setTimeout(function() {
|
||||||
|
showQrCode(caller, true);
|
||||||
|
}, 200);
|
||||||
|
// Retry in 200 milliseconds.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove previous qrcode if present.
|
// Remove previous qrcode if present.
|
||||||
remove_qrcode();
|
remove_qrcode();
|
||||||
|
|
||||||
// Build the div which contains the QR-Code:
|
// Build the div which contains the QR-Code:
|
||||||
var element = document.createElement('div');
|
var element = document.createElement('div');
|
||||||
element.id="permalinkQrcode";
|
element.id = "permalinkQrcode";
|
||||||
// Make QR-Code div commit sepuku when clicked:
|
// Make QR-Code div commit sepuku when clicked:
|
||||||
if ( element.attachEvent ){ element.attachEvent('onclick', 'this.parentNode.removeChild(this);' ); } // Damn IE
|
if (element.attachEvent) {
|
||||||
else { element.setAttribute('onclick', 'this.parentNode.removeChild(this);' ); }
|
element.attachEvent('onclick', 'this.parentNode.removeChild(this);');
|
||||||
|
}// Damn IE
|
||||||
// Build the QR-Code:
|
else {
|
||||||
var image = qr.image({size: 8,value: caller.dataset.permalink});
|
element.setAttribute('onclick', 'this.parentNode.removeChild(this);');
|
||||||
if (image)
|
|
||||||
{
|
|
||||||
element.appendChild(image);
|
|
||||||
element.innerHTML+= "<br>Click to close";
|
|
||||||
caller.parentNode.appendChild(element);
|
|
||||||
}
|
}
|
||||||
else
|
// Build the QR-Code:
|
||||||
{
|
var image = qr.image({
|
||||||
element.innerHTML="Your browser does not seem to be HTML5 compatible.";
|
size : 8,
|
||||||
|
value : caller.dataset.permalink
|
||||||
|
});
|
||||||
|
if (image) {
|
||||||
|
element.appendChild(image);
|
||||||
|
element.innerHTML += "<br>Click to close";
|
||||||
|
caller.parentNode.appendChild(element);
|
||||||
|
} else {
|
||||||
|
element.innerHTML = "Your browser does not seem to be HTML5 compatible.";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
{include="page.header"}
|
{include="page.header"}
|
||||||
|
|
||||||
<div id="headerform">
|
<div id="headerform">
|
||||||
{if="!ban_canLogin()"}
|
{if="!ban_canLogin()"}
|
||||||
You have been banned from login after too many failed attempts. Try later.
|
You have been banned from login after too many failed attempts. Try later.
|
||||||
|
|
|
@ -1,11 +1,23 @@
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<a href="https://forge.leslibres.org/projects/shaarli/repository/show?rev=myShaarli">myShaarli are made by Knah Tsaeb</a> is based on <b><a href="http://sebsauvage.net/wiki/doku.php?id=php:shaarli">Shaarli 0.0.41 beta</a></b> - The personal, minimalist, super-fast, no-database delicious clone. By <a href="http://sebsauvage.net" target="_blank">sebsauvage.net</a>.<br/>
|
<a href="https://forge.leslibres.org/projects/shaarli/repository/show?rev=myShaarli">myShaarli are made by Knah Tsaeb</a> is based on <b><a href="http://sebsauvage.net/wiki/doku.php?id=php:shaarli">Shaarli 0.0.41 beta</a></b> - The personal, minimalist, super-fast, no-database delicious clone. By <a href="http://sebsauvage.net" target="_blank">sebsauvage.net</a>.
|
||||||
Original theme by <a href="http://blog.idleman.fr" target="_blank">idleman.fr</a>.<br/>
|
<br/>
|
||||||
{if="$GLOBALS['config']['contactLink']"} For contact me <a href="{$GLOBALS['config']['contactLink']}">use this link</a>{/if}.
|
Original theme by <a href="http://blog.idleman.fr" target="_blank">idleman.fr</a>.
|
||||||
|
<br/>
|
||||||
|
{if="$GLOBALS['config']['contactLink']"} For contact me <a href="{$GLOBALS['config']['contactLink']}">use this link</a>{/if}.
|
||||||
</div>
|
</div>
|
||||||
{if="$newversion"}
|
{if="$newversion"}
|
||||||
<div id="newversion">●<a href="{$GLOBALS['config']['UPDATECHECK_DOWNLOAD']}">{$newversion|htmlspecialchars}</a></div>
|
<div id="newversion">
|
||||||
|
●<a href="{$GLOBALS['config']['UPDATECHECK_DOWNLOAD']}">{$newversion|htmlspecialchars}</a>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{if="isLoggedIn()"}
|
{if="isLoggedIn()"}
|
||||||
<script>function confirmDeleteLink() { var agree=confirm("Are you sure you want to delete this link ?"); if (agree) return true ; else return false ; }</script>
|
<script>
|
||||||
|
function confirmDeleteLink() {
|
||||||
|
var agree = confirm("Are you sure you want to delete this link ?");
|
||||||
|
if (agree)
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -1,25 +1,24 @@
|
||||||
|
<div id="logo" title="Share your links !" onclick="document.location='?';"></div>
|
||||||
<div id="logo" title="Share your links !" onclick="document.location='?';"></div>
|
<div id="linkcount" class="nomobile">
|
||||||
<div id="linkcount" class="nomobile">Shaare
|
Shaare
|
||||||
{if="!empty($linkcount)"}{$linkcount}{/if} links</div>
|
{if="!empty($linkcount)"}{$linkcount}{/if} links
|
||||||
<span id="shaarli_title"><a href="{$titleLink}">{$shaarlititle|htmlspecialchars}</a></span>
|
</div>
|
||||||
|
<span id="shaarli_title"><a href="{$titleLink}">{$shaarlititle|htmlspecialchars}</a></span>
|
||||||
{if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"}
|
{if="!empty($_GET['source']) && $_GET['source']=='bookmarklet'"}
|
||||||
{ignore} When called as a popup from bookmarklet, do not display menu. {/ignore}
|
{ignore} When called as a popup from bookmarklet, do not display menu. {/ignore}
|
||||||
{else}
|
{else}
|
||||||
<a href="?" class="nomobile">Home</a>
|
<a href="?" class="nomobile">Home</a>
|
||||||
{if="isLoggedIn()"}
|
{if="isLoggedIn()"}
|
||||||
<a href="?do=logout">Logout</a><a href="?do=tools">Tools</a><a href="?do=addlink"><b>Add link</b></a>
|
<a href="?do=logout">Logout</a><a href="?do=tools">Tools</a><a href="?do=addlink"><b>Add link</b></a>
|
||||||
{elseif="$GLOBALS['config']['OPEN_SHAARLI']"}
|
{elseif="$GLOBALS['config']['OPEN_SHAARLI']"}
|
||||||
<a href="?do=tools">Tools</a><a href="?do=addlink"><b>Add link</b></a>
|
<a href="?do=tools">Tools</a><a href="?do=addlink"><b>Add link</b></a>
|
||||||
{else}
|
{else}
|
||||||
<a href="?do=login">Login</a>
|
<a href="?do=login">Login</a>
|
||||||
{/if}
|
|
||||||
<a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a>
|
|
||||||
<a href="{$feedurl}?do=atom{$searchcrits}" style="padding-left:10px;" class="nomobile">ATOM Feed</a>
|
|
||||||
<a href="?do=tagcloud">Tag cloud</a>
|
|
||||||
<a href="?do=picwall{$searchcrits}">Picture wall</a>
|
|
||||||
<a href="?do=daily">Daily</a>
|
|
||||||
{/if}
|
{/if}
|
||||||
<div class="clear"></div>
|
<a href="{$feedurl}?do=rss{$searchcrits}" class="nomobile">RSS Feed</a>
|
||||||
|
<a href="{$feedurl}?do=atom{$searchcrits}" style="padding-left:10px;" class="nomobile">ATOM Feed</a>
|
||||||
|
<a href="?do=tagcloud">Tag cloud</a>
|
||||||
|
<a href="?do=picwall{$searchcrits}">Picture wall</a>
|
||||||
|
<a href="?do=daily">Daily</a>
|
||||||
|
{/if}
|
||||||
|
<div class="clear"></div>
|
|
@ -1,9 +1,13 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>{include="includes"}</head>
|
<head>
|
||||||
<body>
|
{include="includes"}
|
||||||
<div id="pageheader">{include="page.header"}</div>
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="pageheader">
|
||||||
|
{include="page.header"}
|
||||||
|
</div>
|
||||||
You body goes here...
|
You body goes here...
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,31 +1,31 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>{include="includes"}
|
<head>
|
||||||
{if="empty($GLOBALS['disablejquery'])"}
|
{include="includes"}
|
||||||
<script src="inc/jquery.min.js#"></script>
|
{if="empty($GLOBALS['disablejquery'])"}
|
||||||
<script src="inc/jquery-ui.min.js#"></script>
|
<script src="inc/jquery.min.js#"></script>
|
||||||
<script src="inc/jquery.lazyload.min.js#"></script>
|
<script src="inc/jquery-ui.min.js#"></script>
|
||||||
{/if}
|
<script src="inc/jquery.lazyload.min.js#"></script>
|
||||||
</head>
|
{/if}
|
||||||
<body>
|
</head>
|
||||||
<div id="pageheader">{include="page.header"}</div>
|
<body>
|
||||||
<center>
|
<div id="pageheader">
|
||||||
<div class="picwall_container">
|
{include="page.header"}
|
||||||
|
</div>
|
||||||
|
<div class="picwall_container">
|
||||||
{loop="linksToDisplay"}
|
{loop="linksToDisplay"}
|
||||||
<div class="picwall_pictureframe">
|
<div class="picwall_pictureframe">
|
||||||
{$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a>
|
{$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a>
|
||||||
</div>
|
</div>
|
||||||
{/loop}
|
{/loop}
|
||||||
</div>
|
</div>
|
||||||
</center>
|
{include="page.footer"}
|
||||||
{include="page.footer"}
|
{if="empty($GLOBALS['disablejquery'])"}
|
||||||
|
<script>
|
||||||
{if="empty($GLOBALS['disablejquery'])"}
|
$(document).ready(function() {
|
||||||
<script>
|
|
||||||
$(document).ready(function() {
|
|
||||||
$("img.lazyimage").show().lazyload();
|
$("img.lazyimage").show().lazyload();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/if}
|
{/if}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue