<?php if($page == 'obituaries') { ?> <link rel="stylesheet" type="text/css" href="/resources/css/superbox.css" media="all" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="resources/js/superbox.js"></script> <script type="text/javascript"> $(function(){ $.superbox.settings = { closeTxt: "Close", loadTxt: "Loading...", nextTxt: "Next", prevTxt: "Previous" }; $.superbox(); }); </script><?php } ?>
<? $path = $_SERVER['PHP_SELF']; $page = basename($path); $page = basename($path, '.php'); $dir = substr(strrchr(getcwd(), '/'), 1); ?>
<body id="<?= basename($_SERVER['PHP_SELF'], '.php')?>">
I have an if statement (not in Wordpress; just a simple PHP site) that refuses to work. Thought it was right, guess it's not?
Code I have in between my HEAD tags:
Code I have after my BODY:
I also have the code from Chris Coyier to create a body ID on every page:
But I can't figure out how to call a body id even if I wanted to try that way.
Anybody have any thoughts?
- Steph
I think that's the problem anyways!
Thank you.
- Steph
- Steph