';
foreach ($this->_subtemplates as $template)
$template->html_main();
echo '
';
if (Registry::has('db') && defined("DB_LOG_QUERIES") && DB_LOG_QUERIES)
foreach (Registry::get('db')->getLoggedQueries() as $query)
echo '
', strtr($query, "\t", " "), '
';
echo '
';
}
public function appendHeaderHtml($html)
{
$this->header_html .= "\n\t\t" . $html;
}
public function appendStylesheet($uri)
{
$this->appendHeaderHtml('');
}
public function setCanonicalUrl($url)
{
$this->canonical_url = $url;
}
public function addClass($class)
{
if (!in_array($class, $this->classes))
$this->classes[] = $class;
}
public function removeClass($class)
{
if ($key = array_search($class, $this->classes) !== false)
unset($this->classes[$key]);
}
}