コード例 #1
0
ファイル: template-tags.php プロジェクト: alx/pressmark
function p2_user_avatar($args = '')
{
    echo p2_get_user_avatar($args);
}
コード例 #2
0
ファイル: entry.php プロジェクト: rmccue/wordpress-unit-tests
<li id="prologue-<?php 
the_ID();
?>
" <?php 
post_class(get_the_author_meta('ID'));
?>
>

		<?php 
if (!is_page()) {
    ?>
			<?php 
    printf('<a href="%1$s" title="%2$s">%3$s</a>', get_author_posts_url(p2_get_author_id(), p2_get_author_name()), sprintf(__('Posts by %s', 'p2'), esc_attr(get_the_author())), p2_get_user_avatar(array('user_id' => p2_get_author_id(), 'size' => 48)));
    ?>
		<?php 
}
?>
		
		<?php 
if (!is_page()) {
    ?>
			<h4>
			<?php 
    printf('<a href="%1$s" title="%2$s">%3$s</a>', get_author_posts_url(p2_get_author_id(), p2_get_author_name()), sprintf(__('Posts by %s', 'p2'), p2_get_author_name()), get_the_author());
    ?>
			<span class="meta">
				<?php 
    echo p2_date_time_with_microformat();
    ?>

				<span class="actions">