211 return View::get_joined_forms(
$view_id );
262 $templates = apply_filters(
'gravityview_register_directory_template', array() );
292 return get_post_meta( $post_id,
'_gravityview_directory_widgets',
true );
306 return update_post_meta( $post_id,
'_gravityview_directory_widgets', $widgets );
342 $args = wp_parse_args( $atts, \
GV\View_Settings::defaults() );
345 $GravityView_frontend->set_context_view_id(
$view_id );
346 $GravityView_frontend->set_entry_data();
347 return $GravityView_frontend->render_view(
$args );
381 function gravityview_view_has_single_checkbox_or_radio(
$form, $view_fields ) {
383 if( class_exists(
'GFFormsModel') && $form_fields = GFFormsModel::get_fields_by_type(
$form, array(
'checkbox',
'radio' ) ) ) {
386 foreach( $form_fields as $form_field ) {
388 foreach( $view_fields as $zone ) {
391 if ( ! is_array( $zone ) ) {
continue; }
393 foreach( $zone as
$field ) {
395 if( ( strpos( $field[
'id'],
'.' ) > 0 ) && floor( $field[
'id'] ) === floor(
$field_id ) ) {
static get_entry_meta( $form_id, $only_default_column=true)
get extra fields from entry meta
static has_shortcode_r( $content, $tag='gravityview')
Placeholder until the recursive has_shortcode() patch is merged.
gravityview_get_form_from_entry_id( $entry_slug)
Get the form array for an entry based only on the entry ID.
gravityview_get_field_label( $form, $field_id, $field_value='')
Retrieve the label of a given field id (for a specific form)
static get_directory_fields( $post_id, $apply_filter=true, $form_id=0)
Get the field configuration for the View.
gravityview_set_directory_widgets( $post_id, $widgets=array())
Set the widgets, as configured for a View.
static get_connected_views( $form_id, $args=array())
Get the views for a particular form.
static get_form_fields( $form='', $add_default_properties=false, $include_parent_field=true)
Return array of fields' id and label, for a given Form ID.
static get_form_from_entry_id( $entry_slug)
Get the form array for an entry based only on the entry ID.
static getInstance( $passed_post=NULL)
static get_template_setting( $post_id, $key)
Get the setting for a View.
gravityview_is_single_entry()
Theme function to identify if it is a Single Entry View.
static get_forms( $active=true, $trash=false, $order_by='id', $order='ASC')
Alias of GFAPI::get_forms()
static get_meta_form_id( $view_id)
Get the Gravity Forms form ID connected to a View.
gravityview_get_field_type( $form=null, $field_id='')
Returns the GF Form field type for a certain field(id) of a form.
gravityview_get_entry_meta( $form_id, $only_default_column=true)
get extra fields from entry meta
gravityview_get_form( $form_id)
Returns the form object for a given Form ID.
gravityview_get_directory_widgets( $post_id)
Get the widgets, as configured for a View.
gravityview_get_template_settings( $post_id)
Get all the settings for a View.
gravityview_get_directory_fields( $post_id, $apply_filter=true, $form_id=0)
Get the field configuration for the View.
static get_sortable_fields( $formid, $current='')
Render dropdown (select) with the list of sortable fields from a form ID.
gravityview_get_entry( $entry_slug, $force_allow_ids=false, $check_entry_display=true, $view=null)
Return a single entry object.
gravityview_get_template_setting( $post_id, $key)
Get the setting for a View.
if(gravityview() ->plugin->is_GF_25()) $form
gravityview_get_forms( $active=true, $trash=false, $order_by='date_created', $order='ASC')
Alias of GFAPI::get_forms()
static get_template_settings( $post_id)
Get all the settings for a View.
the_gravityview( $view_id='', $atts=array())
Theme function to render a GravityView view.
if(empty( $field_settings['content'])) $content
static get_entry_ids( $form_id, $search_criteria=array())
Wrapper for the Gravity Forms GFFormsModel::search_lead_ids() method.
static get_field_type( $form=null, $field_id='')
Returns the GF Form field type for a certain field(id) of a form.
gravityview_get_field( $form, $field_id)
Returns the field details array of a specific form given the field id.
static get_field( $form, $field_id)
Returns the field details array of a specific form given the field id.
gravityview_get_form_fields( $form='', $add_default_properties=false, $include_parent_field=true)
Return array of fields' id and label, for a given Form ID.
gravityview_get_connected_views( $form_id, $args=array())
Get the views for a particular form.
gravityview_get_form_id( $view_id)
Get the connected form ID from a View ID.
gravityview_has_shortcode_r( $content, $tag='gravityview')
Placeholder until the recursive has_shortcode() patch is merged.
gravityview_get_entries( $form_ids=null, $passed_criteria=null, &$total=null)
Retrieve entries given search, sort, paging criteria.
static is_single_entry()
Verify if user requested a single entry view.
gravityview_get_sortable_fields( $formid, $current='')
Render dropdown (select) with the list of sortable fields from a form ID.
static get_entries( $form_ids=null, $passed_criteria=null, &$total=null)
Retrieve entries given search, sort, paging criteria.
gravityview_get_registered_templates()
Get all available preset templates.
static has_gravityview_shortcode( $post=null)
Check whether the post is GravityView.
if(empty( $created_by)) $form_id
has_gravityview_shortcode( $post=NULL)
Check whether the post is GravityView.
static get_field_label( $form=array(), $field_id='', $field_value='')
Retrieve the label of a given field id (for a specific form)
gravityview_get_entry_ids( $form_id, $search_criteria=array())
Wrapper for the Gravity Forms GFFormsModel::search_lead_ids() method.
gravityview_get_template_id( $post_id)
Get the template ID (list, table, datatables, map) for a View.
static get_entry( $entry_slug, $force_allow_ids=false, $check_entry_display=true, $view=null)
Return a single entry object.
gravityview_get_joined_forms( $view_id)
Get joined forms associated with a view.
static get_meta_template_id( $view_id)
Get the template ID (list, table, datatables, map) for a View.
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
static get_form( $form_id)
Returns the form object for a given Form ID.
get_gravityview( $view_id='', $atts=array())
Theme function to get a GravityView view.
static getInstance()
Get the one true instantiated self.