Topic is kinda vague since i couldn’t think of how to properly word it.
Right now, the menu on onlytechnews.com is generated from a large, ugly switch() statement and the URI Segment.
This means the menu is repeated 5 seperate times for each one to have a class=“current”.
I can’t seem to think of a better way to do it. What do you all do to handle the output of a quick class=”....”?
<a href="/blah/" class="current">Blah</a>
My method just seems extremely inefficient and downright stupid.