9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
14 $entry = $gravityview->entry->as_entry();
17 if ( ! class_exists(
'GravityView_Entry_Notes' ) ) {
28 require_once( GFCommon::get_base_path() .
'/entry_detail.php' );
37 do_action(
'gravityview/field/notes/scripts', $gravityview );
50 <div
class=
"gv-notes <?php echo $container_class; ?>">
54 <form method=
"post" class=
"gv-notes-list">
57 <input type=
"hidden" name=
"action" value=
"gv_delete_notes" />
58 <input type=
"hidden" name=
"entry-slug" value=
"<?php echo esc_attr( $entry_slug ); ?>" />
60 <caption><?php echo
$strings[
'caption']; ?></caption>
67 <label><input type=
"checkbox" value=
"" class=
"gv-notes-toggle" title=
"<?php echo $strings['toggle-notes']; ?>"><span
class=
"screen-reader-text"><?php echo $strings[
'toggle-notes']; ?></span></label>
68 <button type=
"submit" class=
"button button-small gv-notes-delete"><?php echo $strings[
'delete']; ?></button>
74 <tr
class=
"gv-notes-no-notes"><td colspan=
"2"><?php echo $strings[
'no-notes']; ?></td></tr>
76 foreach (
$notes as $note ) {
if(! isset( $gravityview)||empty( $gravityview->template)) $entry
The default notes field output template.
static get_notes( $entry_id)
Alias for GFFormsModel::get_lead_notes()
static display_note( $note, $show_delete=false, $context=null)
Generate HTML output for a single note.
if(! class_exists( 'GravityView_Entry_Notes')) $visibility_settings
static strings( $key='')
Get strings used by the Entry Notes field.
static get_entry_slug( $id_or_string, $entry=array())
Get the entry slug for the entry.
gravityview()
The main GravityView wrapper function.
static get_add_note_part( $atts, $context=null)
Get the Add Note form HTML.
static has_cap( $caps='', $object_id=null, $user_id=null)
Alias of GravityView_Roles_Capabilities::has_cap()