当前位置: 首页>>代码示例>>PHP>>正文


PHP spa_paint_close_panel函数代码示例

本文整理汇总了PHP中spa_paint_close_panel函数的典型用法代码示例。如果您正苦于以下问题:PHP spa_paint_close_panel函数的具体用法?PHP spa_paint_close_panel怎么用?PHP spa_paint_close_panel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了spa_paint_close_panel函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: spa_permissions_add_auth_form

function spa_permissions_add_auth_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfauthnew', '');
    });
</script>
<?php 
    spa_paint_options_init();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=permissions-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=newauth';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfauthnew" name="sfauthnew">
<?php 
    echo sp_create_nonce('forum-adminform_authnew');
    spa_paint_open_tab(spa_text('Permissions') . ' - ' . spa_text('Add New Authorization'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Add New Authorization'), 'true', 'create-new-authorization');
    ?>
                    <br /><div class="sfoptionerror">
                    <?php 
    spa_etext('Please note, this will create a new singular authorization.');
    ?>
                    <?php 
    spa_etext('However, by default, it will not be used by anything in core.');
    ?>
                    <?php 
    spa_etext('This authorization could be used for a profile authorization or by a theme or plugin.');
    ?>
                    <?php 
    spa_etext('Please see the popup help for more information.');
    ?>
                    </div><br />
<?php 
    spa_paint_input(spa_text('Authorization name'), 'auth_name', '');
    spa_paint_input(spa_text('Authorization description'), 'auth_desc', '');
    spa_paint_checkbox(spa_text('Activate authorization'), 'auth_active', true);
    spa_paint_checkbox(spa_text('Authorization is ignored for guests'), 'auth_guests', false);
    spa_paint_checkbox(spa_text('Authorization requires enabling (recommend false'), 'auth_enabling', false);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_perm_add_auth_panel');
    spa_paint_close_container();
    ?>
	<div class="sfform-submit-bar">
	<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Create New Authorization');
    ?>
" />
	</div>
	<?php 
    spa_paint_close_tab();
    ?>
	</form>
	<div class="sfform-panel-spacer"></div>
<?php 
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:60,代码来源:spa-permissions-add-auth-form.php

示例2: spa_plugins_upload_form

function spa_plugins_upload_form()
{
    # Make sure only super admin can upload on multisite
    if (is_multisite() && !is_super_admin()) {
        spa_etext('Access denied - you do not have permission');
        die;
    }
    spa_paint_options_init();
    spa_paint_open_tab(spa_text('Upload Plugin') . ' - ' . spa_text('Upload a Simple:Press Plugin'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Upload Plugin'), true, 'upload-plugin');
    echo '<p>' . spa_text('Upload a Simple:Press plugin in .zip format') . '</p>';
    echo '<p>' . spa_text('If you have a plugin in a .zip format, you may upload it here') . '</p>';
    ?>
        	<form method="post" enctype="multipart/form-data" action="<?php 
    echo self_admin_url('update.php?action=upload-sp-plugin');
    ?>
" id="sfpluginuploadform" name="sfpluginuploadform">
                <?php 
    echo sp_create_nonce('forum-plugin_upload');
    ?>
        		<p><input type="file" id="pluginzip" name="pluginzip" /></p>
        		<p><input type="button" class="button-primary" id="saveupload" name="saveupload" value="<?php 
    spa_etext('Upload Now');
    ?>
" onclick="jQuery('#saveupload').attr('disabled', 'disabled'); javascript:document.sfpluginuploadform.submit();" /></p>
        	</form>
<?php 
    spa_paint_close_fieldset();
    do_action('sph_plugins_upload_panel');
    spa_paint_close_panel();
    spa_paint_close_container();
    spa_paint_close_tab();
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:34,代码来源:spa-plugins-upload-form.php

示例3: spa_toolbox_uninstall_form

function spa_toolbox_uninstall_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfuninstallform', '');
    });
</script>
<?php 
    $sfoptions = spa_get_uninstall_data();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=toolbox-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=uninstall';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfuninstallform" name="sfuninstall">
	<?php 
    echo sp_create_nonce('forum-adminform_uninstall');
    spa_paint_options_init();
    #== UNINSTALL Tab ==========================================================
    spa_paint_open_tab(spa_text('Toolbox') . ' - ' . spa_text('Uninstall'), true);
    spa_paint_open_panel();
    echo '<br /><div class="sfoptionerror">';
    spa_etext('Should you, at any time, decide to remove Simple:Press, check the uninstall option below and then deactivate the Simple Press plugin in the standard WP fashion');
    echo '.<br />';
    spa_etext('If you have initiated uninstall, but changed your mind prior to Simple Press plugin deactivation, you can uncheck the uninstall option and it will be reversed');
    echo '.<br />';
    echo '<br />';
    spa_etext('UNINSTALLING SIMPLE PRESS WILL REMOVE ALL FORUM DATA FROM YOUR DATABASE');
    echo '!<br />';
    echo '<br />';
    spa_etext('UNINSTALLING SIMPLE PRESS WILL REMOVE ALL STORAGE LOCATIONS IF YOU ALSO ENABLE THE STORAGE LOCATUON REMOVAL OPTION');
    echo '!<br />';
    echo '<br />';
    spa_etext('ONCE YOU ENABLE UNINSTALL AND DEACTIVATE THE SIMPLE PRESS PLUGIN, THIS ACTION CAN NOT BE REVERSED');
    echo '!<br />';
    echo '<br />';
    spa_etext('Please note that you will still need to remove the Simple:Press core plugin files manually or use the wp plugin deletion functionalty');
    echo '.<br />';
    echo '</div>';
    spa_paint_open_fieldset(spa_text('Removing Simple:Press'), true, 'uninstall');
    spa_paint_checkbox(spa_text('Uninstall Simple Press - Requires plugin deactivation after enabling option (this will completely remove Simple:Press database entries)'), 'sfuninstall', $sfoptions['sfuninstall']);
    spa_paint_checkbox(spa_text('When uninstalling, completely remove Simple:Press storage locations'), 'removestorage', $sfoptions['removestorage']);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_toolbox_uninstall_panel');
    spa_paint_close_container();
    ?>
	<div class="sfform-submit-bar">
	<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Uninstall');
    ?>
" />
	</div>
	</form>
<?php 
    spa_paint_close_tab();
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:58,代码来源:spa-toolbox-uninstall-form.php

示例4: spa_forums_global_rssset_form

function spa_forums_global_rssset_form($id)
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfglobalrssset', 'sfreloadfd');
    });
</script>
<?php 
    spa_paint_options_init();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=forums-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=globalrssset';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfglobalrssset" name="sfglobalrssset">
<?php 
    echo sp_create_nonce('forum-adminform_globalrssset');
    spa_paint_open_tab(spa_text('Forums') . ' - ' . spa_text('Global RSS Settings'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Globally Enable/Disable RSS Feeds'), false);
    echo '<tr><td colspan="2"><br />';
    echo '<div class="sfoptionerror">';
    spa_etext('Warning: Enabling or disabling RSS feeds from this form will apply that setting to ALL forums and overwrite any existing RSS feed settings. If you wish to individually enable/disable RSS feeds for a single forum, please visit the manage forums admin panel - edit the forum and set the RSS feed status there');
    echo '<br /><br />';
    if ($id == 1) {
        spa_etext('Please press the confirm button below to disable RSS feeds for all forums');
    }
    if ($id == 0) {
        spa_etext('Please press the confirm button below to enable RSS feeds for all forums');
    }
    echo '</div><br />';
    echo '</td></tr>';
    echo '<input type="hidden" name="sfglobalrssset" value="' . $id . '" />';
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_forums_rss_panel');
    spa_paint_close_container();
    ?>
		<div class="sfform-submit-bar">
			<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Confirm RSS Feed Status');
    ?>
" />
			<input type="button" class="button-primary" onclick="javascript:jQuery('#sfallrss').html('');" id="sfallrsscancel" name="sfallrsscancel" value="<?php 
    spa_etext('Cancel');
    ?>
" />
		</div>
	</form>
	<?php 
    spa_paint_close_tab();
    ?>

	<div class="sfform-panel-spacer"></div>
<?php 
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:57,代码来源:spa-forums-global-rssset-form.php

示例5: spa_toolbox_changelog_form

function spa_toolbox_changelog_form()
{
    #== CHANGELOG Tab ==========================================================
    spa_paint_options_init();
    spa_paint_open_tab(spa_text('Toolbox') . ' - ' . spa_text('Change Log'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Change Log'), false);
    # Display current change log if available or passed log
    if (isset($_POST['clselect'])) {
        $current = $_POST['clselect'];
        $cFile = 'change-log-' . $_POST['clselect'] . '.txt';
    } else {
        $cFile = 'change-log-' . SPBUILD . '.txt';
        $current = 0;
    }
    echo '<div id="sp-changelog-data">';
    $c = wp_remote_get('http://simple-press.com/downloads/simple-press/changelogs/' . $cFile);
    if (is_wp_error($c) || wp_remote_retrieve_response_code($c) != 200) {
        $b = substr($cFile, 11);
        $b = str_replace('.txt', '', $b);
        echo '<p>' . sprintf(spa_text('No change log file found for build %s'), $b) . '</p>';
    } else {
        echo wpautop($c['body']);
    }
    echo '</div>';
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    $c = wp_remote_get('http://simple-press.com/downloads/simple-press/changelogs/log-index.xml');
    if (is_wp_error($c) || wp_remote_retrieve_response_code($c) != 200) {
        echo '<p>' . spa_text('Unable to communicate with Simple Press server') . '</p>';
    } else {
        $l = new SimpleXMLElement($c['body']);
        if (!empty($l)) {
            spa_paint_open_panel();
            spa_paint_open_fieldset(spa_text('Review Change Logs'), false);
            echo '<div id="sp-changelog-list">';
            echo '<form name="loadchangelog" method="post" action="admin.php?page=simple-press/admin/panel-toolbox/spa-toolbox.php&amp;tab=changelog">';
            echo '<select name="clselect" class="wp-core-ui" style="vertical-align:middle;font-weight: normal;font-size:13px;">';
            foreach ($l->log as $i => $x) {
                if ($x->build == $current ? $s = " selected='selected' " : ($s = '')) {
                }
                echo "<option class='wp-core-ui' value='" . $x->build . "' {$s}>" . $x->build . ' (' . $x->version . ') - ' . $x->date . '</option>';
            }
            echo '</select>';
            echo '<input type="submit" class="button-primary" id="gochangelog" name="gochangelog" value="' . spa_text('Display Change Log') . '" />';
            echo '</form>';
            echo '</div>';
            spa_paint_close_fieldset();
            spa_paint_close_panel();
        }
    }
    do_action('sph_toolbox_changelog_panel');
    spa_paint_close_container();
    echo '<div class="sfform-panel-spacer"></div>';
    spa_paint_close_tab();
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:56,代码来源:spa-toolbox-changelog-form.php

示例6: sp_captcha_admin_options_form

function sp_captcha_admin_options_form()
{
    $captcha = sp_get_option('spCaptcha');
    spa_paint_open_panel();
    spa_paint_open_fieldset(__('Captcha on User Registration', 'sp-cap'), true, 'captcha');
    spa_paint_checkbox(__('Add Captcha form to WP registration/signup form', 'sp-cap'), 'registration', $captcha['registration']);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_captcha_options_panel');
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:10,代码来源:sp-captcha-admin-options.php

示例7: spa_options_email_form

function spa_options_email_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfemailform', '');
    });
</script>
<?php 
    $sfoptions = spa_get_email_data();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=options-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=email';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfemailform" name="sfemail">
	<?php 
    echo sp_create_nonce('forum-adminform_email');
    spa_paint_options_init();
    #== EMAIL Tab ============================================================
    spa_paint_open_tab(spa_text('Options') . ' - ' . spa_text('Email Settings'));
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('New User Email'), true, 'new-user-email');
    spa_paint_checkbox(spa_text('Use the Simple:Press new user email version'), 'sfusespfreg', $sfoptions['sfusespfreg']);
    echo '<p><strong>' . spa_text('The following placeholders are available: %USERNAME%, %BLOGNAME%, %SITEURL%, %LOGINURL%, %PWURL%') . '</strong></p>';
    spa_paint_input(spa_text('Email subject line'), 'sfnewusersubject', $sfoptions['sfnewusersubject'], false, true);
    spa_paint_wide_textarea(spa_text('Email message (no html)'), 'sfnewusertext', $sfoptions['sfnewusertext'], $submessage = '', 4);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_options_email_left_panel');
    spa_paint_tab_right_cell();
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Email Address Settings'), true, 'email-address-settings');
    spa_paint_checkbox(spa_text('Use the following email settings'), 'sfmailuse', $sfoptions['sfmailuse']);
    spa_paint_input(spa_text('The senders name'), 'sfmailsender', $sfoptions['sfmailsender'], false, false);
    spa_paint_input(spa_text('The email from name'), 'sfmailfrom', $sfoptions['sfmailfrom'], false, false);
    spa_paint_input(spa_text('The email domain name'), 'sfmaildomain', $sfoptions['sfmaildomain'], false, false);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_options_email_right_panel');
    spa_paint_close_container();
    ?>
	<div class="sfform-submit-bar">
	<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Update Email Options');
    ?>
" />
	</div>
<?php 
    spa_paint_close_tab();
    ?>
	</form>
<?php 
}
开发者ID:bself,项目名称:nuimage-wp,代码行数:54,代码来源:spa-options-email-form.php

示例8: sp_ttags_admin_options

function sp_ttags_admin_options()
{
    global $spThisUser;
    $options = sp_get_member_item($spThisUser->ID, 'admin_options');
    spa_paint_open_panel();
    spa_paint_open_fieldset(__('Admin offline message', 'sp-ttags'), 'true', 'admin-offline');
    $submessage = __('Text you enter here will be displayed as a custom message when you are offline if the sp_AdminModeratorOnlineTag() template tag is used', 'sp-ttags');
    spa_paint_wide_textarea(__('Custom offline status message', 'sp-ttags'), 'offline_message', sp_filter_text_edit($options['offline_message']), $submessage);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:11,代码来源:sp-template-tags-plugin.php

示例9: sp_admin_bar_options_form

function sp_admin_bar_options_form()
{
    global $spThisUser;
    if (!isset($spThisUser->sfadminbar)) {
        $spThisUser->sfadminbar = false;
    }
    spa_paint_open_panel();
    spa_paint_open_fieldset(__('Your Admin Bar Options', 'spab'), 'true', 'admin-bar-options');
    spa_paint_checkbox(__('Display the Simple:Press admin bar', 'spab'), 'adminbar', $spThisUser->sfadminbar);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
}
开发者ID:bself,项目名称:nuimage-wp,代码行数:12,代码来源:sp-admin-bar-options.php

示例10: spa_toolbox_toolbox_form

function spa_toolbox_toolbox_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sftoolboxform', '');
    });
</script>
<?php 
    $sfoptions = spa_get_toolbox_data();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=toolbox-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=toolbox';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sftoolboxform" name="sftoolbox">
	<?php 
    echo sp_create_nonce('forum-adminform_toolbox');
    spa_paint_options_init();
    #== TOOLBOX Tab ============================================================
    spa_paint_open_tab(spa_text('Toolbox') . ' - ' . spa_text('Toolbox'));
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Current Version/Build'), false);
    $version = spa_text('Version:') . '&nbsp;<strong>' . sp_get_option('sfversion') . '</strong>';
    $build = spa_text('Build:  ') . '&nbsp;<strong>' . sp_get_option('sfbuild') . '</strong>';
    echo $version . '&nbsp;&nbsp;&nbsp;&nbsp;' . $build;
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_toolbox_toolbox_left_panel');
    spa_paint_tab_right_cell();
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Modify Build Number'), true, 'modify-build-number');
    echo '<div class="sfoptionerror">' . spa_text('WARNING: This value should not be changed unless requested by the Simple:Press team in the support forum as it may cause the install/upgrade script to be re-run.') . '</div>';
    spa_paint_input(spa_text('Build number'), "sfbuild", sp_get_option('sfbuild'), false, false);
    spa_paint_checkbox(spa_text('Force upgrade to build number'), "sfforceupgrade", $sfoptions['sfforceupgrade']);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_toolbox_toolbox_right_panel');
    spa_paint_close_container();
    ?>
	<div class="sfform-submit-bar">
	<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Update Toolbox');
    ?>
" />
	</div>
<?php 
    spa_paint_close_tab();
    ?>
	</form>
<?php 
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:52,代码来源:spa-toolbox-toolbox-form.php

示例11: spa_admins_your_options_form

function spa_admins_your_options_form()
{
    global $spThisUser;
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfmyadminoptionsform', 'sfreloadao');
    });
</script>
<?php 
    $sfadminsettings = spa_get_admins_your_options_data();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=admins-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=youradmin';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfmyadminoptionsform" name="sfmyadminoptions">
	<?php 
    echo sp_create_nonce('my-admin_options');
    spa_paint_options_init();
    spa_paint_open_tab(spa_text('Admins') . ' - ' . spa_text('Your Admin Options'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Your Admin/Moderator Options'), 'true', 'your-admin-options');
    spa_paint_checkbox(spa_text('Receive email notification on new topic/post'), 'sfnotify', $sfadminsettings['sfnotify']);
    spa_paint_checkbox(spa_text('Receive notification (within forum - not email) on topic/post edits'), 'notify-edited', $sfadminsettings['notify-edited']);
    spa_paint_checkbox(spa_text('Bypass the Simple Press logout redirect'), 'bypasslogout', $sfadminsettings['bypasslogout']);
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_admins_options_top_panel');
    if ($spThisUser->admin) {
        spa_paint_open_panel();
        spa_paint_open_fieldset(spa_text('Set Your Moderator Options'), 'true', 'set-moderator-options');
        spa_paint_checkbox(spa_text('Grant all moderators the same option settings as above'), 'setmods', $sfadminsettings['setmods']);
        spa_paint_close_fieldset();
        spa_paint_close_panel();
    }
    do_action('sph_admins_options_bottom_panel');
    spa_paint_close_container();
    ?>
	<div class="sfform-submit-bar">
	<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Update Your Admin Options');
    ?>
" />
	</div>
<?php 
    spa_paint_close_tab();
    ?>
	</form>
<?php 
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:51,代码来源:spa-admins-your-options-form.php

示例12: spa_forums_remove_perms_form

function spa_forums_remove_perms_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfallpermissionsdel', 'sfreloadfb');
    });
</script>
<?php 
    spa_paint_options_init();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=forums-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=removeperms';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfallpermissionsdel" name="sfallpermissionsdel">
<?php 
    echo sp_create_nonce('forum-adminform_allpermissionsdelete');
    spa_paint_open_tab(spa_text('Forums') . ' - ' . spa_text('Delete All Permission Sets'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Delete All Forum Permission Sets'), 'true', 'delete-all-forum-permission-sets');
    echo '<p>';
    spa_etext('Warning! You are about to delete all permission sets');
    echo '</p>';
    echo '<p>';
    spa_etext('This will delete all permission sets for all groups and forums');
    echo '</p>';
    echo '<p>';
    echo sprintf(spa_text('Please note that this action %s can NOT be reversed %s'), '<strong>', '</strong>');
    echo '</p>';
    echo '<p>';
    spa_etext('Click on the delete all permission sets button below to proceed');
    echo '</p>';
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    spa_paint_close_container();
    ?>
		<div class="sfform-submit-bar">
		<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Delete All Permission Sets');
    ?>
" />
		</div>
	</form>
	<?php 
    spa_paint_close_tab();
    ?>

	<div class="sfform-panel-spacer"></div>
<?php 
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:51,代码来源:spa-forums-remove-perms-form.php

示例13: spa_permissions_reset_perms_form

function spa_permissions_reset_perms_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfresetpermissions', 'sfreloadpb');
    });
</script>
<?php 
    spa_paint_options_init();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=permissions-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=resetperms';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfresetpermissions" name="sfresetpermissions">
<?php 
    echo sp_create_nonce('forum-adminform_resetpermissions');
    spa_paint_open_tab(spa_text('Forums') . ' - ' . spa_text('Reset All Permission'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Reset all permissions back to initial state.'), 'true', 'reset-permissions');
    echo '<p>';
    spa_etext('Warning! You are about to reset your permissions back to the install state.');
    echo '</p>';
    echo '<p>';
    spa_etext('This will delete all roles and permissions for your forums. You will have to give your users access to your forums again.');
    echo '</p>';
    echo '<p>';
    echo sprintf(spa_text('Please note that this action %s can NOT be reversed %s'), '<strong>', '</strong>');
    echo '</p>';
    echo '<p>';
    spa_etext('Click on the reset permissions button below to proceed');
    echo '</p>';
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    spa_paint_close_container();
    ?>
		<div class="sfform-submit-bar">
		<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Reset Permissions');
    ?>
" />
		</div>
	</form>
	<?php 
    spa_paint_close_tab();
    ?>

	<div class="sfform-panel-spacer"></div>
<?php 
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:51,代码来源:spa-permissions-reset-permissions-form.php

示例14: sp_akismet_admin_options_form

function sp_akismet_admin_options_form()
{
    $spAkismet = sp_get_option('spAkismet');
    spa_paint_open_panel();
    spa_paint_open_fieldset(__('Akismet', 'spab'), true, 'akismet');
    if (function_exists('akismet_http_post')) {
        $values = array(__('Do not use Akismet', 'spab'), __('Place Akismet marked spam posts into moderation', 'spab'), __('Do not save Akismet marked spam posts', 'spab'));
        spa_paint_radiogroup(__('Select Akismet Option', 'spab'), 'spAkismet', $values, $spAkismet, '', false, true);
    } else {
        _e('Akismet is not currently active on this site', 'spab');
    }
    spa_paint_close_fieldset();
    spa_paint_close_panel();
}
开发者ID:bself,项目名称:nuimage-wp,代码行数:14,代码来源:sp-admin-bar-admin.php

示例15: spa_usergroups_create_usergroup_form

function spa_usergroups_create_usergroup_form()
{
    global $spPaths;
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfusergroupnew', 'sfreloadub');
    });
</script>
<?php 
    spa_paint_options_init();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=usergroups-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=newusergroup';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfusergroupnew" name="sfusergroupnew">
<?php 
    echo sp_create_nonce('forum-adminform_usergroupnew');
    spa_paint_open_tab(spa_text('User Groups') . ' - ' . spa_text('Create New User Group'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Edit User Group'), 'true', 'edit-user-group');
    spa_paint_input(spa_text('User Group Name'), 'usergroup_name', '', false, true);
    spa_paint_input(spa_text('User Group Description'), 'usergroup_desc', '', false, true);
    spa_paint_select_start(spa_text('Select Badge'), 'usergroup_badge', 'usergroup_badge');
    spa_select_icon_dropdown('usergroup_badge', spa_text('Select Badge'), SF_STORE_DIR . '/' . $spPaths['ranks'] . '/', '', false);
    spa_paint_select_end('<small>(' . spa_text('Upload badges on the Components - Forum Ranks admin panel') . ')</small>');
    spa_paint_checkbox(spa_text('Allow members to join usergroup'), 'usergroup_join', false, false, false, false, '<small>' . spa_text('(Indicates that members are allowed to choose to join this usergroup on their profile page)') . '</small>');
    spa_paint_checkbox(spa_text('Is moderator'), 'usergroup_is_moderator', false, false, false, false, '<small>' . spa_text('(Indicates that members of this usergroup are considered Moderators)') . '</small>');
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_usergroup_create_panel');
    spa_paint_close_container();
    ?>
		<div class="sfform-submit-bar">
		<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Create New User Group');
    ?>
" />
		</div>
		</form>
	<?php 
    spa_paint_close_tab();
    ?>

	<div class="sfform-panel-spacer"></div>
<?php 
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:48,代码来源:spa-usergroups-create-usergroup-form.php


注:本文中的spa_paint_close_panel函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。