Hey there,
I'm working on tweaking the Tabular Dynamics theme for my site (
www.jeffandcrystal.com). One of the things I'm trying to do is to edit the acutal tabs across the top of the page that link to different sections of the site. One of the tabs is setup to direct to a specific article/story section (Julia's News). The problem is that the code in the header.thtml page for Tabular Dynamics seems to cause a problem.
Here's what I see:
Text Formatted Code
<?php
if ($_SERVER['PHP_SELF'] == "/index.php") {
print '<a href="{site_url}/" class="selected">home</a><span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/" class="plain">home</a><span class="netscape4"> </span>';
}
if ($_SERVER['PHP_SELF'] == "/index.php?topic=Julia") {
print '<a href="{site_url}/index.php?topic=Julia" class="selected">julia's page</a><span class="netscape4"> </span>';
} else {
print '<a href="{site_url}/index.php?topic=Julia" class="plain">julia's page</a><span class="netscape4"> </span>';
}
So, you can see that the Julia's News tab is looking for the same PHP page (index.php) and thus wont have the tab show up as colored when selected.
What I'm trying to figure out is what is the PHP variable for the actual page? That way I can say:
Text Formatted Code
if (PHP.Page.Variable == "/index.php?topic=Julia")
instead of:
Text Formatted Code
if ($_SERVER['PHP_SELF'] == "/index.php?topic=Julia")
Any thoughts?
Thanks!
Jeff.