PHP Class RTMediaGalleryShortcode, rtMedia

rtMedia Gallery Shortcode to embedd a gallery of media anywhere
Author: Udit Desai ([email protected])
Mostrar archivo Open project: rtCamp/rtMedia Class Usage Examples

Public Properties

Property Type Description
$add_script

Public Methods

Method Description
__construct ( )
ajax_rtmedia_get_template ( )
display_allowed ( ) : type Helper function to check whether the shortcode should be rendered or not
register_scripts ( )
render ( boolean $attr ) : boolean | string Render a shortcode according to the attributes passed with it
rtmedia_query_where_filter ( $where, $table_name, $join ) for gallery shortcode having attribute global as true, include all media except ones having context as "group"

Method Details

__construct() public method

public __construct ( )

ajax_rtmedia_get_template() public method

display_allowed() static public method

Helper function to check whether the shortcode should be rendered or not
static public display_allowed ( ) : type
return type

register_scripts() static public method

static public register_scripts ( )

render() static public method

Render a shortcode according to the attributes passed with it
static public render ( boolean $attr ) : boolean | string
$attr boolean
return boolean | string

rtmedia_query_where_filter() static public method

for gallery shortcode having attribute global as true, include all media except ones having context as "group"
static public rtmedia_query_where_filter ( $where, $table_name, $join )

Property Details

$add_script static_oe public_oe property

static public $add_script