$media) Style::add(array( 'type'=>'file', 'data'=>$data, 'media'=>$media, )); } /** * Render this Block */ protected function render() { $record = static::$_data[$this->_x]; $output = ''; $output .= '
'; $output .= sprintf('
',empty($record['span']) ? 'span12' : $record['span']); $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-horizontal': $output .= Form::open(NULL,array('class'=>'form-horizontal')); $output .= (string)$record['body']; $output .= Form::close(); break; default: $output .= (string)$record['body']; } else $output .= (string)$record['body']; $output .= '
'; $output .= '
'; $output .= '
'; $output .= '
'; return $output; } } ?>