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

Manage lightbox scripts for GravityView. More...

Public Member Functions

 __construct ()
 GravityView_Lightbox_Provider constructor. More...
 
 set_provider ( $provider=null)
 Activate the lightbox provider chosen in settings. More...
 

Static Public Member Functions

static register ( $provider)
 Register lightbox providers. More...
 

Data Fields

const DEFAULT_PROVIDER = 'fancybox'
 

Static Private Attributes

static $active_provider = null
 
static $providers = array()
 

Detailed Description

Manage lightbox scripts for GravityView.

TODO: Add a global setting for lightbox providers TODO: Add per-field settings

Definition at line 11 of file class-gravityview-lightbox.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

GravityView_Lightbox_Provider constructor.

Definition at line 21 of file class-gravityview-lightbox.php.

References gravityview().

Member Function Documentation

◆ register()

static register (   $provider)
static

Register lightbox providers.

Parameters
$provider

Definition at line 73 of file class-gravityview-lightbox.php.

Referenced by GravityView_Lightbox_Provider_FancyBox\fileupload_link_atts().

◆ set_provider()

set_provider (   $provider = null)

Activate the lightbox provider chosen in settings.

Parameters
string | null$providerGravityView_Lightbox_Provider::$slug of provider

Definition at line 38 of file class-gravityview-lightbox.php.

References gravityview().

Field Documentation

◆ $active_provider

$active_provider = null
staticprivate

Definition at line 16 of file class-gravityview-lightbox.php.

◆ $providers

$providers = array()
staticprivate

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

◆ DEFAULT_PROVIDER

const DEFAULT_PROVIDER = 'fancybox'

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