function __construct() { self::$path = plugin_dir_path(__FILE__); self::$file = __FILE__; $this->doing_ajax = defined('DOING_AJAX') && DOING_AJAX; $this->add_hooks(); parent::__construct(); }
* @since 1.17 */ /** * @action `gravityview/field/notes/scripts` Print scripts and styles required for the Notes field * @see GravityView_Field_Notes::enqueue_scripts * @since 1.17 */ do_action('gravityview/field/notes/scripts'); ?> <form method="post" class="gv-note-add"> <div> <input type="hidden" name="action" value="gv_note_add" /> <input type="hidden" name="entry-slug" value="{entry_slug}" /> <input type="hidden" name="show-delete" value="{show_delete}" /> {nonce_field} {email_fields} <div class="gv-note-content-container"> <label for="gv-note-content-{entry_slug}" class="screen-reader-text"><?php echo GravityView_Field_Notes::strings('content-label'); ?> </label> <textarea name="gv-note-content" id="gv-note-content-{entry_slug}"></textarea> </div> <button type="submit" class="button gv-add-note-submit"><?php echo GravityView_Field_Notes::strings('add-note'); ?> </button> </div> </form>
echo $strings['delete']; ?> </button> </th> </tr> </thead> <?php } ?> <tbody> <tr class="gv-notes-no-notes"><td colspan="2"><?php echo $strings['no-notes']; ?> </td></tr> <?php foreach ($notes as $note) { echo GravityView_Field_Notes::display_note($note, $show_delete); } ?> </tbody> </table> </div> </form> <?php } // End if can view notes if ($show_add) { echo do_shortcode('[gv_note_add]'); } ?> </div>