openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 3e4b0370ec3ec304970498a01e4f184838651c39
parent abf5ecb1d4106c11ab2285f675ad56d430755435
Author: dankert <devnull@localhost>
Date:   Thu, 17 Feb 2005 21:08:51 +0100

Einbau von Baum offen/zu

Diffstat:
actionClasses/TitleAction.class.php | 20++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/actionClasses/TitleAction.class.php b/actionClasses/TitleAction.class.php @@ -20,7 +20,10 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ -// Revision 1.6 2005-01-14 21:41:23 dankert +// Revision 1.7 2005-02-17 20:08:51 dankert +// Einbau von Baum offen/zu +// +// Revision 1.6 2005/01/14 21:41:23 dankert // Aufruf von lastModified() fuer Conditional-GET // // Revision 1.5 2004/12/19 19:23:20 dankert @@ -76,10 +79,23 @@ class TitleAction extends Action $this->setTemplateVar('userfullname',$user->fullname); // Urls zum Benutzerprofil und zum Abmelden - $this->setTemplateVar('profile_url',Html::url( 'profile' )); + $this->setTemplateVar('profile_url',Html::url( 'profile' )); $this->setTemplateVar('logout_url' ,Html::url( 'index','logout' )); $this->setTemplateVar('css_body_class','title'); + + + if ( Session::get('showtree') ) + { + $this->setTemplateVar('showtree_url' ,Html::url('index','hidetree') ); + $this->setTemplateVar('showtree_text',lang('GLOBAL_HIDETREE') ); + } + else + { + $this->setTemplateVar('showtree_url' ,Html::url('index','showtree') ); + $this->setTemplateVar('showtree_text',lang('GLOBAL_SHOWTREE') ); + } + $this->forward( 'title' ); } }