本文整理汇总了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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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, '">';
}
示例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
}
示例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
}
示例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"&utm_medium=referral" target="_blank">Store</a>.', 'bnfw');
}
?>
</form>
</div>
<?php
echo ob_get_clean();
}
示例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 "Users" section.', 'proteuswidgets'), '<a href="https://wordpress.org/plugins/extra-user-details/" target="_blank">', '</a>');
?>
</small></p>
<?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
}
示例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
}
}
示例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
}