本文整理汇总了PHP中sp_SectionEnd函数的典型用法代码示例。如果您正苦于以下问题:PHP sp_SectionEnd函数的具体用法?PHP sp_SectionEnd怎么用?PHP sp_SectionEnd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sp_SectionEnd函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sp_InsertBreak
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'));
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');
# Load the forum footer template - normally last thing
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spFootContainer', 'foot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'foot');
示例2: 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();
示例3: sp_UserNotices
sp_UserNotices('', __sp('(Remove Notice)'));
sp_SectionEnd('', 'userInfo');
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection', 'search');
sp_QuickLinksForum('tagClass=spControl spSelect spRight', __sp('Select Forum'));
sp_QuickLinksTopic('tagClass=spControl spSelect spRight', __sp('New/Recently Updated Topics'));
sp_SearchForm($searchForm);
sp_SectionEnd('', 'search');
sp_InsertBreak();
# Start the 'breadCrumbs' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spLeft', 'breadCrumbs');
sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=1', __sp('Home'));
sp_SectionEnd('', 'breadCrumbs');
# Start the 'pageTopStatus' section
# ----------------------------------------------------------------------
sp_SectionStart('tagClass=spPlainSection spRight', 'pageTopStatus');
sp_GoToBottom('tagClass=spGoToBottom spRight&iconClass=spIcon', '', __sp('Go to Bottom'));
sp_UnreadPostsInfo('tagClass=spRight spUnreadPostsInfo&spanClass=spLeft&iconClass=spLeft spIcon', __sp('%COUNT% topics with<br />unread posts'), __sp('Most recent topics with unread posts'), __sp('Mark all topics as read'));
if (function_exists('sp_RankInfo')) {
sp_RankInfo('tagClass=spButton spRight', '', __sp('Display Forum Ranks Information'));
}
sp_SectionEnd('', 'pageTopStatus');
sp_InsertBreak();
sp_SectionStart('tagClass=spPlainSection');
sp_ForumLockdown('tagClass=spMessage', __sp('The forums are currently locked and only available for read only access'));
sp_SectionEnd();
sp_InsertBreak();
# Mandatory call to sp_HeaderEnd() - available to custom code
# ----------------------------------------------------------------------
sp_HeaderEnd();
示例4: 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');
示例5: sp_ProfileShowAIM
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');
示例6: __
#sp_SearchListViewTopicCount('tagClass=spListPostCountRowName spLeft', __('Posts: ', 'sp-search'));
#sp_InsertBreak();
#sp_SearchListViewTopicViews('tagClass=spListPostViewsRowName spLeft', __('Views: ', 'sp-search'));
#sp_InsertBreak();
#sp_SearchListViewGoToPost('tagClass=spListPostGoToPostRowName spRight', __('Go To Post', 'sp-search'));
sp_SectionEnd('', 'results-info');
sp_ColumnEnd('', 'list-info');
sp_InsertBreak();
sp_ColumnStart('tagClass=spColumnSection spPostSearchItemSection spLeft&width=100%&height=auto', 'list-content');
sp_SearchListViewTopicHeader();
sp_SectionStart('tagClass=spResultInfo', 'result-info');
sp_SearchListViewForumName('', __('In ', 'sp-search'));
sp_InsertBreak();
sp_SearchListViewUserName('tagClass=spPostUserName spLeft');
sp_SearchListViewUserDate('tagClass=spPostUserDate spLeft&time=0');
sp_SectionEnd('', 'result-info');
sp_InsertBreak();
sp_SearchListViewPostContent();
#sp_SearchListViewGoToPost('tagClass=spListPostGoToPostRowName spRight', __('Go To Post', 'sp-search'));
sp_ColumnEnd('', 'search-content');
sp_SectionStart('tagClass=spPostSectionFooter', 'list-footer');
sp_SectionEnd('', 'list-footer');
sp_SectionEnd('', 'list');
}
}
} else {
sp_SearchListViewNoPostsMessage('tagClass=spMessage', __('There were no posts found matching your search', 'sp-search'));
}
sp_SearchListViewFoot();
sp_SectionEnd('', 'searchView');
示例7: sp_NewPostListAdmin
//.........这里部分代码省略.........
$is_spam = false;
if ($pindex > 0) {
echo '<hr>';
}
echo '<div id="spAdminQueueThisPost' . $post['post_id'] . '" class="spAdminQueueThisPost">';
$pindex++;
$lastpost = $pindex == $topic['post_count'] ? true : false;
if ($post['post_status'] != 0) {
$mod_required = true;
echo '<div class="spAdminQueueMod spRight">' . __('Awaiting moderation', 'spab');
if ($post['post_status'] == 2) {
$is_spam = true;
echo '<br />' . __('Akismet marked as spam', 'spab');
}
echo '</div>';
}
echo '<b>' . sp_filter_name_display($post['display_name']) . '</b><br /><small>' . $post['user_type'] . '</small>';
echo '<br /><small>' . sprintf(__('Post %s in Topic', 'spab'), $post['post_index']) . '</small>';
echo '<hr />' . sp_filter_content_display($post['post_content']) . '</td>';
echo '</div>';
# Set up the ahah base url
$basesite = SFHOMEURL . "index.php?sp_ahah=moderation&sfnonce=" . wp_create_nonce('forum-ahah') . "&pid=" . $post['post_id'] . "&tid=" . $topic['topic_id'] . "&fid=" . $newpost['forum_id'];
echo '<div id="spAdminQueueThisPostButtons' . $post['post_id'] . '" class="spAdminQueueThisPostButtons">';
echo '<table><tr>';
if ($topic['post_count'] == 1) {
$label = __('This Post', 'spab');
} else {
$label = __('All Posts', 'spab');
}
if ($lastpost) {
$site = $basesite . '&action=0&canremove=' . $canremove;
if ($mod_required) {
if (sp_get_auth('moderate_posts', $newpost['forum_id'])) {
$posturl = sp_build_url($newpost['forum_slug'], $topic['topic_slug'], 0, $post['post_id'], $post['post_index']);
}
} else {
$posturl = sp_build_url($newpost['forum_slug'], $topic['topic_slug'], 0, $post['post_id'], $post['post_index']);
}
if ($mod_required) {
$m = $spDevice == 'mobile' ? esc_attr(__("Approve & Load", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s Approved and go to Topic", 'spab'), $label)), 2);
echo '<td><input type="button" class="spSubmit" name="g0-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $posturl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'9\', \'' . $updateUrl . '\');" /></td>';
$m = $spDevice == 'mobile' ? esc_attr(__("Approve & Close", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s Approved and Close", 'spab'), $label)), 2);
echo '<td><input type="button" class="spSubmit" name="a0-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $nourl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'0\', \'' . $updateUrl . '\');" /></td>';
if ($spDevice == 'mobile') {
echo '</tr></tr>';
}
$m = $spDevice == 'mobile' ? esc_attr(__("Approve & Reply", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s Approved and Quick Reply", 'spab'), $label)), 2);
echo '<td><input type="button" class="spSubmit" name="q0-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spjToggleLayer(\'sfqform' . $topic['topic_id'] . '\');" /></td>';
$qaction = 0;
} else {
$site = $basesite . '&action=1&canremove=' . $canremove;
$m = $spDevice == 'mobile' ? esc_attr(__("Mark Read & Load", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s as Read and go to Topic", 'spab'), $label)), 2);
echo '<td><input type="button" class="spSubmit" name="g1-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $posturl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'1\', \'' . $updateUrl . '\');" /></td>';
$m = $spDevice == 'mobile' ? esc_attr(__("Mark Read & Close", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s as Read and Close", 'spab'), $label)), 2);
echo '<td><input type="button" class="spSubmit" name="a1-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabModeratePost(\'' . $nourl . '\', \'' . $site . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'1\', \'' . $updateUrl . '\');" /></td>';
if ($spDevice == 'mobile') {
echo '</tr></tr>';
}
$m = $spDevice == 'mobile' ? esc_attr(__("Mark Read & Reply", 'spab')) : sp_splice(esc_attr(sprintf(__("Mark %s as Read and Quick Reply", 'spab'), $label)), 2);
echo '<td><input type="button" class="spSubmit" name="a1-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spjToggleLayer(\'sfqform' . $topic['topic_id'] . '\');" /></td>';
$qaction = 1;
}
}
if ($removal) {
$remsite = $basesite . '&action=2&canremove=' . $canremove;
$msg = esc_js(__('Are you sure you want to delete this Post?', 'spab'));
$m = $spDevice == 'mobile' ? esc_attr(__("Delete Post", 'spab')) : sp_splice(esc_attr(__("Delete this Post", 'spab')), 0);
echo '<td><input type="button" class="spSubmit" name="a2-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="javascript: if(confirm(\'' . $msg . '\')) {spabModeratePost(\'' . $nourl . '\', \'' . $remsite . '\', \'' . $removal . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'2\', \'' . $updateUrl . '\');}" /></td>';
if ($post['user_type'] == 'Member' && $is_spam) {
$actionUrl = SFHOMEURL . 'index.php?sp_ahah=remove-spam&sfnonce=' . wp_create_nonce('forum-ahah') . '&postid=' . $post['post_id'] . '&userid=' . $post['user_id'];
$updateUrl = SFHOMEURL . 'index.php?sp_ahah=admin-bar-update&target=newposts&sfnonce=' . wp_create_nonce('forum-ahah');
echo '</tr></tr>';
$m = $spDevice == 'mobile' ? esc_attr(__("Remove Member & All Their Posts", 'spab')) : sp_splice(esc_attr(__("Remove this Member and All their Posts", 'spab')), 2);
echo '<td colspan="2"><input type="button" class="spSubmit" name="delSpam-' . $post['post_id'] . '" value="' . $m . '" style="white-space: pre;" onclick="spabRemoveSpam(\'' . $actionUrl . '\', \'' . $updateUrl . '\');" /></td>';
}
}
echo '</tr></table>';
# Quick Reply Form
if ($lastpost) {
$qsavesite = SFHOMEURL . "index.php?sp_ahah=quickreply&sfnonce=" . wp_create_nonce('forum-ahah') . "&tid=" . $topic['topic_id'] . "&fid=" . $newpost['forum_id'];
echo '<div id="sfqform' . $topic['topic_id'] . '" class="spInlineSection">';
echo '<form action="' . sp_url() . '" method="post" name="addpost' . $topic['topic_id'] . '" onsubmit="return spabSaveQuickReply(this, \'' . $qsavesite . '\', \'' . $site . '\', \'' . $post['post_id'] . '\', \'' . $newpost['forum_id'] . '\', \'' . $topic['topic_id'] . '\', \'' . $post['post_status'] . '\', \'' . $qaction . '\', \'' . $updateUrl . '\')">';
echo '<textarea tabindex="1" class="spControl" name="postitem' . $topic['topic_id'] . '" id="postitem' . $topic['topic_id'] . '" cols="60" rows="8"></textarea>';
echo '<br /><input type="submit" tabindex="2" class="spSubmit" id="sfsave' . $topic['topic_id'] . '" name="newpost' . $topic['topic_id'] . '" value="' . esc_attr(__('Save New Post', 'spab')) . '" />';
do_action('sph_quickreply_form', $newpost, $topic, $post);
echo '</form><br /></div>';
}
echo '</div>';
}
echo '</div>';
echo '</div>';
}
}
sp_SectionEnd('', 'AdminQueue');
} else {
echo '<div class="spMessage">';
echo __('There are no unread posts', 'spab') . '</div>';
echo "<div class='spInlineSection' id='spAdminQueueMsg'></div>\n";
}
}
示例8: sp_ColumnEnd
?>
</div><?php
}
sp_ColumnEnd();
echo '</a>';
# Column 3 of the thread row
# ----------------------------------------------------------------------
sp_ColumnStart('tagClass=spColThread3 spColumnSection spRight&height=0');
sp_SectionStart('tagClass=spRight', 'pmThreadMeta');
if ($spDevice != 'mobile') {
sp_PmThreadIndexMessageCount('tagClass=spLabelSmall spRight&spanClass=', __(' Message(s)', 'sp-pm'));
}
sp_InsertBreak('');
sp_SectionEnd('', 'pmThreadMeta');
sp_ColumnEnd();
sp_SectionStart('tagClass=spRight', 'pmThreadActions');
sp_PmThreadIndexDelete('tagClass=spPMDelete&icon=', __('Delete this thread', 'sp-pm'), __('Delete Thread'));
sp_SectionEnd('', 'pmThreadActions');
sp_SectionEnd('tagClass=spClear', 'pmThread');
}
} else {
sp_NoPmThreads('tagClass=spMessage', __('Your inbox is empty', 'sp-pm'), __('You do not have permission to use the PM system', 'sp-pm'), __('You have opted out of the PM system. You can opt back in from your forum profile.', 'sp-pm'));
}
sp_SectionEnd('', 'pmThreadBody');
sp_PmFooter();
sp_SectionEnd('', 'pmThreadWrapper');
sp_SectionEnd('', 'pmThreadContainer');
sp_SectionStart('tagClass=spFootContainer', 'pmFoot');
sp_load_template('spFoot.php');
sp_SectionEnd('', 'pmFoot');
示例9: array
#
# The 'pm' template is used to display the private messaging page
#
# --------------------------------------------------------------------------------------
/*
$LastChangedDate: 2013-09-23 05:12:51 +0100 (Mon, 23 Sep 2013) $
$Rev: 10721 $
*/
# == ADD POST FORM - OBJECT DEFINITION ========================
$addPmForm = array('tagClass' => 'spForm', 'hide' => 1, 'controlFieldset' => 'spPmRecipients', 'controlInput' => 'spControl', 'controlSubmit' => 'spSubmit', 'controlSelect' => 'spSelect', 'labelHeading' => __('Select Message Recipients: ', 'sp-pm'), 'labelSelect' => __('Select From Members: ', 'sp-pm'), 'labelSelectHelp' => __("Start typing a member's name in the input field above and it will auto-complete", 'sp-pm'), 'labelRecipients' => __('Message Recipients: ', 'sp-pm'), 'labelPmAllUsers' => __('PM All Users', 'sp-pm'), 'labelPmAllUsersHelp' => __('Not recommended for large number of users', 'sp-pm'), 'labelPmUserGroup' => __('Select Usergroup to PM: ', 'sp-pm'), 'labelPmUserGroupHelp' => __('Not recommended for large usergroups', 'sp-pm'), 'labelPmUserGroupSelect' => __('Select Usergroup', 'sp-pm'), 'labelPmBuddyList' => __('Select From Buddy List: ', 'sp-pm'), 'labelPmAddBuddy' => __('Add ALL Recipients to Buddy List', 'sp-pm'), 'labelTitle' => __('Subject: ', 'sp-pm'), 'labelSendButton' => __('Send Private Message', 'sp-pm'), 'labelCancelButton' => __('Cancel', 'sp-pm'), 'labelSmileysButton' => __('Smileys', 'sp-pm'), 'labelSmileys' => __('Smileys', 'sp-pm'), 'tipSubmitButton' => __('Send private message', 'sp-pm'), 'tipCancelButton' => __('Cancel sending private message', 'sp-pm'), 'tipSmileysButton' => __('Open/Close to add Smiley', 'sp-pm'), 'iconMobileSmileys' => 'sp_EditorSmileys.png', 'iconMobileCancel' => 'sp_EditorCancel.png', 'iconMobileSubmit' => 'sp_PmSendMessage.png');
global $spPmThreadList, $spThisPmThreadList, $spDevice;
do_action('sp_pm_footer_begin');
sp_SectionStart('tagId=spPmFooter&tagClass=spPmFooter spPlainSection', 'pmFooter');
sp_SectionStart('tagId=spPmFooterButtons&tagClass=spPmFooter spPlainSection', 'pmFootButtons');
if ($spDevice == 'mobile') {
sp_PmEmptyInboxButton('tagClass=spRight', '', __('Empty your message inbox', 'sp-pm'));
sp_PmMarkInboxReadButton('tagClass=spRight', '', __('Mark all threads in Inbox as read', 'sp-pm'));
sp_PmComposeButton('tagClass=spRight', '', __('Compose a new private message', 'sp-pm'));
} else {
sp_PmEmptyInboxButton('tagClass=spButton spRight', __('Empty Inbox', 'sp-pm'), __('Empty your message inbox', 'sp-pm'));
sp_PmMarkInboxReadButton('tagClass=spButton spRight', __('Mark Inbox Read', 'sp-pm'), __('Mark all threads in Inbox as read', 'sp-pm'));
sp_PmComposeButton('tagClass=spButton spRight', __('Compose', 'sp-pm'), __('Compose a new private message', 'sp-pm'));
}
sp_SectionEnd('tagClass=spClear', 'pmFootButtons');
sp_SectionEnd('tagClass=spClear', 'pmFooter');
sp_SectionStart('tagClass=spHiddenSection', 'pmComposeForm');
sp_SectionStart('tagId=spPmFooterCompose&tagClass=spPmEditor spPlainSection', 'pmFootCompose');
sp_PmComposeWindow($addPmForm);
sp_SectionEnd('', 'pmComposeForm');
sp_SectionEnd('tagClass=spClear', 'pmFootCompose');
do_action('sp_pm_footer_end');
示例10: do_action
# The 'pm' template is used to display the private messaging page
#
# --------------------------------------------------------------------------------------
/*
$LastChangedDate: 2013-11-05 01:15:36 +0000 (Tue, 05 Nov 2013) $
$Rev: 10825 $
*/
global $spPmThreadList, $spThisPmThreadList, $spDevice;
do_action('sp_pm_header_begin');
sp_SectionStart('tagId=spPmHeader&tagClass=spPmHeader spPlainSection spTopicViewSection', 'pmHeader');
sp_SectionStart('tagId=spPmHeaderButtons&tagClass=spPmHeaderButtons spPlainSection', 'pmHeadButtons');
sp_PmQuickLinksThreads('tagClass=spControl spSelect spLeft&show=5', __('New/Recent Messages', 'sp-pm'));
if ($spDevice != 'mobile') {
sp_PmComposeButton('tagClass=spButton spRight', __('Compose', 'sp-pm'), __('Compose a new private message', 'sp-pm'));
sp_PmEmptyInboxButton('tagClass=spButton spRight', __('Empty Inbox', 'sp-pm'), __('Empty your message inbox', 'sp-pm'));
sp_PmMarkInboxReadButton('tagClass=spButton spRight', __('Mark Inbox Read', 'sp-pm'), __('Mark all threads in Inbox as read', 'sp-pm'));
}
sp_SectionEnd('tagClass=spClear', 'pmHeadButtons');
sp_SectionStart('tagId=spPmHeaderMessages&tagClass=spPmHeaderMessages spPlainSection', 'pmHeadMessages');
sp_PmHeaderIcon('tagId=spPmHeaderIcon&tagClass=spHeaderIcon spLeft');
sp_PmInboxMessages('break=0', __('Your inbox has %MCOUNT% messages in %TCOUNT% threads', 'sp-pm'), __('Your inbox has exceeded the maximum allowed (%MAX%). You will not be able to send any more PMs until your inbox size is reduced', 'sp-pm'), __('Your inbox has reached the maximum allowed (%MAX%). You will not be able to send any more PMs until your inbox size is reduced', 'sp-pm'), __('Your inbox is approaching the maximum allowed (%MAX%). You will not be able to send any more PMs if your inbox reaches the maximum size', 'sp-pm'), __('Please note, PMs are automatically removed after %COUNT% days.', "sp-pm"));
sp_SectionEnd('', 'pmHeadMessages');
if ($spDevice == 'mobile') {
sp_SectionStart('tagClass=spActionsBar', 'headerButtons');
sp_PmComposeButton('tagClass=spFootButton spRight', 'Compose', __('Compose a new private message', 'sp-pm'));
sp_PmEmptyInboxButton('tagClass=spFootButton spRight', 'Empty Inbox', __('Empty your message inbox', 'sp-pm'));
sp_PmMarkInboxReadButton('tagClass=spFootButton spRight', 'Mark All Read', __('Mark all threads in Inbox as read', 'sp-pm'));
sp_SectionEnd('tagClass=spClear', 'headerButtons');
}
sp_SectionEnd('tagClass=spClear', 'pmHeader');
do_action('sp_pm_header_end');