From 245c71ebe561aa70f674ed467f7bd169ca5a55d2 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 13 Apr 2014 16:50:29 -0400 Subject: Add active class on filter buttons --- app/layout/nav_menu.phtml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'app/layout') diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 8b1ca1f6f..b316b090b 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -11,13 +11,15 @@ if ($this->state & FreshRSS_Entry::STATE_READ) { $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_READ; $checked = 'true'; + $class = 'active'; } else { $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_READ; $checked = 'false'; + $class = ''; } ?> @@ -27,13 +29,15 @@ if ($this->state & FreshRSS_Entry::STATE_NOT_READ) { $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_NOT_READ; $checked = 'true'; + $class = 'active'; } else { $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_NOT_READ; $checked = 'false'; + $class = ''; } ?> @@ -43,13 +47,15 @@ if ($this->state & FreshRSS_Entry::STATE_FAVORITE) { $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_FAVORITE; $checked = 'true'; + $class = 'active'; } else { $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_FAVORITE; $checked = 'false'; + $class = ''; } ?> @@ -59,13 +65,15 @@ if ($this->state & FreshRSS_Entry::STATE_NOT_FAVORITE) { $url_state['params']['state'] = $this->state - FreshRSS_Entry::STATE_NOT_FAVORITE; $checked = 'true'; + $class = 'active'; } else { $url_state['params']['state'] = $this->state + FreshRSS_Entry::STATE_NOT_FAVORITE; $checked = 'false'; + $class = ''; } ?> -- cgit v1.2.3