function getContent($htmlize = true) { $route = $GLOBALS['ROUTES']; if (isset($route)) { if ($this->hasContentFile()) { require_once pagePath($route[$this->path]["file"]); if (function_exists('display_page_content')) { display_page_content(); } } } }
function getContent() { /* * Trying to depreciate this function in favor of a more global get_content() but if a site has a blog or other static content, we get an error: * Fatal error: Call to undefined method StaticPage::the_content() in /htdocs/www/newsite/content/layouts/default.php on line 8 * So, we still need to use this function from time to time, esp on page objects */ if ($this->hasContentFile()) { // We Need This! Used for static paths defined in the Routes require_once "../content/" . $this->content_file . ".php"; display_page_content(); } else { $this->the_content(); } }