$media) Style::add(array( 'type'=>'file', 'data'=>$data, 'media'=>$media, )); } /** * Render this Block */ protected function render() { $record = self::$_data[$this->_x]; $output = ''; $output .= sprintf('
',empty($record['span']) ? '12' : $record['span'],empty($record['scrollable']) ? '' : 'scrollable'); $output .= '
'; if (! empty($record['title'])) $output .= sprintf('
%s

%s

',empty($record['title_icon']) ? '' : sprintf(' ',$record['title_icon']),$record['title']); $output .= '
'; if (! empty($record['type'])) switch ($record['type']) { case 'form': $output .= Form::open(NULL,(empty($record['id']) ? NULL : array('id'=>$record['id']))); $output .= (string)$record['body']; $output .= Form::close(); break; case 'form-horizontal': $output .= Form::open(NULL,Arr::merge(array('class'=>'form-horizontal'),(empty($record['id']) ? array() : array('id'=>$record['id'])))); $output .= (string)$record['body']; $output .= Form::close(); break; default: $output .= (string)$record['body']; } else $output .= (string)$record['body']; $output .= '
'; $output .= '
'; $output .= '
'; return $output; } } ?>