GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions | Static Public Attributes | Protected Member Functions
GravityView_Lightbox_Provider_FancyBox Class Reference

Integrate with the FancyBox lightbox and gallery scripts. More...

Inheritance diagram for GravityView_Lightbox_Provider_FancyBox:
GravityView_Lightbox_Provider

Public Member Functions

 allowed_atts ( $atts=array())
 
 enqueue_scripts ()
 
 enqueue_styles ()
 
 fileupload_link_atts ( $link_atts, $field_compat=array(), $context=null, $additional_details=null)
 
 print_scripts ( $gravityview)
 
- Public Member Functions inherited from GravityView_Lightbox_Provider
 add_hooks ()
 Adds actions and that modify GravityView to use this lightbox provider. More...
 
 allowed_atts ( $atts=array())
 Modify the attributes allowed in an anchor tag generated by GravityView. More...
 
 enqueue_scripts ()
 Enqueue scripts for the lightbox. More...
 
 enqueue_styles ()
 Enqueue styles for the lightbox. More...
 
 fileupload_link_atts ( $link_atts, $field_compat=array(), $context=null, $additional_details=null)
 Modified File Upload field links to use lightbox. More...
 
 filter_lightbox_script ( $script='thickbox')
 Modifies the name of the stylesheet to be enqueued when loading thickbox. More...
 
 filter_lightbox_style ( $style='thickbox')
 Modifies the name of the stylesheet to be enqueued when loading thickbox. More...
 
 output_footer ()
 Output raw HTML in the wp_footer() More...
 
 print_scripts ( $gravityview)
 Prints scripts for lightbox after a View is rendered. More...
 
 remove_hooks ()
 Removes actions that were added by {. More...
 

Static Public Attributes

static $script_slug = 'gravityview-fancybox'
 
static $slug = 'fancybox'
 
static $style_slug = 'gravityview-fancybox'
 
- Static Public Attributes inherited from GravityView_Lightbox_Provider
static $script_slug
 
static $slug
 
static $style_slug
 

Protected Member Functions

 default_settings ()
 Options to pass to Fancybox. More...
 
- Protected Member Functions inherited from GravityView_Lightbox_Provider
 default_settings ()
 Get default settings for the script. More...
 
 get_settings ()
 Get the settings for the JavaScript, with filter applied. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from GravityView_Lightbox_Provider
static is_active ( $gravityview)
 Returns whether the provider is active for this View. More...
 

Detailed Description

Integrate with the FancyBox lightbox and gallery scripts.

See also
https://fancyapps.com/fancybox/3/docs/#options
Since
2.10 Register the FancyBox lightbox

Definition at line 13 of file class-gravityview-lightbox-provider-fancybox.php.

Member Function Documentation

◆ allowed_atts()

allowed_atts (   $atts = array())

◆ default_settings()

default_settings ( )
protected

Options to pass to Fancybox.

See also
https://fancyapps.com/fancybox/3/docs/#options
Returns
array

Definition at line 61 of file class-gravityview-lightbox-provider-fancybox.php.

◆ enqueue_scripts()

enqueue_scripts ( )

◆ enqueue_styles()

enqueue_styles ( )

◆ fileupload_link_atts()

fileupload_link_atts (   $link_atts,
  $field_compat = array(),
  $context = null,
  $additional_details = null 
)

For file types that require IFRAME, declare pdf media type.

See also
https://fancyapps.com/docs/ui/fancybox#media-types

Definition at line 129 of file class-gravityview-lightbox-provider-fancybox.php.

References $entry, $link_atts, Utils\get(), and GravityView_Lightbox\register().

◆ print_scripts()

print_scripts (   $gravityview)

Divi is 99999

Definition at line 24 of file class-gravityview-lightbox-provider-fancybox.php.

References $settings, and GV\top.

Field Documentation

◆ $script_slug

$script_slug = 'gravityview-fancybox'
static

◆ $slug

$slug = 'fancybox'
static

◆ $style_slug

$style_slug = 'gravityview-fancybox'
static

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