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


PHP submit_button函数代码示例

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


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

示例1: ct_apex_options_content

function ct_apex_options_content(){

	$customizer_url = add_query_arg(
		array(
			'url'    => site_url(),
			'return' => admin_url('themes.php?page=apex-options')
		),
		admin_url('customize.php')
	);

	?>
	<div id="apex-dashboard-wrap" class="wrap">
		<h2><?php _e('Apex Dashboard', 'apex'); ?></h2>
		<?php hybrid_do_atomic( 'theme_options_before' ); ?>
		<div class="content content-customization">
			<h3><?php _e('Customization', 'apex'); ?></h3>
			<p><?php _e('Click the "Customize" link in your menu, or use the button below to get started customizing Apex', 'apex'); ?>.</p>
			<p>
				<a class="button-primary" href="<?php echo esc_url( $customizer_url ); ?>"><?php _e('Use Customizer', 'apex') ?></a>
			</p>
		</div>
		<div class="content content-support">
			<h3><?php _e('Support', 'apex'); ?></h3>
			<p><?php _e("You can find the knowledgebase, changelog, support forum, and more in the Apex Support Center", "apex"); ?>.</p>
			<p>
				<a target="_blank" class="button-primary" href="https://www.competethemes.com/documentation/apex-support-center/"><?php _e('Visit Support Center', 'apex'); ?></a>
			</p>
		</div>
		<div class="content content-premium-upgrade">
			<h3><?php _e('Get More Features & Flexibility', 'apex'); ?></h3>
			<p><?php _e('Download the Apex Pro plugin and unlock custom colors, new layouts, a flexible header image, and more', 'apex'); ?>...</p>
			<p>
				<a target="_blank" class="button-primary" href="https://www.competethemes.com/apex-pro/"><?php _e('See Full Feature List', 'apex'); ?></a>
			</p>
		</div>
		<div class="content content-resources">
			<h3><?php _e('WordPress Resources', 'apex'); ?></h3>
			<p><?php _e('Save time and money searching for WordPress products by following our recommendations', 'apex'); ?>.</p>
			<p>
				<a target="_blank" class="button-primary" href="https://www.competethemes.com/wordpress-resources/"><?php _e('View Resources', 'apex'); ?></a>
			</p>
		</div>
		<div class="content content-delete-settings">
			<h3><?php _e('Reset Customizer Settings', 'apex'); ?></h3>
			<p>
				<?php
				printf( __( '<strong>Warning:</strong> Clicking this button will erase your current settings in the <a href="%s">Customizer</a>', 'apex' ), esc_url( $customizer_url ) );
				?>
			</p>
			<form method="post">
				<input type="hidden" name="apex_reset_customizer" value="apex_reset_customizer_settings" />
				<p>
					<?php wp_nonce_field( 'apex_reset_customizer_nonce', 'apex_reset_customizer_nonce' ); ?>
					<?php submit_button( __( 'Reset Customizer Settings', 'apex' ), 'delete', 'delete', false ); ?>
				</p>
			</form>
		</div>
		<?php hybrid_do_atomic( 'theme_options_after' ); ?>
	</div>
<?php } ?>
开发者ID:jackpower,项目名称:objectivemoney-angular,代码行数:60,代码来源:theme-options.php

示例2: gmb_system_info_callback

/**
 * Display the system info tab
 *
 * @since       1.0
 * @return      void
 */
function gmb_system_info_callback()
{
    if (!current_user_can('install_plugins')) {
        return;
    }
    ?>

	<textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="gmb-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php 
    echo gmb_tools_sysinfo_get();
    ?>
</textarea>
	<p class="submit">
		<input type="hidden" name="gmb_action" value="download_sysinfo" />
		<?php 
    submit_button(__('Download System Info File', 'google-maps-builder'), 'secondary', 'gmb-download-sysinfo', false);
    ?>

	</p>
	<style>
		.gmb_forms_page_gmb-settings .gmb-submit-wrap {
			display: none; /* Hide Save settings button on System Info Tab (not needed) */
		}
	</style>
	<?php 
}
开发者ID:Makenrro,项目名称:repos,代码行数:31,代码来源:system-info.php

示例3: display_page

function display_page()
{
    ?>

        <div class="wrap">
	        <h2>Page d'administration type</h2>

	        <?php 
    settings_errors();
    // affichage des erreurs, peut recevoir des valeurs
    ?>

	        <form method="post" action="options.php" enctype="multipart/form-data">

	            <?php 
    // nécessaire au fonctionnement du form avec pour argument l'ID du group créer avec register_settings()
    settings_fields('admin-type-settings');
    // génére les champs avec pour argument ID de la page référente (slug)
    do_settings_sections('admin-type');
    // l'input submit
    submit_button();
    ?>
 

	        </form>
        </div>

    <?php 
}
开发者ID:JulienIsGreat,项目名称:Preform,代码行数:29,代码来源:admin-type.php

示例4: settings_cb

    public function settings_cb()
    {
        ?>
<div class="wrap">
	<form method="post" action="<?php 
        echo admin_url('options.php');
        ?>
">
		<h2><?php 
        _e('BuddyPress Docs Settings', 'bp-docs');
        ?>
</h2>
		<?php 
        settings_fields('bp-docs-settings');
        ?>
		<?php 
        do_settings_sections('bp-docs-settings');
        ?>
		<?php 
        submit_button();
        ?>
	</form>
</div>
		<?php 
    }
开发者ID:paulmedwal,项目名称:edxforumspublic,代码行数:25,代码来源:admin.php

示例5: settings_page

    /**
     * Settings page
     */
    function settings_page()
    {
        ?>

		<div class="wrap">

			<div class="icon32" id="icon-themes"><br></div>

			<h2><?php 
        _e('Multiple content blocks', 'mcb');
        ?>
</h2>

			<form action="options.php" method="post">
				<?php 
        settings_fields('mcb-settings');
        do_settings_sections('mcb-settings');
        submit_button();
        ?>
			</form>

		</div>

		<?php 
    }
开发者ID:jdpedrie,项目名称:multiple-content-blocks,代码行数:28,代码来源:class-mcb-settings.php

示例6: gf_disable_autofill_settings_page

function gf_disable_autofill_settings_page()
{
    ?>
<div class="wrap">
<h2>Gravity Forms Disable Autofill Add-On</h2>

<form method="post" action="options.php">
    <?php 
    settings_fields('disable-gf-autofill-settings-group');
    ?>
    <?php 
    do_settings_sections('disable-gf-autofill-settings-group');
    ?>
    <h3>Coming soon</h3>
    <table class="form-table">
        <tr valign="top">
        <th scope="row">Disable Autofill on all forms</th>
        <td><input type="checkbox" name="gfda_disable_all_forms" value="<?php 
    echo esc_attr(get_option('gfda_disable_all_forms'));
    ?>
" /></td>
        </tr>
    </table>

    <?php 
    submit_button();
    ?>

</form>
</div>
<?php 
}
开发者ID:amgxyz,项目名称:Gravity-Forms-Disable-Autofill-Add-On,代码行数:32,代码来源:options.php

示例7: pado_options

function pado_options()
{
    // Check that the user is able to view this page.
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.', 'pressapps'));
    }
    ?>

	<div class="wrap">
		<div id="icon-themes" class="icon32"></div>
		<h2><?php 
    _e('Document Settings', 'pressapps');
    ?>
</h2>

		<form action="options.php" method="post">
			<?php 
    settings_fields('pado_setup_options');
    ?>
			<?php 
    do_settings_sections('pado_setup_options');
    ?>
			<?php 
    submit_button();
    ?>
		</form>

	</div>
<?php 
}
开发者ID:rinodung,项目名称:live-theme,代码行数:30,代码来源:page.php

示例8: badgeos_obi_issuer_settings

    function badgeos_obi_issuer_settings()
    {
        if (!current_user_can(badgeos_get_manager_capability())) {
            wp_die("You do not have sufficient permissions to access this page.");
        }
        ?>
		<div class="wrap">
        	<?php 
        settings_errors();
        ?>
            <?php 
        $this->json_api_controller_status();
        ?>
            <h2>Open Badges Issuer Add-on Settings</h2>
            <form method="post" action="options.php"> 
                <?php 
        @settings_fields('badgeos_obi_issuer_settings');
        ?>
                <?php 
        @do_settings_fields('badgeos_obi_issuer_settings');
        ?>
        
                <?php 
        do_settings_sections('badgeos_obi_issuer_template');
        ?>
        
                <?php 
        @submit_button();
        ?>
            </form>
        </div>
        <?php 
    }
开发者ID:geoffroigaron,项目名称:open-badges-issuer-addon,代码行数:33,代码来源:settings.php

示例9: create_admin_page

    public function create_admin_page()
    {
        // Set class property
        $this->options = get_option('cptbc_settings');
        if (!$this->options) {
            cptbc_set_options();
            $this->options = get_option('cptbc_settings');
        }
        ?>
		<div class="wrap">
		<h2>CPT Bootstrap Carousel <?php 
        _e('Settings', 'cpt-bootstrap-carousel');
        ?>
</h2>
		<p><?php 
        printf(__('You can set the default behaviour of your carousels here. Most of these settings can be overridden by using %s shortcode attributes %s.', 'cpt-bootstrap-carousel'), '<a href="http://wordpress.org/plugins/cpt-bootstrap-carousel/" target="_blank">', '</a>');
        ?>
</p>
					 
				<form method="post" action="options.php">
				<?php 
        settings_fields('cptbc_settings');
        do_settings_sections('cpt-bootstrap-carousel');
        submit_button();
        ?>
				</form>
		</div>
		<?php 
    }
开发者ID:phongvan212,项目名称:ttctxh,代码行数:29,代码来源:cptbc-settings.php

示例10: create_page

    public function create_page()
    {
        if (!current_user_can('manage_options')) {
            wp_die(esc_html__('You do not have sufficient permissions to access this page.'));
        }
        ?>
		<div class="wrap">
			<h1><?php 
        echo esc_html($this->name);
        ?>
</h1>
			<div id="hello_kushimoto" class="wrap">

				<form method="post" action="options.php">
					<?php 
        settings_fields($this->option_group);
        do_settings_sections($this->page_slug);
        submit_button();
        ?>

				</form>
			</div>
		</div>
		<?php 
    }
开发者ID:torounit,项目名称:hello-kushimoto,代码行数:25,代码来源:class-hello-kushimoto-option-page-view.php

示例11: am_options_page

function am_options_page($active_tab = '')
{
    ?>

	<div class="wrap">
		<h2><?php 
    _e('Theme Options', 'AM_Sandbox');
    ?>
</h2>

		<?php 
    settings_errors();
    ?>

		<!-- TODO: NAV-TABS ($active_tab) -->

		<form method="post" action="options.php">
			
			<?php 
    settings_fields('AM_Sandbox_options');
    am_options_fields();
    submit_button();
    ?>

		</form>

	</div>

<?php 
}
开发者ID:Alxmerino,项目名称:am-sandbox-theme,代码行数:30,代码来源:am-admin-page-options.php

示例12: show_submit_button

 /**
  * displays the html for the submit button
  */
 protected function show_submit_button()
 {
     wp_nonce_field('sql_export', 'insr_nonce');
     $html = '	<input type="hidden" name="action" value="sql_export" />';
     echo $html;
     submit_button(esc_html__('Create SQL File', 'search-and-replace'));
 }
开发者ID:s-hinse,项目名称:search-and-replace,代码行数:10,代码来源:DbBackupAdmin.php

示例13: get_bulk_actions

 function get_bulk_actions()
 {
     $actions = array();
     $this->epin_dropdown();
     submit_button(__('Filter', 'unilevel-mlm-pro'), 'secondary', false, false, array('id' => 'post-query-submit'));
     return $actions;
 }
开发者ID:sp1ke77,项目名称:unilevel-mlm-pro,代码行数:7,代码来源:epin-reports-list-table.php

示例14: create_settings_page

    public function create_settings_page()
    {
        ?>
	<div class="wrap">
	    <?php 
        screen_icon();
        ?>
	    <h2>Mixpanel Settings</h2>		
	    <?php 
        settings_errors();
        ?>
	
	    <form method="post" action="options.php">
	    <?php 
        // This prints out all hidden setting fields
        settings_fields('mixpanel_settings_group');
        do_settings_sections('mixpanel_options');
        ?>
	        <?php 
        submit_button();
        ?>
	    </form>
	</div>
<?php 
    }
开发者ID:denis-chmel,项目名称:wordpress,代码行数:25,代码来源:mixpanel.php

示例15: create_admin_page

    /**
     * Options page callback
     */
    public function create_admin_page()
    {
        // Set class property
        $this->options = get_option('alpual_responsive_child_options');
        ?>
        <div class="wrap">
            <h2>My Settings</h2>           
            	<h3>Current Piano Key Image</h3>
            	<img class="piano_key" src="<?php 
        echo esc_url($this->options['piano_key']);
        ?>
" height="45" width="960"/>
                <h3 class="new_piano_key_header" style="display:none">New Piano Key Image</h3>
                <img class="piano_key_preview" src="" style="display:none"/>
            	<span class="piano_key_update_text" style="background-color:#FC9;"></span>
            	<form method="post" action="options.php">
            	<?php 
        // This prints out all hidden setting fields
        settings_fields('alpual_responsive_child_option_group');
        do_settings_sections('alpual_responsive_child_setting_admin');
        submit_button();
        ?>
            	</form>
        </div>
        <?php 
    }
开发者ID:alpual,项目名称:wrightdesigns,代码行数:29,代码来源:piano_key_options.php


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