Свойство | Type | Description | |
---|---|---|---|
$_instance_width |
Méthode | Description | |
---|---|---|
__construct ( ) | ||
allowed_values ( ) : array | Return a multi-dimensional array of allowed values (and their labels) for all widget form elements | |
circle_widget ( array $args, array $instance ) : string | Generate HTML for a circular (grid style) Widget | |
defaults ( ) : array | Return an associative array of default values | |
enqueue_admin_scripts ( ) | ||
enqueue_frontend_scripts ( ) | ||
form ( $instance ) | ||
get_attachments ( array $instance ) : array | Fetch the images attached to the gallery Widget | |
rectangular_widget ( array $args, array $instance ) : string | Generate HTML for a rectangular, tiled Widget | |
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. | |
slideshow_widget ( array $args, array $instance ) : string | Generate HTML for a slideshow Widget | |
square_widget ( array $args, array $instance ) : string | Generate HTML for a square (grid style) Widget | |
tiled_gallery_content_width ( integer $width ) : integer | tiled_gallery_content_width filter | |
update ( $new_instance, $old_instance ) | ||
widget ( array $args, array $instance ) |
public allowed_values ( ) : array | ||
Résultat | array | Array of allowed values for each option |
public get_attachments ( array $instance ) : array | ||
$instance | array | The Widget instance for which you'd like attachments |
Résultat | array | Array of attachment objects for the Widget in $instance |
public tiled_gallery_content_width ( integer $width ) : integer | ||
$width | integer | int The original width value |
Résultat | integer | The filtered width |