aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
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 /index.php
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
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php7
1 files changed, 4 insertions, 3 deletions
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">