Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Icon in Tab
This discussion has been closed.
Comments
Or I suppose you could add an class or ID attribute to it and style the tab with CSS.
while (list($Key, $Tab) = each($this->Tabs)) { echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).'> <a href="'.$Tab['Url'].'" '.$Tab['Attributes'].'>'.$Tab['Text'].'</a></li>';}
I thought there was a more expanded bit somewhere that was more human-readable.
I can usually hack PHP to achieve my needs but this is too complex for me.
Like a dog with a bone, I'll bury it soon.
Posted: Friday, 23 March 2007 at 3:39PM (AEDT)
while (list($Key, $Tab) = each($this->Tabs)) { echo '<li'.$this->TabClass($this->CurrentTab, $Tab['Value']).' id="icon-'.$Tab['Text'].'"> <a href="'.$Tab['Url'].'" '.$Tab['Attributes'].'>'.$Tab['Text'].'</a></li>'; }
then u can add the icons using css
#icon-Discussions {}
#icon-Categories {}
etc
It even hides the account icon
Not as neatly as your suggestion I'm sure but it seems to work, now to test it in exploder!
I will however try and work out your suggestion, it's probably more efficient than my hack.
Posted: Friday, 23 March 2007 at 5:41PM (AEDT)
How did you get that front page set-up? is it an extension that I'm not aware of?
Posted: Friday, 23 March 2007 at 6:57PM (AEDT)