aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorsilvus <silvus@silvus.fr>2013-04-19 22:26:39 +0200
committersilvus <silvus@silvus.fr>2013-04-19 22:26:39 +0200
commitb4397510e75fe9c387bec4161769392906c81bd7 (patch)
tree1a8bfc93fad823c4b719165b2456780f64daa1fa /tpl
parentff4d8c8c1efca0759330906419cb5f36de86d156 (diff)
downloadwallabag-b4397510e75fe9c387bec4161769392906c81bd7.tar.gz
wallabag-b4397510e75fe9c387bec4161769392906c81bd7.tar.zst
wallabag-b4397510e75fe9c387bec4161769392906c81bd7.zip
Add a dark theme and is very simple switch
Diffstat (limited to 'tpl')
-rw-r--r--tpl/head.html6
-rw-r--r--tpl/home.html1
-rw-r--r--tpl/view.html7
3 files changed, 12 insertions, 2 deletions
diff --git a/tpl/head.html b/tpl/head.html
index 6fcf9741..66b6895d 100644
--- a/tpl/head.html
+++ b/tpl/head.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> 23 <body class="light-style">
20 <header> 24 <header>
21 <h1><img src="./img/logo.png" alt="logo poche" />poche</h1> 25 <h1><img src="./img/logo.png" alt="logo poche" />poche</h1>
22 </header> 26 </header>
diff --git a/tpl/home.html b/tpl/home.html
index 6fb9444c..62c77bd3 100644
--- a/tpl/home.html
+++ b/tpl/home.html
@@ -2,6 +2,7 @@
2 <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>
3 <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>
4 <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>
5 <li><a href="#" id="themeswitch">dark</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 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> 7 <li><a href="?logout" title="Logout">logout</a></li>
7 </ul> 8 </ul>
diff --git a/tpl/view.html b/tpl/view.html
index 4b8ce60f..9ba5e208 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">&larr;</a> 26 <a href="index.php" title="back to home">&larr;</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>