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


PHP spa_etext函数代码示例

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


在下文中一共展示了spa_etext函数的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_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>&nbsp;</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&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;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

示例4: 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

示例5: spa_load_admin_scripts

function spa_load_admin_scripts()
{
    global $spAPage, $spIsForumAdmin, $spStatus, $current_screen, $spMobile, $spDevice;
    if (!$spIsForumAdmin) {
        return;
    }
    $spAPage = spa_extract_admin_page();
    if ($spStatus == 'ok') {
        if ($spAPage != 'notice') {
            do_action('sph_scripts_admin_start');
            $script = defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG ? SFAJSCRIPT . 'ajaxupload/ajaxupload-dev.js' : SFAJSCRIPT . 'ajaxupload/ajaxupload.js';
            wp_enqueue_script('sfajaxupload', $script, array('jquery'), false, false);
            $script = defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG ? SFAJSCRIPT . 'nested-sortable/jquery.ui.nested.dev.js' : SFAJSCRIPT . 'nested-sortable/jquery.ui.nested.js';
            wp_enqueue_script('sfanestedsortable', $script, array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-sortable'), false, false);
            # This script cannot be compressed
            wp_enqueue_script('jquery-tablednd', SFAJSCRIPT . 'jquery.tablednd.js', array('jquery', 'jquery-ui-core', 'jquery-ui-widget'), false, false);
        }
        $script = defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG ? SFAJSCRIPT . 'spa-admin-dev.js' : SFAJSCRIPT . 'spa-admin.js';
        wp_enqueue_script('sfadmin', $script, array('jquery', 'jquery-form', 'jquery-ui-accordion', 'jquery-ui-sortable', 'jquery-ui-tooltip'), false, false);
        $script = defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG ? SFCJSCRIPT . 'sp-common-dev.js' : SFCJSCRIPT . 'sp-common.js';
        wp_enqueue_script('spcommon', $script, array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-dialog', 'jquery-ui-progressbar'), false, false);
        wp_enqueue_script('jquery-touch-punch', false, array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse'), false, false);
        do_action('sph_scripts_admin_end');
        # Add help text to WP admin bar help 'slider'
        get_current_screen()->add_help_tab(array('id' => 'overview', 'title' => 'overview', 'callback' => 'spa_add_slider_help'));
    } else {
        # Install and Upgrade
        $script = defined('SP_SCRIPTS_DEBUG') && SP_SCRIPTS_DEBUG ? SF_PLUGIN_URL . '/sp-startup/install/resources/jscript/sp-install-dev.js' : SF_PLUGIN_URL . '/sp-startup/install/resources/jscript/sp-install.js';
        wp_enqueue_script('sfjs', $script, array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-progressbar'), false, false);
    }
    ?>
	<script type='text/javascript'>
		/* <![CDATA[ */
		var sp_platform_vars = {
			"focus":"admin",
			"mobile":"<?php 
    echo $spMobile;
    ?>
",
			"device":"<?php 
    echo $spDevice;
    ?>
",
			"tooltips":"1",
			"mobiletheme":"0"
		};
		var pWait = "<img src='<?php 
    echo SFCOMMONIMAGES;
    ?>
working.gif' /> <?php 
    spa_etext('Please Wait...');
    ?>
";
		/* ]]> */
	</script>
<?php 
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:57,代码来源:spa-admin-framework.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&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

示例7: spa_plugins_user_form

function spa_plugins_user_form($admin, $save, $form, $reload)
{
    global $spAPage;
    if ($form) {
        ?>
        <script type="text/javascript">
            jQuery(document).ready(function() {
            	jQuery('#sfpluginsuser').ajaxForm({
            		target: '#sfmsgspot',
            		success: function() {
            			<?php 
        if (!empty($reload)) {
            echo "jQuery('#" . $reload . "').click();";
        }
        ?>
            			jQuery('#sfmsgspot').fadeIn();
            			jQuery('#sfmsgspot').fadeOut(6000);
            		}
            	});

    		<?php 
        if ((defined('SP_USE_PRETTY_CBOX_ADMIN') && SP_USE_PRETTY_CBOX_ADMIN == true || !defined('SP_USE_PRETTY_CBOX_ADMIN')) && $spAPage != 'plugins') {
            # Checkboxes/radio buttons
            ?>
    			jQuery("input[type=checkbox],input[type=radio]").prettyCheckboxes();
    		<?php 
        }
        ?>

            });
        </script>
<?php 
        spa_paint_options_init();
        $ahahURL = SFHOMEURL . 'index.php?sp_ahah=plugins-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . "&amp;saveform=plugin&amp;func={$save}";
        echo '<form action="' . $ahahURL . '" method="post" id="sfpluginsuser" name="sfpluginsuser">';
        echo sp_create_nonce('forum-adminform_userplugin');
    }
    call_user_func($admin);
    if ($form) {
        ?>
    	<div class="sfform-submit-bar">
    	   <input type="submit" class="button-primary" value="<?php 
        spa_etext('Update');
        ?>
" />
    	</div>
        </form>

        <?php 
        spa_paint_close_tab();
        ?>

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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;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

示例15: spa_forums_global_perm_form

function spa_forums_global_perm_form()
{
    ?>
<script type="text/javascript">
    jQuery(document).ready(function() {
    	spjAjaxForm('sfnewglobalpermission', 'sfreloadfb');
    });
</script>
<?php 
    spa_paint_options_init();
    $ahahURL = SFHOMEURL . 'index.php?sp_ahah=forums-loader&amp;sfnonce=' . wp_create_nonce('forum-ahah') . '&amp;saveform=globalperm';
    ?>
	<form action="<?php 
    echo $ahahURL;
    ?>
" method="post" id="sfnewglobalpermission" name="sfnewglobalpermission">
<?php 
    echo sp_create_nonce('forum-adminform_globalpermissionnew');
    spa_paint_open_tab(spa_text('Forums') . ' - ' . spa_text('Add Global Permission Set'), true);
    spa_paint_open_panel();
    spa_paint_open_fieldset(spa_text('Add a User Group Permission Set to All Forums'), 'true', 'add-a-user-group-permission-set-to-all-forums');
    spa_paint_select_start(spa_text('Select usergroup'), 'usergroup_id', '');
    spa_display_usergroup_select(false, 0, false);
    spa_paint_select_end();
    spa_paint_select_start(spa_text('Select permission set'), 'role', '');
    spa_display_permission_select(false, 0, false);
    spa_paint_select_end();
    echo '<p>' . spa_text('Caution:  Any current permission sets for the selected usergroup for ANY forum may be overwritten') . '</p>';
    spa_paint_close_fieldset();
    spa_paint_close_panel();
    do_action('sph_forums_global_perm_panel');
    spa_paint_close_container();
    ?>
		<div class="sfform-submit-bar">
		<input type="submit" class="button-primary" id="saveit" name="saveit" value="<?php 
    spa_etext('Add Global Permission');
    ?>
" />
		</div>
	</form>
	<?php 
    spa_paint_close_tab();
    ?>

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


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