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


PHP esc_html_e函数代码示例

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


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

示例1: display

    function display()
    {
        esc_html_e("Click the 'Get Started' button to complete your installation.", 'gravityflow');
        ?>

	<?php 
    }
开发者ID:jakejackson1,项目名称:gravityflow,代码行数:7,代码来源:class-iw-step-welcome.php

示例2: ewww_image_optimizer_webp_migrate_preview

function ewww_image_optimizer_webp_migrate_preview()
{
    ewwwio_debug_message('<b>' . __FUNCTION__ . '()</b>');
    ?>
	<div class="wrap"> 
	<h1><?php 
    esc_html_e('Migrate WebP Images', EWWW_IMAGE_OPTIMIZER_DOMAIN);
    ?>
</h1>
<?php 
    esc_html_e('The migration is split into two parts. First, the plugin needs to scan all folders for webp images. Once it has obtained the list of images to rename, it will proceed with the renaming');
    $button_text = esc_attr__('Start Migration', EWWW_IMAGE_OPTIMIZER_DOMAIN);
    $loading_image = plugins_url('/images/wpspin.gif', __FILE__);
    // create the html for the migration form and status divs
    ?>
		<div id="webp-loading">
		</div>
		<div id="webp-progressbar"></div>
		<div id="webp-counter"></div>
		<div id="webp-status"></div>
			<div id="bulk-forms">
			<form id="webp-start" class="webp-form" method="post" action="">
				<input id="webp-first" type="submit" class="button-secondary action" value="<?php 
    echo $button_text;
    ?>
" />
			</form>
	</div>
<?php 
}
开发者ID:agiper,项目名称:wordpress,代码行数:30,代码来源:mwebp.php

示例3: admin

    /**
     * 設定パネルに追加
     *
     * @param numeric $key バリデーションルールセットの識別番号
     * @param array $value バリデーションルールセットの内容
     */
    public function admin($key, $value)
    {
        $bytes = '';
        if (is_array($value[$this->getName()]) && isset($value[$this->getName()]['bytes'])) {
            $bytes = $value[$this->getName()]['bytes'];
        }
        ?>
		<table>
			<tr>
				<td><?php 
        esc_html_e('Permitted file size', MWF_Config::DOMAIN);
        ?>
</td>
				<td><input type="text" value="<?php 
        echo esc_attr($bytes);
        ?>
" name="<?php 
        echo MWF_Config::NAME;
        ?>
[validation][<?php 
        echo $key;
        ?>
][<?php 
        echo esc_attr($this->getName());
        ?>
][bytes]" /> <span class="mwf_note"><?php 
        esc_html_e('bytes', MWF_Config::DOMAIN);
        ?>
</span></td>
			</tr>
		</table>
		<?php 
    }
开发者ID:sakadon,项目名称:firststepkit_wp,代码行数:39,代码来源:class.filesize.php

示例4: tfoot_append

    protected function tfoot_append()
    {
        $prev = isset($_REQUEST['prev']) ? esc_attr($_REQUEST['prev']) : '';
        $clear_cart_url = add_query_arg(array('prev' => $prev, '_wp_nonce' => wp_create_nonce('wpsc-clear-cart')), wpsc_get_cart_url('clear'));
        ?>
		<tr class="wpsc-cart-item-table-actions">
			<td></td>
			<td colspan="<?php 
        echo count($this->columns) - 1;
        ?>
">
				<a class="wpsc-button wpsc-button-small wpsc-clear-cart" href="<?php 
        echo esc_url($clear_cart_url);
        ?>
"><?php 
        esc_html_e('Clear Cart', 'wp-e-commerce');
        ?>
</a>
				<input type="hidden" name="action" value="update_quantity" />
				<input type="hidden" name="prev" value="<?php 
        echo $prev;
        ?>
">
			</td>
		</tr>
		<?php 
    }
开发者ID:benhuson,项目名称:WP-e-Commerce,代码行数:27,代码来源:cart-item-table-widget-form.php

示例5: form

    public function form($instance)
    {
        if (isset($instance['title'])) {
            $title = $instance['title'];
        } else {
            $title = esc_html__('Site Links', 'wise-blog');
        }
        // Backend Admin Form
        ?>
<p>
<label for="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
"><?php 
        esc_html_e('Title:', 'wise-blog');
        ?>
</label> 
<input class="widefat" id="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('title'));
        ?>
" type="text" value="<?php 
        echo esc_attr($title);
        ?>
">
</p>

<?php 
    }
开发者ID:Falkvinge,项目名称:BlogTheme2016,代码行数:31,代码来源:wise-sitelinks.php

示例6: mwform_tag_generator_dialog

    /**
     * add_mwform_tag_generator
     * フォームタグジェネレーター
     */
    public function mwform_tag_generator_dialog(array $options = array())
    {
        ?>
		<p>
			<strong>name<span class="mwf_require">*</span></strong>
			<?php 
        $name = $this->get_value_for_generator('name', $options);
        ?>
			<input type="text" name="name" value="<?php 
        echo esc_attr($name);
        ?>
" />
		</p>
		<p>
			<strong><?php 
        esc_html_e('String on the button', MWF_Config::DOMAIN);
        ?>
</strong>
			<?php 
        $value = $this->get_value_for_generator('value', $options);
        ?>
			<input type="text" name="value" value="<?php 
        echo esc_attr($value);
        ?>
" />
		</p>
		<?php 
    }
开发者ID:kamichimo,项目名称:wp-koalabo,代码行数:32,代码来源:mw_form_field_submit.php

示例7: form

    function form($instance)
    {
        if (!isset($instance['title'])) {
            $instance['title'] = esc_html__('Follow us', 'activello');
        }
        ?>

      <p><label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        esc_html_e('Title ', 'activello');
        ?>
</label>

      <input type="text" value="<?php 
        echo esc_attr($instance['title']);
        ?>
"
                          name="<?php 
        echo $this->get_field_name('title');
        ?>
"
                          id="<?php 
        $this->get_field_id('title');
        ?>
"
                          class="widefat" />
      </p>

    	<?php 
    }
开发者ID:mfojtik,项目名称:elisinwonderland,代码行数:32,代码来源:widget-social.php

示例8: _renderToolbar

 /**
  * Renders toolbar content.
  *
  * @since 1.0.0
  *
  * @access protected
  */
 protected function _renderToolbar()
 {
     echo '<a class="button button-large" href="', add_query_arg('tab', 'data'), '">';
     esc_html_e('Back', 'visualizer');
     echo '</a>';
     echo '<input type="submit" class="button button-primary button-large push-right" value="', $this->button, '">';
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:14,代码来源:Settings.php

示例9: form

    function form($instance)
    {
        $instance = wp_parse_args((array) $instance, array('warrior_category_list_title' => esc_html__('Categories', 'newmagz')));
        ?>
        <p>
            <label for="<?php 
        echo $this->get_field_id('warrior_category_list_title');
        ?>
"><?php 
        esc_html_e('Widget Title:', 'newmagz');
        ?>
</label>
            <input type="text" id="<?php 
        echo $this->get_field_id('warrior_category_list_title');
        ?>
" class="widefat" name="<?php 
        echo $this->get_field_name('warrior_category_list_title');
        ?>
" value="<?php 
        echo esc_attr($instance['warrior_category_list_title']);
        ?>
" />
        </p>
	<?php 
    }
开发者ID:yeminhtut,项目名称:new_mag,代码行数:25,代码来源:warrior-list-category.php

示例10: append_secure_keys

    /**
     * Append the new UI to the user profile.
     *
     * @param WP_User $profileuser
     */
    public static function append_secure_keys($profileuser)
    {
        ?>
<h3><?php 
        esc_html_e('Remote Publishing Permissions', 'xmlrpcs');
        ?>
</h3>
<table class="form-table xmlrpcs_permissions">
<tbody>
	<tr>
		<th scope="row"><?php 
        esc_html_e('Allowed applications', 'xmlrpcs');
        ?>
</th>
		<td><?php 
        echo XMLRPCS_Profile::secure_keys_list($profileuser);
        ?>
</td>
	</tr>
	<tr>
		<th scope="row"><?php 
        esc_html_e('Add a new application', 'xmlrpcs');
        ?>
</th>
		<td><a id="xmlrpcs-generate" href=""><?php 
        esc_html_e('Generate application keys', 'xmlrpcs');
        ?>
</a></td>
	</tr>
</tbody>
</table>
<?php 
    }
开发者ID:scttrgd,项目名称:scottish-piping,代码行数:38,代码来源:XMLRPCS_Profile.php

示例11: bnfw_render_license_page

/**
 * Render license page.
 *
 * @since 1.4
 */
function bnfw_render_license_page()
{
    $settings = apply_filters('bnfw_settings_licenses', array());
    ob_start();
    ?>

	<div class="wrap">
		<h2><?php 
    esc_html_e('BNFW Add-on Licenses', 'bnfw');
    ?>
</h2>

		<form method="post" action="options.php" class="bnfw-form">
			<?php 
    settings_errors();
    settings_fields('bnfw-license-settings');
    do_settings_sections('bnfw-license');
    if (!empty($settings)) {
        submit_button(esc_html__('Save License', 'bnfw'));
    } else {
        esc_html_e('<br>You have no BNFW Add-ons installed yet. You can buy add-ons from the <a href="https://betternotificationsforwp.com/store/?utm_source=WP%20Admin%20Submenu%20Item%20-%20"Add-on%20Licenses"&amp;utm_medium=referral" target="_blank">Store</a>.', 'bnfw');
    }
    ?>
		</form>
	</div>

	<?php 
    echo ob_get_clean();
}
开发者ID:voltronik,项目名称:bnfw,代码行数:34,代码来源:class-bnfw-license-setting.php

示例12: form

        /**
         * Back-end widget form.
         */
        public function form($instance)
        {
            $selected_user_id = isset($instance['selected_user_id']) ? $instance['selected_user_id'] : 1;
            ?>

			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('selected_user_id'));
            ?>
"><?php 
            esc_html_e('Display author:', 'proteuswidgets');
            ?>
</label>
				<?php 
            wp_dropdown_users(array('name' => $this->get_field_name('selected_user_id'), 'id' => $this->get_field_id('selected_user_id'), 'selected' => $selected_user_id, 'class' => 'widefat'));
            ?>

			</p>

			<p><small><?php 
            printf(esc_html__('To add the social icons to this widget, please install the %sExtra User Details%s plugin and fill in the details in the &quot;Users&quot; section.', 'proteuswidgets'), '<a href="https://wordpress.org/plugins/extra-user-details/" target="_blank">', '</a>');
            ?>
</small></p>

			<?php 
        }
开发者ID:proteusthemes,项目名称:proteuswidgets,代码行数:29,代码来源:widget-author.php

示例13: display

    /**
     * @param WP_Theme $theme
     */
    public function display(WP_Theme $theme)
    {
        settings_errors();
        ?>
		<div class="wrap">
			<h2><?php 
        echo esc_html(sprintf(_x('Create a child theme from %s', 'The placeholder is for a theme\'s name', 'child-themify'), $theme->name));
        ?>
</h2>

			<form method="post" action="<?php 
        echo esc_url($this->getLink($theme));
        ?>
">
				<label for="ctf_new_theme"><?php 
        esc_html_e('Name your child theme', 'child-themify');
        ?>
</label><br>
				<input type="text" name="new_theme" id="ctf_new_theme" />
				<?php 
        submit_button(__("Let's go!", 'child-themify'));
        ?>
			</form>
		</div>
		<?php 
        // End of Display
    }
开发者ID:mbrozay,项目名称:fss_frontend-old-lostdatabase,代码行数:30,代码来源:plugin.php

示例14: rtmedia_login_register_modal_popup

    function rtmedia_login_register_modal_popup()
    {
        if (!is_user_logged_in()) {
            $uri = '';
            if (isset($_REQUEST['REQUEST_URI'])) {
                $uri = esc_url_raw(wp_unslash($_REQUEST['REQUEST_URI']));
            }
            ?>
			<div class="rtmedia-popup mfp-hide rtm-modal" id="rtmedia-login-register-modal">
				<div id="rtm-modal-container">
					<h2 class="rtm-modal-title"><?php 
            esc_html_e('Please login', 'buddypress-media');
            ?>
</h2>

					<p><?php 
            esc_html_e('You need to be logged in to upload Media or to create Album.', 'buddypress-media');
            ?>
</p>

					<p>
						<?php 
            echo esc_html__('Click', 'buddypress-media') . ' <a href="' . esc_url(wp_login_url($uri)) . '" title="' . esc_attr__('Login', 'buddypress-media') . '">' . esc_html__('HERE', 'buddypress-media') . '</a>' . esc_html__(' to login.', 'buddypress-media');
            ?>
					</p>
				</div>
			</div>
			<?php 
        }
    }
开发者ID:rtCamp,项目名称:rtMedia,代码行数:30,代码来源:RTMediaLoginPopup.php

示例15: showInterface

    public static function showInterface()
    {
        $theme = empty($_GET['theme']) ? '' : $_GET['theme'];
        $theme = wp_get_theme($theme);
        if (self::checkCreds()) {
            return;
        }
        settings_errors();
        ?>
		<div class="wrap">
			<h2><?php 
        echo esc_html(sprintf(_x('Create a child theme from %s', 'The placeholder is for a theme\'s name', 'child-themify'), $theme->name));
        ?>
</h2>

			<form method="post" action="<?php 
        echo esc_url(self::getLink($theme->get_stylesheet()));
        ?>
">
				<label><?php 
        esc_html_e('Name your child theme', 'child-themify');
        ?>
</label><br>
				<input type="text" name="new_theme" />
				<?php 
        submit_button(__("Let's go!", 'child-themify'));
        ?>
			</form>
		</div>
	<?php 
    }
开发者ID:mbrozay,项目名称:fss_frontend-old-lostdatabase,代码行数:31,代码来源:legacy.php


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