コード例 #1
0
ファイル: mpp-theme-compat.php プロジェクト: markc/mediapress
function mpp_sitewide_gallery_theme_compat_content()
{
    ob_start();
    mpp_get_component_template_loader('sitewide')->loade_template();
    $content = ob_get_clean();
    return $content;
}
コード例 #2
0
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;
}
コード例 #3
0
 public function display($group_id = null)
 {
     mpp_get_component_template_loader('groups')->loade_template();
 }
コード例 #4
0
 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
 }