GravityView  1.19.4
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes | Private Member Functions
GravityView_Admin_Metaboxes Class Reference

Register and render the admin metaboxes for GravityView. More...

Public Member Functions

 __construct ()
 
 initialize ()
 Add WordPress hooks. More...
 
 register_metaboxes ()
 
 render_data_source_metabox ($post)
 Render html for 'select form' metabox. More...
 
 render_select_template_metabox ($post)
 Render html for 'select template' metabox. More...
 
 render_shortcode_hint ()
 Render shortcode hint in the Publish metabox. More...
 
 render_view_configuration_metabox ($post)
 Render html for 'View Configuration' metabox. More...
 
 render_view_settings_metabox ($post)
 Render html View General Settings. More...
 
 settings_metabox_render ($post)
 Render the View Settings metabox. More...
 
 update_priority ()
 GravityView wants to have the top (normal) metaboxes all to itself, so we move all plugin/theme metaboxes down to advanced More...
 

Static Public Member Functions

static render_merge_tags_scripts ($curr_form)
 Generate the script tags necessary for the Gravity Forms Merge Tag picker to work. More...
 

Data Fields

 $post_id = 0
 

Static Public Attributes

static $metaboxes_dir
 

Private Member Functions

 add_settings_metabox_tabs ()
 Add default tabs to the Settings metabox. More...
 
 get_data_source_header ($post_id)
 Generate the title for Data Source, which includes the Action Links once configured. More...
 

Detailed Description

Register and render the admin metaboxes for GravityView.

Definition at line 6 of file class-gravityview-admin-metaboxes.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

add_settings_metabox_tabs ( )
private

Add default tabs to the Settings metabox.

Since
1.8
Runs Filter:
gravityview/metaboxes/default Modify the default settings metabox tabs
Parameters
array$metaboxes
Since
1.8

Definition at line 119 of file class-gravityview-admin-metaboxes.php.

References GravityView_Metabox_Tabs\add().

Referenced by register_metaboxes().

get_data_source_header (   $post_id)
private

Generate the title for Data Source, which includes the Action Links once configured.

Since
1.8
Parameters
int$post_idID of the current post
Returns
string "Data Source", plus links if any

Definition at line 176 of file class-gravityview-admin-metaboxes.php.

References $current_form, GravityView_Admin_Views\get_connected_form_links(), and gravityview_get_form_id().

Referenced by register_metaboxes().

initialize ( )

Add WordPress hooks.

Since
1.7.2

Definition at line 36 of file class-gravityview-admin-metaboxes.php.

Referenced by __construct().

register_metaboxes ( )
render_data_source_metabox (   $post)

Render html for 'select form' metabox.

public

Parameters
object$post
Returns
void

Definition at line 197 of file class-gravityview-admin-metaboxes.php.

static render_merge_tags_scripts (   $curr_form)
static

Generate the script tags necessary for the Gravity Forms Merge Tag picker to work.

Parameters
int$curr_formForm ID
Returns
null|string Merge tags html; NULL if $curr_form isn't defined.

Definition at line 221 of file class-gravityview-admin-metaboxes.php.

References $curr_form, $form, $output, and gravityview_get_form().

render_select_template_metabox (   $post)

Render html for 'select template' metabox.

public

Parameters
object$post
Returns
void

Definition at line 210 of file class-gravityview-admin-metaboxes.php.

render_shortcode_hint ( )

Render shortcode hint in the Publish metabox.

public

Returns
void

Definition at line 296 of file class-gravityview-admin-metaboxes.php.

References $post, gravityview_get_directory_fields(), and gravityview_is_admin_page().

render_view_configuration_metabox (   $post)

Render html for 'View Configuration' metabox.

public

Parameters
mixed$post
Returns
void

Definition at line 256 of file class-gravityview-admin-metaboxes.php.

References $curr_form, $post, gravityview_get_form_id(), and gravityview_get_template_id().

render_view_settings_metabox (   $post)

Render html View General Settings.

public

Parameters
object$post
Returns
void

Definition at line 279 of file class-gravityview-admin-metaboxes.php.

References $current_settings, $post, and gravityview_get_template_settings().

settings_metabox_render (   $post)

Render the View Settings metabox.

Since
1.8
Parameters
WP_Post$post
Parameters
WP_Post$post
WP_Post$post

Definition at line 97 of file class-gravityview-admin-metaboxes.php.

References $post, and GravityView_Metabox_Tabs\get_all().

update_priority ( )

GravityView wants to have the top (normal) metaboxes all to itself, so we move all plugin/theme metaboxes down to advanced

Since
1.15.2

Definition at line 51 of file class-gravityview-admin-metaboxes.php.

Field Documentation

$metaboxes_dir
static

Definition at line 8 of file class-gravityview-admin-metaboxes.php.

$post_id = 0

Definition at line 13 of file class-gravityview-admin-metaboxes.php.


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