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


PHP get_admin_page_title函数代码示例

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


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

示例1: menu_html

    public function menu_html()
    {
        echo '<h1>' . get_admin_page_title() . '</h1>';
        ?>

        <form method="post" action="options.php">
            <?php 
        settings_fields('thfo_newsletter_settings');
        ?>
            <?php 
        do_settings_sections('thfo_newsletter_settings');
        ?>
            <?php 
        submit_button(__('Save'));
        ?>


        </form>

        <form method="post" action="">
            <input type="hidden" name="send_newsletter" value="1"/>
            <?php 
        submit_button(__('Send', 'wp-post-updated'));
        ?>
        </form>

        <?php 
    }
开发者ID:sebastienserre,项目名称:WP-Post-Updated,代码行数:28,代码来源:newsletter.php

示例2: menu_html

    public function menu_html()
    {
        global $wpdb;
        echo '<h1>' . get_admin_page_title() . '</h1>';
        ?>
        <form method="post" action="">
        <?php 
        settings_fields('poll_settings');
        // Section comprenant les éléments du formulaire
        do_settings_sections('poll_settings');
        // Récupération des propositions de réponse en BDD
        $elements = $wpdb->get_results('SELECT id, label FROM ' . $wpdb->prefix . 'poll_options ORDER BY label;');
        if ($elements) {
            foreach ($elements as $element) {
                echo '<input type="text" name="' . $element->id . '" value="' . $element->label . '" /><br />';
            }
        }
        submit_button();
        // Bouton d'envoi du formulaire
        ?>
        </form>

        <form method="post" action="">
		    <input type="hidden" name="poll_reset" value="1"/>
		    <?php 
        submit_button(__('Réinitialiser les options et les résultats'));
        ?>
		</form>
	    <?php 
    }
开发者ID:jvinceno,项目名称:tp-openclassroom,代码行数:30,代码来源:poll.php

示例3: menu_html

    public function menu_html()
    {
        echo '<h1>' . get_admin_page_title() . '</h1>';
        ?>
            <form method="post" action="options.php">
            <?php 
        settings_fields('wpdoli_settings');
        ?>
            <?php 
        do_settings_sections('wpdoli_settings');
        ?>
            <?php 
        submit_button();
        ?>
            </form>	
            <form method="post" action="">
            <input type="hidden" name="wpdoli_settings_test_webservice" value="1"/>
            <?php 
        if ($this->testlabel) {
            ?>
            <span>Test de dolibarr: <?php 
            echo $this->testlabel;
            ?>
</span>
            <?php 
        }
        ?>
            <?php 
        submit_button('Testez le webservice');
        ?>
            </form>
            <?php 
    }
开发者ID:aresvouk,项目名称:wp-doli,代码行数:33,代码来源:wp-doli-admin.php

示例4: init

    public function init()
    {
        ?>
        <h1><?php 
        echo get_admin_page_title();
        ?>
</h1>
        
        <?php 
        $price = filter_input(INPUT_GET, 'price');
        if (isset($price) && $price == 'invalid') {
            echo '<div id="message" class="notice notice-error is-dismissible"><p>Invalid file extension. Please use *.csv file.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
        }
        if (isset($price) && $price == 'updated') {
            echo '<div id="message" class="updated notice notice-success is-dismissible"><p>Prices updated successfully</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
        }
        ?>

        <form method="post" action="<?php 
        echo admin_url('admin.php?page=' . $this->page . '&action=update_prices');
        ?>
" enctype="multipart/form-data">
            <p>
                <input type="file" name="update_prices">
            </p>
            <p>
                <input type="submit" value="Update Prices" class="button button-primary">
            </p>
        </form>

        <p><em><strong>NOTE:</strong> Please upload the file with *.csv extension and data should be separated by comma (,)</em></p>

        <?php 
    }
开发者ID:hina2329,项目名称:african-tusk-quote,代码行数:34,代码来源:csv_prices_update.php

示例5: init

    public function init()
    {
        ?>
		<h1><?php 
        echo get_admin_page_title();
        ?>
</h1>
		<?php 
        $import = filter_input(INPUT_GET, 'import');
        if (isset($import) && $import == 'invalid') {
            echo '<div id="message" class="notice notice-error is-dismissible"><p>Invalid file extension. Please use *.csv file.</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
        }
        if (isset($import) && $import == 'success') {
            echo '<div id="message" class="updated notice notice-success is-dismissible"><p>file imported successfully</p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>';
        }
        ?>
		<form method="post"
		      action="<?php 
        echo admin_url('admin.php?page=' . $this->page . '&action=import_combos');
        ?>
"
		      enctype="multipart/form-data">
			<p>
				<input type="file" name="import_combos">
			</p>
			<p>
				<input type="submit" value="Import Fabrics" class="button button-primary">
			</p>
		</form>
		<?php 
    }
开发者ID:hina2329,项目名称:african-tusk-quote,代码行数:31,代码来源:csv_fabric_price_combos_import.php

示例6: my_plugin_options

function my_plugin_options()
{
    echo '<h1>' . get_admin_page_title() . '</h1>';
    ?>


<form method="post" action="options.php">

<?php 
    wp_nonce_field('update-options');
    ?>
<p><?php 
    _e('Number of characters displayed before the break ( " read more " ) :', 'plugincomments_textdomain');
    ?>
</p>
<input type="text" name="option1" id="option1" value="<?php 
    echo get_option('option1');
    ?>
">

<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="option1" />
<br/>
<input type="submit" value="<?php 
    _e('Save Changes', 'plugincomments_textdomain');
    ?>
" />
</form>



<?php 
}
开发者ID:VGachet,项目名称:plugincomments,代码行数:33,代码来源:plugincomments.php

示例7: viktorr1975_options_page

/**
 * Build the options page
 */
function viktorr1975_options_page()
{
    ?>
      <div class="wrap">         
          <h2> <?php 
    echo esc_html(get_admin_page_title());
    ?>
</h2>           
          <div id="poststuff">
               <div id="post-body">
                    <div id="post-body-content">
                         <form method="POST" action="options.php">
                              <?php 
    settings_fields('viktorr1975_options');
    // скрытые защитные поля
    do_settings_sections('viktorr1975_options');
    //выводим секцию с опциями
    submit_button();
    ?>
                         </form>
                    </div> <!-- end post-body-content -->
               </div> <!-- end post-body -->
          </div> <!-- end poststuff -->
     </div>
<?php 
}
开发者ID:viktorr1975,项目名称:WP-cl1,代码行数:29,代码来源:viktorr1975-options.php

示例8: remove_stop_words_admin

function remove_stop_words_admin()
{
    ?>
	<div class="wrap">
	<?php 
    screen_icon();
    ?>
	<h2><?php 
    echo esc_html(get_admin_page_title());
    ?>
</h2>
	<p>You can use a predefined list of stop words from <a href="http://kaneandre.ws/wp-content/uploads/stop-words.txt">here</a>.</p>
	<form method="post" action="options.php">
        <?php 
    settings_fields('remove_stop_words');
    ?>
        <table class="form-table">
            <tr valign="top">
                <th scope="row">Word list (comma separated)</th>
                <td><textarea rows="4" cols="50" name="remove_stop_words"/><?php 
    echo sanitize_text_field(get_option('remove_stop_words'));
    ?>
 </textarea> </td>
            </tr>
        </table>
        <?php 
    submit_button();
    ?>
    </form>
</div>
<?php 
}
开发者ID:neka,项目名称:Remove-Stop-Words,代码行数:32,代码来源:removestopwords.php

示例9: admin_page_display

    /**
     * Admin page markup. Mostly handled by CMB2
     * @since  0.1.0
     */
    public function admin_page_display()
    {
        ?>
		<div class="wrap cmb2-options-page <?php 
        echo $this->key;
        ?>
">
			<h2><?php 
        echo esc_html(get_admin_page_title());
        ?>
</h2>
			<?php 
        cmb2_metabox_form($this->metabox_id, $this->key);
        ?>
      <hr />
			<h2><?php 
        echo $this->ads_title;
        ?>
</h2>
			<?php 
        cmb2_metabox_form($this->ads_metabox_id, $this->key);
        ?>
		</div>
		<?php 
    }
开发者ID:interglobalvision,项目名称:8106-tv,代码行数:29,代码来源:theme-options.php

示例10: admin

    /**
     * Callback for displaying the Genesis Readme admin page.
     *
     * Checks if the file contents are readable, and echoes out HTML.
     *
     * @since 1.3.0
     *
     * @uses CHILD_DIR
     */
    public function admin()
    {
        /** Assume we cannot find the file */
        $file = false;
        /** Get the file contents */
        $file = @file_get_contents(CHILD_DIR . '/README.txt');
        /** If we can't find file contents, show a message */
        if (!$file || empty($file)) {
            $file = '<div class="error"><p>' . sprintf(__('The %s file was not found in the child theme, or it was empty.', 'genesis'), '<code>README.txt</code>') . '</p></div>';
        }
        ?>
		<div id="genesis-readme-file" class="wrap">
			<?php 
        screen_icon('edit-pages');
        ?>
			<h2><?php 
        echo esc_html(get_admin_page_title());
        ?>
</h2>
			<?php 
        echo wpautop($file);
        ?>
		</div>
		<?php 
    }
开发者ID:adisonc,项目名称:MaineLearning,代码行数:34,代码来源:readme-menu.php

示例11: getTitle

 /**
  * Human-readable title of the page.
  *
  * @return string
  */
 public function getTitle()
 {
     if (!isset($this->title)) {
         $this->title = html_entity_decode(get_admin_page_title(), ENT_QUOTES);
     }
     return $this->title;
 }
开发者ID:eigentor,项目名称:sbl,代码行数:12,代码来源:adminpage.php

示例12: admin_page_display

    /**
     * Admin page markup. Mostly handled by CMB2
     * @since  0.1.0
     */
    public function admin_page_display()
    {
        ?>
		<div class="wrap cmb2-options-page <?php 
        echo $this->key;
        ?>
">
			<div id="poststuff"> 
	            <div id="post-body" class="metabox-holder columns-<?php 
        echo 1 == get_current_screen()->get_columns() ? '1' : '2';
        ?>
">	 
	                <div id="post-body-content">
						<h2><?php 
        echo esc_html(get_admin_page_title());
        ?>
</h2>
						<?php 
        cmb2_metabox_form($this->metabox_id, $this->key, array('cmb_styles' => false));
        ?>
					</div>
					<div id="postbox-container-1" class="postbox-container">
					    <?php 
        do_meta_boxes('', 'side', null);
        ?>
					</div>
				</div>
			</div>
			
		</div>
		
		<?php 
    }
开发者ID:edgimopeter,项目名称:ActivityCenter,代码行数:37,代码来源:stock_copy_page.php

示例13: menu_html

    public function menu_html()
    {
        echo '<h1>' . get_admin_page_title() . '</h1>';
        ?>
			<form method="post" action="options.php">
				<?php 
        settings_fields('greg_newsletter_settings');
        ?>
				
				<!-- activation de l'affichage de la section -->
				<?php 
        do_settings_sections('greg_newsletter_settings');
        ?>
				
				<!-- bouton submit -->
				<?php 
        submit_button();
        ?>
			</form>
			<form method="post" action="">
				<input type="hidden" name="send_newsletter" value="1"/>
				<?php 
        submit_button('Envoyer la newsletter');
        ?>
			</form>
		<?php 
    }
开发者ID:greg3560,项目名称:wp-plugin,代码行数:27,代码来源:newsletter.php

示例14: admin_header

    /**
     * Generates the header for admin pages
     *
     * @param bool   $form             Whether or not the form start tag should be included.
     * @param string $option           The short name of the option to use for the current page.
     * @param bool   $contains_files   Whether the form should allow for file uploads.
     * @param bool   $option_long_name Group name of the option.
     */
    public function admin_header($form = true, $option = 'wpseo', $contains_files = false, $option_long_name = false)
    {
        if (!$option_long_name) {
            $option_long_name = WPSEO_Options::get_group_name($option);
        }
        ?>
		<div class="wrap wpseo-admin-page page-<?php 
        echo $option;
        ?>
">
		<?php 
        /**
         * Display the updated/error messages
         * Only needed as our settings page is not under options, otherwise it will automatically be included
         * @see settings_errors()
         */
        require_once ABSPATH . 'wp-admin/options-head.php';
        ?>
		<h1 id="wpseo-title"><?php 
        echo esc_html(get_admin_page_title());
        ?>
</h1>
		<div class="wpseo_content_wrapper">
		<div class="wpseo_content_cell" id="wpseo_content_top">
		<?php 
        if ($form === true) {
            $enctype = $contains_files ? ' enctype="multipart/form-data"' : '';
            echo '<form action="' . esc_url(admin_url('options.php')) . '" method="post" id="wpseo-conf"' . $enctype . ' accept-charset="' . esc_attr(get_bloginfo('charset')) . '">';
            settings_fields($option_long_name);
        }
        $this->set_option($option);
    }
开发者ID:healthcommcore,项目名称:osnap,代码行数:40,代码来源:class-yoast-form.php

示例15: admin_settings

 function admin_settings()
 {
     echo '<div class="wrap"><h1>' . get_admin_page_title() . '</h1>';
     $count_methods = array('public' => array('name' => __('Top %s posts', 'wpupostviews'), 'orig' => false), 'orig' => array('name' => __('Real top %s posts', 'wpupostviews'), 'orig' => true));
     foreach ($count_methods as $method) {
         $top_posts = $this->get_top_posts(false, $method['orig']);
         if (!empty($top_posts)) {
             echo '<hr />';
             echo '<h2>' . sprintf($method['name'], $this->options['default_top']) . '</h2>';
             echo '<ol>';
             foreach ($top_posts as $tp) {
                 echo '<li><a href="' . get_edit_post_link($tp->ID) . '"><strong>' . esc_attr($tp->post_title) . '</strong></a> (' . get_post_meta($tp->ID, 'wpupostviews_' . ($method['orig'] ? 'orig_' : '') . 'nbviews', 1) . ')</li>';
             }
             echo '</ol>';
         }
     }
     echo '<hr />';
     echo '<h2>' . __('Settings') . '</h2>';
     echo '<form action="options.php" method="post">';
     settings_fields($this->settings_details['option_id']);
     do_settings_sections($this->options['plugin_id']);
     echo submit_button(__('Save Changes', 'wpupostviews'));
     echo '</form>';
     echo '</div>';
 }
开发者ID:WordPressUtilities,项目名称:wpupostviews,代码行数:25,代码来源:wpupostviews.php


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