9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
16 $form = $gravityview->view->form->form;
17 $entry = $gravityview->entry->as_entry();
28 if (
sizeof( $output_arr ) === 1 ) {
29 $output = $output_arr[0][
'content'];
36 foreach ( $output_arr as $key => $item) {
39 if ( empty( $item[
'content'] ) ) {
continue; }
41 $output .=
'<li>' . $item[
'content'] .
'</li>';
45 $output = sprintf(
"<ul class='gv-field-file-uploads %s'>%s</ul>", $gv_class,
$output );
gravityview_get_files_array( $value, $gv_class='', $context=null)
Return an array of files prepared for output.
if(! isset( $gravityview)||empty( $gravityview->template)) $field
The default file upload field output template.
gv_class( $field, $form=NULL, $entry=array())
gravityview()
The main GravityView wrapper function.