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

PHP esc_attr_e函数代码示例

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

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



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

示例1: optimizer_customizer_editor

function optimizer_customizer_editor()
{
    ?>

		<div id="wp-editor-widget-container" style="display: none;">
			<a class="close" href="javascript:WPEditorWidget.hideEditor();" title="<?php 
    esc_attr_e('Close', 'optimizer');
    ?>
"><span class="icon"></span></a>
			<div class="editor">
				<?php 
    $settings = array('textarea_rows' => 55, 'editor_height' => 260);
    wp_editor('', 'wpeditorwidget', $settings);
    ?>

				<p><a href="javascript:WPEditorWidget.updateWidgetAndCloseEditor(true);" class="button button-primary"><?php 
    _e('Save and close', 'optimizer');
    ?>
</a></p>
			</div>
		</div>
		<div id="wp-editor-widget-backdrop" style="display: none;"></div>

		<?php 
}
开发者ID:pbhanu1994,项目名称:bhanuprakash,代码行数:25,代码来源:extra.php


示例2: html

    /**
     * Outputs the HTML for the field
     * @param  Attachments_Field $field The field object
     * @return void
     */
    function html($field)
    {
        ?>
        <div class="wp-editor-wrap attachments-field-wysiwyg-editor-wrap">
            <div class="wp-editor-container">
                <textarea name="<?php 
        esc_attr_e($field->field_name);
        ?>
" id="<?php 
        esc_attr_e($field->field_id);
        ?>
" class="wp-editor-area attachments attachments-field attachments-field-wysiwyg attachments-field-<?php 
        esc_attr_e($field->field_name);
        ?>
 attachments-field-<?php 
        esc_attr_e($field->field_id);
        ?>
" rows="10" data-default="<?php 
        esc_attr_e($field->default);
        ?>
"><?php 
        echo $field->value;
        ?>
</textarea>
            </div>
        </div>
    <?php 
    }
开发者ID:santikrass,项目名称:apache,代码行数:33,代码来源:class.field.wysiwyg.php


示例3: bp_core_admin_slugs_settings

/**
 * Renders the page mapping admin panel.
 *
 * @since 1.6.0
 * @todo Use settings API
 * @uses bp_core_admin_component_options()
 */
function bp_core_admin_slugs_settings()
{
    ?>

	<div class="wrap">
		<?php 
    screen_icon('buddypress');
    ?>

		<h2 class="nav-tab-wrapper"><?php 
    bp_core_admin_tabs(__('Pages', 'buddypress'));
    ?>
</h2>
		<form action="" method="post" id="bp-admin-page-form">

			<?php 
    bp_core_admin_slugs_options();
    ?>

			<p class="submit clear">
				<input class="button-primary" type="submit" name="bp-admin-pages-submit" id="bp-admin-pages-submit" value="<?php 
    esc_attr_e('Save Settings', 'buddypress');
    ?>
"/>
			</p>

			<?php 
    wp_nonce_field('bp-admin-pages-setup');
    ?>

		</form>
	</div>

<?php 
}
开发者ID:jasonmcalpin,项目名称:BuddyPress,代码行数:42,代码来源:bp-core-admin-slugs.php


示例4: toolkit_menu_page

        /**
         * Creates the page used to set options
         * @since     1.0
         * @updated   1.0
         *
         */
        public function toolkit_menu_page()
        {
            if (!current_user_can('manage_options')) {
                wp_die(esc_attr__('You do not have sufficient permissions to access this page.', 'Twoot_Toolkit'));
            }
            echo isset($_GET['settings-updated']) ? '<div class="updated fade"><p><strong>' . esc_attr__('Settings Updated.', 'Twoot_Toolkit') . '</strong></p></div>' : '';
            ?>
		<div class="wrap twoot-toolkit-page">
		<div id="icon-options-general" class="icon32"></div><h2 class="twoot-toolkit-page-title"><?php 
            echo TWOOT_TOOLKIT_NAME;
            ?>
<span><?php 
            esc_attr_e('Version: ', 'Twoot_Toolkit');
            echo TWOOT_TOOLKIT_VERSION;
            ?>
</span></h2>
		<form method="post" action="<?php 
            echo admin_url('options.php');
            ?>
">
		<?php 
            echo settings_fields(TWOOT_TOOLKIT_SLUG);
            ?>
		<?php 
            echo do_settings_sections(TWOOT_TOOLKIT_SLUG);
            ?>
		<?php 
            submit_button();
            ?>
		</form>
		</div>
		<?php 
        }
开发者ID:sniezekjp,项目名称:prod-fs,代码行数:39,代码来源:twoot-toolkit-page.php


示例5: mysettings

    function mysettings()
    {
        ?>
		<table class="form-table">
		<tbody>
		  <tr valign="top">
		  <th scope="row"><?php 
        _e('Subscription button', 'membership');
        ?>
</th>
		  <?php 
        $button = get_option($this->gateway . "_payment_button", 'https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif');
        ?>
		  <td><input type="text" name="payment_button" value="<?php 
        esc_attr_e($button);
        ?>
" style='width: 40em;' />
		  <br />
		  </td>
		  </tr>

		</tbody>
		</table>
		<?php 
    }
开发者ID:shimion,项目名称:member-BMH-,代码行数:25,代码来源:gateway.freesubscriptions.php


示例6: rolopress_do_company_settings_page

function rolopress_do_company_settings_page()
{
    ?>

	<div class="wrap" style="margin: 10px 0 0 0;">
		<?php 
    echo '<img class="icon32" src=' . ROLOPRESS_IMAGES . '/admin/company-menu-header.png />';
    ?>
		<h2>Company Settings</h2>
		
		<form name="settings" action="options.php" method="post" enctype="multipart/form-action">
		<?php 
    settings_fields('rolopress_company_options');
    ?>
		<?php 
    do_settings_sections(__FILE__);
    ?>
		<p class="submit"><input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" /></p>
		</form>

	</div>
<?php 
}
开发者ID:sudar,项目名称:rolopress-core,代码行数:26,代码来源:menu-rolopress-company.php


示例7: search

    /**
     * Outputs the Backbone template for a tab's search fields.
     *
     * @param string $id  The template ID.
     * @param string $tab The tab ID.
     */
    public function search($id, $tab)
    {
        ?>
		<form action="#" class="mexp-toolbar-container clearfix tab-all">

			<input
				type="text"
				name="q"
				value="{{ data.params.q }}"
				class="mexp-input-text mexp-input-search"
				size="40"
				placeholder="<?php 
        esc_attr_e('Search photos', 'resourcespace');
        ?>
"
			>

			<input class="button button-large" type="submit" value="<?php 
        esc_attr_e('Search', 'resourcespace');
        ?>
">

			<div class="spinner"></div>

		</form>

	<?php 
    }
开发者ID:humanmade,项目名称:MEXP-Resource-Space,代码行数:34,代码来源:class-mexp-resource-space-template.php


示例8: converio_cart_menu_item

function converio_cart_menu_item()
{
    if (is_woocommerce_activated()) {
        ?>

<li class="border"><a class="cart collapsed" data-target=".shopping-bag" href="javascript:;">
	<span class="cart-icon"><?php 
        esc_attr_e('Cart', 'converio');
        ?>
</span>
	
	<?php 
        global $woocommerce;
        $my_cart_count = $woocommerce->cart->cart_contents_count;
        echo '<span class="cart-number-box';
        if ($my_cart_count > 0) {
            echo ' active';
        }
        echo '">';
        echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);
        echo '</span>';
        ?>
	</a></li>
<?php 
    }
}
开发者ID:javalidigital,项目名称:tecnigrav,代码行数:26,代码来源:woocommerce-support.php


示例9: maniapress_core_settings_page

function maniapress_core_settings_page()
{
    ?>
	<div class="wrap">
		<div id="icon-options-general" class="icon32"><br /></div><h2>ManiaPress Settings</h2>
		<p><b>Need help?</b> Don't hesitate to check out 
			<a href="http://code.google.com/p/maniapress/" target="_blank">the Wiki on the projects' Website</a> 
			or to <a href="http://forum.maniaplanet.com/viewforum.php?f=330" target="_blank">ask your questions in the forum</a>!</p>
		<form action="options.php" method="post">
			<?php 
    settings_fields('maniapress-options');
    ?>
			<?php 
    do_settings_sections('maniapress-settings');
    ?>
			<p class="submit">
				<input name="submit" type="submit" id="submit" class="button-primary" 
					   value="<?php 
    esc_attr_e('Save Changes');
    ?>
" />
			</p>
		</form>
	</div>
	<?php 
}
开发者ID:nadeolive-legacy,项目名称:maniapress,代码行数:26,代码来源:maniapress-core.php


示例10: render_before_field

    protected function render_before_field($value, $instance)
    {
        parent::render_before_field($value, $instance);
        ?>
		<a href="#" class="select-content-button button-secondary"><?php 
        esc_html_e('Select Content', 'so-widgets-bundle');
        ?>
</a>
		<div class="existing-content-selector">

			<input type="text" class="content-text-search"
			       placeholder="<?php 
        esc_attr_e('Search Content', 'so-widgets-bundle');
        ?>
"/>

			<ul class="posts"></ul>

			<div class="buttons">
				<a href="#" class="button-close button-secondary"><?php 
        esc_html_e('Close', 'so-widgets-bundle');
        ?>
</a>
			</div>
		</div>
		<div class="url-input-wrapper">
		<?php 
    }
开发者ID:alenteria,项目名称:vitrari,代码行数:28,代码来源:link.class.php


示例11: form

    function form($instance)
    {
        // Check values
        if ($instance) {
            $title = esc_attr($instance['title']);
        } else {
            $title = '';
        }
        ?>
        <p>
            <label for="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
"><?php 
        echo esc_attr_e('Title', 'framework');
        ?>
</label>
            <input class="spTitle" 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:zruiz,项目名称:NG,代码行数:30,代码来源:newsletter.php


示例12: interface_display_searchform

/**
 * Displaying the search form.
 *
 */
function interface_display_searchform()
{
    ?>

<form action="<?php 
    echo esc_url(home_url('/'));
    ?>
" method="get" class="searchform clearfix">
  <label class="assistive-text">
    <?php 
    _e('Search', 'interface');
    ?>
  </label>
  <input type="search" placeholder="<?php 
    esc_attr_e('Search', 'interface');
    ?>
" class="s field" name="s">
  <input type="submit" value="<?php 
    esc_attr_e('Search', 'interface');
    ?>
" class="search-submit">
</form>
<!-- .search-form -->
<?php 
}
开发者ID:Ferrair,项目名称:MyPage,代码行数:29,代码来源:searchform-extensions.php


示例13: clearly_demo_slider

function clearly_demo_slider()
{
    ?>
	<div id="top-slider" class="nivo-theme-clearly">
		<div id="top-slider-slides" class="nivoSlider">
			<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/demo/slide1.jpg" alt="<?php 
    esc_attr_e('In general, luck has nothing to do with it.', 'clearly');
    ?>
" />
			<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/demo/slide2.jpg" alt="<?php 
    esc_attr_e('Art is a thoughtful and thorough process, not to be taken lightly.', 'clearly');
    ?>
" />
		</div>

		<div class="nav-box">
			<span></span>
			<div class="directionNav">
				<a href="#" class="prevNav"></a>
				<a href="#" class="nextNav"></a>
			</div>
		</div>
	</div>
	<?php 
}
开发者ID:GvarimAZA,项目名称:website,代码行数:31,代码来源:demo.php


示例14: emodal_admin_theme_form_general_tab_settings_name

function emodal_admin_theme_form_general_tab_settings_name()
{
    ?>
<tr>
		<th scope="row">
			<label for="name">
				<?php 
    _e('Name', EMCORE_SLUG);
    ?>
				<span class="description">(required)</span>
			</label>
		</th>
		<td>
			<input type="text" class="regular-text" name="theme[name]" id="name" value="<?php 
    esc_attr_e(get_current_modal_theme('name'));
    ?>
" required/>
		</td>
	</tr><?php 
    if (!class_exists('EMUnlimitedThemes')) {
        ?>
	<tr>
		<th colspan="2" class="pro-upgrade-tip">
			<hr/>
			<img style="" src="<?php 
        echo EMCORE_URL;
        ?>
/assets/images/admin/icon-info-21x21.png"/> Free Users can only create one (1) theme. <a href="http://easy-modal.com/addons/unlimited-themes" target="_blank">Check out Unlimited Modals!</a>.
		</th>
	</tr><?php 
    }
}
开发者ID:maesson,项目名称:lyft,代码行数:32,代码来源:theme-form-general-tab.php


示例15: mtsh_plugin_options_page

function mtsh_plugin_options_page()
{
    ?>
<div>
    <h2>SyntaxHighlighter MT Options</h2>
    <form action="options.php" method="post">
        <?php 
    settings_fields('mtsh_plugin_options');
    ?>
        <?php 
    do_settings_sections(__FILE__);
    ?>
        <br/>
        <input name="Submit" type="submit" value="<?php 
    esc_attr_e('Save Changes');
    ?>
"/>
    </form>
    <br/>
    <hr/>
    For more information about this plugin, please see <a href="http://megatome.com/syntaxhighlighter">http://megatome.com/syntaxhighlighter</a><br/>
    For more information about the code this plugin is built upon, go to <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">http://alexgorbatchev.com/wiki/SyntaxHighlighter</a>
</div>
<?php 
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:25,代码来源:stxhighlightmt.php


示例16: mgop_options_page

/**
 * Options page html elements
 */
function mgop_options_page()
{
    ?>
	
	<div class="wrap mgop-wrap">
		<?php 
    screen_icon();
    ?>
        <h2>Multiple Gallery on Post Settings</h2>
		<br/>		
		<form action="options.php" method="post" class="mgop-form">
			<?php 
    settings_fields('mgop_options');
    ?>
			
			<?php 
    echo mgop_setting_string();
    ?>
			
			 <br/>
			<input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" />
		</form>		
		<div class="mgop_logo" style="float:left;margin-left: 20px;"></div>
	</div>
	
	<?php 
}
开发者ID:PDKK,项目名称:magnific-gallery,代码行数:33,代码来源:options.php


示例17: ninja_forms_field_timed_submit_display

function ninja_forms_field_timed_submit_display($field_id, $data, $form_id = '')
{
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    if (isset($data['timer-text']) and $data['timer-text'] != '') {
        $label = $data['timer-text'];
    } else {
        $label = __('Please wait %n seconds', 'ninja-forms');
    }
    if (isset($data['countdown']) and $data['countdown'] != '') {
        $countdown = $data['countdown'];
    } else {
        $countdown = '10';
    }
    if (isset($data['label']) and $data['label'] != '') {
        $submit_text = $data['label'];
    } else {
        $submit_text = __('Submit', 'ninja-forms');
    }
    $label = preg_replace("/%n/", "<span>" . $countdown . "</span>", $label);
    ?>

	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_js" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
[no-js]" type="hidden" value="1" rel="<?php 
    echo $field_id;
    ?>
_js" class="no-js" />

	<button type="submit" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
[timer]" class="<?php 
    echo $field_class;
    ?>
 countdown-timer" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" value="<?php 
    echo $countdown;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" data-countdown="<?php 
    echo $countdown;
    ?>
" data-text="<?php 
    esc_attr_e($submit_text);
    ?>
"><?php 
    echo $label;
    ?>
</button>

	<?php 
}
开发者ID:ramiy,项目名称:ninja-forms,代码行数:60,代码来源:timed-submit.php


示例18: print_scripts

    public function print_scripts()
    {
        global $pagenow, $post_type;
        if ('post-new.php' == $pagenow && Advanced_Ads::POST_TYPE_SLUG == $post_type || 'post.php' == $pagenow && Advanced_Ads::POST_TYPE_SLUG == $post_type && isset($_GET['action']) && 'edit' == $_GET['action']) {
            $db = Gadsense_Data::get_instance();
            $pub_id = $db->get_adsense_id();
            ?>
			<script type="text/javascript">
				var gadsenseData = {
					pubId : '<?php 
            echo $pub_id;
            ?>
',
					msg : {
						unknownAd : '<?php 
            esc_attr_e("The ad details couldn't be retrieved from the ad code", ADVADS_SLUG);
            ?>
',
						pubIdMismatch : '<?php 
            _e('Warning : The AdSense account from this code does not match the one set with the Advanced Ads Plugin. This ad might cause troubles when used in the front end.', ADVADS_SLUG);
            ?>
'
					}
				};
			</script>
			<?php 
        }
    }
开发者ID:nathansh,项目名称:advanced-ads,代码行数:28,代码来源:class-gadsense-admin.php


示例19: 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


示例20: catchbase_secondary_menu

    /**
     * Shows the Secondary Menu 
     *
     * default load in sidebar-header-right.php
     */
    function catchbase_secondary_menu()
    {
        if (has_nav_menu('secondary')) {
            ?>
    	<nav class="nav-secondary" role="navigation">
            <div class="wrapper">
                <h1 class="assistive-text"><?php 
            _e('Secondary Menu', 'catch-base');
            ?>
</h1>
                <div class="screen-reader-text skip-link"><a href="#content" title="<?php 
            esc_attr_e('Skip to content', 'catch-base');
            ?>
"><?php 
            _e('Skip to content', 'catch-base');
            ?>
</a></div>
                <?php 
            $catchbase_secondary_menu_args = array('theme_location' => 'secondary', 'menu_class' => 'menu catchbase-nav-menu');
            wp_nav_menu($catchbase_secondary_menu_args);
            ?>
        	</div><!-- .wrapper -->
        </nav><!-- .nav-secondary -->

<?php 
        }
    }
开发者ID:RGunning,项目名称:EBItraining,代码行数:32,代码来源:catchbase-menus.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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