diff options
-rw-r--r-- | css/style.css | 8 | ||||
-rwxr-xr-x | index.php | 7 |
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; |
@@ -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"> |