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

Registers a lightbox provider. More...

Inheritance diagram for GravityView_Lightbox_Provider:
GravityView_Lightbox_Provider_FancyBox

Public Member Functions

 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
 
static $slug
 
static $style_slug
 

Protected Member Functions

 default_settings ()
 Get default settings for the script. More...
 
 get_settings ()
 Get the settings for the JavaScript, with filter applied. More...
 

Static Protected Member Functions

static is_active ( $gravityview)
 Returns whether the provider is active for this View. More...
 

Detailed Description

Registers a lightbox provider.

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

Member Function Documentation

◆ add_hooks()

add_hooks ( )

Adds actions and that modify GravityView to use this lightbox provider.

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

◆ allowed_atts()

allowed_atts (   $atts = array())

Modify the attributes allowed in an anchor tag generated by GravityView.

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

◆ default_settings()

default_settings ( )
protected

Get default settings for the script.

Returns
array

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

◆ enqueue_scripts()

enqueue_scripts ( )

Enqueue scripts for the lightbox.

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

◆ enqueue_styles()

enqueue_styles ( )

Enqueue styles for the lightbox.

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

◆ fileupload_link_atts()

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

Modified File Upload field links to use lightbox.

Since
2.10.1 Added $insecure_file_path

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

References $link_atts.

◆ filter_lightbox_script()

filter_lightbox_script (   $script = 'thickbox')

Modifies the name of the stylesheet to be enqueued when loading thickbox.

Parameters
string$script
Returns
string

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

◆ filter_lightbox_style()

filter_lightbox_style (   $style = 'thickbox')

Modifies the name of the stylesheet to be enqueued when loading thickbox.

Parameters
string$style
Returns
string

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

◆ get_settings()

get_settings ( )
protected

Get the settings for the JavaScript, with filter applied.

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

References $settings.

◆ is_active()

static is_active (   $gravityview)
staticprotected

Returns whether the provider is active for this View.

Since
2.10.1
Parameters
GV\Template_Context$gravityview
Returns
bool true: yes! false: no!

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

References GravityView_Lightbox\DEFAULT_PROVIDER, and gravityview().

◆ output_footer()

output_footer ( )

Output raw HTML in the wp_footer()

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

◆ print_scripts()

print_scripts (   $gravityview)

Prints scripts for lightbox after a View is rendered.

Since
2.10.1
Parameters
GV\Template_Context$gravityview
Returns
void

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

◆ remove_hooks()

remove_hooks ( )

Removes actions that were added by {.

See also
GravityView_Lightbox_Provider::add_hooks}

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

Field Documentation

◆ $script_slug

$script_slug
static

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

◆ $slug

$slug
static

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

◆ $style_slug

$style_slug
static

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


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