/**
 * Shortcode function for displaying the current post author nickname
 * Uses the get_the_author_nickname() function
 * @link http://codex.wordpress.org/Template_Tags/the_author_nickname
 *
 * @since 0.1
 */
function shortcode_the_author_nickname()
{
    return get_the_author_nickname();
}
 /**
  * Prints HTML with meta information for the current post-date/time and author.
  */
 function socket_io_website_posted_on()
 {
     $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
     if (get_the_time('U') !== get_the_modified_time('U')) {
         $time_string .= '<time class="updated" datetime="%3$s">%4$s</time>';
     }
     $time_string = sprintf($time_string, esc_attr(get_the_date('c')), esc_html(get_the_date()), esc_attr(get_the_modified_date('c')), esc_html(get_the_modified_date()));
     printf(__('<span class="posted-on">%1$s</span><span class="byline"> – %2$s</span>', 'socket-io-website'), sprintf('%1$s', $time_string), sprintf('<span class="author vcard">%1$s</span> (<a class="twitter" href="https://twitter.com/%2$s">@%2$s</a>)', esc_html(get_the_author()), esc_html(get_the_author_nickname())));
 }
Example #3
0
/**
 * Display the nickname of the author of the current post.
 *
 * @link http://codex.wordpress.org/Template_Tags/the_author_nickname
 * @since 0.71
 * @uses get_the_author_nickname()
 */
function the_author_nickname()
{
    echo get_the_author_nickname();
}
Example #4
0
        the_author();
        ?>
            </h3>
            <p>
              <?php 
        the_author_description();
        ?>
            </p>
            <div class="author-details"><a href="<?php 
        the_author_url();
        ?>
" target="_blank">Visit Authors Website</a> &nbsp;|&nbsp; <a href="<?php 
        bloginfo('url');
        ?>
/author/<?php 
        echo strtolower(get_the_author_nickname());
        ?>
">All Articles From This Author</a></div>
          </div>
          <!--/author-descr -->
        </div>
        <!--/post-author -->
        <div class="clr"></div>
      </div>
      <!--/content -->
      <div class="clr"></div>
    </div>
    <!--/box -->
    <div id="respond" class="box" style="padding:10px 0;">
      <div class="content border">
        <div class="fl">If you enjoyed this article, please consider sharing it!</div>
Example #5
0
function wpi_template_category()
{
    global $post;
    $pby = wpi_get_theme_option('post_by_enable');
    $pby_class = $pby ? 'pby' : 'pby dn';
    $range = wpi_get_range_increment(3, 3);
    $cnt = 1;
    //wpi_dump($range);exit;
    ?>
	<ul class="hfeed r cf">
	<?php 
    while (have_posts()) {
        the_post();
        ?>
	<li class="xfolkentry hentry hreview hlisting span-7 fl prepend-1">		
		<dl class="r">			
			<dd class="postmeta-head">
			<span class="ptime r" title="<?php 
        echo get_the_time('Y-m-dTH:i:s:Z');
        ?>
"><?php 
        printf(__(' <cite>%s</cite>', WPI_META), wpi_get_postime());
        ?>
</span>
				<?php 
        wpi_hatom_title();
        ?>
			<div class="postmeta-info">	
			<span class="<?php 
        echo $pby_class;
        ?>
 dn"><?php 
        printf(__('Posted by <acronym class="reviewer author" title="%1$s">%2$s</acronym>', WPI_META), get_the_author_nickname(), wpi_get_post_author());
        ?>
</span>				
			</div>	
			</dd>
			<?php 
        if (has_excerpt($post->ID)) {
            ?>
			<dd class="entry-summary summary span-4 fr">
				<blockquote cite="<?php 
            the_permalink();
            ?>
#excerpt">
					<?php 
            the_excerpt();
            ?>
				</blockquote>
			</dd>
			<?php 
        } else {
            ?>
			<dd class="entry-content description entry ox">
				<?php 
            the_content('Continue reading &raquo;');
            ?>
			</dd>
			<?php 
        }
        ?>
			<?php 
        $rating_class = wpi_get_theme_option('post_hrating') ? 'rating-count' : 'rating-count dn';
        ?>
			<dd class="postmeta-comments cf">
			<ul class="xoxo cfl r cf">
				<li class="<?php 
        echo $rating_class;
        ?>
"><?php 
        wpi_hrating();
        ?>
&nbsp;</li>
				<li class="comments-link">
				<?php 
        comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;');
        ?>
				</li>
			</ul>
			</dd>			
			<dd class="dn">
				<ul class="more">
					<li>				
						<abbr class="dtstart published dtreviewed dc-date" title="<?php 
        the_time('Y-m-dTH:i:s:Z');
        ?>
"><?php 
        the_time('F j, Y');
        ?>
 at <?php 
        the_time('g:i a');
        ?>
</abbr>	
					</li>
					<li>
						<abbr class="dtend updated dtexpired" title="<?php 
        the_modified_date('Y-m-dTH:i:s:Z');
        ?>
"><?php 
        the_modified_date('F j, Y');
        ?>
 at <?php 
        the_modified_date('g:i a');
        ?>
</abbr>
					</li>
					<li class="version">0.3</li>
					<li class="type">url</li>					
				</ul>
			</dd>			
		</dl>
<!--
<?php 
        trackback_rdf();
        ?>
-->			
	</li>
	<?php 
        if (isset($range[$cnt])) {
            ?>
	
	<li class="hr-line cb cf">
	&nbsp;
	</li>
	<?php 
        }
        ?>
	
	<?php 
        $cnt++;
        ?>
	<?php 
    }
    ?>
	</ul>
<?php 
}
Example #6
0
get_header();
?>

<div id="userpage">
<div id="main">

<?php 
if (have_posts()) {
    $first_post = true;
    while (have_posts()) {
        the_post();
        $author_feed_url = '';
        if (function_exists('get_author_feed_link')) {
            $author_feed_url = get_author_feed_link(get_the_author_ID());
        } else {
            $author_feed_url = get_author_rss_link(false, get_the_author_ID(), get_the_author_nickname());
        }
        ?>

<?php 
        if ($first_post === true) {
            ?>
	<h2>
		<?php 
            echo get_avatar(get_the_author_email(), 48);
            ?>
		Updates from <?php 
            the_author_posts_link();
            ?>
		<a class="rss" href="<?php 
            echo $author_feed_url;
Example #7
0
    ?>
					<article <?php 
    post_class();
    ?>
 id="post-<?php 
    echo $post_id;
    ?>
">
						<header>
							<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>
							<?php 
    echo '<p class="byline author">';
    echo __('By', 'foundationpress') . ' ' . get_the_author_nickname() . ' | ';
    echo '<time class="updated" datetime="' . get_the_time('c') . '">' . sprintf(__('%s', 'foundationpress'), get_the_date()) . '</time>';
    echo '</p>';
    ?>
						</header>
						<?php 
    do_action('foundationpress_post_before_entry_content');
    ?>
						<div class="entry-content">
			
						<?php 
    if (has_post_thumbnail()) {
        $thumb_id = get_post_thumbnail_id($post->ID);
        $thumb = wp_get_attachment_image_src($thumb_id, 'large');
        $url = $thumb['0'];
        $alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);
Example #8
0
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<header>
		<h2><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h2>
		<?php 
echo '<p class="byline author">';
echo __('By', 'foundationpress') . ' <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '" rel="author" class="fn">' . get_the_author_nickname() . '</a> | ';
echo '<time class="updated" datetime="' . get_the_time('c') . '">' . sprintf(__('%s', 'foundationpress'), get_the_date()) . '</time>';
echo '</p>';
?>
	</header>
	<div class="entry-content">
		<?php 
the_content(__('Continue reading...', 'foundationpress'));
?>
	</div>
	<hr />
</article>