summaryrefslogtreecommitdiff
path: root/manager/library/plugins
diff options
context:
space:
mode:
authorMarkus Warg <mw@it-sls.de>2010-04-14 15:20:40 +0200
committerMarkus Warg <mw@it-sls.de>2010-04-14 15:20:40 +0200
commitae053ad0371d46f529a26c2a18953189620b88e4 (patch)
treeaad5ebb03e7138647f950be8960c3f7c84df0020 /manager/library/plugins
parentd09a673644f87ee067f62f3de978cb046a02c7a8 (diff)
downloadcacert-mgr-ae053ad0371d46f529a26c2a18953189620b88e4.tar.gz
cacert-mgr-ae053ad0371d46f529a26c2a18953189620b88e4.tar.xz
cacert-mgr-ae053ad0371d46f529a26c2a18953189620b88e4.zip
imap class / mail controller
add imap class to access captured emails add mail controller to framework (display content)
Diffstat (limited to 'manager/library/plugins')
-rw-r--r--manager/library/plugins/plugin.loginlogout.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/manager/library/plugins/plugin.loginlogout.php b/manager/library/plugins/plugin.loginlogout.php
index 6de7a92..8bd13db 100644
--- a/manager/library/plugins/plugin.loginlogout.php
+++ b/manager/library/plugins/plugin.loginlogout.php
@@ -17,9 +17,15 @@ class LoginLogout extends Zend_Controller_Plugin_Abstract {
$controller = 'logout';
$text = 'Logout';
}
+ $cur_ctrl = $request->getControllerName();
+ if ($cur_ctrl == 'login')
+ $aclass=' class="active"';
+ else
+ $aclass='';
+
$view = Zend_Registry::get('view');
$view->topNav('<a href="' .
$view->url(array('controller' => $controller), 'default', true) .
- '">' . I18n::_($text) . '</a>', Zend_View_Helper_Placeholder_Container_Abstract::SET, 1000);
+ '"' . $aclass . '>' . I18n::_($text) . '</a>', Zend_View_Helper_Placeholder_Container_Abstract::SET, 1000);
}
}