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


PHP esc_html_e函数代码示例

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



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


示例16: mgjp_mv_render_media_library_custom_column

/**
 * Render function for Media Vault custom column in WP Media Library list table.
 *
 * @since 0.4
 *
 * @uses mgjp_mv_get_the_permissions()
 * @param $column_name string name-id of current column
 * @param $post_id int ID of post being evaluated
 */
function mgjp_mv_render_media_library_custom_column($column_name, $post_id)
{
    if ('mgjp_mv_info' != $column_name) {
        return;
    }
    if (!($permission = mgjp_mv_get_the_permission($post_id))) {
        return;
    }
    $permissions = mgjp_mv_get_the_permissions();
    $permission = isset($permissions[$permission]) ? $permissions[$permission] : '';
    $description = isset($permission['description']) && !empty($permission['description']) ? esc_html($permission['description']) : '<span class="mgjp-mv-error">' . esc_html__('Undetermined! Permissions have been misconfigured for this attachment!', 'media-vault') . '</span>';
    ?>

    <em><?php 
    esc_html_e('Protected Media', 'media-vault');
    ?>
</em>

    <p>

      <div><?php 
    esc_html_e('Files accessible to:', 'media-vault');
    ?>
</div>

      <em><?php 
    echo $description;
    ?>
</em>

    </p>

  <?php 
}
开发者ID:TakenCdosG,项目名称:admissionsrevolution_new,代码行数:43,代码来源:mv-options-media-library.php


示例17: bp_links_admin_settings_tabs

/**
 * Output the settings tabs.
 *
 * @param string $active_tab Slug of the tab that is active.
 */
function bp_links_admin_settings_tabs($active_tab = null)
{
    // handle empty tab
    if (true === empty($active_tab)) {
        // set it
        $active_tab = bp_links_admin_settings_section();
    }
    $idle_class = 'nav-tab';
    $active_class = $idle_class . ' nav-tab-active';
    $tabs = apply_filters('bp_links_admin_settings_tabs', array(10 => array('tab' => 'global', 'name' => __('Global', 'buddypress-links')), 20 => array('tab' => 'directory', 'name' => __('Directory', 'buddypress-links')), 30 => array('tab' => 'content', 'name' => __('Content', 'buddypress-links')), 40 => array('tab' => 'voting', 'name' => __('Voting', 'buddypress-links')), 50 => array('tab' => 'profile', 'name' => __('Profile', 'buddypress-links')), 60 => array('tab' => 'groups', 'name' => __('Groups', 'buddypress'))));
    // sort result by keys in case tabs were added by filter
    ksort($tabs);
    // Loop through tabs and build navigation
    foreach ($tabs as $tab_data) {
        // determine tab class
        $tab_class = $tab_data['tab'] === $active_tab ? $active_class : $idle_class;
        // render this tab
        ?>
		<a href="#<?php 
        echo esc_attr($tab_data['tab']);
        ?>
" class="<?php 
        esc_attr_e($tab_class);
        ?>
"><?php 
        esc_html_e($tab_data['name']);
        ?>
</a><?php 
    }
}
开发者ID:OxBEEF,项目名称:merge-server,代码行数:35,代码来源:bp-links-admin.php


示例18: give_add_ons_page

/**
 * Add-ons Page
 *
 * Renders the add-ons page content.
 *
 * @since 1.0
 * @return void
 */
function give_add_ons_page()
{
    ob_start();
    ?>
	<div class="wrap" id="give-add-ons">
		<h1><?php 
    esc_html_e('Give Add-ons', 'give');
    ?>
			&nbsp;&mdash;&nbsp;<a href="https://givewp.com/addons/" class="button-primary give-view-addons-all" title="<?php 
    esc_attr_e('Browse All Add-ons', 'give');
    ?>
" target="_blank"><?php 
    esc_html_e('View All Add-ons', 'give');
    ?>
				<span class="dashicons dashicons-external"></span></a>
		</h1>

		<p><?php 
    esc_html_e('The following Add-ons extend the functionality of Give.', 'give');
    ?>
</p>
		<?php 
    echo give_add_ons_get_feed();
    ?>
	</div>
	<?php 
    echo ob_get_clean();
}
开发者ID:wordimpress,项目名称:give,代码行数:36,代码来源:add-ons.php


示例19: form

        /**
         * Outputs the options form on admin
         *
         * @param array $instance The widget options
         */
        public function form($instance)
        {
            if ($instance) {
                $title = $instance['title'];
            } else {
                $title = '';
            }
            ?>

      <p>
      <label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            esc_html_e('Title:', PLUGIN_TEXT_DOMAIN);
            ?>
</label>
      <input class="widefat" id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo esc_attr($title);
            ?>
" />
      </p>

  <?php 
        }
开发者ID:0is1,项目名称:degrona-ehdokas,代码行数:36,代码来源:class-de-grona-ehdokas-widget.php


示例20: display_table

    function display_table()
    {
        $this->prepare_items();
        ?>
		<div class="wpglobus_flag_table_wrapper">
			<a id="wpglobus_add_language"
			   href="<?php 
        admin_url();
        ?>
admin.php?page=<?php 
        echo WPGlobus::LANGUAGE_EDIT_PAGE;
        ?>
&amp;action=add"
			   class="button button-primary"><?php 
        esc_html_e('Add new Language', 'wpglobus');
        ?>
</a>

			<?php 
        $this->prepare_items();
        ?>
			<div class="table-wrap wrap">

				<form method="post">
					<?php 
        $this->display();
        ?>
				</form>
			</div>
			<!-- .wrap -->
		</div>    <?php 
    }
开发者ID:wpglobus,项目名称:wpglobus,代码行数:32,代码来源:table-languages.php



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