後置型のifとMENTAとjQueryFileTree、そしてPHP

1
PHP Notice: Undefined variable: root in *****/jqueryFileTree.php on line 21
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
? my $title = shift;
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><? if ($title) { ?><?= "$title - " ?><? } ?>menta.nqou.net</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="./jquery.easing.1.3.js"></script>
<script type="text/javascript" src="./jqueryFileTree.js"></script>
<link rel="stylesheet" type="text/css" href="<?= static_file_path("default.css") ?>">
<link rel="stylesheet" type="text/css" href="./jqueryFileTree.css">
<script type="text/javascript">
$(document).ready(function () {
$('#fileTree').fileTree({
root:   './',
}, function(file) {
alert(file);
});
});
</script>
</head>
<body>
<h1><? if ($title) { ?><?= "$title - " ?><? } ?>menta.nqou.net</h1>
<h1><?= "$title - " if $title ?>menta.nqou.net</h1>
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy