diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2013-04-21 10:53:22 -0700 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2013-04-21 10:53:22 -0700 |
commit | 37c6ed4e7a75238504a28d6be5fbaad475689526 (patch) | |
tree | 69bfdf8ddbc09467be830274f434190b42979aa1 /tpl | |
parent | ff4d8c8c1efca0759330906419cb5f36de86d156 (diff) | |
parent | f0070a15e4725255dad967bde76155a39d189631 (diff) | |
download | wallabag-37c6ed4e7a75238504a28d6be5fbaad475689526.tar.gz wallabag-37c6ed4e7a75238504a28d6be5fbaad475689526.tar.zst wallabag-37c6ed4e7a75238504a28d6be5fbaad475689526.zip |
Merge pull request #67 from inthepoche/dev
tag 0.2
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/config.html | 8 | ||||
-rw-r--r-- | tpl/entries.html | 4 | ||||
-rw-r--r-- | tpl/export.html | 1 | ||||
-rw-r--r-- | tpl/footer.html | 4 | ||||
-rw-r--r-- | tpl/head.html | 11 | ||||
-rw-r--r-- | tpl/home.html | 11 | ||||
-rw-r--r-- | tpl/login.html | 10 | ||||
-rw-r--r-- | tpl/messages.html | 1 | ||||
-rw-r--r-- | tpl/view.html | 16 |
9 files changed, 44 insertions, 22 deletions
diff --git a/tpl/config.html b/tpl/config.html new file mode 100644 index 00000000..7d1c6afe --- /dev/null +++ b/tpl/config.html | |||
@@ -0,0 +1,8 @@ | |||
1 | <div id="content"> | ||
2 | <h2>Bookmarklet</h2> | ||
3 | <p>Thanks to the bookmarklet, you will be able to easily add a link to your poche. If you don't know how use a bookmarklet, <a href="http://support.mozilla.org/en-US/kb/bookmarklets-perform-common-web-page-tasks">have a look here</a>.</p> | ||
4 | <p>Drag & drop this link to your bookmarks bar and have fun with poche.</p> | ||
5 | <p><a style="cursor: move; border: 1px dashed grey; background: white;" 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></p> | ||
6 | <h2>Export</h2> | ||
7 | <p><a href="?view=export" target="_blank">Click here</a> to export your poche datas.</p> | ||
8 | </div> \ No newline at end of file | ||
diff --git a/tpl/entries.html b/tpl/entries.html index 648e1ce9..8526a3c9 100644 --- a/tpl/entries.html +++ b/tpl/entries.html | |||
@@ -1,3 +1,4 @@ | |||
1 | <div id="content"> | ||
1 | {loop="entries"} | 2 | {loop="entries"} |
2 | <div id="entry-{$value.id}" class="entrie mb2"> | 3 | <div id="entry-{$value.id}" class="entrie mb2"> |
3 | <span class="content"> | 4 | <span class="content"> |
@@ -13,4 +14,5 @@ | |||
13 | </div> | 14 | </div> |
14 | </span> | 15 | </span> |
15 | </div> | 16 | </div> |
16 | {/loop} \ No newline at end of file | 17 | {/loop} |
18 | </div> \ No newline at end of file | ||
diff --git a/tpl/export.html b/tpl/export.html new file mode 100644 index 00000000..d22d05fc --- /dev/null +++ b/tpl/export.html | |||
@@ -0,0 +1 @@ | |||
export {$export} \ No newline at end of file | |||
diff --git a/tpl/footer.html b/tpl/footer.html index 04bedabc..b8bd755c 100644 --- a/tpl/footer.html +++ b/tpl/footer.html | |||
@@ -1,6 +1,4 @@ | |||
1 | </div> | 1 | </div> |
2 | </div> | ||
3 | |||
4 | <footer class="mr2 mt3 smaller"> | 2 | <footer class="mr2 mt3 smaller"> |
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 | <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> |
6 | </footer> | 4 | </footer> |
diff --git a/tpl/head.html b/tpl/head.html index 6fcf9741..e95f6100 100644 --- a/tpl/head.html +++ b/tpl/head.html | |||
@@ -15,9 +15,8 @@ | |||
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> | 18 | <!-- Light Theme --> |
19 | <body> | 19 | <link rel="stylesheet" href="./css/style-light.css" media="all" title="light-style"> |
20 | <header> | 20 | <!-- Dark Theme --> |
21 | <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> | 21 | <link rel="alternate stylesheet" href="./css/style-dark.css" media="all" title="dark-style"> |
22 | </header> | 22 | </head> \ No newline at end of file |
23 | <div id="main"> \ No newline at end of file | ||
diff --git a/tpl/home.html b/tpl/home.html index 6fb9444c..ad881997 100644 --- a/tpl/home.html +++ b/tpl/home.html | |||
@@ -1,12 +1,19 @@ | |||
1 | <body class="light-style"> | ||
2 | <header> | ||
3 | <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> | ||
4 | </header> | ||
5 | <div id="main"> | ||
1 | <ul id="links"> | 6 | <ul id="links"> |
2 | <li><a href="index.php" {if="$view == 'index'"}class="current"{/if}>home</a></li> | 7 | <li><a href="index.php" {if="$view == 'index'"}class="current"{/if}>home</a></li> |
3 | <li><a href="?view=fav" {if="$view == 'fav'"}class="current"{/if}>favorites</a></li> | 8 | <li><a href="?view=fav" {if="$view == 'fav'"}class="current"{/if}>favorites</a></li> |
4 | <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> |
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> | 10 | <li><a href="?view=config" {if="$view == 'config'"}class="current"{/if}>config</a></li> |
6 | <li><a href="?logout" title="Logout">logout</a></li> | 11 | <li><a href="?logout" title="Logout">logout</a></li> |
7 | </ul> | 12 | </ul> |
13 | {if condition="isset($entries)"} | ||
8 | <ul id="sort"> | 14 | <ul id="sort"> |
9 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id');" title="by date desc" /></li> | 15 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ia');" title="by date asc" /> by date <img src="img/down.png" onclick="sort_links('{$view}', 'id');" title="by date desc" /></li> |
10 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td');" title="by title desc" /></li> | 16 | <li><img src="img/up.png" onclick="sort_links('{$view}', 'ta');" title="by title asc" /> by title <img src="img/down.png" onclick="sort_links('{$view}', 'td');" title="by title desc" /></li> |
11 | </ul> | 17 | </ul> |
12 | <div id="content"> \ No newline at end of file | 18 | {/if} |
19 | {include="messages"} \ No newline at end of file | ||
diff --git a/tpl/login.html b/tpl/login.html index d3139ab3..12927692 100644 --- a/tpl/login.html +++ b/tpl/login.html | |||
@@ -1,4 +1,9 @@ | |||
1 | {include="head"} | 1 | {include="head"} |
2 | <body class="light-style"> | ||
3 | <header> | ||
4 | <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> | ||
5 | </header> | ||
6 | <div id="main"> | ||
2 | <form method="post" action="?login" name="loginform"> | 7 | <form method="post" action="?login" name="loginform"> |
3 | <fieldset> | 8 | <fieldset> |
4 | <h2>login to your poche</h2> | 9 | <h2>login to your poche</h2> |
@@ -20,4 +25,7 @@ | |||
20 | <input type="hidden" name="returnurl" value="<?php echo htmlspecialchars($referer);?>"> | 25 | <input type="hidden" name="returnurl" value="<?php echo htmlspecialchars($referer);?>"> |
21 | <input type="hidden" name="token" value="<?php echo Session::getToken(); ?>"> | 26 | <input type="hidden" name="token" value="<?php echo Session::getToken(); ?>"> |
22 | </form> | 27 | </form> |
23 | {include="footer"} \ No newline at end of file | 28 | <script type="text/javascript"> |
29 | window.onload = document.loginform.login.focus(); | ||
30 | </script> | ||
31 | {include="footer"} | ||
diff --git a/tpl/messages.html b/tpl/messages.html new file mode 100644 index 00000000..87af259b --- /dev/null +++ b/tpl/messages.html | |||
@@ -0,0 +1 @@ | |||
<div id="messages"><?php echo $msg->display(); ?></div> \ No newline at end of file | |||
diff --git a/tpl/view.html b/tpl/view.html index 4b8ce60f..4384631b 100644 --- a/tpl/view.html +++ b/tpl/view.html | |||
@@ -15,8 +15,12 @@ | |||
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 | <!-- Light Theme --> | ||
19 | <link rel="stylesheet" href="./css/style-light.css" media="all" title="light-style"> | ||
20 | <!-- Dark Theme --> | ||
21 | <link rel="alternate stylesheet" href="./css/style-dark.css" media="all" title="dark-style"> | ||
18 | </head> | 22 | </head> |
19 | <body class="article"> | 23 | <body class="article light-style"> |
20 | <div id="article" class="w600p"> | 24 | <div id="article" class="w600p"> |
21 | <div class="backhome"> | 25 | <div class="backhome"> |
22 | <a href="index.php" title="back to home">←</a> | 26 | <a href="index.php" title="back to home">←</a> |
@@ -24,6 +28,7 @@ | |||
24 | <div class="tools"> | 28 | <div class="tools"> |
25 | <ul> | 29 | <ul> |
26 | <li><a title="toggle mark as read" class="tool archive {if="$is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$id})"><span></span></a></li> | 30 | <li><a title="toggle mark as read" class="tool archive {if="$is_read == '0'"}archive-off{/if}" onclick="toggle_archive(this, {$id})"><span></span></a></li> |
31 | <li><a href="#" id="themeswitch">dark</a></li> | ||
27 | <li><a title="toggle favorite" class="tool fav {if="$is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$id})"><span></span></a></li> | 32 | <li><a title="toggle favorite" class="tool fav {if="$is_fav == '0'"}fav-off{/if}" onclick="toggle_favorite(this, {$id})"><span></span></a></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="view" name="view" value="index" /><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> | 33 | <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="view" name="view" value="index" /><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> |
29 | <li><a href="?logout" title="Logout">logout</a></li> | 34 | <li><a href="?logout" title="Logout">logout</a></li> |
@@ -42,13 +47,6 @@ | |||
42 | <div class="backhome"> | 47 | <div class="backhome"> |
43 | <a href="index.php" title="back to home">←</a> | 48 | <a href="index.php" title="back to home">←</a> |
44 | </div> | 49 | </div> |
45 | </div> | ||
46 | 50 | ||
47 | {include="js"} | 51 | {include="js"} |
48 | 52 | {include="footer"} \ No newline at end of file | |
49 | <footer class="mr2 mt3 smaller"> | ||
50 | <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> | ||
51 | </footer> | ||
52 | |||
53 | </body> | ||
54 | </html> \ No newline at end of file | ||