Question
PHP code for links with current state
I have created a <?php include(menu.php) ?> that is in
my pages. In my menu.php page which is an unordered list of my menu
links, which looks like this, see below.
<ul>
<li><a href="/index.php" id="current">Home</a></li>
<li><a href="/lommiinfo/index.php">LOMMI Info</a></li>
<li><a href="/calendar/index.php">Calendar</a></li>
<li><a href="/resources/index.php">Resource Centre</a></li>
<li><a href="/articles/index.php">Articles</a>
<li><a href="/ministries/index.php">Ministries</a></li>
<li><a href="/logincentre/index.php">Login Centre</a></li>
<li><a href="/sitemap/index.php">Site Map</a></li>
</ul>
If you see above in my unordered list in my home link there a id=”current” which shows the Home has a current state status.
What I am asking for, is there a php function or php if statement that can make the current state show when you are at the appropriate page that is in the a href link?
Thank you,
AdonaiEchad
<ul>
<li><a href="/index.php" id="current">Home</a></li>
<li><a href="/lommiinfo/index.php">LOMMI Info</a></li>
<li><a href="/calendar/index.php">Calendar</a></li>
<li><a href="/resources/index.php">Resource Centre</a></li>
<li><a href="/articles/index.php">Articles</a>
<li><a href="/ministries/index.php">Ministries</a></li>
<li><a href="/logincentre/index.php">Login Centre</a></li>
<li><a href="/sitemap/index.php">Site Map</a></li>
</ul>
If you see above in my unordered list in my home link there a id=”current” which shows the Home has a current state status.
What I am asking for, is there a php function or php if statement that can make the current state show when you are at the appropriate page that is in the a href link?
Thank you,
AdonaiEchad
