Hello,
I need to add to my footer.php some Javascript code, but not on every page, for example the code should not be on any page of "profileprive", which is a table view (so not on profilepriveadd.php, profilepriveedit.php etc.)
I tried the following:
<?php
if (!preg_match('/profileprive/', CurrentPageID()))
{
?>
<script> etc... </script>
<?php
}
?>
But it doesn't work. How can I add the javascript code to my footer under the condition that the file name meets some criterias?