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


PHP get_the_author_email函数代码示例

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


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

示例1: hook_after_post_content

    public function hook_after_post_content($content)
    {
        if (is_single()) {
            $content .= '
				<div class="focuswarp">
				<div class="focusavatar">
					' . get_avatar(get_the_author_email(), '80') . '
				</div>
				<div class="focustext">
					<h4>Author: <span>' . get_the_author_link('display_name', get_query_var('author')) . '</span></h4>' . get_the_author_meta('description', get_query_var('author')) . '
				</div>';
            $content .= '
				<div class="focus-social">
				';
            if (get_the_author_meta('twitter', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('twitter')) . '" target="_blank"><i class="fa fa-twitter fa-lg"></i> Twitter</a> ';
            }
            if (get_the_author_meta('facebook', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('facebook')) . '" target="_blank"><i class="fa fa-facebook fa-lg"></i> Facebook</a> ';
            }
            if (get_the_author_meta('gplus', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('gplus')) . '" target="_blank"><i class="fa fa-google-plus fa-lg"></i> Google+</a> ';
            }
            if (get_the_author_meta('linkedin', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('linkedin')) . '" target="_blank"><i class="fa fa-linkedin fa-lg"></i> Linkedin</a> ';
            }
            if (get_the_author_meta('dribbble', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('dribbble')) . '" target="_blank"><i class="fa fa-dribbble fa-lg"></i> Dribbble</a> ';
            }
            if (get_the_author_meta('github', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('github')) . '" target="_blank"><i class="fa fa-github fa-lg"></i> Github</a>';
            }
            if (get_the_author_meta('youtube', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('youtube')) . '" target="_blank"><i class="fa fa-youtube fa-lg"></i> Youtube</a>';
            }
            if (get_the_author_meta('pinterest', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('pinterest')) . '" target="_blank"><i class="fa fa-pinterest-square fa-lg"></i> Pinterest</a>';
            }
            if (get_the_author_meta('instagram', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('instagram')) . '" target="_blank"><i class="fa fa-instagram fa-lg"></i> Instagram</a>';
            }
            if (get_the_author_meta('vimeo', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('vimeo')) . '" target="_blank"><i class="fa fa-vimeo-square fa-lg"></i> vimeo</a>';
            }
            if (get_the_author_meta('skype', get_query_var('author'))) {
                $content .= '<a href="' . esc_url(get_the_author_meta('skype')) . '" target="_blank"><i class="fa fa-skype fa-lg"></i> Skype</a>';
            }
            $content .= '
				</div>
				</div>';
        }
        return $content;
    }
开发者ID:TanvirAmi,项目名称:Focus-Author-Bio,代码行数:53,代码来源:focus_author_hook.php

示例2: wp_about_author_display

function wp_about_author_display($for_feed = false)
{
    global $post;
    $wp_about_author_settings = array();
    $wp_about_author_settings = get_option('wp_about_author_settings');
    $wp_about_author_content = "";
    $wp_about_author_author_pic = "";
    $wp_about_author_author = array();
    $wp_about_author_author['name'] = get_the_author();
    $wp_about_author_author['description'] = get_the_author_meta('description');
    $wp_about_author_author['twitter'] = get_the_author_meta('twitter');
    $wp_about_author_author['facebook'] = get_the_author_meta('facebook');
    $wp_about_author_author['website'] = get_the_author_meta('url');
    $wp_about_author_author['posts'] = (int) get_the_author_posts();
    $wp_about_author_author['posts_url'] = get_author_posts_url(get_the_author_meta('ID'));
    $wp_about_author_author_pic = get_avatar(get_the_author_email(), '100');
    $wp_about_author_content .= "<h3><a href='" . $wp_about_author_author['posts_url'] . "' title='" . $wp_about_author_author['name'] . "'>" . $wp_about_author_author['name'] . "</a></h3>";
    $wp_about_author_content .= "<p>" . $wp_about_author_author['description'] . "</p>";
    $wp_about_author_link = '';
    if (!empty($wp_about_author_author['website']) || !empty($wp_about_author_author['twitter']) || !empty($wp_about_author_author['facebook'])) {
        $wp_about_author_content .= "<p>";
        if (!empty($wp_about_author_author['website'])) {
            $wp_about_author_link .= "<a href='" . $wp_about_author_author['website'] . "' title='" . $wp_about_author_author['name'] . "'>Website</a> ";
        }
        if (!empty($wp_about_author_author['twitter'])) {
            if ($wp_about_author_link != "") {
                $wp_about_author_link .= "- ";
            }
            $wp_about_author_link .= "<a href='" . $wp_about_author_author['twitter'] . "' title='" . $wp_about_author_author['name'] . "on Twitter'>Twitter</a> ";
        }
        if (!empty($wp_about_author_author['facebook'])) {
            if ($wp_about_author_link != "") {
                $wp_about_author_link .= "- ";
            }
            $wp_about_author_link .= "<a href='" . $wp_about_author_author['facebook'] . "' title='" . $wp_about_author_author['name'] . " on Facebook'>Facebook</a> ";
        }
        if (!empty($wp_about_author_author['posts_url'])) {
            if ($wp_about_author_link != "") {
                $wp_about_author_link .= "- ";
            }
            $wp_about_author_link .= "<a href='" . $wp_about_author_author['posts_url'] . "' title='More posts by " . $wp_about_author_author['name'] . "'>More Posts</a> ";
        }
        $wp_about_author_content .= $wp_about_author_link;
        $wp_about_author_content .= "</p>";
    }
    if (!$for_feed) {
        return '<div class="wp-about-author-containter-' . $wp_about_author_settings['wp_author_alert_border'] . '" style="background-color:' . $wp_about_author_settings['wp_author_alert_bg'] . ';"><div class="wp-about-author-pic">' . $wp_about_author_author_pic . '</div><div class="wp-about-author-text">' . $wp_about_author_content . '</div></div>';
    } else {
        return '<p><div style="float:left; text-align:left;>' . $wp_about_author_author_pic . '</div>' . $wp_about_author_content . '</p>';
    }
}
开发者ID:revathskumar,项目名称:Coderepo,代码行数:51,代码来源:wp-about-author.php

示例3: custom_comments

function custom_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount;
    if (!$commentcount) {
        $commentcount = 0;
    }
    ?>
	<li class="comment <?php 
    if ($comment->comment_author_email == get_the_author_email()) {
        echo 'admincomment';
    } else {
        echo 'regularcomment';
    }
    ?>
" id="comment-<?php 
    comment_ID();
    ?>
">
		<div class="author">
			<div class="pic">
				<?php 
    if (function_exists('get_avatar') && get_option('show_avatars')) {
        echo get_avatar($comment, 32);
    }
    ?>
			</div>
			<div class="name">
				<?php 
    if (get_comment_author_url()) {
        ?>
					<a id="commentauthor-<?php 
        comment_ID();
        ?>
" class="url" href="<?php 
        comment_author_url();
        ?>
" rel="external nofollow">
				<?php 
    } else {
        ?>
					<span id="commentauthor-<?php 
        comment_ID();
        ?>
">
				<?php 
    }
    ?>

				<?php 
    comment_author();
    ?>

				<?php 
    if (get_comment_author_url()) {
        ?>
					</a>
				<?php 
    } else {
        ?>
					</span>
				<?php 
    }
    ?>
			</div>
		</div>

		<div class="info">
			<div class="date">
				<?php 
    printf(__('%1$s at %2$s', 'inove'), get_comment_time(__('F jS, Y', 'inove')), get_comment_time(__('H:i', 'inove')));
    ?>
					 | <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    printf('#%1$s', ++$commentcount);
    ?>
</a>
			</div>
			<div class="act">
				<a href="javascript:void(0);" onclick="MGJS_CMT.reply('commentauthor-<?php 
    comment_ID();
    ?>
', 'comment-<?php 
    comment_ID();
    ?>
', 'comment');"><?php 
    _e('Reply', 'inove');
    ?>
</a> |
				<a href="javascript:void(0);" onclick="MGJS_CMT.quote('commentauthor-<?php 
    comment_ID();
    ?>
', 'comment-<?php 
    comment_ID();
    ?>
', 'commentbody-<?php 
    comment_ID();
    ?>
//.........这里部分代码省略.........
开发者ID:probonogeek,项目名称:inove-probonogeek,代码行数:101,代码来源:functions.php

示例4: the_ID

        the_ID();
        ?>
">
		<tr><!-- Author Avatar -->
			<td class="avatar">
			<a href="<?php 
        echo get_author_posts_url(get_the_author_id());
        ?>
" title="<?php 
        the_author();
        ?>
" alt="<?php 
        the_author();
        ?>
"><?php 
        echo get_avatar(get_the_author_email(), '50');
        ?>
</a>
			</td> 
			
			<td class="posted">
				<div class="author"><!-- Author  name --><?php 
        the_author_posts_link();
        ?>
	</div>
				
				<table cellpadding="0" cellspacing="0" class="celarboth">
						<tr>
						<!-- Post Thumb image-->
							<td class="thumb">
								<a href="<?php 
开发者ID:andreuortin,项目名称:Facebook-Like,代码行数:31,代码来源:archive.php

示例5: md5

        $email_md5 = md5(get_the_author_email());
        $default_img = urlencode('http://use.perl.org/images/pix.gif');
        ?>
<div class="sleeve_main">
<div id="postpage">
<div id="main">
	<ul id="postlist">
		<li>
			<h2 class="title">
				<?php 
        the_title();
        ?>
			</h2>
			<h4>
				<?php 
        echo prologue_get_avatar(get_the_author_ID(), get_the_author_email(), 48);
        ?>
				<?php 
        the_author_posts_link();
        ?>
				
				<span class="meta">
			<?php 
        the_time();
        ?>
 <em>on</em> <?php 
        the_time('F j, Y');
        ?>
 |
			<?php 
        comments_number(__('0'), __('1'), __('%'));
开发者ID:Br3nda,项目名称:openmicroblogger,代码行数:31,代码来源:single.php

示例6: the_ID

        the_ID();
        ?>
">
                <h2><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title();
        ?>
">
                    <?php 
        the_title();
        ?>
                    </a></h2>
                    <div class="meta"><?php 
        echo get_avatar(get_the_author_email(), 40);
        ?>
<p><?php 
        the_author();
        ?>
 [<?php 
        the_category(',');
        ?>
]</p><p><?php 
        the_time('Y.m.d');
        ?>
</p></div>
                <div class="entry">
                    <?php 
        the_excerpt();
        ?>
开发者ID:Burick,项目名称:interjc,代码行数:31,代码来源:search.php

示例7: shortcode_the_author_email

/**
 * Shortcode function for displaying the current post author email
 * Uses the get_the_author_email() function
 * @link http://codex.wordpress.org/Template_Tags/the_author_email
 *
 * @since 0.1
 */
function shortcode_the_author_email()
{
    return apply_filters('the_author_email', antispambot(get_the_author_email()));
}
开发者ID:jfitzsimmons,项目名称:soundtrackforspace,代码行数:11,代码来源:template-tag-shortcodes.php

示例8: the_author_email

/**
 * Display the email of the author of the current post.
 *
 * @link http://codex.wordpress.org/Template_Tags/the_author_email
 * @since 0.71
 * @uses get_the_author_email()
 */
function the_author_email()
{
    echo apply_filters('the_author_email', get_the_author_email());
}
开发者ID:schr,项目名称:wordpress,代码行数:11,代码来源:author-template.php

示例9: custom_comments

function custom_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount;
    if (!$commentcount) {
        $commentcount = 0;
    }
    ?>
	<li id="comment-<?php 
    comment_ID();
    ?>
" class="comment<?php 
    if ($comment->comment_type == 'pingback' || $comment->comment_type == 'trackback') {
        echo ' pingcomment';
    } else {
        if ($comment->comment_author_email == get_the_author_email()) {
            echo ' admincomment';
        } else {
            echo ' regularcomment';
        }
    }
    ?>
">

		<div class="info<?php 
    if ($comment->comment_type == 'pingback' || $comment->comment_type == 'trackback') {
        echo ' pinginfo';
    } else {
        if ($comment->comment_author_email == get_the_author_email()) {
            echo ' admininfo';
        } else {
            echo ' regularinfo';
        }
    }
    ?>
">
			<?php 
    if ($comment->comment_type != 'pingback' && $comment->comment_type != 'trackback') {
        // Support avatar for WordPress 2.5 or higher
        if (function_exists('get_avatar') && get_option('show_avatars')) {
            echo '<div class="pic">';
            echo get_avatar($comment, 24);
            echo '</div>';
            // Support Gravatar for WordPress 2.3.3 or lower
        } else {
            if (function_exists('gravatar')) {
                echo '<div class="pic"><img class="avatar" src="';
                gravatar("G", 24);
                echo '" alt="avatar" /></div>';
            }
        }
    }
    ?>
			<div class="author">
				<?php 
    if (get_comment_author_url()) {
        ?>
					<a class="authorname" id="commentauthor-<?php 
        comment_ID();
        ?>
" href="<?php 
        comment_author_url();
        ?>
" rel="external nofollow">
				<?php 
    } else {
        ?>
					<span class="authorname" id="commentauthor-<?php 
        comment_ID();
        ?>
">
				<?php 
    }
    ?>

				<?php 
    comment_author();
    ?>

				<?php 
    if (get_comment_author_url()) {
        ?>
					</a>
				<?php 
    } else {
        ?>
					</span>
				<?php 
    }
    ?>
				<div class="date"><?php 
    printf(__('%1$s at %2$s', 'blocks2'), get_comment_time(__('M jS, Y', 'blocks2')), get_comment_time(__('H:i', 'blocks2')));
    ?>
</div>
			</div>
			<div class="count">
				<?php 
    if ($comment->comment_type != 'pingback' && $comment->comment_type != 'trackback') {
        ?>
					<?php 
//.........这里部分代码省略.........
开发者ID:jkreska,项目名称:test1,代码行数:101,代码来源:functions.php

示例10: the_permalink

">
<h2><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
<p class="post-info"><?php 
        the_time('l j \\d\\e F \\d\\e Y');
        ?>
 por <a href="mailto:<?php 
        echo get_the_author_email();
        ?>
"><?php 
        the_author_firstname();
        ?>
 <?php 
        the_author_lastname();
        ?>
</a></p>


<p class="postmetadata"><?php 
        the_tags('<span class="tags">Etiquetas: ', ', ', '</span><br />');
        ?>
Guardado en <?php 
        the_category(', ');
开发者ID:alx,项目名称:blogsfera,代码行数:31,代码来源:search.php

示例11: author_microid

function author_microid()
{
    $hash = get_microid_hash(get_the_author_email(), get_the_author_url());
    echo 'microid-' . $hash;
}
开发者ID:Creativebq,项目名称:wp-istalker,代码行数:5,代码来源:formatting.php

示例12: custom_comments

function custom_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount;
    if (!$commentcount) {
        $commentcount = 0;
    }
    ?>
	<li class="comment <?php 
    if ($comment->comment_author_email == get_the_author_email()) {
        echo 'admincomment';
    } else {
        echo 'regularcomment';
    }
    ?>
" id="comment-<?php 
    comment_ID();
    ?>
">
		<div class="author">
			<div class="pic">
				<?php 
    echo get_avatar($comment, 32);
    ?>
			</div>
			<div class="name">
				<?php 
    if (get_comment_author_url()) {
        ?>
					<a id="commentauthor-<?php 
        comment_ID();
        ?>
" class="url" href="<?php 
        comment_author_url();
        ?>
" rel="external nofollow"><?php 
        comment_author();
        ?>
</a>
				<?php 
    } else {
        ?>
					<span id="commentauthor-<?php 
        comment_ID();
        ?>
"><?php 
        comment_author();
        ?>
</span>
				<?php 
    }
    ?>
			</div>
		</div>

		<div class="info">
			<div class="date">
				<?php 
    printf(__('%1$s at %2$s', 'inove'), get_comment_time(get_option('date_format')), get_comment_time(get_option('time_format')));
    ?>
					 | <a href="#comment-<?php 
    comment_ID();
    ?>
"><?php 
    printf('#%1$s', ++$commentcount);
    ?>
</a>
			</div>
			<div class="act">
				<?php 
    echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'after' => ' | '));
    ?>
				<a href="javascript:void(0);" onclick="MGJS_CMT.quote('commentauthor-<?php 
    comment_ID();
    ?>
', 'comment-<?php 
    comment_ID();
    ?>
', 'commentbody-<?php 
    comment_ID();
    ?>
', 'comment');"><?php 
    _e('Quote', 'inove');
    ?>
</a>
				<?php 
    edit_comment_link(__('Edit', 'inove'), ' | ', '');
    ?>
			</div>
			<div class="fixed"></div>
			<div class="content">
				<?php 
    if ($comment->comment_approved == '0') {
        ?>
					<p><small><?php 
        _e('Your comment is awaiting moderation.', 'inove');
        ?>
</small></p>
				<?php 
    }
//.........这里部分代码省略.........
开发者ID:rmccue,项目名称:wordpress-unit-tests,代码行数:101,代码来源:functions.php

示例13: the_author_posts_link_with_avatar

function the_author_posts_link_with_avatar($deprecated = '')
{
    global $authordata;
    printf('<a href="%1$s" title="%2$s">%3$s</a>', get_author_posts_url($authordata->ID, $authordata->user_nicename), sprintf(__('Posts by %s'), attribute_escape(get_the_author())), get_avatar(get_the_author_email(), 32));
}
开发者ID:liangwei1988,项目名称:wordpress,代码行数:5,代码来源:functions.php

示例14: have_posts

					echo '<a itemprop="breadcrumb" href="'.get_category_link($cat->term_id).'" >'.$cat->name.'</a>';
					}
				 ?><span class="chevron">&nbsp;›&nbsp;</span>
				 <span class="current">正文</span>
			</div>
		<?php
			if ( have_posts() ) :
				while ( have_posts() ) : the_post();

					?>
					<article id="post-<?php the_ID(); ?>" <?php //post_class(); ?> class="article-single" >
						<div class="article-single-box">
							<header class="entry-header">
								<?php the_title( '<h1 class="entry-title" itemprop="name headline">', '</h1>' ); ?>
								<div class="auther-gravater-single">
									<?php echo get_avatar( get_the_author_email(), '48'); ?>
								</div>
								<div class="post-meta-top">
									<span class="post-auther"><?php the_author_posts_link(); ?></span>
									<span class="updated postime" title="写于写于<?php the_time('Y年m月d日') ?> <?php the_time() ?>"><?php post_time_ago(); ?></span>
									<span class="post"><?php post_views(' ','次点击'); ?> </span>
								</div>

							</header>
							<div class="post-entry post-content">
								<p class="conetent-string">
								<?php the_content(  '阅读全文 <span class="meta-nav">&rarr;</span>');
									wp_link_pages( array(
										'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfourteen' ) . '</span>',
										'after'       => '</div>',
										'link_before' => '<span>',
开发者ID:alongbao,项目名称:M-V2EX,代码行数:31,代码来源:single.php

示例15: where_author_comments

function where_author_comments()
{
    $author_email = get_the_author_email();
    return "'{$author_email}' != comment_author_email";
}
开发者ID:emelleme,项目名称:Drexel-Cab,代码行数:5,代码来源:common_functions.php


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