GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Variables
field-notes-html.php File Reference

Go to the source code of this file.

Variables

 $container_class = ( sizeof( $notes ) > 0 ? 'gv-has-notes' : 'gv-no-notes' )
 
if(! isset( $gravityview)||empty( $gravityview->template)) $entry = $gravityview->entry->as_entry()
 The default notes field output template. More...
 
 $entry_slug = GravityView_API::get_entry_slug( $entry['id'], $entry )
 
 $field_settings = $gravityview->field->as_configuration()
 
 $notes = (array) GravityView_Entry_Notes::get_notes( $entry['id'] )
 
 $show_add = ! empty( $visibility_settings['add'] )
 
 $show_delete = ( ! empty( $visibility_settings['delete'] ) && GVCommon::has_cap( 'gravityview_delete_entry_notes' ) )
 
 $show_notes = $show_notes_logged_out || ( ! empty( $visibility_settings['view'] ) && GVCommon::has_cap( 'gravityview_view_entry_notes' ) )
 
 $show_notes_logged_out = ( ! empty( $visibility_settings['view'] ) && ! empty( $visibility_settings['view_loggedout'] ) )
 
 $strings = GravityView_Field_Notes::strings()
 
if(! class_exists( 'GravityView_Entry_Notes')) $visibility_settings = empty( $field_settings['notes'] ) ? array() : $field_settings['notes']
 
 if (! GVCommon::has_cap(array('gravityview_view_entry_notes', 'gravityview_add_entry_notes', 'gravityview_delete_entry_notes')) &&! $show_notes_logged_out)
 

Variable Documentation

◆ $container_class

$container_class = ( sizeof( $notes ) > 0 ? 'gv-has-notes' : 'gv-no-notes' )

Definition at line 47 of file field-notes-html.php.

◆ $entry

if (! isset($gravityview)||empty($gravityview->template)) $entry = $gravityview->entry->as_entry()

The default notes field output template.

$gravityview

Since
2.0

Definition at line 14 of file field-notes-html.php.

◆ $entry_slug

$entry_slug = GravityView_API::get_entry_slug( $entry['id'], $entry )

Definition at line 41 of file field-notes-html.php.

◆ $field_settings

$field_settings = $gravityview->field->as_configuration()

Definition at line 15 of file field-notes-html.php.

◆ $notes

$notes = (array) GravityView_Entry_Notes::get_notes( $entry['id'] )

Definition at line 39 of file field-notes-html.php.

◆ $show_add

$show_add = ! empty( $visibility_settings['add'] )

Definition at line 43 of file field-notes-html.php.

◆ $show_delete

$show_delete = ( ! empty( $visibility_settings['delete'] ) && GVCommon::has_cap( 'gravityview_delete_entry_notes' ) )

Definition at line 44 of file field-notes-html.php.

◆ $show_notes

$show_notes = $show_notes_logged_out || ( ! empty( $visibility_settings['view'] ) && GVCommon::has_cap( 'gravityview_view_entry_notes' ) )

Definition at line 45 of file field-notes-html.php.

◆ $show_notes_logged_out

$show_notes_logged_out = ( ! empty( $visibility_settings['view'] ) && ! empty( $visibility_settings['view_loggedout'] ) )

Definition at line 22 of file field-notes-html.php.

◆ $strings

Definition at line 40 of file field-notes-html.php.

◆ $visibility_settings

if (! class_exists('GravityView_Entry_Notes')) $visibility_settings = empty( $field_settings['notes'] ) ? array() : $field_settings['notes']

Definition at line 21 of file field-notes-html.php.

◆ if

if(! GVCommon::has_cap(array( 'gravityview_view_entry_notes', 'gravityview_add_entry_notes', 'gravityview_delete_entry_notes')) &&! $show_notes_logged_out)

Definition at line 24 of file field-notes-html.php.