15 public static $slug =
'fancybox';
26 parent::print_scripts( $gravityview );
28 if ( ! self::is_active( $gravityview ) ) {
41 .admin-bar .fancybox-container {
46 if ( window.Fancybox ){
47 Fancybox.bind(
".gravityview-fancybox", <?php echo
$settings; ?>);
64 'animationEffect' =>
'fade',
66 'closeExisting' =>
true,
74 'CLOSE' => __(
'Close',
'gk-gravityview' ),
75 'NEXT' => __(
'Next',
'gk-gravityview' ),
76 'PREV' => __(
'Previous',
'gk-gravityview' ),
77 'ERROR' => __(
'The requested content cannot be loaded. Please try again later.',
'gk-gravityview' ),
78 'PLAY_START' => __(
'Start slideshow',
'gk-gravityview' ),
79 'PLAY_STOP' => __(
'Pause slideshow',
'gk-gravityview' ),
80 'FULL_SCREEN' => __(
'Full screen',
'gk-gravityview' ),
81 'THUMBS' => __(
'Thumbnails',
'gk-gravityview' ),
82 'DOWNLOAD' => __(
'Download',
'gk-gravityview' ),
83 'SHARE' => __(
'Share',
'gk-gravityview' ),
84 'ZOOM' => __(
'Zoom',
'gk-gravityview' ),
111 $atts[
'data-fancybox'] = null;
112 $atts[
'data-fancybox-trigger'] = null;
113 $atts[
'data-fancybox-index'] = null;
114 $atts[
'data-src'] = null;
115 $atts[
'data-type'] = null;
116 $atts[
'data-width'] = null;
117 $atts[
'data-height'] = null;
118 $atts[
'data-srcset'] = null;
119 $atts[
'data-caption'] = null;
120 $atts[
'data-options'] = null;
121 $atts[
'data-filter'] = null;
131 if ( $context && ! $context->view->settings->get(
'lightbox',
false ) ) {
136 if ( is_array( $additional_details ) && empty( $additional_details[
'file_path'] ) ) {
141 if ( is_array( $additional_details ) && ! empty( $additional_details[
'disable_lightbox'] ) ) {
149 if ( $context && ! empty( $context->field->field ) ) {
150 if ( $context->field->field->multipleFiles ) {
151 $entry = $context->entry->as_entry();
152 $link_atts[
'data-fancybox'] =
'gallery-' . sprintf(
"%s-%s-%s",
$entry[
'form_id'], $context->field->ID, $context->entry->get_slug() );
162 if (
false !== strpos( $file_path,
'gv-iframe' ) ) {
const GV_PLUGIN_VERSION(! GravityKit\GravityView\Foundation\meets_min_php_version_requirement(__FILE__, '7.2.0'))
Constants.
allowed_atts( $atts=array())
print_scripts( $gravityview)
const GRAVITYVIEW_FILE
Full path to the GravityView file "GRAVITYVIEW_FILE" "./gravityview.php".
Integrate with the FancyBox lightbox and gallery scripts.
default_settings()
Options to pass to Fancybox.
Registers a lightbox provider.
static get( $array, $key, $default=null)
Grab a value from an array or an object or default.
static register( $provider)
Register lightbox providers.
fileupload_link_atts( $link_atts, $field_compat=array(), $context=null, $additional_details=null)