global menu

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
tut
Rank 3
Rank 3
Posts: 18
Joined: November 22nd, 2011, 4:29 pm

global menu

Post by tut »

I use one global menu for all wikis at the very top of the page.

I achieve that through this function

Code: Select all

<?php include ('menu.html);
that is placed in gumax.php.

Now I need more menus in more language variatons. I have tried following, but it hasnt work.

Code: Select all

<?php
	switch ($_SERVER["SERVER_NAME"])
            {
# Hitman
                    case 'cs.hitman.pedie.eu':
                            $html_file_name =  'http://pedie.eu/pedie/main/menu/cs/menu.html';
                            break;

                    case 'pl.hitman.pedie.eu':
                            $html_file_name =  'http://pedie.eu/pedie/main/menu/pl/menu.html';
                            break;
							}
							 ?>
How can I exactly do that?

Pls advise
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: global menu

Post by Paul »

what exactly are you going to archive?
User avatar
tut
Rank 3
Rank 3
Posts: 18
Joined: November 22nd, 2011, 4:29 pm

Re: global menu

Post by tut »

In one directory will be menu in one language, in another directory will be menu in another language.

Example:

menu in language1 will have 10 wikis
menu in language2 will have another 10 wikis
menu in language3 will have another 10 wikis

Point is I need to specify path to directory with menu in correct language. It is a lil bit same as there, with gumax_template.css files.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: global menu

Post by Paul »

So you can use the same logic if needed... but the way, the language setting should not be related to skin.
Post Reply