• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP submit_button函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: et_shortcodes_options_render_page

function et_shortcodes_options_render_page()
{
    ?>
	<div class="wrap">
		<?php 
    screen_icon();
    ?>
		<h2><?php 
    esc_html_e('ET Shortcodes Plugin Options');
    ?>
</h2>
		<?php 
    settings_errors();
    ?>

		<form method="post" action="options.php">
			<?php 
    settings_fields('et_shortcodes_options');
    do_settings_sections('et_shortcodes_plugin_options');
    submit_button();
    ?>
		</form>
	</div>
	<?php 
}
开发者ID:welearncodes,项目名称:traktern,代码行数:25,代码来源:et-shortcodes.php


示例17: bulk_actions

 /**
  * Display the bulk actions dropdown.
  *
  * @since 3.1.0
  * @access public
  */
 function bulk_actions()
 {
     $screen = get_current_screen();
     if (is_null($this->_actions)) {
         $no_new_actions = $this->_actions = $this->get_bulk_actions();
         // This filter can currently only be used to remove actions.
         //$this->_actions = apply_filters( 'bulk_actions-cred' . $screen->id, $this->_actions );
         $this->_actions = array_intersect_assoc($this->_actions, $no_new_actions);
         $two = '';
     } else {
         $two = '2';
     }
     if (empty($this->_actions)) {
         return;
     }
     echo "<select name='action{$two}'>\n";
     echo "<option value='-1' selected='selected'>" . __('Bulk Actions', 'wp-cred') . "</option>\n";
     foreach ($this->_actions as $name => $title) {
         $class = 'edit' == $name ? ' class="hide-if-no-js"' : '';
         echo "\t<option value='{$name}'{$class}>{$title}</option>\n";
     }
     echo "</select>\n";
     submit_button(__('Apply', 'wp-cred'), 'button-secondary action', false, false, array('id' => "doaction{$two}"));
     echo "\n";
 }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:31,代码来源:Custom_Fields_List_Table.php


示例18: catMCE_options

function catMCE_options()
{
    if (!current_user_can('manage_options')) {
        wp_die(__('You do not have sufficient permissions to access this page.'));
    }
    ?>
	<div class="wrap">
	<h2>CategoryTinyMCE SEO Settings</h2>
	<div id="donate_container">
     The latest fully maintained version (Categorytinymce 4.x) which includes the bottom listing description box can be found at http://wp.ypraise.com/. Adding a bottom description for your categories and tags can help you with your user experience and SEO.
    </div>
	
	<p><form method="post" action="options.php">	</p>
	<p>SEO Settings for CategoryTinyMCE:</p>
	
	<?php 
    settings_fields('catMCE_options');
    ?>
<p>Choose SEO:  

<input type="checkbox" name="catMCE_seo" value="1" <?php 
    checked('1', get_option('catMCE_seo'));
    ?>
 />
							</p>

 <?php 
    submit_button();
    echo '</form>';
    echo '</div>';
}
开发者ID:serker72,项目名称:T3S,代码行数:31,代码来源:categorytinymce.php


示例19: create_admin_page

    /**
     * Options page callback
     */
    public function create_admin_page()
    {
        $this->options = get_option('watchtower');
        ?>
		<div class="wrap">
			<style>
				.watchtower_token_field {
					background: #ffea96 !important;
				}

				.watchtower_token_area, .watchtower_token_field {
					font-size: 20px;
					padding: 10px;
				}

				.watchtower_token_area {
					margin: auto;
					float: left;
					padding-left: 0px;
				}
			</style>
			<h2>Watchtower Settings</h2>
			<form method="post" action="options.php">
				<?php 
        settings_fields('watchtower');
        do_settings_sections('watchtower-settings');
        submit_button('Update settings');
        ?>
			</form>
		</div>
		<?php 
    }
开发者ID:c2pdev,项目名称:WatchTower_Client,代码行数:35,代码来源:class-watchtower.php


示例20: create_admin_page

 /**
  * Options page callback
  */
 public function create_admin_page()
 {
     // Set class property
     $this->options = get_option('wirte_here_options');
     ?>
     <div class="wrap">
         <h1>Write Here</h1>
         <p>A simple front end form for WordPress. Write Here will allow you to have registered users to write & manage articles from front end.</p>
         <h3>How to Use?</h3>
             <ol>
                 <li>Create page for writing on front end. Add <b>[write-here]</b></li>
                 <li>Create page for dashboard. Add <b>[write-here-dashboard]</b></li>
                 <li>Create page for editing. Add <b>[write-here-edit]</b></li>
                 <li>Set your edit page below.</li>
             </ol>    
         
         <form method="post" action="options.php">
         <?php 
     // This prints out all hidden setting fields
     settings_fields('my_option_group');
     do_settings_sections('write-here-setting');
     submit_button();
     ?>
         </form>
     </div>
     <?php 
 }
开发者ID:seanyainkiranina,项目名称:Write-Here,代码行数:30,代码来源:write-here-admin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP submit_cells函数代码示例发布时间:2022-05-23
下一篇:
PHP submit_add_or_update_center函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap