本文整理汇总了PHP中__sp函数的典型用法代码示例。如果您正苦于以下问题:PHP __sp函数的具体用法?PHP __sp怎么用?PHP __sp使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了__sp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sp_add_switcher_to_profile_desktop
function sp_add_switcher_to_profile_desktop($out)
{
$out .= sp_InsertBreak('echo=0');
$out .= '<hr>';
if (function_exists('sp_UserSelectOptions')) {
$out .= sp_UserSelectOptions('tagClass=spCenter spLabelSmall&echo=0&get=1', __sp('Style:'), __sp('Language:'));
}
return $out;
}
示例2: sp_SectionEnd
}
sp_SectionEnd('', 'topiclist');
sp_SectionEnd('', 'forum');
# Start the bottom 'pagelinks' section
sp_SectionStart('tagClass=spPageLinksBottomSection', 'pageLinks');
sp_TopicIndexPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', __sp(''), __sp('Jump to page %PAGE%'), __sp('Jump to page'));
sp_InsertBreak();
sp_SectionEnd('', 'pageLinks');
# Start the 'editor' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHiddenSection', 'editor');
sp_TopicEditorWindow($addTopicForm);
sp_SectionEnd('', 'editor');
} else {
sp_NoForumMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested forum does not exist'));
}
sp_SectionEnd('', 'forumView');
sp_SectionEnd('', 'body');
# Footer buttons section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spActionsBar', 'footerButtons');
sp_TopicNewButton('tagClass=spFootButton spHeaderAddButton spRight iconStatusClass=spLockPosition&iconLock=sp_ForumStatusLockWhite.png&icon=', __sp('New Topic'), __sp('Start a new topic'), __sp('Locked'));
if (function_exists('sp_SubscriptionsSubscribeForumButton')) {
sp_SubscriptionsSubscribeForumButton('tagClass=spFootButton spRight&subscribeIcon=&unsubscribeIcon=', 'Subscribe', 'Un-Subscribe', 'Subscribe to this forum', 'UnSubscribe from this forum');
}
sp_SectionEnd('tagClass=spClear', 'footerButtons');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例3: sp_SectionStart
#
# --------------------------------------------------------------------------------------
# Start the 'listView' section
# ----------------------------------------------------------------------
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_ListViewBodyStart();
sp_SectionStart('tagClass=spTopicListSection spTextLeft', 'list');
sp_ListForumName('', __sp('Browse topics in %NAME%'), __sp('New and Unread Posts'));
sp_InsertBreak();
sp_ColumnStart('tagClass=spColumnSection spLeft&width=auto&height=auto');
sp_ListTopicName('tagClass=spLeft', __sp('Browse the thread %NAME%'));
sp_InsertBreak('');
sp_ListLastPost('tagClass=spLeft&height=0px&break=0&icon=', __sp(''));
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');
示例4: sp_ProfileShowLinkedIn
sp_ProfileShowLinkedIn('', __sp('LinkedIn ID'));
sp_ProfileShowYouTube('', __sp('YouTube ID'));
sp_ProfileShowEmail('', __sp('Email'));
if (function_exists('sp_ProfileSendPm')) {
sp_ProfileSendPm('', __sp('Private Message'), __sp('Send PM'));
}
sp_ColumnEnd('', 'profileIdentities');
# show user stats
sp_ColumnStart('tagClass=spProfileShowStatsSection spRight&width=45%', 'profileStats');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Statistics') . '<br /><hr>';
sp_ProfileShowMemberSince('', __sp('Member Since'));
sp_ProfileShowLastVisit('', __sp('Last Visited'));
sp_ProfileShowUserPosts('', __sp('Posts'));
sp_ProfileShowSearchPosts('', __sp('Search User Posts'), __sp('Topics Started'), __sp('Topics Posted In'));
sp_ColumnEnd('', 'profileStats');
sp_SectionEnd('tagClass=spClear', 'profileDetails');
# output user photos
sp_SectionStart('tagClass=spProfileShowPhotosSection', 'profilePhotos');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Profile Photos') . '<br /><hr>';
sp_ProfileShowUserPhotos('photoClass=spCenter&imageClass=spImg&numCols=3');
sp_SectionEnd('', 'profilePhotos');
# output signature
sp_SectionStart('tagClass=spProfileShowSignatureSection', 'profileSignature');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Signature') . '<br /><hr>';
sp_Signature('tagClass=spSignature', $spProfileUser->signature);
sp_SectionEnd('', 'profileSignature');
sp_SectionEnd('tagClass=spClear', 'profileShow');
sp_SectionEnd('', 'body');
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例5: sp_InsertBreak
echo '</a>';
sp_InsertBreak('');
# determine open/close status of each message
$status = !$spThisPmMessageList->read_status || $spPmMessageList->currentPm == 1 || isset($spThisUser->pmopenall) && $spThisUser->pmopenall ? '' : ' spInlineSection ';
sp_SectionStart('tagId=PmMessageContent' . $spThisPmMessageList->message_id . '&tagClass=spPostSection spPmMessageContent' . $status, 'pmMessageContent');
if ($spDevice == 'mobile') {
# message icon 'toolbar'
sp_SectionStart('tagClass=pmMessageActions', 'pmMessageActions');
sp_PmMessageIndexReplyAll('tagClass=spButton spRight&icon=', __('Reply to all', 'sp-pm'), __sp('Reply to Group'));
sp_PmMessageIndexQuoteAll('tagClass=spButton spRight&icon=', __('Quote and reply to all', 'sp-pm'), __sp('Quote to Group'));
sp_InsertBreak();
sp_PmMessageIndexReply('tagClass=spButton spRight&icon=', __('Reply to sender', 'sp-pm'), __sp('Reply'));
sp_PmMessageIndexDelete('tagClass=spButton spRight&icon=', __('Delete this message', 'sp-pm'), __sp('Delete'));
sp_PmMessageIndexMarkUnread('tagClass=spButton spRight&icon=', __('Mark this message as unread', 'sp-pm'), __sp('Mark Unread'));
sp_PmMessageIndexForward('tagClass=spButton spRight&icon=', __('Forward this message', 'sp-pm'), __sp('Forward'));
sp_PmMessageIndexQuote('tagClass=spButton spRight&icon=', __('Quote and reply to sender', 'sp-pm'), __sp('Quote'));
sp_SectionEnd('', 'pmMessageActions');
sp_InsertBreak();
}
sp_SectionStart('tagClass=spPostContentSection', 'PmContentSection');
sp_SectionStart('tagClass=spPostSection', 'pmContent');
sp_PmMessageIndexContent('tagClass=spPostContent spPmContent');
sp_SectionEnd('tagClass=spClear', 'pmContent');
sp_SectionStart('tagClass=spPostSection', 'pmAttachments');
sp_PmMessageIndexAttachments();
sp_SectionEnd('tagClass=spClear', 'pmAttachments');
sp_SectionEnd('tagClass=spClear', 'PmContentSection');
sp_SectionEnd('tagClass=spClear', 'pmMessageContent');
sp_SectionEnd('tagClass=spClear', 'pmMessage');
}
sp_SectionEnd('tagClass=spClear', 'pmMessageList');
示例6: sp_ColumnStart
sp_ColumnStart('tagClass=spColumnSection spRight&width=32%&height=55px');
sp_ForumIndexLastPost('tagClass=spInRowPostLink&nicedate=1&date=0&time=0&stackdate=0', __sp('Last Post'), __sp('No Topics'));
sp_ColumnEnd();
# Column 3 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spRight&width=14%&height=55px');
sp_ForumIndexTopicCount('tagClass=spInRowCount', __sp('Topics'), __sp('Topic'));
sp_ForumIndexPostCount('tagClass=spInRowCount', __sp('Posts'), __sp('Post'));
sp_ForumIndexStatusIcons('tagClass=spStatusIcon spCenter', __sp('This forum is locked'), __sp('This forum has unread posts in %COUNT% topic(s)'), __sp('Add new topic in this forum'), __sp('No permission to start topics'));
sp_ColumnEnd();
sp_InsertBreak();
sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));
sp_SectionEnd('', 'forum');
}
} else {
sp_NoForumsInGroupMessage('tagClass=spMessage', __sp('There are no forums in this group'));
}
sp_SectionEnd('', 'forumlist');
sp_SectionEnd('', 'group');
}
} else {
sp_NoGroupMessage('tagClass=spMessage', __sp('The requested group does not exist or you do not have permission to view it'), __sp('No groups have been created yet'));
}
sp_SectionEnd('', 'groupView');
sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例7: sp_ColumnStart
sp_ColumnStart('tagClass=spColumnSection spRight spMembershipStats&width=20%&height=0');
sp_MembershipStats('tagClass=spRight', __sp('Member Stats: '), __sp('Members: %COUNT%'), __sp('Guest Posters: %COUNT%'), __sp('Moderators: %COUNT%'), __sp('Admins: %COUNT%'));
sp_ColumnEnd();
sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=17%&height=0');
sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
sp_ColumnEnd();
sp_InsertBreak();
sp_NewMembers('tagClass=spLeft spNewMembers', __sp('Newest Members: '));
sp_InsertBreak();
sp_ModsList('tagClass=spLeft spModerators', __sp('Moderators: '));
sp_InsertBreak();
sp_AdminsList('tagClass=spLeft spAdministrators', __sp('Administrators: '));
sp_SectionEnd('tagClass=spClear', 'stats');
if (function_exists('sp_UserSelectOptions')) {
sp_UserSelectOptions('tagClass=spCenter spLabelSmall', __sp('Theme:'), __sp('Language:'));
}
sp_InsertBreak();
# Start the 'about' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spCenter', 'about');
if (function_exists('sp_PolicyDocPolicyLink')) {
sp_PolicyDocPolicyLink('', __sp('Usage Policy'), __sp('View site usage policy'));
}
sp_Acknowledgements('', '', __sp('About Simple:Press'), __sp('Visit Simple:Press'));
if (function_exists('sp_PolicyDocPrivacyLink')) {
sp_PolicyDocPrivacyLink('', __sp('Privacy Policy'), __sp('View site privacy policy'));
}
sp_SectionEnd('', 'about');
# Mandatory call to sp_FooterEnd() - available to custom code
# ----------------------------------------------------------------------
sp_FooterEnd();
示例8: __sp
echo '<p>' . __sp('Contact') . ' ' . $spProfileUser->display_name . '<br /><hr>';
sp_ProfileShowAIM('', __sp('AOL IM ID'));
sp_ProfileShowYIM('', __sp('Yahoo IM ID'));
sp_ProfileShowMSN('', __sp('MSN ID'));
sp_ProfileShowICQ('', __sp('ICQ ID'));
sp_ProfileShowGoogleTalk('', __sp('Google Talk ID'));
sp_ProfileShowSkype('', __sp('Skype ID'));
sp_ProfileShowMySpace('', __sp('MySpace ID'));
sp_ProfileShowFacebook('', __sp('Facebook ID'));
sp_ProfileShowTwitter('', __sp('Twitter ID'));
sp_ProfileShowLinkedIn('', __sp('LinkedIn ID'));
sp_ProfileShowYouTube('', __sp('YouTube ID'));
sp_ProfileShowEmail('', __sp('Email'));
if (function_exists('sp_ProfileSendPm')) {
sp_ProfileSendPm('', __sp('Private Message'), __sp('Send PM'));
}
sp_ColumnEnd('', 'profileIdentities');
# show user stats
sp_ColumnStart('tagClass=spProfileShowStatsSection spRight&width=45%', 'profileStats');
echo '<p>' . $spProfileUser->display_name . ' ' . __sp('Statistics') . '<br /><hr>';
sp_ProfileShowMemberSince('', __sp('Member Since'));
sp_ProfileShowLastVisit('', __sp('Last Visited'));
sp_ProfileShowUserPosts('', __sp('Posts'));
sp_ProfileShowSearchPosts('', __sp('Search User Posts'), __sp('Topics Started'), __sp('Topics Posted In'));
sp_ColumnEnd('', 'profileStats');
sp_SectionEnd('tagClass=spClear', 'profileDetails');
# output some options
sp_SectionStart('tagClass=spPlainSection spCenter', 'profileSignature');
sp_ProfileShowLink('tagClass=spButton', __sp('View Full Profile for %USER%'));
sp_SectionEnd('', 'profileSignature');
sp_SectionEnd('tagClass=spClear', 'profileShow');
示例9: sp_InsertBreak
sp_InsertBreak();
sp_SectionEnd('', 'pageLinks');
# Start the 'editor' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHiddenSection', 'editor');
sp_PostEditorWindow($addPostForm, $editPostForm);
sp_SectionEnd('', 'editor');
} else {
sp_NoTopicMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('The requested topic does not exist'));
}
sp_SectionEnd('', 'topicView');
sp_SectionEnd('', 'body');
# Footer buttons section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spActionsBar', 'footerButtons');
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')) {
sp_SubscriptionsSubscribeButton('tagClass=spFootButton spRight&subscribeIcon=&unsubscribeIcon=', __sp('Subscribe'), __sp('Un-subscribe'), __sp('Subscribe to this topic'), __sp('Unsubscribe from this topic'));
}
if (function_exists('sp_WatchesWatchButton')) {
sp_WatchesWatchButton('tagClass=spFootButton spRight&watchIcon=&stopWatchIcon=', __sp('Watch'), __sp('Stop Watching'), __sp('Watch this topic'), __sp('Stop watching this topic'));
}
sp_SectionEnd('tagClass=spClear', 'footerButtons');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例10: sp_OnlinePageLink
sp_OnlinePageLink('', __sp('See All Online Activity'));
}
sp_ColumnEnd();
#sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=auto&height=0');
#sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
#sp_ColumnEnd();
#sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=auto&height=0');
#sp_MembershipStats('tagClass=spRight&pGuestsClass=spInlineSection', __sp('Member Stats: '), __sp('Members: %COUNT%'), __sp('Guest Posters: %COUNT%'), __sp('Moderators: %COUNT%'), __sp('Admins: %COUNT%'));
#sp_ColumnEnd();
sp_SectionEnd('tagClass=spClear', 'statsHolder');
sp_SectionEnd('tagClass=spClear', 'stats');
if (function_exists('sp_ListBirthdays')) {
sp_ListBirthdays('icon=', __sp('Members Birthdays'), __sp('Today: '), __sp('Upcoming: '));
}
#if (function_exists('sp_UserSelectOptions')) sp_UserSelectOptions('tagClass=spCenter spLabelSmall&stacked=0', __sp('Theme:'), __sp('Language:'));
sp_InsertBreak();
# Start the 'about' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spCenter', 'about');
sp_InsertBreak('spacer=20px');
sp_Acknowledgements('showPopup=0', '', __sp('About Simple:Press'), __sp('Visit Simple:Press'));
if (function_exists('sp_PolicyDocPolicyLink')) {
sp_PolicyDocPolicyLink('popup=0&iconClass=', __sp('Usage'), __sp('View site usage policy'));
}
if (function_exists('sp_PolicyDocPrivacyLink')) {
sp_PolicyDocPrivacyLink('popup=0&iconClass=', __sp('Privacy'), __sp('View site privacy policy'));
}
sp_SectionEnd('', 'about');
# Mandatory call to sp_FooterEnd() - available to custom code
# ----------------------------------------------------------------------
sp_FooterEnd();
示例11: sp_SectionStart
# Simple:Press Template
# Theme : Default
# Template : New Posts View
# Author : Simple:Press
#
# The 'new posts view' template is used to display a list of unread posts
#
# --------------------------------------------------------------------------------------
# Load the forum header template - normally first thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHeadContainer', 'head');
sp_load_template('spHead.php');
sp_SectionEnd('', 'head');
sp_SectionStart('tagClass=spBodyContainer', 'body');
sp_SectionStart('tagId=spRecentPostList&tagClass=spRecentPostSection');
echo '<div class="spMessage">' . __sp('Most recent topics with unread posts') . '</div>';
# Start the 'searchView' section
# ----------------------------------------------------------------------
global $spThisUser, $spListView, $spThisListTopic;
$first = sp_esc_int($_GET['first']);
$group = sp_esc_int($_GET['group']);
$count = sp_esc_int($_GET['count']);
$spListView = new spTopicList($spThisUser->newposts['topics'], $count, $group, '', $first);
sp_load_template('spListView.php');
sp_SectionEnd();
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例12: sp_ColumnStart
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spRight&width=6%');
sp_MemberListPostCount('', __sp('Posts'));
sp_ColumnEnd();
# Column 6 of the member row - member action icons
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColumnSection spRight&width=25%&height=auto');
sp_MemberListActions('profileIcon=sp_ProfileFormList.png', __sp(''), __sp('View topics member has started'), __sp('View topics member has posted in'));
sp_ColumnEnd();
sp_SectionEnd('tagClass=spClear', 'member');
}
} else {
}
sp_SectionEnd('tagClass=spClear', 'memberGroup');
}
} else {
sp_NoMembersListMessage('tagClass=spMessage', __sp('Access denied - you do not have permission to view this page'), __sp('There were no member lists found'));
}
sp_SectionEnd('', 'memberList');
sp_SectionEnd('', 'body');
# Start the 'pageLinks' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPageLinksBottomSection', 'pageLinks');
sp_MemberListPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=1', __sp('Page: '), __sp('Jump to page %PAGE% of members list'));
sp_InsertBreak('spacer=0px');
sp_SectionEnd('', 'pageLinks');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例13: sp_ColumnStart
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spActionsColumnSection spRight&width=10%&height=55px');
sp_ForumIndexLockIcon('tagClass=spIcon spRight', __sp('This forum is locked'));
sp_InsertBreak();
sp_ForumIndexAddIcon('tagClass=spIcon spRight', __sp('Add new topic in this forum'));
sp_InsertBreak();
#sp_ForumIndexPostsIcon('tagClass=spIcon spRight&popup=0&openIcon=sp_GroupOpenDark.png&closeIcon=sp_GroupCloseDark.png', __sp('This forum has unread posts in %COUNT% topic(s)'));
sp_ColumnEnd();
sp_SectionEnd('', 'forum');
sp_SectionStart('tagClass=spSubForumHolder', 'subForumHolder');
sp_ForumIndexSubForums('stack=0&unreadIcon=sp_SubForumUnreadIcon.png&stack=1&topicCount=0', __sp(''), __sp('Browse topics in %NAME%'));
sp_SectionEnd('', 'subForumHolder');
sp_InsertBreak('spacer=15px');
sp_ForumIndexInlinePosts();
}
} else {
sp_NoForumsInGroupMessage('tagClass=spMessage', __sp('There are no forums in this group'));
}
sp_SectionEnd('', 'forumlist');
sp_SectionEnd('', 'group');
}
} else {
sp_NoGroupMessage('tagClass=spMessage', __sp('The requested group does not exist or you do not have permission to view it'), __sp('No groups have been created yet'));
}
sp_SectionEnd('', 'groupView');
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例14: sp_SectionStart
# Author : Simple:Press
#
# The 'default' template is used to display generic or unknown pages
#
# --------------------------------------------------------------------------------------
global $spDevice;
# Load the forum header template - normally first thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHeadContainer', 'head');
sp_load_template('spHead.php');
sp_SectionEnd('', 'head');
sp_SectionStart('tagClass=spBodyContainer', 'body');
# lets see if we can figure out why we got here and output some useful info
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spMessage');
if ($spVars['profile'] == 'show') {
if (!sp_get_auth('view_profiles')) {
echo __sp('Access denied - you do not have permission to view this page');
} else {
echo __sp('The requested member does not exist');
}
} else {
echo __sp('The requested page does not exist');
}
sp_SectionEnd();
sp_SectionEnd('', 'body');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例15: sp_SectionStart
# The 'search' template is used to display a simplified Search Listing
#
# --------------------------------------------------------------------------------------
global $spDevice;
# Load the forum header template - normally first thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spHeadContainer', 'head');
sp_load_template('spHead.php');
sp_SectionEnd('', 'head');
sp_SectionStart('tagClass=spBodyContainer', 'body');
# Start the 'searchView' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spListSection', 'searchView');
sp_Search();
sp_SectionStart('tagClass=spPageLinksSearchView', 'pageLinks');
sp_SearchHeaderName('', __sp('Search results for %TERM%'), __sp('Topics posted to by %NAME%'), __sp('Topics started by %NAME%'));
if ($spDevice == 'mobile') {
sp_SearchPageLinks('tagClass=spPageLinks spPageLinksBottom&prevIcon=&nextIcon=&showLinks=5', '', '');
}
if ($spDevice != 'mobile') {
#sp_SearchPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', 'Page: ', 'Jump to page %PAGE% of results');
}
sp_SectionEnd('tagClass=spClear', 'pageLinks');
sp_SearchResults('tagClass=spSearchListSection');
sp_InsertBreak();
sp_SectionStart('tagClass=spPageLinksSearchViewBottom', 'pageLinks');
if ($spDevice == 'mobile') {
sp_SearchPageLinks('tagClass=spPageLinks spPageLinksBottom spCenter&prevIcon=&nextIcon=&showLinks=5', '', '');
}
if ($spDevice != 'mobile') {
sp_SearchPageLinks('tagClass=spPageLinksBottom spRight&prevIcon=&nextIcon=&showEmpty=0', 'Page: ', 'Jump to page %PAGE% of results');