PHP 클래스 Jetpack_Gallery_Widget, jetpack

Version: 1.0 Author URI: http://automattic.com
상속: extends WP_Widget
파일 보기 프로젝트 열기: automattic/jetpack

보호된 프로퍼티들

프로퍼티 타입 설명
$_instance_width

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

public __construct ( )

allowed_values() 공개 메소드

To allow all values on an input, omit it from the returned array
public allowed_values ( ) : array
리턴 array Array of allowed values for each option

circle_widget() 공개 메소드

Generate HTML for a circular (grid style) Widget
public circle_widget ( array $args, array $instance ) : string
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The Widget instance to generate HTML for
리턴 string String of HTML representing a circular gallery

defaults() 공개 메소드

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.
public defaults ( ) : array
리턴 array Array of default values for the Widget's options

enqueue_admin_scripts() 공개 메소드

enqueue_frontend_scripts() 공개 메소드

form() 공개 메소드

public form ( $instance )

get_attachments() 공개 메소드

Fetch the images attached to the gallery Widget
public get_attachments ( array $instance ) : array
$instance array The Widget instance for which you'd like attachments
리턴 array Array of attachment objects for the Widget in $instance

rectangular_widget() 공개 메소드

Generate HTML for a rectangular, tiled Widget
public rectangular_widget ( array $args, array $instance ) : string
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The Widget instance to generate HTML for
리턴 string String of HTML representing a rectangular gallery

sanitize() 공개 메소드

Helps keep things nice and secure by whitelisting only allowed values
public sanitize ( array $instance ) : array
$instance array The Widget instance to sanitize values for
리턴 array $instance The Widget instance with values sanitized

slideshow_widget() 공개 메소드

Generate HTML for a slideshow Widget
public slideshow_widget ( array $args, array $instance ) : string
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The Widget instance to generate HTML for
리턴 string String of HTML representing a slideshow gallery

square_widget() 공개 메소드

Generate HTML for a square (grid style) Widget
public square_widget ( array $args, array $instance ) : string
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The Widget instance to generate HTML for
리턴 string String of HTML representing a square gallery

update() 공개 메소드

public update ( $new_instance, $old_instance )

widget() 공개 메소드

public widget ( array $args, array $instance )
$args array Display arguments including before_title, after_title, before_widget, and after_widget.
$instance array The settings for the particular instance of the widget.

프로퍼티 상세

$_instance_width 보호되어 있는 프로퍼티

protected $_instance_width