I am trying to use an Accordion Menu Script (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm)
So far, I am getting shaky results.
I have:
<?php
$lastCategory = "";
foreach ($hpmenuRecords as $hpmenuRecord):
$showHeader = false;
if ($hpmenuRecord['category'] != $lastCategory) {
$lastCategory = $hpmenuRecord['category'];
$showHeader = true;
}
?>
<?php if ($showHeader): ?>
<h3 class="menuheader expandable"><?php echo $hpmenuRecord['category'] ?></h3>
<ul class="categoryitems"><?php endif ?>
<li><a href="<?php echo $hpmenuRecord['link'] ?>"><?php echo $hpmenuRecord['title'] ?></a></li>
</ul>
<?php endforeach; ?>
It is not showing up right.
The page I am working on is:
http://www.cleburnehighschool.com/index.phpA non-CMS Builder page where it works "out of the box" is:
http://www.cleburnehighschool.com/index2.html