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


PHP esc_attr_e函数代码示例

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


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


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