template = $system->getSiteParam($system->getSiteId(), '', 'layout', 'default');
$this->file = _LAYOUTPATHX_.__DS__.'_joomla_'.__DS__.'templates'.__DS__.$this->template.__DS__.'index.php';
$this->baseurl = _LAYOUTURLX_.'/_joomla_';
$this->params = new JParam();
}
public static function getInstance() {
if (empty(self::$instance))
self::$instance = new JLayoutEmu();
return self::$instance;
}
public function addScript($name) {
}
public function addStyleSheet($name) {
$this->cssfiles[] = $name;
}
protected function genCSSFileInclude() {
$st = '';
foreach ($this->cssfiles as $file)
$st .= '';
return $st;
}
public function run() {
ob_start();
require($this->file);
$data = ob_get_clean();
$search = array(
'%