Interpretation Boards
print ("- \n");
foreach($table as $row)
{
if (substr($row[0],0,4) !== 'link' && substr($row[0],0,2) !== '//' && $row[0] !== "--") //don't read the header line or the comments
{
//0 link|1 has_child|2 parent|3 grandparent|4 newwindow|5 linkpath|6 fname
$linktext = strtolower(rtrim($row[0])); // eliminate any whitespace from the end of the field
$has_child = $row[1];
$parent = strtolower(rtrim($row[2])); // check for solitary links and 'heads of family'
$grandparent = strtolower(rtrim($row[3]));
$newwindow = $row[4];
$linkpath = rtrim($row[5]);
$fname = rtrim($row[6]);
if ($parent == $pagename || $grandparent == $pagename)
{
$pagefile = (!empty($fname) ? (!empty($linkpath) ? $linkpath."/".$fname : $fname) : (empty($linkpath) ? $linktext : $linkpath ) );
$link_id = ($pagefile == "spacer" ? " class='spacer'" : ($current == strtolower(str_replace($find,$replace,$pagefile)) . ".php" ? " class='nolink'" : ""));
$levelwas = $level; // see what flag was set by previous entry, to see if we're in a subdirectory
$level = (!empty($parent) && !empty($grandparent) ? 2 : (!empty($parent) && empty($grandparent) ? 1 : 0)); // set level for current entry
$sub = $level + 1; // kludge
$endul = ($level < $levelwas ? "\n
- " : ""); // if there's a child, start next sub list before printing list item
$new = ($newwindow == 1 ? "target=\"newwindow\"" : "" );
$url = (!empty($linkpath) ? $pagefile."' ".$new : strtolower(str_replace($find,$replace,$pagefile)).".php'" );
print ("\n".$endul."
-
Home| Introduction to the churchyard| Restoration of the churchyard| Maps - Parish and churchyard| Tables of memorials| Fact sheets| Guides to Ss Mary & John Church| Historical documents| Local families| Wildlife leaflets| Guide to interesting monuments| Interpretation boards| Teachers' Guides| Events and volunteer opportunities| Contacts| Acknowledgements & copyright| Site map|
© Ss Mary & John Church :: site design by oxogen
