Перед созданием новой темы, пожалуйста, ознакомьтесь с FAQ по LinkorCMS
<?
public function AddTemplatedBox( $title, $template_file, $va
rs = array() ){<br />
<br />
$this->BlockContents = $this->BlockContentBox->NewSubBlock(true, array('title' => $title), array(), '', ''
)->NewBlock('contents', true, true, 'content');<br />
<br />
$this->BlockContents->NewSubBlock(true, $vars, array(), $template_file);<br />
<br />
$this->content_block = true;<br />
}
?>
<?
System::admin()->AddTemplatedBox('', 'modules/' . MOD_NAME . '/list.html');<br />
System::site()->AddBlock(MOD_NAME, true, true, 'mb');<br />
System::site()->AddSubBlock(MOD_NAME, true, $vars);
?>
Быстрый переход: |
---|