PHP Class RTMediaTemplate, rtMedia

Template to display rtMedia Gallery. A stand alone template that renders the gallery/uploader on the page.
Author: saurabh
Mostrar archivo Open project: rtCamp/rtMedia Class Usage Examples

Public Properties

Property Type Description
$media_args

Public Methods

Method Description
__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 )

Method Details

__construct() public method

public __construct ( )

album_delete() public method

public album_delete ( )

bulk_delete() public method

public bulk_delete ( )

check_delete_comments() public method

check_return_comments() public method

check_return_delete() public method

public check_return_delete ( )

check_return_edit() public method

public check_return_edit ( )

check_return_json() public method

public check_return_json ( )

check_return_merge() public method

public check_return_merge ( )

check_return_upload() public method

public check_return_upload ( )

enqueue_image_editor_scripts() public method

enqueue_scripts() public method

Enqueues required scripts on the page
public enqueue_scripts ( )

filter_image_sizes_details() public method

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

get_allowed_type_name() public method

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

get_default_template() public method

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

json_output() public method

public json_output ( )

locate_template() static public method

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

media_update_success_error() public method

media_update_success_messege() public method

save_album_edit() public method

public save_album_edit ( )

save_edit() public method

public save_edit ( )

save_single_edit() public method

public save_single_edit ( )

set_template() public method

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
return type

single_delete() public method

public single_delete ( )

update_global_query() public method

public update_global_query ( $attr )

Property Details

$media_args public_oe property

public $media_args