コード例 #1
0
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spListSection', 'topicView');
# Set the Topic
# ----------------------------------------------------------------------
if (sp_this_topic()) {
    # Start the 'pagelinks' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spPlainSection', 'pageLinks');
    sp_PostNewButton('tagId=spPostNewButtonTop&tagClass=spButton spRight', __sp('Add Reply'), __sp('Make a new post in this topic'), __sp('This topic is locked'), __sp('No permission to create posts'));
    sp_PostNewTopicButton('tagId=spPostNewTopicButtonTop&tagClass=spButton spRight', __sp('Add Topic'), __sp('Start a new topic'), __sp('This forum is locked'));
    sp_PostIndexPageLinks('', __sp('Page: '), __sp('Jump to page %PAGE% of this topic'), __sp('Jump to page'));
    sp_SectionEnd('tagClass=spClear', 'pageLinks');
    # Start the 'topicHeader' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spTopicViewSection', 'topic');
    sp_TopicHeaderRSSButton('tagClass=spButton spRight', __sp('Topic RSS'), __sp('Subscribe to the RSS feed for this topic'));
    if (function_exists('sp_RelatedTopicsButton')) {
        sp_RelatedTopicsButton('tagClass=spButton spRight', __sp('Related Topics'), __sp('Get a list of related topics based on tags for this topic'));
    }
    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');
    }
コード例 #2
0
ファイル: spTopicView.php プロジェクト: bself/nuimage-wp
 if (function_exists('sp_TopicStatus')) {
     sp_TopicStatus('tagClass=spTopicViewStatus spLeft&icon=', __sp('Search for other topics with this status'), __sp(''));
 }
 sp_InsertBreak('');
 if (function_exists('sp_TopicTagsList')) {
     if (function_exists('sp_TopicTagsList')) {
         sp_TopicTagsList('tagClass=spTopicTagsList spLeft&delimiter=/&delimiterClass=spTagsDelimiter', __sp('Tags:'));
     }
     if (function_exists('sp_RelatedTopicsButton')) {
         sp_RelatedTopicsButton('tagClass=spRelated spLeft&icon=', __sp(' -  Related Tags'), __sp('Get a list of related topics based on tags for this topic'));
     }
 }
 sp_InsertBreak('');
 sp_ColumnEnd();
 sp_ColumnStart('tagClass=spHeadColumn3 spRight&width=auto&height=0');
 sp_TopicHeaderRSSButton('tagClass=spLink spRight&iconClass=spIcon&icon=', 'RSS', __sp('Subscribe to the RSS feed for this topic'));
 sp_InsertBreak();
 sp_ColumnEnd();
 sp_SectionEnd('', 'flexheader');
 # Footer buttons section
 # ----------------------------------------------------------------------
 sp_SectionStart('tagClass=spActionsBar', 'headerButtons');
 if (function_exists('sp_TopicIndexRating')) {
     sp_TopicIndexRating('tagClass=spTopicRating spLeft', __sp('Topic Rating:'));
 }
 sp_ColumnStart('tagClass=holder spRight&width=0&height=0');
 sp_PostNewButton('tagId=spPostNewButtonBottom&tagClass=spFootButton spRight&iconLock=sp_ForumStatusLockWhite.png&icon=', __sp('Add Reply'), __sp('Add a new post in this topic'), __sp('This topic is locked'));
 if (function_exists('sp_PrintTopicView')) {
     sp_PrintTopicView('tagClass=spFootButton spRight&icon=', 'Print Topic', __sp('Topic Print Options'));
 }
 if (function_exists('sp_SubscriptionsSubscribeButton')) {