[Mediawiki-l] How to add / edit drop down menus in Clean Skin
Piyush Varma
pvarma at inventures.com
Wed Dec 28 01:54:37 UTC 2005
Hi,
I want to add and update menu options in Clean.php skin. The skin was downloaded from http://wiki.kevcom.com/wiki/Clean_Skin.
I found follo: lines of code which I believe creates the menu options:
// Navigation links
foreach ($this->data['nav_urls'] as $key => $item) {
$href = htmlspecialchars($item['href']);
$text = strtolower(htmlspecialchars(
$this->translator->translate($key)));
if ($key == "upload" && $isEnglish)
$text = "upload files";
$link = "<a href='$href'>$text</a>";
if ($key == "help")
$helpLink = $link;
if ($key == "recentchanges")
$recentLink = $link;
if ($key == "upload")
$uploadLink = $link;
if ($key == "specialpages")
$specialLink = $link;
if ($key == "recentchangeslinked")
$relatedLink = $link;
}
I also found that function showMenu(menuID, parentID, alignment) is called with options.
My skin drop down options are different. Hence how do I find the definition of $this->data['nav_urls']. Where do I learn more on $this->data please?
Thank you,
Piyush
More information about the MediaWiki-l
mailing list