Style Menu in Plugin
I would like to style a menu that is in a plugin, however instead of using file names, I am using SEO Friendly URLS.
I have tried this from code that has worked in the past, however it doesnt seem to work now:
<li><a href="../Our_Facilities" <?php if(in_array("ourfacilities.php", explode("/",$_SERVER['PHP_SELF']))) echo('class="active"'); ?> data-title="you may choose to simply relax with a good book by the pool.">Our Facilities</a></li>
I have tried changing it too:
<li><a href="../Our_Facilities" <?php if(in_array("Our_Facilities", explode("/",$_SERVER['PHP_SELF']))) echo('class="active"'); ?> data-title="you may choose to simply relax with a good book by the pool.">Our Facilities</a></li>
Any ideas?