本文整理汇总了PHP中_e函数的典型用法代码示例。如果您正苦于以下问题:PHP _e函数的具体用法?PHP _e怎么用?PHP _e使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_e函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dswoddil_post_nav
/**
* Display navigation to next/previous post when applicable.
*
* @since DSW oddil 1.0
*/
function dswoddil_post_nav()
{
// Don't print empty markup if there's nowhere to navigate.
$previous = is_attachment() ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
$next = get_adjacent_post(false, '', false);
if (!$next && !$previous) {
return;
}
?>
<nav class="navigation post-navigation" role="navigation">
<h1 class="screen-reader-text"><?php
_e('Post navigation', 'dswoddil');
?>
</h1>
<div class="nav-links">
<?php
if (is_attachment()) {
previous_post_link('%link', __('<span class="meta-nav">Published In</span>%title', 'dswoddil'));
} else {
previous_post_link('%link', __('<span class="meta-nav">Previous Post</span>%title', 'dswoddil'));
next_post_link('%link', __('<span class="meta-nav">Next Post</span>%title', 'dswoddil'));
}
?>
</div><!-- .nav-links -->
</nav><!-- .navigation -->
<?php
}
示例2: display_page
/**
* Display tab html code
*
* @return string
* @since 1.0.0
*/
public function display_page()
{
?>
<div class="yit_options">
<h3><?php
_e('Import Theme Data', 'yit');
?>
</h3>
<p class="install-help"><?php
_e('If you have Theme Data in a .gz format, you may install it by uploading it here.', 'yit');
?>
</p>
<div class="yit_options rm_option rm_input rm_text rm_upload">
<div class="option">
<input type="file" name="import-file" style="width:300px" id="import-file" /> <input type="submit" value="Import" class="button" /><br />
</div>
<div class="description">
<?php
_e('<strong>Warning</strong>: You must import sample data <strong>before</strong> customizing your theme. If you begin customizing your theme, then import sample data, <strong>all current data entered on your site will be overwritten/lost</strong>! Please proceed with the utmost care, <strong>after backing up all current data</strong>!', 'yit');
?>
</div>
<div class="clear"></div>
</div>
</div>
<?php
}
示例3: form_count
/**
* Output the Admin-Form for the active rule.
*
* @since 4.6
* @param mixed $data Rule-data which was saved via the save_() handler.
*/
protected function form_count($data)
{
$count = absint($data);
if ($count < 1) {
$count = 1;
}
?>
<label for="po-max-count">
<?php
_e('Display PopUp this often:', PO_LANG);
?>
</label>
<input type="number"
id="po-max-count"
class="inp-small"
name="po_rule_data[count]"
min="1"
max="999"
maxlength="3"
placeholder="10"
value="<?php
echo esc_attr(absint($count));
?>
" />
<?php
}
示例4: wp_statistics_generate_pages_postbox
function wp_statistics_generate_pages_postbox($ISOCountryCode, $search_engines)
{
global $WP_Statistics;
if (!$WP_Statistics->get_option('pages')) {
return;
}
list($total, $uris) = wp_statistics_get_top_pages();
if ($total > 0) {
?>
<div class="postbox">
<div class="handlediv" title="<?php
_e('Click to toggle', 'wp_statistics');
?>
"><br /></div>
<h3 class="hndle">
<span><?php
_e('Top 10 Pages', 'wp_statistics');
?>
<a href="?page=wps_pages_menu"><?php
echo wp_statistics_icons('dashicons-visibility', 'visibility');
_e('More', 'wp_statistics');
?>
</a></span>
</h3>
<div class="inside">
<?php
wp_statistics_generate_pages_postbox_content($total, $uris);
?>
</div>
</div>
<?php
}
}
示例5: render_content
/**
* Renders the control's content.
*
* @since 3.9.0
* @access public
*/
public function render_content()
{
$id = 'reorder-widgets-desc-' . str_replace(array('[', ']'), array('-', ''), $this->id);
?>
<button type="button" class="button-secondary add-new-widget" aria-expanded="false" aria-controls="available-widgets">
<?php
_e('Add a Widget');
?>
</button>
<button type="button" class="button-link reorder-toggle" aria-label="<?php
esc_attr_e('Reorder widgets');
?>
" aria-describedby="<?php
echo esc_attr($id);
?>
">
<span class="reorder"><?php
_ex('Reorder', 'Reorder widgets in Customizer');
?>
</span>
<span class="reorder-done"><?php
_ex('Done', 'Cancel reordering widgets in Customizer');
?>
</span>
</button>
<p class="screen-reader-text" id="<?php
echo esc_attr($id);
?>
"><?php
_e('When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.');
?>
</p>
<?php
}
示例6: form
/**
* Output the settings update form.
*
* @param array $instance Current settings.
*
* @return string Default return is 'noform'.
* @author Andrea Grillo <andrea.grillo@yithemes.com>
*/
public function form($instance)
{
$defaults = array('title' => __('Store Location', 'yith_wc_product_vendors'));
$instance = wp_parse_args((array) $instance, $defaults);
?>
<p>
<label for="<?php
echo $this->get_field_id('title');
?>
"><?php
_e('Title', 'yith_wc_product_vendors');
?>
:
<input type="text" id="<?php
echo $this->get_field_id('title');
?>
" name="<?php
echo $this->get_field_name('title');
?>
" value="<?php
echo $instance['title'];
?>
" class="widefat" />
</label>
</p>
<?php
}
示例7: sandbox_10_ping
function sandbox_10_ping($comment, $args, $depth)
{
$GLOBALS['comment'] = $comment;
extract($args, EXTR_SKIP);
?>
<li <?php
comment_class(sandbox_comment_class(false));
?>
id="comment-<?php
comment_ID();
?>
">
<div class="comment-author"><?php
printf(__('By %1$s on %2$s at %3$s', 'sandbox'), get_comment_author_link(), get_comment_date(), get_comment_time());
edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>');
?>
</div>
<?php
if ($comment->comment_approved == '0') {
_e('\\t\\t\\t\\t\\t<span class="unapproved">Your trackback is awaiting moderation.</span>\\n', 'sandbox');
}
?>
<?php
comment_text();
}
示例8: woo_warp_side_cart
function woo_warp_side_cart()
{
?>
<link rel="stylesheet" type="text/css" href="<?php
echo '' . plugins_url('css/style.css', __FILE__) . '';
?>
">
<div class="side-cart uk-panel uk-panel-box uk-panel-box-secondary">
<span class="ww-cart-icon side-cart uk-panel uk-panel-box uk-panel-box-primary">
<span class="uk-icon-shopping-cart"></span>
</span>
<p>
<?php
echo sprintf(_n('%d item', '%d items', WC()->cart->cart_contents_count), WC()->cart->cart_contents_count);
?>
<br />
<?php
echo WC()->cart->get_cart_total();
?>
</p>
<a class="uk-button uk-button-mini uk-width-1-1 uk-button-primary" href="<?php
echo WC()->cart->get_cart_url();
?>
" title="<?php
_e('View Cart');
?>
">View Cart</a>
</div>
<?php
}
示例9: form
function form($instance)
{
$zip = esc_attr($instance['zip']);
?>
<p>
<label for="<?php
echo $this->get_field_id('zip');
?>
"><?php
_e('Zip Code:');
?>
<input class="widefat" id="<?php
echo $this->get_field_id('zip');
?>
" name="<?php
echo $this->get_field_name('zip');
?>
" type="text" value="<?php
echo $zip;
?>
" />
</label>
</p>
<?php
}
示例10: form
public function form($instance)
{
if (isset($instance['title'])) {
$title = $instance['title'];
} else {
$title = __('Search questions', 'ap');
}
?>
<p>
<label for="<?php
echo $this->get_field_id('title');
?>
"><?php
_e('Title:');
?>
</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
}
示例11: form
public function form($instance)
{
$title = !empty($instance['title']) ? $instance['title'] : __('REST API Comment Widget', 'rest-api-widgets');
?>
<p>
<label for="<?php
echo $this->get_field_id('title');
?>
"><?php
_e('Widget Title:');
?>
</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
}
示例12: my_simone_post_nav
/**
* Display navigation to next/previous post when applicable.
*
* @return void
*/
function my_simone_post_nav()
{
// Don't print empty markup if there's nowhere to navigate.
$previous = is_attachment() ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
$next = get_adjacent_post(false, '', false);
if (!$next && !$previous) {
return;
}
?>
<nav class="navigation post-navigation" role="navigation">
<div class="post-nav-box clear">
<h1 class="screen-reader-text"><?php
_e('Post navigation', 'my-simone');
?>
</h1>
<div class="nav-links">
<?php
previous_post_link('<div class="nav-previous"><div class="nav-indicator">' . _x('Previous Post:', 'Previous post', 'my-simone') . '</div><h1>%link</h1></div>', '%title');
next_post_link('<div class="nav-next"><div class="nav-indicator">' . _x('Next Post:', 'Next post', 'my-simone') . '</div><h1>%link</h1></div>', '%title');
?>
</div><!-- .nav-links -->
</div><!-- .post-nav-box -->
</nav><!-- .navigation -->
<?php
}
示例13: ec3_check_installed
/** Report an error if EventCalendar not yet installed. */
function ec3_check_installed($title)
{
global $ec3;
if (!$ec3->event_category) {
?>
<div style="background-color:black; color:red; border:2px solid red; padding:1em">
<div style="font-size:large"><?php
echo $title;
?>
</div>
<?php
_e('You must choose an event category.', 'ec3');
?>
<a style="color:red; text-decoration:underline" href="<?php
echo get_option('home');
?>
/wp-admin/options-general.php?page=ec3_admin">
<?php
_e('Go to Event Calendar Options', 'ec3');
?>
</a>
</div>
<?php
}
return $ec3->event_category;
}
示例14: wp_supercache_awaitingmoderation_admin
function wp_supercache_awaitingmoderation_admin()
{
global $cache_awaitingmoderation, $wp_cache_config_file, $valid_nonce;
$cache_awaitingmoderation = $cache_awaitingmoderation == '' ? '0' : $cache_awaitingmoderation;
if (isset($_POST['cache_awaitingmoderation']) && $valid_nonce) {
$cache_awaitingmoderation = (int) $_POST['cache_awaitingmoderation'];
wp_cache_replace_line('^ *\\$cache_awaitingmoderation', "\$cache_awaitingmoderation = '{$cache_awaitingmoderation}';", $wp_cache_config_file);
$changed = true;
} else {
$changed = false;
}
$id = 'awaitingmoderation-section';
?>
<fieldset id="<?php
echo $id;
?>
" class="options">
<h4><?php
_e('Awaiting Moderation', 'wp-super-cache');
?>
</h4>
<form name="wp_manager" action="" method="post">
<label><input type="radio" name="cache_awaitingmoderation" value="1" <?php
if ($cache_awaitingmoderation) {
echo 'checked="checked" ';
}
?>
/> <?php
_e('Enabled', 'wp-super-cache');
?>
</label>
<label><input type="radio" name="cache_awaitingmoderation" value="0" <?php
if (!$cache_awaitingmoderation) {
echo 'checked="checked" ';
}
?>
/> <?php
_e('Disabled', 'wp-super-cache');
?>
</label>
<p><?php
_e('Enables or disables plugin to Remove the text "Your comment is awaiting moderation." when someone leaves a moderated comment.', 'wp-super-cache');
?>
</p>
<?php
if ($changed) {
if ($cache_awaitingmoderation) {
$status = __("enabled");
} else {
$status = __("disabled");
}
echo "<p><strong>" . sprintf(__("Awaiting Moderation is now %s", 'wp-super-cache'), $status) . "</strong></p>";
}
echo '<div class="submit"><input ' . SUBMITDISABLED . 'type="submit" value="' . __('Update', 'wp-super-cache') . '" /></div>';
wp_nonce_field('wp-cache');
?>
</form>
</fieldset>
<?php
}
示例15: edit_category_seo_field
function edit_category_seo_field($term)
{
global $feature_groups;
?>
<tr class="form-field term-group-wrap">
<th scope="row"><label for="meta-title"><?php
_e('Meta Title', 'jkc');
?>
</label></th>
<td><input name="meta-title" id="meta-title" type="text" value="<?php
echo get_term_meta($term->term_id, 'meta-title', true);
?>
" /><p class="description">This meta title will be used in category listing pages as title tag. </p></td>
</tr><tr class="form-field term-group-wrap">
<th scope="row"><label for="meta-keywords"><?php
_e('Meta Keywords', 'jkc');
?>
</label></th>
<td><textarea name="meta-keywords" rows="3" id="meta-keywords"><?php
echo get_term_meta($term->term_id, 'meta-keywords', true);
?>
</textarea><p class="description">This meta keywords will be used in category listing pages.</p></td>
</tr><tr class="form-field term-group-wrap">
<th scope="row"><label for="meta-keywords"><?php
_e('Meta Description', 'jkc');
?>
</label></th>
<td><textarea name="meta-description" rows="3" id="meta-description"><?php
echo get_term_meta($term->term_id, 'meta-description', true);
?>
</textarea><p class="description">This meta description will be used in category listing pages.</p></td>
</tr><?php
}