sp_SectionEnd('', 'subforumlist'); sp_SectionEnd('', 'forum'); } # End of subforum section # Start the 'pagelinks' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spPlainSection', 'pageLinks'); sp_TopicNewButton('tagId=spTopicNewButtonTop&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')); sp_SectionEnd('tagClass=spClear', 'pageLinks'); # Start the 'forumHeader' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spForumViewSection', 'forum'); sp_ForumHeaderRSSButton('tagClass=spButton spRight', __sp('Forum RSS'), __sp('Subscribe to the RSS feed for this forum')); sp_ForumHeaderIcon('tagClass=spHeaderIcon spLeft'); sp_ForumHeaderName('tagClass=spHeaderName'); sp_ForumHeaderDescription('tagClass=spHeaderDescription'); sp_ForumHeaderSubForums('', __sp('Sub-Forums'), __sp('Browse topics in %NAME%')); if (function_exists('sp_ShareThisForumTag')) { sp_ShareThisForumTag('tagClass=spRight ShareThisForum'); } sp_InsertBreak(); sp_ForumHeaderMessage('tagClass=spHeaderMessage'); sp_SectionStart('tagClass=spForumTopicContainer', 'topiclist'); # Start the Topic Loop # ---------------------------------------------------------------------- if (sp_has_topics()) { while (sp_loop_topics()) { sp_the_topic(); # Start the 'topic' section # ----------------------------------------------------------------------
} } sp_SectionEnd('', 'subForumList'); sp_SectionEnd('', 'subForum'); } # End of subforum section # Start the 'forumHeader' section # ---------------------------------------------------------------------- sp_SectionStart('tagClass=spForumViewSection', 'forum'); sp_SectionStart('tagClass=spForumViewHeader', 'header'); sp_SectionStart('tagClass=spFlexHeadContainer', 'flexheader'); sp_ColumnStart('tagId=spIconCol&tagClass=spIconColumnSectionTitle spLeft&width=0&height=0px'); sp_ForumHeaderIcon('tagClass=spRowIcon spLeft'); sp_ColumnEnd(); sp_ColumnStart('tagId=spHeadColumn2&tagClass=spTitleColumnTitle spLeft&width=80%&height=0'); sp_ForumHeaderName('tagClass=spHeaderName spLeft'); if (function_exists('sp_SubscriptionsSubscribeForumButton')) { sp_SubscriptionsSubscribeForumButton('tagClass=spSubButton spLeft&subscribeIcon=&unsubscribeIcon=', 'Subscribe', 'Un-Subscribe', 'Subscribe to this forum', 'UnSubscribe from this forum'); } sp_InsertBreak(''); sp_ForumHeaderDescription('tagClass=spHeaderDescription'); sp_InsertBreak(); sp_ForumHeaderMessage('tagClass=spHeaderMessage'); sp_ColumnEnd(); sp_ColumnStart('tagClass=spHeadColumn3 spRight&width=auto&height=0'); sp_ForumHeaderRSSButton('tagClass=spLink spRight&iconClass=spIcon&icon= spRight', 'RSS', __sp('Subscribe to the RSS feed for this forum')); sp_InsertBreak(); sp_TopicNewButton('tagClass=spHeaderAddButton spRight iconStatusClass=spLockPosition&iconLock=sp_ForumStatusLockWhite.png&icon=', __sp('New Topic'), __sp('Start a new topic'), __sp('Locked')); sp_ColumnEnd(); sp_InsertBreak(''); sp_SectionEnd('', 'flexheader');