GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions
GravityView_Admin_Add_Shortcode Class Reference

If this file is called directly, abort. More...

Public Member Functions

 __construct ()
 
 add_scripts_and_styles ()
 Enqueue scripts and styles. More...
 
 add_shortcode_button ()
 Add shortcode button to the Add Media right. More...
 
 add_shortcode_popup ()
 Add shortcode popup div. More...
 
 get_sortable_fields ()
 Ajax Given a View id, calculates the assigned form, and returns the form fields (only the sortable ones ) More...
 
 is_post_editor_screen ()
 check if screen post editor and is not related with post type 'gravityview' More...
 

Detailed Description

If this file is called directly, abort.

Definition at line 19 of file class-admin-add-shortcode.php.

Constructor & Destructor Documentation

__construct ( )

Definition at line 21 of file class-admin-add-shortcode.php.

Member Function Documentation

add_scripts_and_styles ( )

Enqueue scripts and styles.

public

Returns
void

Definition at line 157 of file class-admin-add-shortcode.php.

References GRAVITYVIEW_FILE, is_post_editor_screen(), and GravityView_Plugin\version.

add_shortcode_button ( )

Add shortcode button to the Add Media right.

public

Returns
void
Since
1.15.3

Definition at line 53 of file class-admin-add-shortcode.php.

References GVCommon\has_cap(), and is_post_editor_screen().

add_shortcode_popup ( )

Add shortcode popup div.

public

Returns
void

Definition at line 79 of file class-admin-add-shortcode.php.

References $post, $title, GravityView_View_Data\get_default_args(), is_post_editor_screen(), and GravityView_Admin\no_views_text().

get_sortable_fields ( )

Ajax Given a View id, calculates the assigned form, and returns the form fields (only the sortable ones )

public

Returns
void

Definition at line 198 of file class-admin-add-shortcode.php.

References gravityview_get_form_id(), gravityview_get_sortable_fields(), and gravityview_get_template_setting().

is_post_editor_screen ( )

check if screen post editor and is not related with post type 'gravityview'

public

Returns
bool

Definition at line 41 of file class-admin-add-shortcode.php.

Referenced by add_scripts_and_styles(), add_shortcode_button(), and add_shortcode_popup().


The documentation for this class was generated from the following file: