Page 1 of 1

global menu

PostPosted: March 5th, 2012, 9:13 pm
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

Re: global menu

PostPosted: March 5th, 2012, 11:31 pm
by Paul
what exactly are you going to archive?

Re: global menu

PostPosted: March 6th, 2012, 2:29 pm
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.

Re: global menu

PostPosted: March 6th, 2012, 9:49 pm
by Paul
So you can use the same logic if needed... but the way, the language setting should not be related to skin.