summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-24 18:39:01 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-08-24 18:39:01 +0200
commit907f1b473a9f32e491d41c48c6813b168aebe306 (patch)
treead8e136d3898c62d5a82929126b6b4891d8f3f29
parentd1f79fee69a3667913f419cd9726ffb11f410bd0 (diff)
parent991596a193bf618f92f7f10e0a4441b44365ec5c (diff)
Merge pull request #593 from aledeg/fix-cat-css
Fix category CSS
-rw-r--r--app/layout/aside_flux.phtml16
1 files changed, 7 insertions, 9 deletions
diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtml
index 432d6fdb7..357aa1cd3 100644
--- a/app/layout/aside_flux.phtml
+++ b/app/layout/aside_flux.phtml
@@ -42,21 +42,19 @@
$feeds = $cat->feeds ();
if (!empty ($feeds)) {
$c_active = false;
- if ($this->conf->display_categories) {
- if ($this->get_c == $cat->id () && $this->get_f) {
- $c_active = true;
- }
- } else {
- if ($this->get_c == $cat->id ()) {
- $c_active = true;
+ $c_show = false;
+ if ($this->get_c == $cat->id ()) {
+ $c_active = true;
+ if (!$this->conf->display_categories || $this->get_f) {
+ $c_show = true;
}
}
?><li data-unread="<?php echo $cat->nbNotRead(); ?>"<?php if ($c_active) echo ' class="active"'; ?>><?php
?><div class="category stick<?php echo $c_active ? ' active' : ''; ?>"><?php
?><a data-unread="<?php echo formatNumber($cat->nbNotRead()); ?>" class="btn<?php echo $c_active ? ' active' : ''; ?>" href="<?php $arUrl['params']['get'] = 'c_' . $cat->id(); echo Minz_Url::display($arUrl); ?>"><?php echo $cat->name (); ?></a><?php
- ?><a class="btn dropdown-toggle" href="#"><?php echo FreshRSS_Themes::icon($c_active ? 'up' : 'down'); ?></a><?php
+ ?><a class="btn dropdown-toggle" href="#"><?php echo FreshRSS_Themes::icon($c_show ? 'up' : 'down'); ?></a><?php
?></div><?php
- ?><ul class="feeds<?php echo $c_active ? ' active' : ''; ?>"><?php
+ ?><ul class="feeds<?php echo $c_show ? ' active' : ''; ?>"><?php
foreach ($feeds as $feed) {
$feed_id = $feed->id ();
$nbEntries = $feed->nbEntries ();