PHP 클래스 RTMediaTemplate, rtMedia

Template to display rtMedia Gallery. A stand alone template that renders the gallery/uploader on the page.
저자: saurabh
파일 보기 프로젝트 열기: rtCamp/rtMedia 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$media_args

공개 메소드들

메소드 설명
__construct ( )
add_hidden_fields_in_gallery ( )
album_delete ( )
bulk_delete ( )
check_delete_comments ( )
check_return_comments ( )
check_return_delete ( )
check_return_edit ( )
check_return_json ( )
check_return_merge ( )
check_return_upload ( )
enqueue_image_editor_scripts ( )
enqueue_scripts ( ) Enqueues required scripts on the page
filter_image_sizes_details ( type $sizes ) : type Filters array of rtMedia supported thumbnail sizes
get_allowed_type_name ( type $allowed_type ) : type Helper method to fetch allowed media types from each section
get_default_template ( ) : type filter to change the template path independent of the plugin
json_output ( )
locate_template ( boolean | type $template = false, boolean $context = false, boolean $url = false ) : string Template Locator
media_update_success_error ( )
media_update_success_messege ( )
sanitize_gallery_attributes ( string &$attr ) : type Validates all the attributes for gallery shortcode
save_album_edit ( )
save_edit ( )
save_single_edit ( )
set_template ( boolean | type $template = false, boolean | type $shortcode_attr = false ) : type redirects to the template according to the page request Pass on the shortcode attributes to the template so that the shortcode can berendered accordingly.
single_delete ( )
update_global_query ( $attr )

메소드 상세

__construct() 공개 메소드

public __construct ( )

album_delete() 공개 메소드

public album_delete ( )

bulk_delete() 공개 메소드

public bulk_delete ( )

check_delete_comments() 공개 메소드

check_return_comments() 공개 메소드

check_return_delete() 공개 메소드

public check_return_delete ( )

check_return_edit() 공개 메소드

public check_return_edit ( )

check_return_json() 공개 메소드

public check_return_json ( )

check_return_merge() 공개 메소드

public check_return_merge ( )

check_return_upload() 공개 메소드

public check_return_upload ( )

enqueue_image_editor_scripts() 공개 메소드

enqueue_scripts() 공개 메소드

Enqueues required scripts on the page
public enqueue_scripts ( )

filter_image_sizes_details() 공개 메소드

Filters array of rtMedia supported thumbnail sizes
public filter_image_sizes_details ( type $sizes ) : type
$sizes type
리턴 type $sizes

get_allowed_type_name() 공개 메소드

Helper method to fetch allowed media types from each section
public get_allowed_type_name ( type $allowed_type ) : type
$allowed_type type
리턴 type

get_default_template() 공개 메소드

filter to change the template path independent of the plugin
public get_default_template ( ) : type
리턴 type

json_output() 공개 메소드

public json_output ( )

locate_template() 정적인 공개 메소드

Template Locator
static public locate_template ( boolean | type $template = false, boolean $context = false, boolean $url = false ) : string
$template boolean | type
$context boolean
$url boolean
리턴 string

media_update_success_error() 공개 메소드

media_update_success_messege() 공개 메소드

save_album_edit() 공개 메소드

public save_album_edit ( )

save_edit() 공개 메소드

public save_edit ( )

save_single_edit() 공개 메소드

public save_single_edit ( )

set_template() 공개 메소드

Also handles the json request coming from the AJAX calls for the media
public set_template ( boolean | type $template = false, boolean | type $shortcode_attr = false ) : type
$template boolean | type
$shortcode_attr boolean | type
리턴 type

single_delete() 공개 메소드

public single_delete ( )

update_global_query() 공개 메소드

public update_global_query ( $attr )

프로퍼티 상세

$media_args 공개적으로 프로퍼티

public $media_args