Ported: WP_Premium

Skinning and designing Serendipity (CSS, HTML, Smarty)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I have very slightly more JavaScript knowledge than you. Looking at the "taber.js" script, I see that it selects the first tab by default.

However, if any of its tabs have the class "tabbertabdefault", that tab will be selected. So you could add a template option for the default tab (I'm assuming it'll be "deftab"), then change your Smarty so wherever "tabbertab" is assigned as a class, you also check the template option:

Code: Select all

<div class="tabbertab{if $template_option.deftab == 'quicksearch'} tabbertabdefault{/if}">
And so, Serendipity beats the competition again! Template options for everybody!
Judebert
---
Website | Wishlist | PayPal
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

judebert wrote:So you could add a template option for the default tab (I'm assuming it'll be "deftab"), then change your Smarty so wherever "tabbertab" is assigned as a class, you also check the template option:
What can I say? Awesome. Thanks, Jude, I'll check this out asap. Asap might take until next week, though :)

Edit: No, it didn't take that long. Zipfile updated just now, the code was very easy to implement, and it works. Thanks Jude, you just earned yourself a contributor's credit :) (Same for lordcoffee, of course.)

And the great thing (once more, I might add) is - I don't see how those people from that other blog engine could copy that. I recently noticed they do have something similar to theme options now, too, but they're not that comfortable so far. Plus, very few themes actually use that technique.

I really don't know why anybody would want to use anything else than s9y. I just don't, period. (I may, however, be a little biased :))

YL
Post Reply