I don't think this has been asked before, but it's crossed my mind a couple of times and I figure, why not. I notice I can pull pretty much any page into the AJAX version of the tabs. Say, for example, I put downloads.php as one of the tab links, it loads it just fine.
Now, the only problem with that is that since downloads.php uses templates and calls the navbar and header, you get duplicates. That's easily enough fixed by simply removing the $header and $navbar variables from the template. Only problem now, is when people visit a do= page of downloads.php, or any page that uses that same template, it loads a new page with no header and template.
So going the long way around to get to the question, is there an if conditional I could use to hide the navbar and header when loaded via AJAX only?
|