Webpack / Update front paths in template files
This commit is contained in:
parent
d42da54350
commit
758fe7201e
15 changed files with 97 additions and 50 deletions
|
@ -6,12 +6,7 @@
|
||||||
<link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" />
|
<link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" />
|
||||||
<link href="img/favicon.png" rel="shortcut icon" type="image/png" />
|
<link href="img/favicon.png" rel="shortcut icon" type="image/png" />
|
||||||
<link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
|
<link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
|
||||||
<link type="text/css" rel="stylesheet" href="css/pure.min.css?v={$version_hash}" />
|
<link type="text/css" rel="stylesheet" href="css/shaarli.min.css?v={$version_hash}" />
|
||||||
<link type="text/css" rel="stylesheet" href="css/grids-responsive.min.css?v={$version_hash}">
|
|
||||||
<link type="text/css" rel="stylesheet" href="css/pure-extras.css?v={$version_hash}">
|
|
||||||
<link type="text/css" rel="stylesheet" href="css/font-awesome.min.css?v={$version_hash}" />
|
|
||||||
<link type="text/css" rel="stylesheet" href="inc/awesomplete.css?v={$version_hash}#" />
|
|
||||||
<link type="text/css" rel="stylesheet" href="css/shaarli.css?v={$version_hash}" />
|
|
||||||
{if="is_file('data/user.css')"}
|
{if="is_file('data/user.css')"}
|
||||||
<link type="text/css" rel="stylesheet" href="data/user.css#" />
|
<link type="text/css" rel="stylesheet" href="data/user.css#" />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" name="token" value="{$token}">
|
<input type="hidden" name="token" value="{$token}">
|
||||||
|
|
||||||
<div id="search-linklist">
|
<div id="search-linklist">
|
||||||
|
|
||||||
<form method="GET" class="pure-form searchform" name="searchform">
|
<form method="GET" class="pure-form searchform" name="searchform">
|
||||||
|
|
|
@ -38,6 +38,4 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="js/shaarli.js?v={$version_hash}"></script>
|
<script src="js/shaarli.min.js?v={$version_hash}"></script>
|
||||||
<script src="inc/awesomplete.js?v={$version_hash}#"></script>
|
|
||||||
<script src="inc/awesomplete-multiple-tags.js?v={$version_hash}#"></script>
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ <h2 class="window-title">{'Picture Wall'|t} - {$countPics} {'pics'|t}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
<script src="inc/blazy-1.3.1.min.js#"></script>
|
<script src="js/picwall.min.js?v={$version_hash}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -176,7 +176,7 @@ <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
<script src="inc/plugin_admin.js#"></script>
|
<script src="js/pluginsadmin.min.js?v={$version_hash}"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>{include="includes"}
|
<head>{include="includes"}
|
||||||
<link type="text/css" rel="stylesheet" href="inc/awesomplete.css#" />
|
|
||||||
<script src="inc/awesomplete.min.js#"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body onload="document.changetag.fromtag.focus();">
|
<body onload="document.changetag.fromtag.focus();">
|
||||||
<div id="pageheader">
|
<div id="pageheader">
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a href="?do=dailyrss" title="1 RSS entry per day"><img src="images/feed-icon-14x14.png#" alt="rss_feed">Daily RSS Feed</a>
|
<a href="?do=dailyrss" title="1 RSS entry per day"><img src="img/feed-icon-14x14.png" alt="rss_feed">Daily RSS Feed</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dailyTitle">
|
<div class="dailyTitle">
|
||||||
<img src="images/floral_left.png" width="51" height="50" class="nomobile" alt="floral_left">
|
<img src="img/floral_left.png" width="51" height="50" class="nomobile" alt="floral_left">
|
||||||
The Daily Shaarli
|
The Daily Shaarli
|
||||||
<img src="images/floral_right.png" width="51" height="50" class="nomobile" alt="floral_right">
|
<img src="img/floral_right.png" width="51" height="50" class="nomobile" alt="floral_right">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="dailyDate">
|
<div class="dailyDate">
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
<div class="dailyEntry">
|
<div class="dailyEntry">
|
||||||
<div class="dailyEntryPermalink">
|
<div class="dailyEntryPermalink">
|
||||||
<a href="?{$value.shorturl}">
|
<a href="?{$value.shorturl}">
|
||||||
<img src="images/squiggle.png" width="25" height="26" title="permalink" alt="permalink">
|
<img src="img/squiggle.png" width="25" height="26" title="permalink" alt="permalink">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{if="!$hide_timestamps || isLoggedIn()"}
|
{if="!$hide_timestamps || isLoggedIn()"}
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
{$value}
|
{$value}
|
||||||
{/loop}
|
{/loop}
|
||||||
</div>
|
</div>
|
||||||
<div id="closing"><img src="images/squiggle_closing.png" width="66" height="61" alt="-"></div>
|
<div id="closing"><img src="img/squiggle_closing.png" width="66" height="61" alt="-"></div>
|
||||||
</div>
|
</div>
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -54,10 +54,5 @@
|
||||||
{if="$source !== 'firefoxsocialapi'"}
|
{if="$source !== 'firefoxsocialapi'"}
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
{/if}
|
{/if}
|
||||||
<script src="inc/awesomplete.min.js#"></script>
|
|
||||||
<script src="inc/awesomplete-multiple-tags.js#"></script>
|
|
||||||
<script>
|
|
||||||
awesompleteUniqueTag('#lf_tags');
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -5,9 +5,8 @@
|
||||||
<meta name="referrer" content="same-origin">
|
<meta name="referrer" content="same-origin">
|
||||||
<link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" />
|
<link rel="alternate" type="application/rss+xml" href="{$feedurl}?do=rss{$searchcrits}#" title="RSS Feed" />
|
||||||
<link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" />
|
<link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" />
|
||||||
<link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" />
|
<link href="img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||||
<link type="text/css" rel="stylesheet" href="css/reset.css" />
|
<link type="text/css" rel="stylesheet" href="css/shaarli.min.css" />
|
||||||
<link type="text/css" rel="stylesheet" href="css/shaarli.css" />
|
|
||||||
{if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="data/user.css#" />{/if}
|
{if="is_file('data/user.css')"}<link type="text/css" rel="stylesheet" href="data/user.css#" />{/if}
|
||||||
{loop="$plugins_includes.css_files"}
|
{loop="$plugins_includes.css_files"}
|
||||||
<link type="text/css" rel="stylesheet" href="{$value}#"/>
|
<link type="text/css" rel="stylesheet" href="{$value}#"/>
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{if="!empty($search_tags)"}
|
{if="!empty($search_tags)"}
|
||||||
value="{$search_tags}"
|
value="{$search_tags}"
|
||||||
{/if}
|
{/if}
|
||||||
autocomplete="off" class="awesomplete" data-multiple data-minChars="1"
|
autocomplete="off" data-multiple data-minChars="1"
|
||||||
data-list="{loop="$tags"}{$key}, {/loop}"
|
data-list="{loop="$tags"}{$key}, {/loop}"
|
||||||
>
|
>
|
||||||
<input type="submit" value="Search" class="bigbutton">
|
<input type="submit" value="Search" class="bigbutton">
|
||||||
|
@ -86,13 +86,13 @@
|
||||||
<div class="linkeditbuttons">
|
<div class="linkeditbuttons">
|
||||||
<form method="GET" class="buttoneditform">
|
<form method="GET" class="buttoneditform">
|
||||||
<input type="hidden" name="edit_link" value="{$value.id}">
|
<input type="hidden" name="edit_link" value="{$value.id}">
|
||||||
<input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
|
<input type="image" alt="Edit" src="img/edit_icon.png" title="Edit" class="button_edit">
|
||||||
</form><br>
|
</form><br>
|
||||||
<form method="GET" class="buttoneditform">
|
<form method="GET" class="buttoneditform">
|
||||||
<input type="hidden" name="lf_linkdate" value="{$value.id}">
|
<input type="hidden" name="lf_linkdate" value="{$value.id}">
|
||||||
<input type="hidden" name="token" value="{$token}">
|
<input type="hidden" name="token" value="{$token}">
|
||||||
<input type="hidden" name="delete_link">
|
<input type="hidden" name="delete_link">
|
||||||
<input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
|
<input type="image" alt="Delete" src="img/delete_icon.png" title="Delete"
|
||||||
class="button_delete" onClick="return confirmDeleteLink();">
|
class="button_delete" onClick="return confirmDeleteLink();">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -146,10 +146,5 @@
|
||||||
|
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
|
|
||||||
<script src="inc/awesomplete.min.js#"></script>
|
|
||||||
<script src="inc/awesomplete-multiple-tags.js#"></script>
|
|
||||||
<script>
|
|
||||||
awesompleteUniqueTag('#tagfilter_value');
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
<div class="paging_privatelinks">
|
<div class="paging_privatelinks">
|
||||||
<a href="?visibility=private">
|
<a href="?visibility=private">
|
||||||
{if="$visibility=='private'"}
|
{if="$visibility=='private'"}
|
||||||
<img src="images/private_16x16_active.png#" width="16" height="16" title="Filter links by visibility" alt="Filter links by visibility">
|
<img src="img/private_16x16_active.png" width="16" height="16" title="Click to see all links" alt="Click to see all links">
|
||||||
{else}
|
{else}
|
||||||
<img src="images/private_16x16.png#" width="16" height="16" title="Filter links by visibility" alt="Filter links by visibility">
|
<img src="img/private_16x16.png" width="16" height="16" title="Click to see only private links" alt="Click to see only private links">
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,13 @@
|
||||||
Error: {$versionError}
|
Error: {$versionError}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<script src="js/shaarli.min.js"></script>
|
||||||
|
|
||||||
{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}
|
||||||
|
|
||||||
<script src="js/shaarli.js"></script>
|
|
||||||
{loop="$plugins_footer.js_files"}
|
{loop="$plugins_footer.js_files"}
|
||||||
<script src="{$value}#"></script>
|
<script src="{$value}#"></script>
|
||||||
{/loop}
|
{/loop}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>{include="includes"}
|
<head>{include="includes"}
|
||||||
<script src="inc/blazy-1.3.1.min.js#"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="pageheader">{include="page.header"}</div>
|
<div id="pageheader">{include="page.header"}</div>
|
||||||
|
@ -35,10 +34,6 @@
|
||||||
|
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
|
|
||||||
<script>
|
<script src="js/picwall.min.js"></script>
|
||||||
window.onload = function() {
|
|
||||||
var bLazy = new Blazy();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -129,6 +129,77 @@ <h2>{function="str_replace('_', ' ', $key)"}</h2>
|
||||||
</div>
|
</div>
|
||||||
{include="page.footer"}
|
{include="page.footer"}
|
||||||
|
|
||||||
<script src="inc/plugin_admin.js#"></script>
|
<script>
|
||||||
|
/**
|
||||||
|
* Change the position counter of a row.
|
||||||
|
*
|
||||||
|
* @param elem Element Node to change.
|
||||||
|
* @param toPos int New position.
|
||||||
|
*/
|
||||||
|
function changePos(elem, toPos) {
|
||||||
|
var elemName = elem.getAttribute('data-line');
|
||||||
|
|
||||||
|
elem.setAttribute('data-order', toPos);
|
||||||
|
var hiddenInput = document.querySelector('[name="order_' + elemName + '"]');
|
||||||
|
hiddenInput.setAttribute('value', toPos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move a row up or down.
|
||||||
|
*
|
||||||
|
* @param pos Element Node to move.
|
||||||
|
* @param move int Move: +1 (down) or -1 (up)
|
||||||
|
*/
|
||||||
|
function changeOrder(pos, move) {
|
||||||
|
var newpos = parseInt(pos) + move;
|
||||||
|
var lines = document.querySelectorAll('[data-order="' + pos + '"]');
|
||||||
|
var changelines = document.querySelectorAll('[data-order="' + newpos + '"]');
|
||||||
|
|
||||||
|
// If we go down reverse lines to preserve the rows order
|
||||||
|
if (move > 0) {
|
||||||
|
lines = [].slice.call(lines).reverse();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i = 0; i < lines.length; i++) {
|
||||||
|
var parent = changelines[0].parentNode;
|
||||||
|
changePos(lines[i], newpos);
|
||||||
|
changePos(changelines[i], parseInt(pos));
|
||||||
|
var changeItem = move < 0 ? changelines[0] : changelines[changelines.length - 1].nextSibling;
|
||||||
|
parent.insertBefore(lines[i], changeItem);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move a row up in the table.
|
||||||
|
*
|
||||||
|
* @param pos int row counter.
|
||||||
|
*
|
||||||
|
* @returns false
|
||||||
|
*/
|
||||||
|
function orderUp(pos) {
|
||||||
|
if (pos == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
changeOrder(pos, -1);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move a row down in the table.
|
||||||
|
*
|
||||||
|
* @param pos int row counter.
|
||||||
|
*
|
||||||
|
* @returns false
|
||||||
|
*/
|
||||||
|
function orderDown(pos) {
|
||||||
|
var lastpos = document.querySelector('[data-order]:last-child').getAttribute('data-order');
|
||||||
|
if (pos == lastpos) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
changeOrder(pos, +1);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -81,9 +81,9 @@
|
||||||
author: "Shaarli",
|
author: "Shaarli",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
|
|
||||||
iconURL: baseURL + "/images/favicon.ico",
|
iconURL: baseURL + "/img/favicon.ico",
|
||||||
icon32URL: baseURL + "/images/favicon.ico",
|
icon32URL: baseURL + "/img/favicon.ico",
|
||||||
icon64URL: baseURL + "/images/favicon.ico",
|
icon64URL: baseURL + "/img/favicon.ico",
|
||||||
|
|
||||||
shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}",
|
shareURL: baseURL + "{noparse}?post=%{url}&title=%{title}&description=%{text}&source=firefoxsocialapi{/noparse}",
|
||||||
homepageURL: baseURL
|
homepageURL: baseURL
|
||||||
|
|
Loading…
Reference in a new issue