getView()['location'])){
$this->content = file_get_contents($this->getView()['location']);
$this->implate();
}else{
$this->content = '';
$this->implate();
}
return;
}
//global $DROPDOWN, $SIDEBAR;
$head = '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
//$head .= '';
//$head .= '';
//Bind input ranges to a span on label. Show percentage.
$head .= '';
$head .= '';
$head .= '';
$foot = '';
$foot .= '';
$this->content = file_get_contents(__DIR__ . '/template.html');
$this->content = str_replace("{{usermenu}}", "", $this->content);
$this->content = str_replace("{{elements}}", $SIDEBAR->render(), $this->content);
$header = '';
//HACK
foreach ($DROPDOWN as $item){
$header .= "".$item['name']."";
}
$this->content = str_replace("{{projects}}", $header, $this->content);
$this->content = str_replace("{{head}}", $head, $this->content);
if(is_file($this->getView()['location'])){
$this->content = str_replace('{{>content}}', $this->replaceSections(file_get_contents($this->getView()['location']), $this->_view['values']), $this->content);
}else{
$this->content = str_replace('{{>content}}', '', $this->content);
}
$this->content = str_replace("{{footer}}", $foot, $this->content);
$this->implate();
}
}