aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-09 11:49:22 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-09 11:49:22 +0200
commit8784f0956b5c1d4465498ebb4c67ce9ed300299c (patch)
tree88e0c1ee71ccbcdf8c24ea5f47358984b2702b5d
parentd08318e4ddb94b3aa8f72e07dd5b258a4ef3bd2f (diff)
downloadwallabag-8784f0956b5c1d4465498ebb4c67ce9ed300299c.tar.gz
wallabag-8784f0956b5c1d4465498ebb4c67ce9ed300299c.tar.zst
wallabag-8784f0956b5c1d4465498ebb4c67ce9ed300299c.zip
background sur le menu pour savoir sur quelle page on se trouve
-rw-r--r--css/style.css8
-rwxr-xr-xindex.php7
2 files changed, 12 insertions, 3 deletions
diff --git a/css/style.css b/css/style.css
index 0e31865f..812ccca7 100644
--- a/css/style.css
+++ b/css/style.css
@@ -49,6 +49,14 @@ header {
49#main ul#links li { 49#main ul#links li {
50 display: inline; 50 display: inline;
51} 51}
52
53#main ul#links li a.current {
54 -webkit-border-radius: 2px;
55 border-radius: 2px;
56 background-color: #040707;
57 color: #F1F1F1;
58}
59
52#links a, .backhome a{ 60#links a, .backhome a{
53 text-decoration: none; 61 text-decoration: none;
54 padding: 5px 10px; 62 padding: 5px 10px;
diff --git a/index.php b/index.php
index 399dec78..1e402896 100755
--- a/index.php
+++ b/index.php
@@ -101,6 +101,7 @@ switch ($view)
101 default: 101 default:
102 $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc"; 102 $sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
103 $params = array(0); 103 $params = array(0);
104 $view = 'index';
104 break; 105 break;
105} 106}
106 107
@@ -141,9 +142,9 @@ catch (Exception $e)
141 </header> 142 </header>
142 <div id="main" class="w960p"> 143 <div id="main" class="w960p">
143 <ul id="links"> 144 <ul id="links">
144 <li><a href="index.php">home</a></li> 145 <li><a href="index.php" <?php echo (($view == 'index') ? 'class="current"' : ''); ?>>home</a></li>
145 <li><a href="?view=fav">favorites</a></li> 146 <li><a href="?view=fav" <?php echo (($view == 'fav') ? 'class="current"' : ''); ?>>favorites</a></li>
146 <li><a href="?view=archive">archive</a></li> 147 <li><a href="?view=archive" <?php echo (($view == 'archive') ? 'class="current"' : ''); ?>>archive</a></li>
147 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li> 148 <li><a style="cursor: move" title="i am a bookmarklet, use me !" href="javascript:(function(){var%20url%20=%20location.href;var%20title%20=%20document.title%20||%20url;window.open('<?php echo url()?>?action=add&url='%20+%20encodeURIComponent(url),'_self');})();">poche it !</a></li>
148 </ul> 149 </ul>
149 <div id="entries"> 150 <div id="entries">