[chg] clean up html code and format

This commit is contained in:
Knah Tsaeb 2015-07-17 11:28:43 +02:00
parent d02bf19916
commit b6d9d9b37a
16 changed files with 295 additions and 230 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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>

View file

@ -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/>

View file

@ -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>
<script> </div>
{include="page.footer"}
{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
<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}

View file

@ -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">

View file

@ -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>

View file

@ -1,15 +1,28 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>{include="includes"}</head> <head>
<body> {include="includes"}
<div id="pageheader"> </head>
{include="page.header"} <body>
<div id="toolsdiv"> <div id="pageheader">
<a href="?do=export&what=all"><b>Export all</b> <span>: Export all links</span></a><br><br> {include="page.header"}
<a href="?do=export&what=public"><b>Export public</b> <span>: Export public links only</a><br><br> <div id="toolsdiv">
<a href="?do=export&what=private"><b>Export private</b> <span>: Export private links only</a><br><br style="clear:both;"> <ul>
</div> <li>
</div> <a href="?do=export&what=all">Export all <span>: Export all links</span></a>
{include="page.footer"} </li>
</body> <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">
&nbsp;
</div>
</div>
</div>
{include="page.footer"}
</body>
</html> </html>

View file

@ -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>
{include="page.header"} <body onload="document.uploadform.filetoupload.focus();">
<div id="uploaddiv"> <div id="pageheader">
Import Netscape html bookmarks (as exported from Firefox/Chrome/Opera/delicious/diigo...) (Max: {$maxfilesize|htmlspecialchars} bytes). {include="page.header"}
<form method="POST" action="?do=upload" enctype="multipart/form-data" name="uploadform" id="uploadform"> <div id="uploaddiv">
<input type="hidden" name="token" value="{$token}"> Import Netscape html bookmarks (as exported from Firefox/Chrome/Opera/delicious/diigo...) (Max: {$maxfilesize|htmlspecialchars} bytes).
<input type="file" name="filetoupload" size="80"> <form method="post" action="?do=upload" enctype="multipart/form-data" name="uploadform" id="uploadform">
<input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize|htmlspecialchars}"> <p>
<input type="submit" name="import_file" value="Import" class="bigbutton"><br> <input type="file" name="filetoupload" size="80">
<input type="checkbox" name="private" id="private"><label for="private">&nbsp;Import all links as private</label><br> </p>
<input type="checkbox" name="overwrite" id="overwrite"><label for="overwrite">&nbsp;Overwrite existing links</label> <p>
</form> <input type="checkbox" name="private" id="private">
</div> <label for="private">&nbsp;Import all links as private</label>
</div> </p>
{include="page.footer"} <p>
</body> <input type="checkbox" name="overwrite" id="overwrite">
<label for="overwrite">&nbsp;Overwrite existing links</label>
</p>
<p>
<input type="hidden" name="MAX_FILE_SIZE" value="{$maxfilesize|htmlspecialchars}">
<input type="hidden" name="token" value="{$token}">
<input type="submit" name="import_file" value="Import" class="bigbutton">
</p>
</form>
</div>
</div>
{include="page.footer"}
</body>
</html> </html>

View file

@ -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}

View file

@ -2,144 +2,158 @@
<html> <html>
<head> <head>
{include="includes"} {include="includes"}
{if="empty($GLOBALS['disablejquery'])"} {if="empty($GLOBALS['disablejquery'])"}
<script src="inc/jquery.min.js#"></script> <script src="inc/jquery.min.js#"></script>
<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"}
{if="count($links)==0"}
{include="linklist.paging"} <div id="searchcriteria">
Nothing found.
{if="count($links)==0"} </div>
<div id="searchcriteria">Nothing found.</div> {else}
{else} {if="$search_type=='fulltext'"}
{if="$search_type=='fulltext'"} <div id="searchcriteria">
<div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> {$result_count} results for <i>{$search_crits}</i>
{/if} </div>
{if="$search_type=='tags'"} {/if}
<div id="searchcriteria">{$result_count} results for tags <i> {if="$search_type=='tags'"}
{loop="search_crits"} <div id="searchcriteria">
<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> {$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>
{/loop}</i></div> </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">
{/if} {$value.url|thumbnail}
<div class="linkcontainer {if="$GLOBALS['config']['ENABLE_THUMBNAILS']"}linkcontainerThumb{/if}"> </div>
{if="isLoggedIn()"} {/if}
<div class="linkeditbuttons"> <div class="linkcontainer {if="$GLOBALS['config']['ENABLE_THUMBNAILS']"}linkcontainerThumb{/if}">
<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> {if="isLoggedIn()"}
<form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> <div class="linkeditbuttons">
<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> <form method="get" class="buttoneditform">
</div> <input type="hidden" name="edit_link" value="{$value.linkdate}">
{/if} <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
<h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></h3> </form>
{if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"}{/if}>{$value.description}</div>{/if} <br>
{if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">Origine => {$value.via|getJustDomain}</a></div>{/if} <form method="post" class="buttoneditform">
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} <input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
<span class="linkdate linkBottom" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> <input type="hidden" name="token" value="{$token}">
{else} <input type="hidden" name="delete_link">
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span> <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();">
{/if} </form>
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn()"}
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
{/if}
<span><a href="http://qrfree.kaywa.com/?l=1&amp;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> -
<span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br>
{if="$value.tags"}
<div class="linktaglist">
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop}
</div>
{/if}
</div> </div>
<span class="clearFix"></span> {/if}
</li> <h3 class="linktitle">{function="returnFavicon($value.url)"}<a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></h3>
{/loop} {if="$value.description"}
</ul> <div class="linkdescription" {if condition="$search_type=='permalink'"}{/if}>
{$value.description}
{include="linklist.paging"} </div>
{/if}
</div> {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()"}
<span class="linkdate linkBottom" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
{else}
<span class="linkdate linkBottom" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span>
{/if}
<span class="linkarchive linkBottom"><a href="https://web.archive.org/web/{$value.url|htmlspecialchars}">Archive.org</a> - </span>
{if="$GLOBALS['config']['WALLABAG_URL'] && isLoggedIn()"}
<span class="linkWallabag linkBottom"><a href="{$GLOBALS['config']['WALLABAG_URL']}/?plainurl={$value.url|htmlspecialchars}">Save to Wallabag</a> - </span>
{/if}
<span><a href="http://qrfree.kaywa.com/?l=1&amp;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>
<br>
{if="$value.tags"}
<div class="linktaglist">
{loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value|htmlspecialchars}</a></span> {/loop}
</div>
{/if}
</div>
<span class="clearFix">&nbsp;</span>
</li>
{/loop}
</ul>
{include="linklist.paging"}
</div>
{include="page.footer"} {include="page.footer"}
<script>
<script> $('#tagfilter_value').autocomplete({
source : '{$source}?ws=tags',
$('#tagfilter_value').autocomplete({ minLength : 1
source : '{$source}?ws=tags', });
minLength : 1 // Remove any displayed QR-Code
}); function remove_qrcode() {
var elem = document.getElementById("permalinkQrcode");
// Remove any displayed QR-Code if (elem)
function remove_qrcode() elem.parentNode.removeChild(elem);
{ return false;
var elem = document.getElementById("permalinkQrcode"); }
if (elem) elem.parentNode.removeChild(elem); // Show the QR-Code of a permalink (when the QR-Code icon is clicked).
return false; function showQrCode(caller,loading=false) {
} // 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.
// Show the QR-Code of a permalink (when the QR-Code icon is clicked).
function showQrCode(caller,loading=false)
{
// 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 (!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.
return false;
}
// Remove previous qrcode if present.
remove_qrcode();
// Build the div which contains the QR-Code:
var element = document.createElement('div');
element.id = "permalinkQrcode";
// Make QR-Code div commit sepuku when clicked:
if (element.attachEvent) {
element.attachEvent('onclick', 'this.parentNode.removeChild(this);');
}// Damn IE
else {
element.setAttribute('onclick', 'this.parentNode.removeChild(this);');
}
// Build the QR-Code:
var image = qr.image({
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.";
} }
setTimeout(function() { showQrCode(caller,true);}, 200); // Retry in 200 milliseconds.
return false; return false;
} }
</script>
// Remove previous qrcode if present. </body>
remove_qrcode();
// Build the div which contains the QR-Code:
var element = document.createElement('div');
element.id="permalinkQrcode";
// Make QR-Code div commit sepuku when clicked:
if ( element.attachEvent ){ element.attachEvent('onclick', 'this.parentNode.removeChild(this);' ); } // Damn IE
else { element.setAttribute('onclick', 'this.parentNode.removeChild(this);' ); }
// Build the QR-Code:
var image = qr.image({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;
}
</script>
</body>
</html> </html>

View file

@ -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.

View file

@ -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">&#x25CF;<a href="{$GLOBALS['config']['UPDATECHECK_DOWNLOAD']}">{$newversion|htmlspecialchars}</a></div> <div id="newversion">
&#x25CF;<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}

View file

@ -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>

View file

@ -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>

View file

@ -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"}
{loop="linksToDisplay"}
<div class="picwall_pictureframe">
{$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a>
</div> </div>
{/loop} <div class="picwall_container">
</div> {loop="linksToDisplay"}
</center> <div class="picwall_pictureframe">
{include="page.footer"} {$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a>
</div>
{if="empty($GLOBALS['disablejquery'])"} {/loop}
<script> </div>
$(document).ready(function() { {include="page.footer"}
$("img.lazyimage").show().lazyload(); {if="empty($GLOBALS['disablejquery'])"}
}); <script>
</script> $(document).ready(function() {
{/if} $("img.lazyimage").show().lazyload();
</body> });
</script>
{/if}
</body>
</html> </html>