Validation Issue with jscript within page template
-
I am having a validation issue (13 to be precise) when adding a jscript on my site. The code I’m using is:
<?
// inserts image rotator to only home page
$post_name = $post->post_name;
if($post_name == ‘home’){
$use_image_array = ‘yes’; // if not “yes” script will pull image from directory (see script for directory)
#— IMAGE ARRAY —#
$image_array[] = array(‘image_path’ => ‘/images/rotate1.jpg’, ‘image_link’ => ”);
$image_array[] = array(‘image_path’ => ‘/images/rotate2.jpg’, ‘image_link’ => ”);
#— END IMAGE ARRAY —#
require(“$_SERVER[DOCUMENT_ROOT]/components/image_rotate/jquery_image_rotate.php”);
}What’s the best means of validating this?
The topic ‘Validation Issue with jscript within page template’ is closed to new replies.