function mtphr_gallery_display($atts, $content = null) { // Set the defaults $defaults = array('id' => '', 'class' => '', 'width' => false, 'height' => false, 'slider_layout' => 'gallery,navigation'); $defaults = apply_filters('mtphr_gallery_default_args', $defaults); $args = shortcode_atts($defaults, $atts); extract($args); return get_mtphr_gallery($id, $width, $height, $args, $class); }
function mtphr_gallery($post_id = false, $args = false) { echo get_mtphr_gallery($post_id, $args); }
/** * Display the gallery * * @since 1.0.0 */ function mtphr_gallery($post_id = false, $width = false, $height = false, $args = false) { echo get_mtphr_gallery($post_id, $width, $height, $args); }