aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2015-03-04 23:27:28 +0100
committernodiscc <nodiscc@gmail.com>2015-03-04 23:27:28 +0100
commit0e5400e6178468cd0da0b266123545db2a80f707 (patch)
treef13db75997d25db1cee52da3bd985259863e165b /tpl
parent7572cfbe9620b13569ee47337f7015bcad119332 (diff)
parent34047d23fb5e09b6bc2728f0f8827eaa038f02ea (diff)
downloadShaarli-0e5400e6178468cd0da0b266123545db2a80f707.tar.gz
Shaarli-0e5400e6178468cd0da0b266123545db2a80f707.tar.zst
Shaarli-0e5400e6178468cd0da0b266123545db2a80f707.zip
Merge pull request #132 from ArthurHoaro/picwall
Lazy load images with the light lib bLazy.js instead of jQuery
Diffstat (limited to 'tpl')
-rw-r--r--tpl/picwall.html12
-rw-r--r--tpl/picwall2.html19
2 files changed, 2 insertions, 29 deletions
diff --git a/tpl/picwall.html b/tpl/picwall.html
index d3cabb2d..ea1ef420 100644
--- a/tpl/picwall.html
+++ b/tpl/picwall.html
@@ -1,11 +1,7 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3<head>{include="includes"} 3<head>{include="includes"}
4{if="empty($GLOBALS['disablejquery'])"} 4<script src="inc/blazy-1.3.1.min.js#"></script>
5<script src="inc/jquery-1.11.2.min.js#"></script>
6<script src="inc/jquery-ui-1.11.2.min.js#"></script>
7<script src="inc/jquery.lazyload-1.9.3.min.js#"></script>
8{/if}
9</head> 5</head>
10<body> 6<body>
11<div id="pageheader">{include="page.header"}</div> 7<div id="pageheader">{include="page.header"}</div>
@@ -20,12 +16,8 @@
20</div> 16</div>
21{include="page.footer"} 17{include="page.footer"}
22 18
23{if="empty($GLOBALS['disablejquery'])"}
24<script> 19<script>
25$(document).ready(function() { 20 var bLazy = new Blazy();
26 $("img.lazyimage").show().lazyload();
27});
28</script> 21</script>
29{/if}
30</body> 22</body>
31</html> \ No newline at end of file 23</html> \ No newline at end of file
diff --git a/tpl/picwall2.html b/tpl/picwall2.html
deleted file mode 100644
index 44d08b0c..00000000
--- a/tpl/picwall2.html
+++ /dev/null
@@ -1,19 +0,0 @@
1<!DOCTYPE html>
2<html>
3<head>{include="includes"}</head>
4<body>
5<div id="pageheader">{include="page.header"}</div>
6<div style="background-color:#003;">
7 {loop="linksToDisplay"}
8 <div style="float:left;width:48%;border-right:2px solid white;height:120px;overflow:hide;">
9 <div style="float:left;width:120px;text-align:center">{$value.thumbnail}</div>
10 <a href="{$value.permalink}" style="color:yellow;font-weight:bold;text-decoration:none;">{$value.title|htmlspecialchars}</a><br>
11 <span style="font-size:8pt;color:#eee;">{$value.description|htmlspecialchars}</span>
12 <div style="clear:both;"></div>
13 </div><br>
14 {/loop}
15</div>
16
17{include="page.footer"}
18</body>
19</html> \ No newline at end of file