";
echo strtr($sectionrow['content'], $this->vars);
echo '
';
}
function printPage() {
$sections = json_decode($this->pageRow['sections']);
if ($sections === NULL)
$sections = explode(',', $this->pageRow['sections']);
foreach ($sections as $section) {
$this->addSection($section);
}
}
function getMenuItems() {
global $conn;
$menuquery = $conn->query("SELECT * FROM Menu ORDER BY listId");
$menuString = "";
while($menurow = $menuquery->fetchArray()) {
$selected = "";
if ($this->pagename == $menurow['value'])
$selected = "active";
if ($menurow['valuetype'] == "page") {
$link = "?p=" . $menurow['value'];
} else {
$link = $menurow['value'];
}
$menuString .= "