$media) Style::add(array( 'type'=>'file', 'data'=>$data, 'media'=>$media, )); } /** * Return an instance of this class * * @return Block */ public static function factory() { return new SystemMessage; } /** * Render this block * * @see HTMLRender::render() */ protected function render() { $output = ''; foreach (static::$_data as $value) $output .= View::factory(Kohana::Config('config.theme').'/block') ->set('title',empty($value['title']) ? '' : $value['title']) ->set('subtitle',empty($value['subtitle']) ? '' : $value['subtitle']) ->set('body',empty($value['body']) ? '' : $value['body']) ->set('footer',empty($value['footer']) ? '' : $value['footer']); return $output; } } ?>