THUMB_SIZE
THUMB_SIZE
rectangular_widget(array $args, array $instance) : string
Generate HTML for a rectangular, tiled Widget
array | $args | Display arguments including before_title, after_title, before_widget, and after_widget. |
array | $instance | The Widget instance to generate HTML for |
String of HTML representing a rectangular gallery
square_widget(array $args, array $instance) : string
Generate HTML for a square (grid style) Widget
array | $args | Display arguments including before_title, after_title, before_widget, and after_widget. |
array | $instance | The Widget instance to generate HTML for |
String of HTML representing a square gallery
circle_widget(array $args, array $instance) : string
Generate HTML for a circular (grid style) Widget
array | $args | Display arguments including before_title, after_title, before_widget, and after_widget. |
array | $instance | The Widget instance to generate HTML for |
String of HTML representing a circular gallery
slideshow_widget(array $args, array $instance) : string
Generate HTML for a slideshow Widget
array | $args | Display arguments including before_title, after_title, before_widget, and after_widget. |
array | $instance | The Widget instance to generate HTML for |
String of HTML representing a slideshow gallery
tiled_gallery_content_width(int $width) : int
tiled_gallery_content_width filter
Used to adjust the content width of Jetpack_Tiled_Gallery's in sidebars
$this->_instance_width is filtered in widget() and this filter is added then removed in widget()
int | $width | int The original width value |
The filtered width
sanitize(array $instance) : array
Sanitize the $instance's values to the set of allowed values. If a value is not acceptable, it is set to its default.
Helps keep things nice and secure by whitelisting only allowed values
array | $instance | The Widget instance to sanitize values for |
$instance The Widget instance with values sanitized
defaults() : array
Return an associative array of default values
These values are used in new widgets as well as when sanitizing input. If a given value is not allowed, as defined in allowed_values(), that input is set to the default value defined here.
Array of default values for the Widget's options