diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/entries.html | 6 | ||||
-rw-r--r-- | tpl/head.html | 7 | ||||
-rw-r--r-- | tpl/home.html | 10 | ||||
-rw-r--r-- | tpl/login.html | 13 | ||||
-rw-r--r-- | tpl/view.html | 34 |
5 files changed, 53 insertions, 17 deletions
diff --git a/tpl/entries.html b/tpl/entries.html index 0d3e6bc0..c74bc346 100644 --- a/tpl/entries.html +++ b/tpl/entries.html | |||
@@ -6,9 +6,9 @@ | |||
6 | </h2> | 6 | </h2> |
7 | <div class="tools"> | 7 | <div class="tools"> |
8 | <ul> | 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> | 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}, '<?php echo Session::getToken(); ?>')"><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> | 10 | <li><a title="toggle favorite" class="tool fav {if="$value.is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$value.id}, '<?php echo Session::getToken(); ?>')"><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> | 11 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;"><input type="hidden" name="token" id="token" value="<?php echo Session::getToken(); ?>" /><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> | 12 | </ul> |
13 | </div> | 13 | </div> |
14 | </span> | 14 | </span> |
diff --git a/tpl/head.html b/tpl/head.html index 66150d8f..6fcf9741 100644 --- a/tpl/head.html +++ b/tpl/head.html | |||
@@ -15,4 +15,9 @@ | |||
15 | <link rel="apple-touch-icon-precomposed" href="./img/apple-touch-icon-precomposed.png"> | 15 | <link rel="apple-touch-icon-precomposed" href="./img/apple-touch-icon-precomposed.png"> |
16 | <link rel="stylesheet" href="./css/knacss.css" media="all"> | 16 | <link rel="stylesheet" href="./css/knacss.css" media="all"> |
17 | <link rel="stylesheet" href="./css/style.css" media="all"> | 17 | <link rel="stylesheet" href="./css/style.css" media="all"> |
18 | </head> \ No newline at end of file | 18 | </head> |
19 | <body> | ||
20 | <header> | ||
21 | <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> | ||
22 | </header> | ||
23 | <div id="main"> \ No newline at end of file | ||
diff --git a/tpl/home.html b/tpl/home.html index 568b9274..216f39b9 100644 --- a/tpl/home.html +++ b/tpl/home.html | |||
@@ -1,16 +1,12 @@ | |||
1 | <body> | ||
2 | <header> | ||
3 | <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> | ||
4 | </header> | ||
5 | <div id="main"> | ||
6 | <ul id="links"> | 1 | <ul id="links"> |
7 | <li><a href="index.php" {if="$view == 'index'"}class="current"{/if}>home</a></li> | 2 | <li><a href="index.php" {if="$view == 'index'"}class="current"{/if}>home</a></li> |
8 | <li><a href="?view=fav" {if="$view == 'fav'"}class="current"{/if}>favorites</a></li> | 3 | <li><a href="?view=fav" {if="$view == 'fav'"}class="current"{/if}>favorites</a></li> |
9 | <li><a href="?view=archive" {if="$view == 'archive'"}class="current"{/if}>archive</a></li> | 4 | <li><a href="?view=archive" {if="$view == 'archive'"}class="current"{/if}>archive</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> | 5 | <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> |
6 | <li><a href="?logout" title="Logout">logout</a></li> | ||
11 | </ul> | 7 | </ul> |
12 | <ul id="sort"> | 8 | <ul id="sort"> |
13 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia', '{$token}');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id', '{$token}');" title="by date desc" /></li> | 9 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia', '{'<?php echo Session::getToken(); ?>'}');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id', '<?php echo Session::getToken(); ?>');" title="by date desc" /></li> |
14 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta', '{$token}');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td', '{$token}');" title="by title desc" /></li> | 10 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta', '<?php echo Session::getToken(); ?>');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td', '<?php echo Session::getToken(); ?>');" title="by title desc" /></li> |
15 | </ul> | 11 | </ul> |
16 | <div id="content"> \ No newline at end of file | 12 | <div id="content"> \ No newline at end of file |
diff --git a/tpl/login.html b/tpl/login.html new file mode 100644 index 00000000..024b3fd0 --- /dev/null +++ b/tpl/login.html | |||
@@ -0,0 +1,13 @@ | |||
1 | <form method="post" action="?login" name="loginform"> | ||
2 | <fieldset> | ||
3 | <h2>login to your poche</h2> | ||
4 | <ul id="login"> | ||
5 | <li><label for="login">Login</label> <input type="text" id="login" name="login" placeholder="Login" tabindex="1"></li> | ||
6 | <li><label for="password">Password</label> <input type="password" id="password" name="password" placeholder="Password" tabindex="2"></li> | ||
7 | <li><label><input type="checkbox" name="longlastingsession" tabindex="3"> Stay signed in (Do not check on public computers)</label></li> | ||
8 | <li><button type="submit" tabindex="4">Sign in</button></li> | ||
9 | </ul> | ||
10 | </fieldset> | ||
11 | <input type="hidden" name="returnurl" value="<?php echo htmlspecialchars($referer);?>"> | ||
12 | <input type="hidden" name="token" value="<?php echo Session::getToken(); ?>"> | ||
13 | </form> \ No newline at end of file | ||
diff --git a/tpl/view.html b/tpl/view.html index 3a1ba7c6..1191bd82 100644 --- a/tpl/view.html +++ b/tpl/view.html | |||
@@ -1,4 +1,21 @@ | |||
1 | {include="head"} | 1 | <!DOCTYPE html> |
2 | <!--[if lte IE 6]> <html class="no-js ie6 ie67 ie678" lang="en"> <![endif]--> | ||
3 | <!--[if lte IE 7]> <html class="no-js ie7 ie67 ie678" lang="en"> <![endif]--> | ||
4 | <!--[if IE 8]> <html class="no-js ie8 ie678" lang="en"> <![endif]--> | ||
5 | <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | ||
6 | <html> | ||
7 | <head> | ||
8 | <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"> | ||
9 | <meta charset="utf-8"> | ||
10 | <meta http-equiv="X-UA-Compatible" content="IE=10"> | ||
11 | <title>{$title}</title> | ||
12 | <link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico" /> | ||
13 | <link rel="apple-touch-icon-precomposed" sizes="144x144" href="./img/apple-touch-icon-144x144-precomposed.png"> | ||
14 | <link rel="apple-touch-icon-precomposed" sizes="72x72" href="./img/apple-touch-icon-72x72-precomposed.png"> | ||
15 | <link rel="apple-touch-icon-precomposed" href="./img/apple-touch-icon-precomposed.png"> | ||
16 | <link rel="stylesheet" href="./css/knacss.css" media="all"> | ||
17 | <link rel="stylesheet" href="./css/style.css" media="all"> | ||
18 | </head> | ||
2 | <body class="article"> | 19 | <body class="article"> |
3 | <div id="article" class="w600p"> | 20 | <div id="article" class="w600p"> |
4 | <div class="backhome"> | 21 | <div class="backhome"> |
@@ -6,9 +23,9 @@ | |||
6 | </div> | 23 | </div> |
7 | <div class="tools"> | 24 | <div class="tools"> |
8 | <ul> | 25 | <ul> |
9 | <li><a title="toggle mark as read" class="tool archive {if="$is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$id}, '{$token}')"><span></span></a></li> | 26 | <li><a title="toggle mark as read" class="tool archive {if="$is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$id}, '<?php echo Session::getToken(); ?>')"><span></span></a></li> |
10 | <li><a title="toggle favorite" class="tool fav {if="$is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$id}, '{$token}')"><span></span></a></li> | 27 | <li><a title="toggle favorite" class="tool fav {if="$is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$id}, '<?php echo Session::getToken(); ?>')"><span></span></a></li> |
11 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;" action="index.php"><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="{$id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> | 28 | <li><form method="post" onsubmit="return confirm('Are you sure?')" style="display: inline;" action="index.php"><input type="hidden" name="token" id="token" value="<?php echo Session::getToken(); ?>" /><input type="hidden" id="action" name="action" value="delete" /><input type="hidden" id="id" name="id" value="{$id}" /><input type="submit" class="delete" title="toggle delete" /></form></li> |
12 | </ul> | 29 | </ul> |
13 | </div> | 30 | </div> |
14 | <header class="mbm"> | 31 | <header class="mbm"> |
@@ -25,7 +42,12 @@ | |||
25 | <a href="index.php" title="back to home">←</a> | 42 | <a href="index.php" title="back to home">←</a> |
26 | </div> | 43 | </div> |
27 | </div> | 44 | </div> |
28 | {include="footer"} | 45 | |
29 | {include="js"} | 46 | {include="js"} |
47 | |||
48 | <footer class="mr2 mt3 smaller"> | ||
49 | <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> | ||
50 | </footer> | ||
51 | |||
30 | </body> | 52 | </body> |
31 | </html> | 53 | </html> \ No newline at end of file |