Implemented without issues.
Thanks!
New theme; Any interest?
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: New theme; Any interest?
With the example code it is not possible to load other skins than the default skin.
I have fixed this bug and some other improvements in netjukebox 5.37.
netjukebox 5.37 will be released this weekend.
Than I will take a break with programming
I have fixed this bug and some other improvements in netjukebox 5.37.
netjukebox 5.37 will be released this weekend.
Than I will take a break with programming
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: New theme; Any interest?
It can be done the other way around.godsyn wrote:Best of both worlds, I'll start work on defining text via css for menus/icons/etc. For example:
Instead of: <a href="favorite.php">favorites</a>
use
<a id="mainmenu-favorites" href="favorite.php"></a>
and in css use:
#mainmenu-favorites{
background-image:url('/path/tp/favorites.png');
}
OR
#mainmenu-favorites:before{
content:'Music I like';
}
Allowing for text, an image, or translations.
Thoughts?
Just add the text to the href like:
Code: Select all
<ul id="main_menu">
<li><a href="index.php" class="media<?php echo ($cfg['menu'] == 'media') ? '_on' : ''; ?>">Media</a></li>
<li><a href="favorite.php" class="favorites<?php echo ($cfg['menu'] == 'favorite') ? '_on' : ''; ?>">Favorites</a></li>
<li><a href="playlist.php" class="playlist<?php echo ($cfg['menu'] == 'playlist') ? '_on' : ''; ?>">Playlist</a></li>
<li><a href="config.php" class="config<?php echo ($cfg['menu'] == 'config') ? '_on' : ''; ?>">Config</a></li>
</ul>
Code: Select all
#main_menu li a {
...
text-indent: -1000px;
}
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
Re: New theme; Any interest?
I'm planning to rewrite netjukebox and get ride of almost all tables.godsyn wrote:I've started working on removing the nested tables (yuck) and pointless back-ground images (eg: gradient) and converting everything to CSS. The theme's name is HTML5Clean, and short of some issues with embedded images (eg: DIVs/tables not defined by the theme), I've removed all background images, cleaned up the css, and ensured it is cross browser compatible. Would someone be willing to clean it up some more? The player is looking a little rough due to base (non-theme-able) code not being html5 compliant.
Still I will use tables for tabular data where columns are needed.
I'm planning to use the ul li structure for: menu, submenu, (breadcrumb) navigator & footer (maybe login, etc...).
Thanks for the inspiration and for examples I will often look to your code!!