GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Protected Member Functions | Protected Attributes
GravityView_Plugin_Hooks_Gravity_Forms_Dropbox Class Reference
Inheritance diagram for GravityView_Plugin_Hooks_Gravity_Forms_Dropbox:
GravityView_Plugin_and_Theme_Hooks

Public Member Functions

 filter_file_extension ( $string='')
 Convert links to view content on Dropbox.com to direct-access files. More...
 
 filter_file_path ( $string='')
 Convert links to view content on Dropbox.com to direct-access files. More...
 
 filter_image_atts ( $image_atts=array())
 When the image file source includes ?raw=1, don't validate the source, since we know it's Dropbox or similar. More...
 
- Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 __construct ()
 GravityView_Theme_Support constructor. More...
 
 _wp_loaded ()
 Fired when all themes and plugins have been loaded. More...
 
 merge_content_meta_keys ( $meta_keys=array(), $post=null, & $views=null)
 Merge plugin or theme meta keys that store shortcode data with existing keys to check. More...
 
 merge_meta_keys ( $meta_keys=array(), $post_id=0)
 Merge plugin or theme meta keys that store shortcode data with existing keys to check. More...
 
 merge_noconflict_scripts ( $handles)
 Merge plugin or theme scripts with existing no-conflict scripts. More...
 
 merge_noconflict_styles ( $handles)
 Merge plugin or theme styles with existing no-conflict styles. More...
 
 merge_post_type_support ( $supports=array(), $is_hierarchical=false)
 Merge plugin or theme post type support definitions with existing support values. More...
 

Protected Member Functions

 add_hooks ()
 
- Protected Member Functions inherited from GravityView_Plugin_and_Theme_Hooks
 add_hooks ()
 Add filters for meta key and script/style handles, if defined. More...
 

Protected Attributes

 $function_name = 'gf_dropbox'
 
- Protected Attributes inherited from GravityView_Plugin_and_Theme_Hooks
 $class_name = false
 string Optional. More...
 
 $constant_name = false
 string Optional. More...
 
 $content_meta_keys = array()
 Define the keys to be parsed by the gravityview/view_collection/from_post/meta_keys hook. More...
 
 $function_name = false
 string Optional. More...
 
 $meta_keys = array()
 Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. More...
 
 $post_type_support = array()
 Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type. More...
 
 $script_handles = array()
 Define script handles used by the theme or plugin to be added to allowed no-conflict scripts. More...
 
 $style_handles = array()
 Define style handles used by the theme or plugin to be added to allowed no-conflict styles. More...
 

Detailed Description

Since
1.22.3

Definition at line 18 of file class-gravityview-plugin-hooks-gravity-forms-dropbox.php.

Member Function Documentation

◆ add_hooks()

add_hooks ( )
protected
Since
1.22.3

Definition at line 29 of file class-gravityview-plugin-hooks-gravity-forms-dropbox.php.

◆ filter_file_extension()

filter_file_extension (   $string = '')

Convert links to view content on Dropbox.com to direct-access files.

Since
1.22.3
Parameters
string$stringOriginal string (file path or extension).
Returns
string File path or extension, with Dropbox URLs modified.

Definition at line 69 of file class-gravityview-plugin-hooks-gravity-forms-dropbox.php.

References GravityView_Image\get_image_extensions().

◆ filter_file_path()

filter_file_path (   $string = '')

Convert links to view content on Dropbox.com to direct-access files.

Since
1.22.3
Parameters
string$stringOriginal string (file path or extension)
Returns
string File path or extension, with Dropbox URLs modified

Definition at line 89 of file class-gravityview-plugin-hooks-gravity-forms-dropbox.php.

◆ filter_image_atts()

filter_image_atts (   $image_atts = array())

When the image file source includes ?raw=1, don't validate the source, since we know it's Dropbox or similar.

Since
2.14.3
Parameters
array{src:string,class:string,alt:string,width:string}$image_atts
Returns
array Image attributes array, possibly with validate_src disabled.

Definition at line 46 of file class-gravityview-plugin-hooks-gravity-forms-dropbox.php.

References $image_atts.

Field Documentation

◆ $function_name

$function_name = 'gf_dropbox'
protected

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