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 .= '';
// Trumbowyg WYSIWYG
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$head .= '';
$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("{{dropdown}}", $header, $this->content);
$this->content = str_replace("{{head}}", $head, $this->content);
$this->content = str_replace("{{footer}}", $foot, $this->content);
$this->content = str_replace('{{content}}', $content, $this->content);
return $this->content;
}
}