GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Go to the source code of this file.
Namespaces | |
GravityView | |
GPL2+ | |
Variables | |
$ary = explode("|:|", $value) | |
$caption = count($ary) > 2 ? $ary[2] : "" | |
$description = count($ary) > 3 ? $ary[3] : "" | |
$gravityview_view = GravityView_View::getInstance() | |
$image = new GravityView_Image( $image_atts ) | |
$image_atts | |
$image_meta | |
$link_atts = array() | |
if( $gravityview_view->getAtts('lightbox')) | $link_atts ['href'] = $href |
$link_atts ['title'] = $title | |
$output = '<'.$wrappertag.' class="gv-image">' | |
$showlabels = apply_filters( 'gravityview_post_image_meta_show_labels', true ) | |
$title = count($ary) > 1 ? $ary[1] : "" | |
$url = count($ary) > 0 ? $ary[0] : "" | |
$wrappertag = GFFormsModel::is_html5_enabled() ? 'figure' : 'div' | |
if(!empty( $field['postFeaturedImage']) &&!empty( $field_settings['dynamic_data']) &&!empty( $entry['post_id']) &&has_post_thumbnail( $entry['post_id'])) if(!empty( $field_settings['link_to_post'])) else if(!empty( $field_settings['show_as_link'])) | else |
$ary = explode("|:|", $value) |
Definition at line 24 of file post_image.php.
Referenced by GravityView_Edit_Entry_Render\update_post_image().
$caption = count($ary) > 2 ? $ary[2] : "" |
Definition at line 27 of file post_image.php.
Referenced by GravityView_Field_Post_Image\explode_value().
$description = count($ary) > 3 ? $ary[3] : "" |
Definition at line 28 of file post_image.php.
Referenced by GravityView_Widget_Gravity_Forms\render_frontend().
$gravityview_view = GravityView_View::getInstance() |
Definition at line 9 of file post_image.php.
$image = new GravityView_Image( $image_atts ) |
Definition at line 98 of file post_image.php.
Referenced by View\content(), GravityView_frontend\context_not_configured_warning(), GravityView_Field_FileUpload\get_files_array(), GravityView_Admin\get_floaty(), Renderer\maybe_print_configuration_notice(), GravityView_Admin\no_views_text(), and oEmbed\render_admin().
$image_atts |
Definition at line 92 of file post_image.php.
Referenced by GravityView_Plugin_Hooks_Gravity_Forms_Dropbox\filter_image_atts(), and GravityView_Field_FileUpload\get_files_array().
$image_meta |
Definition at line 106 of file post_image.php.
Referenced by GravityView_Edit_Entry_Render\update_post_image().
$link_atts = array() |
Definition at line 30 of file post_image.php.
if ($gravityview_view->getAtts( 'lightbox')) $link_atts[ 'href'] = $href |
Definition at line 83 of file post_image.php.
$link_atts[ 'title'] = $title |
Definition at line 86 of file post_image.php.
foreach ((array) $image_meta as $key=> $meta) $output = '<'.$wrappertag.' class="gv-image">' |
Definition at line 138 of file post_image.php.
$showlabels = apply_filters( 'gravityview_post_image_meta_show_labels', true ) |
Definition at line 135 of file post_image.php.
$title = count($ary) > 1 ? $ary[1] : "" |
Definition at line 26 of file post_image.php.
$url = count($ary) > 0 ? $ary[0] : "" |
Definition at line 25 of file post_image.php.
Referenced by View_Table_Template\_get_multisort_url(), GravityView_Delete_Entry\_redirect_and_exit(), View_Table_Template\add_columns_sort_links(), GravityView_frontend\add_columns_sort_links(), GravityView_Admin_Notices\admin_notice(), GravityView_GFFormsModel\copy_post_image(), LicenseManager\display_license_info_on_plugins_page(), GravityView_Field_Post_Image\explode_value(), Core\get_assets_url(), GravityView_Delete_Entry\get_delete_link(), GravityView_Edit_Entry\get_edit_link(), GravityView_Field_Notes\get_email_footer(), Views_Route\get_item(), Views_Route\get_item_permissions_check(), GravityView_Widget_Search\get_search_form_action(), Views_Route\get_sub_item(), Views_Route\get_sub_item_permissions_check(), GravityView_Powered_By\get_url(), GravityView_Entry_Link_Shortcode\get_url(), gravityview_get_map_link(), GravityView_Support_Port\maybe_add_article_to_tooltip(), GravityView_Entry_Link_Shortcode\maybe_add_field_values_query_args(), GravityView_Powered_By\maybe_add_link(), GravityView_GFFormsModel\media_handle_upload(), oEmbed\parse_matches(), oEmbed\pre_oembed_result(), Views_Route\prepare_entry_for_response(), Helpers\query_api(), oEmbed\render(), oEmbed\render_provider_request(), GravityView_Entry_Link_Shortcode\shortcode(), GravityView_Widget_Search\the_clear_search_button(), GravityView_FieldType\tooltip(), and ProductManager\update_product().
$wrappertag = GFFormsModel::is_html5_enabled() ? 'figure' : 'div' |
Definition at line 128 of file post_image.php.
if (!empty($field[ 'postFeaturedImage']) &&!empty($field_settings[ 'dynamic_data']) &&!empty($entry[ 'post_id']) &&has_post_thumbnail($entry[ 'post_id'])) if (!empty($field_settings[ 'link_to_post'])) else if (!empty($field_settings[ 'show_as_link'])) else |
$field['postFeaturedImage'] - holds if the Post Image field is set as post featured image $field_settings['dynamic_data'] - whether the field content should be fetched from the Post (dynamic data) or from the GF entry
Dynamic data (get post featured image instead of GF entry field)
Definition at line 70 of file post_image.php.