aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/entries.html16
-rwxr-xr-xtpl/footer.html8
-rw-r--r--tpl/home.html31
3 files changed, 30 insertions, 25 deletions
diff --git a/tpl/entries.html b/tpl/entries.html
new file mode 100644
index 00000000..0d3e6bc0
--- /dev/null
+++ b/tpl/entries.html
@@ -0,0 +1,16 @@
1 {loop="entries"}
2 <div id="entry-{$value.id}" class="entrie mb2">
3 <span class="content">
4 <h2 class="h6-like">
5 <a href="view.php?id={$value.id}">{$value.title}</a>
6 </h2>
7 <div class="tools">
8 <ul>
9 <li><a title="toggle mark as read" class="tool archive {if="$value.is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$value.id}, '{$token}')"><span></span></a></li>
10 <li><a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id}, '{$token}')"><span></span></a></li>
11 <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;"><input type="hidden" name="token" id="token" value="{$token}" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{$value.id}" /><input type="submit" class="delete" title="toggle delete" /></form></li>
12 </ul>
13 </div>
14 </span>
15 </div>
16 {/loop} \ No newline at end of file
diff --git a/tpl/footer.html b/tpl/footer.html
index d225acbe..04bedabc 100755
--- a/tpl/footer.html
+++ b/tpl/footer.html
@@ -1,3 +1,9 @@
1 </div>
2 </div>
3
1 <footer class="mr2 mt3 smaller"> 4 <footer class="mr2 mt3 smaller">
2 <p>powered by <a href="http://inthepoche.com">poche</a><br />follow us on <a href="https://twitter.com/getpoche" title="follow us on twitter">twitter</a></p> 5 <p>powered by <a href="http://inthepoche.com">poche</a><br />follow us on <a href="https://twitter.com/getpoche" title="follow us on twitter">twitter</a></p>
3 </footer> \ No newline at end of file 6 </footer>
7
8 </body>
9</html> \ No newline at end of file
diff --git a/tpl/home.html b/tpl/home.html
index 0de8007b..d9612532 100644
--- a/tpl/home.html
+++ b/tpl/home.html
@@ -1,4 +1,3 @@
1{include="head"}
2 <body> 1 <body>
3 <header> 2 <header>
4 <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> 3 <h1><img src="./img/logo.png" alt="logo poche" />poche</h1>
@@ -10,26 +9,10 @@
10 <li><a href="?view=archive" {if="$view == 'archive'"}class="current"{/if}>archive</a></li> 9 <li><a href="?view=archive" {if="$view == 'archive'"}class="current"{/if}>archive</a></li>
11 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li> 10 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href%20||%20url;window.open('{$poche_url}?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
12 </ul> 11 </ul>
13 <div id="content"> 12<!-- <ul>
14 {loop="entries"} 13 <li onclick="sort_links('ia', '{$token}');">tri par id asc</li>
15 <div id="entry-{$value.id}" class="entrie mb2"> 14 <li onclick="sort_links('id', '{$token}');">tri par id desc</li>
16 <span class="content"> 15 <li onclick="sort_links('ta', '{$token}');">tri par title asc</li>
17 <h2 class="h6-like"> 16 <li onclick="sort_links('td', '{$token}');">tri par title desc</li>
18 <a href="view.php?id={$value.id}">{$value.title}</a> 17 </ul> -->
19 </h2> 18 <div id="content"> \ No newline at end of file
20 <div class="tools">
21 <ul>
22 <li><a title="toggle mark as read" class="tool archive {if="$value.is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$value.id}, '{$token}')"><span></span></a></li>
23 <li><a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id}, '{$token}')"><span></span></a></li>
24 <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;"><input type="hidden" name="token" id="token" value="{$token}" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{$value.id}" /><input type="submit" class="delete" title="toggle delete" /></form></li>
25 </ul>
26 </div>
27 </span>
28 </div>
29 {/loop}
30 </div>
31 </div>
32 {include="footer"}
33 {include="js"}
34 </body>
35</html>