\Jetpack_Slideshow_Shortcode

Slideshow shortcode usage: [gallery type="slideshow"] or the older [slideshow]

Summary

Methods
Properties
Constants
__construct()
post_gallery()
add_gallery_type()
register_settings()
slideshow_background_color_callback()
settings_select()
slideshow_background_color_sanitize()
shortcode_callback()
slideshow_js()
maybe_enqueue_scripts()
enqueue_scripts()
init()
$instance_count
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$instance_count

$instance_count

Methods

__construct()

__construct()

post_gallery()

post_gallery(mixed $value, mixed $attr) : string

Responds to the [gallery] shortcode, but not an actual shortcode callback.

Parameters

mixed $value

An empty string if nothing has modified the gallery output, the output html otherwise

mixed $attr

The shortcode attributes array

Returns

string —

The (un)modified $value

add_gallery_type()

add_gallery_type(mixed $types)

Add the Slideshow type to gallery settings

Parameters

mixed $types

An array of types where the key is the value, and the value is the caption.

register_settings()

register_settings()

slideshow_background_color_callback()

slideshow_background_color_callback()

settings_select()

settings_select( $name,  $values,  $extra_text)

Parameters

$name
$values
$extra_text

slideshow_background_color_sanitize()

slideshow_background_color_sanitize( $value)

Parameters

$value

shortcode_callback()

shortcode_callback( $attr,  $content)

Parameters

$attr
$content

slideshow_js()

slideshow_js( $attr)

Render the slideshow js

Returns the necessary markup and js to fire a slideshow.

Parameters

$attr

maybe_enqueue_scripts()

maybe_enqueue_scripts()

Infinite Scroll needs the scripts to be present at all times

enqueue_scripts()

enqueue_scripts()

Actually enqueues the scripts and styles.

init()

init()