/** * Создает новое сообщение * @param $title * @param $text * @param $admin * @return StarkytSubBlock */ public function AddMessage($title, $text, $admin) { $vars = array('title' => $title, 'text' => $text, 'admin' => $admin); return $this->ContentBox->NewSubBlock(true, $vars, array(), 'message.html'); }
/** * @return StarkytBlock */ private function GetBlock() { if (is_string($this->template_block)) { $this->Starkyt->SetVar('template', 'if_' . $this->template_block, true); $this->template_block = $this->Starkyt->NewBlock($this->template_block, true, false, 'nav', 'navigation.html'); } if (!$this->template_block->HasBlock('back')) { $this->template_block->NewBlock('back', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('begin', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('left', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('active', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('right', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('end', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('next', true, true, 'item', 'navigation_item.html'); $this->template_block->NewBlock('is_next'); $this->template_block->NewBlock('is_back'); } return $this->template_block; }