Example #1
0
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spListSection spListViewSection', 'listView');
sp_ListViewHead();
# Start the List Loop
# ----------------------------------------------------------------------
if (sp_has_list()) {
    while (sp_loop_list()) {
        sp_the_list();
        # Start the 'list' section
        # ----------------------------------------------------------------------
        sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');
        sp_ListForumName('', __sp('Browse topics in %NAME%'));
        sp_InsertBreak();
        sp_ListViewBodyStart();
        sp_ColumnStart('tagClass=spColumnSection spRight&width=15%&height=20px');
        sp_ListNewPostButton('tagClass=spButton spRight', __sp('New: %COUNT%'), __sp('View the first new post in this topic'));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=7%&height=20px');
        sp_ListTopicIcon();
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=74%&height=20px');
        sp_ListTopicName('', __sp('Browse the thread %NAME%'));
        sp_ListLastPost('iconClass=spIcon spLeft&height=0px', __sp('Last Post'));
        sp_ColumnEnd();
        sp_ListViewBodyEnd();
        sp_InsertBreak();
        sp_SectionEnd('', 'list');
    }
} else {
    sp_NoTopicsInListMessage('tagClass=spMessage', __sp('There were no topics found'));
}
Example #2
0
sp_SectionEnd('', 'catlabels');
# Start the List Loop
# ----------------------------------------------------------------------
if (sp_has_list()) {
    while (sp_loop_list()) {
        sp_the_list();
        # Start the 'list' section
        # ----------------------------------------------------------------------
        sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');
        sp_ListViewBodyStart();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=35%&height=0');
        sp_ListTopicName('', __sp('Go to %NAME%'));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=35%&height=0');
        sp_ListForumName('', __sp('Browse topics in %NAME%'), __sp('New and Unread Posts'));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=15%&height=0');
        sp_ListLastPost('iconClass=spIcon spLeft&break=1&icon=sp_goNewPost.png&labelLink=1', __sp(''));
        sp_ColumnEnd();
        sp_ColumnStart('tagClass=spColumnSection spLeft&width=7%&height=0');
        sp_ListNewPostButton('tagClass=spButton&icon=""&spLeft', __sp('%COUNT% New'), __sp('View the first new post in this topic'));
        sp_ColumnEnd();
        sp_ListViewBodyEnd();
        sp_InsertBreak();
        sp_SectionEnd('', 'list');
    }
} else {
    sp_NoTopicsInListMessage('tagClass=spMessage', __sp('There were no topics found'));
}
sp_ListViewFoot();
sp_SectionEnd('', 'listView');