本文整理汇总了PHP中spa_paint_open_fieldset函数的典型用法代码示例。如果您正苦于以下问题:PHP spa_paint_open_fieldset函数的具体用法?PHP spa_paint_open_fieldset怎么用?PHP spa_paint_open_fieldset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了spa_paint_open_fieldset函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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_toolbox_errorlog_form
function spa_toolbox_errorlog_form()
{
?>
<script type="text/javascript">
jQuery(document).ready(function() {
spjAjaxForm('sfclearlog', 'sfreloadel');
});
</script>
<?php
$sflog = spa_get_errorlog_data();
spa_paint_open_tab(spa_text('Toolbox') . ' - ' . spa_text('Error Log'), true);
spa_paint_open_fieldset(spa_text('Error Log'), false);
echo '<p>' . spa_text('Error Logging can be disabled in the Global Options panel') . '<br /></p>';
echo "<table class='sfhelptext'><tr>";
echo "<td class='spaErrError spaErrCell'><b>" . spa_text('Error') . '</b></td>';
echo "<td class='spaErrWarning spaErrCell'><b>" . spa_text('Warning') . '</b></td>';
echo "<td class='spaErrNotice spaErrCell'><b>" . spa_text('Notice') . '</b></td>';
echo "<td class='spaErrStrict spaErrCell'><b>" . spa_text('Strict') . '</b></td>';
echo "</tr><tr>";
echo "<td class='spaErrCellDesc'>" . spa_text('Errors should be reported to Simple:Press support as they may effect the proper behaviour of your forum') . '</td>';
echo "<td class='spaErrCellDesc'>" . spa_text('Warnings suggest a code conflict of some type that should be investigated but which will not stop Simple:Press execution') . '</td>';
echo "<td class='spaErrCellDesc'>" . spa_text('Notices are generally non-important and have no effect on Simple:Press execution. We make every effort to clear these when we are informed of them') . '</td>';
echo "<td class='spaErrCellDesc'>" . spa_text('If you receive any Strict entries they are non-urgent but please inform Simple:Press support so we can deal with them') . '</td>';
echo "</tr></table><p> </p>";
if (!$sflog) {
echo '<p>' . spa_text('There are no Error Log Entries') . '</p>';
} else {
echo "<table class='wp-list-table widefat'>";
foreach ($sflog as $log) {
echo '<tr>';
echo "<td class='sferror " . $log['error_cat'] . "'>" . sp_date('d', $log['error_date']) . ' ' . sp_date('t', $log['error_date']) . ' | ' . $log['error_cat'] . ' | ' . $log['error_count'] . ' | ' . $log['error_type'] . '<hr />';
echo $log['error_text'] . '</td>';
echo '</tr>';
}
echo '</table>';
}
spa_paint_close_fieldset();
do_action('sph_toolbox_error_panel');
spa_paint_close_container();
$ahahURL = SFHOMEURL . 'index.php?sp_ahah=toolbox-loader&sfnonce=' . wp_create_nonce('forum-ahah') . '&saveform=sfclearlog';
?>
<form action="<?php
echo $ahahURL;
?>
" method="post" id="sfclearlog" name="sfclearlog">
<?php
echo sp_create_nonce('forum-adminform_clearlog');
?>
<div class="sfform-submit-bar">
<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php
spa_etext('Empty Error Log');
?>
" />
</div>
</form>
<?php
spa_paint_close_tab();
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:58,代码来源:spa-toolbox-errorlog-form.php
示例5: spa_toolbox_environment_form
function spa_toolbox_environment_form()
{
#== ENVIRONMENT INFO Tab ==========================================================
global $wp_version, $wpdb;
include_once ABSPATH . 'wp-admin/includes/plugin.php';
$theme = wp_get_theme();
$wp_plugins = get_plugins();
$sp_plugins = sp_get_plugins();
spa_paint_open_tab(spa_text('Toolbox') . ' - ' . spa_text('Environment'), true);
spa_paint_open_fieldset(spa_text('Environment'), false);
echo '<div id="sp-environment-data">';
echo '<table class=:widefat">';
spa_env_open(spa_text('Simple:Press'));
spa_env_info(spa_text('Version'), SPVERSION);
spa_env_info(spa_text('Build'), SPBUILD);
spa_env_info(spa_text('Release'), SPRELEASE);
spa_env_close();
spa_env_open(spa_text('WordPress'));
spa_env_info(spa_text('Version'), $wp_version);
spa_env_info(spa_text('Language'), get_bloginfo('language'));
spa_env_info(spa_text('Character Set'), get_bloginfo('charset'));
spa_env_info(spa_text('Theme'), $theme->get('Name'));
spa_env_close();
spa_env_open(spa_text('PHP'));
spa_env_info(spa_text('Version'), phpversion());
spa_env_info(spa_text('Memory'), ini_get('memory_limit'));
spa_env_info(spa_text('Max Upload'), ini_get('upload_max_filesize'));
spa_env_info(spa_text('Timeout'), ini_get('user_ini.cache_ttl'));
spa_env_close();
spa_env_open(spa_text('MySQL'));
spa_env_info(spa_text('Version'), $wpdb->db_version());
spa_env_info(spa_text('Prefix'), $wpdb->prefix);
spa_env_close();
spa_env_open(spa_text('Server'));
spa_env_info(spa_text('Version'), $_SERVER['SERVER_SOFTWARE']);
spa_env_close();
spa_env_open(spa_text('WP Plugins'));
foreach (array_keys($wp_plugins) as $key) {
if (is_plugin_active($key)) {
$plugin = $wp_plugins[$key];
spa_env_list($plugin['Name'], $plugin['Version']);
}
}
spa_env_close();
spa_env_open(spa_text('SP Plugins'));
foreach ((array) $sp_plugins as $plugin_file => $plugin_data) {
if (sp_is_plugin_active($plugin_file)) {
spa_env_list($plugin_data['Name'], $plugin_data['Version']);
}
}
spa_env_close();
echo '</table>';
echo '</div>';
spa_paint_close_fieldset();
do_action('sph_toolbox_environment_panel');
spa_paint_close_container();
spa_paint_close_tab();
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:58,代码来源:spa-toolbox-environment-form.php
示例6: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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
示例7: 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&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
示例8: 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
示例9: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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
示例10: 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
示例11: 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
示例12: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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:') . ' <strong>' . sp_get_option('sfversion') . '</strong>';
$build = spa_text('Build: ') . ' <strong>' . sp_get_option('sfbuild') . '</strong>';
echo $version . ' ' . $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
示例13: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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
示例14: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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
示例15: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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
示例16: 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
示例17: 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&sfnonce=' . wp_create_nonce('forum-ahah') . '&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
示例18: spa_themes_css_form
function spa_themes_css_form()
{
$css = '';
$id = 0;
# get current theme
$curTheme = sp_get_option('sp_current_theme');
$rec = sp_get_sfmeta('css', $curTheme['theme']);
if ($rec) {
$css = $rec[0]['meta_value'];
$id = $rec[0]['meta_id'];
}
?>
<script type="text/javascript">
jQuery(document).ready(function() {
spjAjaxForm('speditcss', '');
});
</script>
<?php
$ahahURL = SFHOMEURL . 'index.php?sp_ahah=themes-loader&sfnonce=' . wp_create_nonce('forum-ahah') . '&saveform=css';
?>
<form action="<?php
echo $ahahURL;
?>
" method="post" id="speditcss" name="speditcss">
<?php
echo sp_create_nonce('forum-adminform_css-editor');
spa_paint_options_init();
spa_paint_open_tab(spa_text('CSS Editor') . ' - ' . spa_text('Custom Simple:Press Theme CSS'), true);
spa_paint_open_panel();
spa_paint_open_fieldset(spa_text('CSS Editor'), true, 'css-editor');
echo '<div>';
echo '<textarea rows="25" name="spnewcontent" id="spnewcontent" tabindex="1">' . $css . '</textarea>';
echo '<input type="hidden" name="metaId" value="' . $id . '" />';
echo '</div>';
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('Update CSS');
?>
" />
</div>
<?php
spa_paint_close_tab();
echo '</form>';
}
开发者ID:ashanrupasinghe,项目名称:govforuminstalledlocal,代码行数:48,代码来源:spa-themes-css-form.php
示例19: sp_featured_admin_options_form
function sp_featured_admin_options_form()
{
$meta = sp_get_sfmeta('featured', 'topics');
$topics = implode(',', $meta[0]['meta_value']);
$meta = sp_get_sfmeta('featured', 'posts');
$posts = implode(',', $meta[0]['meta_value']);
spa_paint_options_init();
spa_paint_open_tab(__('Featured Topics and Posts Plugin', 'sp-featured'), true);
spa_paint_open_panel();
spa_paint_open_fieldset(__('Featured Topics and Posts Options', 'sp-featured'), true, 'featured-lists');
spa_paint_input(__('List of featured topic IDs', 'sp-featured'), 'topic_list', sp_filter_title_display($topics));
spa_paint_input(__('List of featured post IDs', 'sp-featured'), 'post_list', sp_filter_title_display($posts));
spa_paint_close_fieldset();
spa_paint_close_panel();
spa_paint_close_container();
}
开发者ID:Bakerpedia,项目名称:Developement_WPengine,代码行数:16,代码来源:sp-featured-admin-options.php
示例20: spa_forums_gl |
请发表评论