Пример #1
0
		<?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">
					<?php 
    if (!is_single()) {
        ?>
						<a href="<?php 
        the_permalink();
        ?>
" class="thepermalink"><?php 
        _e('Permalink', 'p2');
Пример #2
0
function p2_author_name()
{
    echo p2_get_author_name();
}
Пример #3
0
 <?php 
    if (p2_get_page_number() > 1) {
        printf(__('Page %s', 'p2'), p2_get_page_number());
    }
    ?>
				<a class="rss" href="<?php 
    bloginfo('rss2_url');
    ?>
">RSS</a>

			<?php 
} elseif (is_author()) {
    ?>
		
				<?php 
    printf(_c('Updates from %s|name', 'p2'), p2_get_author_name());
    ?>
				<a class="rss" href="<?php 
    p2_author_feed_link();
    ?>
">RSS</a>
				
			<?php 
} elseif (is_taxonomy('mentions')) {
    ?>

				<?php 
    printf(_c('Posts Mentioning %s|name', 'p2'), p2_get_mention_name());
    ?>
				<a class="rss" href="<?php 
    p2_author_feed_link();