GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Handle the [gravityview] shortcode. More...
Public Member Functions | |
__construct () | |
Static Public Member Functions | |
shortcode ( $passed_atts, $content=null) | |
Callback function for add_shortcode() More... | |
Private Member Functions | |
add_hooks () | |
get_view_detail ( $detail='') | |
Display details for the current View. More... | |
parse_and_sanitize_atts ( $passed_atts) | |
Validate attributes passed to the [gravityview] shortcode. More... | |
Handle the [gravityview] shortcode.
Definition at line 21 of file class-gravityview-shortcode.php.
__construct | ( | ) |
Definition at line 23 of file class-gravityview-shortcode.php.
References add_hooks().
|
private |
Definition at line 27 of file class-gravityview-shortcode.php.
Referenced by __construct().
|
private |
Display details for the current View.
string | $detail | The information requested about the current View. Accepts total_entries , first_entry (entry #), last_entry (entry #), and page_size |
gravityview/shortcode/detail/{$detail}
Filter the detail output returned from [gravityview detail="$detail"]
string | $return | Existing output |
Definition at line 151 of file class-gravityview-shortcode.php.
References $gravityview_view, and GravityView_View\getInstance().
Referenced by shortcode().
|
private |
Validate attributes passed to the [gravityview] shortcode.
Supports {get} Merge Tags values.
Attributes passed to the shortcode are compared to registered attributes {
Then, {get} merge tags are replaced with their $_GET values, if passed
Then, attributes are sanitized based on the type of setting (number, checkbox, select, radio, text)
array | $passed_atts | Attribute pairs defined to render the View |
Make sure number fields are numeric. Also, convert mixed number strings to numbers
Only allow values that are defined in the settings
Definition at line 77 of file class-gravityview-shortcode.php.
References View_Settings\defaults(), gv_empty(), and GravityView_Merge_Tags\replace_variables().
Referenced by shortcode().
|
static |
Callback function for add_shortcode()
mixed | $passed_atts | |
string | null | $content | Content passed inside the shortcode |
Definition at line 40 of file class-gravityview-shortcode.php.
References get_view_detail(), GravityView_frontend\getInstance(), gravityview(), and parse_and_sanitize_atts().