function sp_the_forum()
 {
     $this->forumData = current($this->pageForumData);
     sp_display_inspector('gv_spThisForum', $this->forumData);
     $this->forumDataSubs = isset($this->forumData->subforums) ? $this->forumData->subforums : '';
     sp_display_inspector('gv_spThisForumSubs', $this->forumDataSubs);
     next($this->pageForumData);
     return $this->forumData;
 }
Exemplo n.º 2
0
 function sp_the_topic()
 {
     $this->topicData = current($this->pageTopicData);
     sp_display_inspector('fv_spThisTopic', $this->topicData);
     next($this->pageTopicData);
     return $this->topicData;
 }
 function sp_the_post()
 {
     $this->postData = current($this->pagePostData);
     sp_display_inspector('tv_spThisPost', $this->postData);
     next($this->pagePostData);
     return $this->postData;
 }
 function sp_the_list()
 {
     $this->topicData = current($this->listData);
     sp_display_inspector('tlv_spThisListTopic', $this->topicData);
     next($this->listData);
     return $this->topicData;
 }
Exemplo n.º 5
0
function sp_process_template()
{
    global $spVars, $spGlobals, $spThisUser, $spNewPosts;
    # grab the pageview, checking to see if its a search page
    $pageview = $spVars['pageview'];
    # determine page template to load
    switch ($pageview) {
        case 'group':
            $tempName = sp_process_group_view();
            break;
        case 'forum':
            $tempName = sp_process_forum_view();
            break;
        case 'topic':
            $tempName = sp_process_topic_view();
            break;
        case 'search':
            $tempName = sp_process_search_view();
            break;
        case 'members':
            $tempName = sp_process_members_view();
            break;
        case 'profileedit':
            $tempName = sp_process_profileedit_view();
            break;
        case 'profileshow':
            $tempName = sp_process_profileshow_view();
            break;
        case 'newposts':
            $tempName = sp_process_newposts_view();
            break;
        default:
            $tempName = sp_process_default_view($pageview);
            break;
    }
    # allow plugins/themes access to the template name
    $tempName = apply_filters('sph_TemplateName', $tempName, $pageview);
    # allow output prior to SP display
    do_action('sph_BeforeDisplayStart', $pageview, $tempName);
    # SP display starts here
    # Any control data item inspection needed
    if (sp_current_user_can('SPF Manage Toolbox') && !empty($spThisUser->inspect)) {
        sp_display_inspector('control', '');
    }
    # forum top anchor
    echo '<a id="spForumTop"></a>';
    # Define the main forum container
    echo "\n\n<!-- Simple:Press display start -->\n\n";
    echo '<div id="spMainContainer">';
    # Create the sliding panel div needed for mobile display
    echo "<div id='spMobilePanel'></div>";
    # allow output before the SP display
    do_action('sph_AfterDisplayStart', $pageview, $tempName);
    # load the pageview template if valid
    sp_load_template($tempName);
    # allow output after the SP display
    do_action('sph_BeforeDisplayEnd', $pageview, $tempName);
    # Display any queued messages
    sp_render_queued_notification();
    echo '</div>';
    echo "\n\n<!-- Simple:Press display end -->\n\n";
    # forum bottom anchor
    echo '<a id="spForumBottom"></a>';
    # SP display ends here
    # allow output after the SP display
    do_action('sph_AfterDisplayEnd', $pageview, $tempName);
    # Post display processing
    sp_post_display_processing($pageview);
}
 function sp_the_postlist()
 {
     $this->postData = current($this->listData);
     sp_display_inspector('plv_spThisListPost', $this->postData);
     next($this->listData);
     return $this->postData;
 }
function sp_display_inspector_profile_edit()
{
    global $spProfileUser;
    sp_display_inspector('pro_spProfileUser', $spProfileUser);
}
 function sp_the_member()
 {
     $this->memberData = current($this->pageMemberData);
     sp_display_inspector('mv_spThisMember', $this->memberData);
     next($this->pageMemberData);
     return $this->memberData;
 }