示例#1
0
 if (function_exists('sp_PrintTopicView')) {
     sp_PrintTopicView('tagClass=spLink spRight', '', __sp('Topic Print Options'));
 }
 sp_TopicHeaderIcon('tagClass=spHeaderIcon spLeft');
 sp_TopicHeaderName('tagClass=spHeaderName');
 if (function_exists('sp_TopicHeaderShowBlogLink')) {
     sp_TopicHeaderShowBlogLink('', __sp('Read the original blog post'), __sp('Click to goto original blog post'));
 }
 sp_InsertBreak();
 if (function_exists('sp_ShareThisTopicTag')) {
     sp_ShareThisTopicTag('tagClass=ShareThisTopic spRight');
 }
 sp_InsertBreak();
 if (function_exists('sp_TopicIndexRating') || function_exists('sp_TopicTagsList') || function_exists('sp_TopicStatus')) {
     if (function_exists('sp_TopicIndexRating')) {
         sp_TopicIndexRating('tagClass=spTopicRating spRight', __sp('Topic Rating:'));
     }
     if (function_exists('sp_TopicTagsList')) {
         sp_TopicTagsList('tagClass=spTopicTagsList spLeft', __sp('Tags: '));
     }
     if (function_exists('sp_TopicStatus')) {
         sp_TopicStatus('tagClass=spTopicViewStatus spButton spLeft', __sp('Search for other topics with this status'), __sp('Status: '));
     }
     sp_InsertBreak();
 }
 sp_SectionStart('tagClass=spTopicPostContainer', 'postlist');
 # Start the Post Loop
 # ----------------------------------------------------------------------
 if (sp_has_posts()) {
     while (sp_loop_posts()) {
         sp_the_post();
         sp_ColumnStart('tagClass=spColumnSection spRight&width=16%&height=50px');
         sp_TopicIndexLastPost('iconClass=spIcon spRight&nicedate=1&date=0&time=0&stackdate=0', __sp('Last Post'));
         sp_ColumnEnd();
         # Column 4 of the forum row
         # ----------------------------------------------------------------------
         sp_ColumnStart('tagClass=spColumnSection spRight&width=16%&height=50px');
         sp_TopicIndexFirstPost('iconClass=spIcon spRight&nicedate=1&date=0&time=0&stackdate=0', __sp('First Post'));
         sp_ColumnEnd();
         # Column 3 of the forum row
         # ----------------------------------------------------------------------
         sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=50px');
         sp_TopicIndexPostCount('tagClass=spInRowCount', __sp('Posts'), __sp('Post'));
         sp_TopicIndexViewCount('tagClass=spInRowCount', __sp('Views'), __sp('View'));
         sp_TopicIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'), __sp('No permission to create posts'));
         if (function_exists('sp_TopicIndexRating')) {
             sp_TopicIndexRating('tagClass=spTopicRating spCenter');
         }
         sp_ColumnEnd();
         sp_InsertBreak();
         sp_SectionEnd('', 'topic');
     }
 } else {
     sp_NoTopicsInForumMessage('tagClass=spMessage', __sp('There are no topics in this forum'));
 }
 sp_SectionEnd('', 'topiclist');
 sp_SectionEnd('', 'forum');
 # Start the 'pagelinks' section
 # ----------------------------------------------------------------------
 sp_SectionStart('tagClass=spPlainSection', 'pageLinks');
 sp_TopicNewButton('tagId=spTopicNewButtonBottom&tagClass=spButton spRight', __sp('Add Topic'), __sp('Start a new topic'), __sp('This forum is locked'), __sp('No permission to start topics'));
 sp_TopicIndexPageLinks('', __sp('Page: '), __sp('Jump to page %PAGE% of topics'), __sp('Jump to page'));
示例#3
0
    # ----------------------------------------------------------------------
    if (sp_has_topics()) {
        while (sp_loop_topics()) {
            sp_the_topic();
            ?>
<div class="spTransitionHover"><?php 
            # Start the 'topic' section
            # ----------------------------------------------------------------------
            sp_SectionStart('tagClass=spForumTopicSection', 'topic');
            # Column 1 of the topic row
            # ----------------------------------------------------------------------
            sp_ColumnStart('tagId=spColForum1&tagClass=spIconColumnSection spLeft&width=0&height=0px');
            sp_TopicIndexIcon('tagClass=spRowIcon spLeft');
            sp_InsertBreak();
            if (function_exists('sp_TopicIndexRating')) {
                sp_TopicIndexRating('tagClass=spStatusIcon spCenter&skipZero=1');
            }
            sp_ColumnEnd();
            # Column 2 of the topic row
            # ----------------------------------------------------------------------
            sp_ColumnStart('tagId=spColForum2&tagClass=spColumnSection spLeft&width=0&height=0px');
            sp_TopicIndexName('tagClass=spRowName  spLeft', __sp('Browse the thread %NAME%'));
            sp_InsertBreak();
            if (function_exists('sp_TopicDescription')) {
                sp_TopicDescription();
            }
            sp_InsertBreak();
            if (function_exists('sp_TopicIndexTagsList')) {
                sp_TopicIndexTagsList('tagClass=spTopicTagsList spLeft&icon=&delimiter=/&delimiterClass=spTagsDelimiterForum&collapse=0&iconClass=spIcon', __sp('Tags: '), __sp('Show the tags for this topic'));
            }
            sp_InsertBreak();