1
/* Copyright (C) 2000-2004 Thomas Bopp, Thorsten Hampel, Ludger Merkens
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
* $Id: UniMenu.pike,v 1.1.1.1 2006/03/27 12:40:11 exodusd Exp $
20
constant cvs_version="$Id: UniMenu.pike,v 1.1.1.1 2006/03/27 12:40:11 exodusd Exp $";
22
inherit Slotter.Inserts.VerticalMenu;
24
string sBaseDir = ".";
27
void create(string|void basedir, string|void proto)
35
set_active_icons(sProto+
36
combine_path(basedir,"./unimenu/UniActiveL.gif"), 20 ,
38
combine_path(basedir,"./unimenu/UniActiveM.gif"), 35,
40
combine_path(basedir,"./unimenu/UniActiveR.gif"),20);
41
set_inactive_icons(sProto+
42
combine_path(basedir,"./unimenu/UniInActiveL.gif"), 20,
44
combine_path(basedir,"./unimenu/UniInActiveM.gif"), 35,
46
combine_path(basedir,"./unimenu/UniInActiveR.gif"),20);
47
set_active_style("class=\"UniActiv\"");
48
set_inactive_style("class=\"UniInActiv\"");
54
object session = Session.get_user_session();
55
string var = get_variable();
56
string val = session->get_global(var);
62
array(string) need_style_sheets() {
63
return ({ sProto + combine_path(sBaseDir,"./unimenu/menu.css") });