function mpp_sitewide_gallery_theme_compat_content() { ob_start(); mpp_get_component_template_loader('sitewide')->loade_template(); $content = ob_get_clean(); return $content; }
function mpp_get_single_gallery_template($component = false) { $templates = array(); $gallery = mpp_get_current_gallery(); $loader = mpp_get_component_template_loader($gallery->component); $path = $loader->get_path(); $type = $gallery->type; $status = $gallery->status; $slug = 'gallery/single'; $templates[] = $path . $slug . '-' . $type . '-' . $status . '.php'; //single-photo-public.php $templates[] = $path . $slug . '-' . $type . '.php'; //single-photo.php $templates[] = $path . $slug . '.php'; //single.php return $templates; }
public function display($group_id = null) { mpp_get_component_template_loader('groups')->loade_template(); }
public function content_create_gallery() { mpp_get_component_template_loader('members')->load_template(); // mpp_get_template( 'buddypress/members/home.php' ); //load gallery-create.php form }