mirror of
https://github.com/wallabag/wallabag.git
synced 2024-10-31 22:28:54 +00:00
background sur le menu pour savoir sur quelle page on se trouve
This commit is contained in:
parent
d08318e4dd
commit
8784f0956b
2 changed files with 12 additions and 3 deletions
|
@ -49,6 +49,14 @@ header {
|
||||||
#main ul#links li {
|
#main ul#links li {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#main ul#links li a.current {
|
||||||
|
-webkit-border-radius: 2px;
|
||||||
|
border-radius: 2px;
|
||||||
|
background-color: #040707;
|
||||||
|
color: #F1F1F1;
|
||||||
|
}
|
||||||
|
|
||||||
#links a, .backhome a{
|
#links a, .backhome a{
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
|
|
@ -101,6 +101,7 @@ switch ($view)
|
||||||
default:
|
default:
|
||||||
$sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
|
$sql = "SELECT * FROM entries WHERE is_read=? ORDER BY id desc";
|
||||||
$params = array(0);
|
$params = array(0);
|
||||||
|
$view = 'index';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,9 +142,9 @@ catch (Exception $e)
|
||||||
</header>
|
</header>
|
||||||
<div id="main" class="w960p">
|
<div id="main" class="w960p">
|
||||||
<ul id="links">
|
<ul id="links">
|
||||||
<li><a href="index.php">home</a></li>
|
<li><a href="index.php" <?php echo (($view == 'index') ? 'class="current"' : ''); ?>>home</a></li>
|
||||||
<li><a href="?view=fav">favorites</a></li>
|
<li><a href="?view=fav" <?php echo (($view == 'fav') ? 'class="current"' : ''); ?>>favorites</a></li>
|
||||||
<li><a href="?view=archive">archive</a></li>
|
<li><a href="?view=archive" <?php echo (($view == 'archive') ? 'class="current"' : ''); ?>>archive</a></li>
|
||||||
<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>
|
<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>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="entries">
|
<div id="entries">
|
||||||
|
|
Loading…
Reference in a new issue