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

%s

',Arr::get($record,'title_icon','fa-square'),Arr::get($record,'title','NO 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','role'=>'form','enctype'=>'multipart/form-data','data-toggle'=>'validator'),(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; } } ?>