GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Class used to register a new template to be shown in GravityView presets. More...
Public Member Functions | |
__construct ( $id, $settings=array(), $field_options=array(), $areas=array()) | |
assign_active_areas ( $areas, $template='', $context='directory') | |
Assign active areas (for admin configuration) More... | |
assign_field_options ( $field_options, $template_id, $field_id=NULL, $context='directory', $input_type='') | |
Assign template specific field options. More... | |
assign_fields_xml ( $xml='', $template='') | |
Set the Gravity Forms import form by using the preset_fields field defined in the template. More... | |
assign_form_xml ( $xml='', $template='') | |
Set the Gravity Forms import form information by using the preset_form field defined in the template. More... | |
assign_view_slug ( $default, $context) | |
Assign the template slug when loading the presentation template (frontend) More... | |
get_active_areas ( $context) | |
register_styles () | |
If the template has a CSS file defined in the css_source setting, register it It will be registered using gravityview_style_{template_id} format. More... | |
register_template ( $templates) | |
Register the template to display in the admin. More... | |
Data Fields | |
$active_areas | |
$field_options | |
$settings | |
$template_id | |
Private Member Functions | |
add_hooks () | |
Add filters and actions for the templates. More... | |
merge_defaults ( $settings=array()) | |
Merge the template settings with the default settings. More... | |
Class used to register a new template to be shown in GravityView presets.
Definition at line 6 of file class-gravityview-template.php.
__construct | ( | $id, | |
$settings = array() , |
|||
$field_options = array() , |
|||
$areas = array() |
|||
) |
Definition at line 40 of file class-gravityview-template.php.
References $field_options, $settings, add_hooks(), and merge_defaults().
|
private |
Add filters and actions for the templates.
Definition at line 61 of file class-gravityview-template.php.
Referenced by __construct().
assign_active_areas | ( | $areas, | |
$template = '' , |
|||
$context = 'directory' |
|||
) |
Assign active areas (for admin configuration)
protected
array | $areas | |
string | $template | (default: '') |
Definition at line 139 of file class-gravityview-template.php.
References $template, and get_active_areas().
assign_field_options | ( | $field_options, | |
$template_id, | |||
$field_id = NULL , |
|||
$context = 'directory' , |
|||
$input_type = '' |
|||
) |
Assign template specific field options.
array | $options | (default: array()) |
string | $template | (default: '') |
string | $field_id | key for the field |
string | array | $context | Context for the field; directory or single for example. |
Definition at line 166 of file class-gravityview-template.php.
References $field_options, $template_id, and Utils\get().
assign_fields_xml | ( | $xml = '' , |
|
$template = '' |
|||
) |
Set the Gravity Forms import form by using the preset_fields
field defined in the template.
Definition at line 209 of file class-gravityview-template.php.
References $template.
assign_form_xml | ( | $xml = '' , |
|
$template = '' |
|||
) |
Set the Gravity Forms import form information by using the preset_form
field defined in the template.
Definition at line 195 of file class-gravityview-template.php.
References $template.
assign_view_slug | ( | $default, | |
$context | |||
) |
Assign the template slug when loading the presentation template (frontend)
protected
mixed | $default |
Definition at line 227 of file class-gravityview-template.php.
References $template_id.
get_active_areas | ( | $context | ) |
Definition at line 147 of file class-gravityview-template.php.
References $active_areas.
Referenced by assign_active_areas().
|
private |
Merge the template settings with the default settings.
Sets the settings
object var.
array | $settings | Defined template settings |
Definition at line 93 of file class-gravityview-template.php.
References $settings.
Referenced by __construct().
register_styles | ( | ) |
If the template has a CSS file defined in the css_source
setting, register it It will be registered using gravityview_style_{template_id}
format.
Definition at line 246 of file class-gravityview-template.php.
References GV_PLUGIN_VERSION.
register_template | ( | $templates | ) |
Register the template to display in the admin.
private
mixed | $templates |
Definition at line 122 of file class-gravityview-template.php.
References $settings, $template_id, and $templates.
$active_areas |
Definition at line 37 of file class-gravityview-template.php.
Referenced by get_active_areas().
$field_options |
Definition at line 32 of file class-gravityview-template.php.
Referenced by GravityView_Default_Template_List\__construct(), __construct(), and assign_field_options().
$settings |
Definition at line 27 of file class-gravityview-template.php.
Referenced by GravityView_Default_Template_List\__construct(), GravityView_Placeholder_Template\__construct(), GravityView_Preset_Business_Listings\__construct(), GravityView_Preset_Profiles\__construct(), GravityView_Preset_Website_Showcase\__construct(), GravityView_Preset_Staff_Profiles\__construct(), GravityView_Preset_Resume_Board\__construct(), GravityView_Preset_Event_Listings\__construct(), GravityView_Preset_Job_Board\__construct(), GravityView_Preset_Issue_Tracker\__construct(), GravityView_Preset_Business_Data\__construct(), __construct(), merge_defaults(), and register_template().
$template_id |
Definition at line 11 of file class-gravityview-template.php.
Referenced by assign_field_options(), assign_view_slug(), and register_template().