',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$author = sprintf( '%3$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'abulogics' ), get_the_author() ) ),
get_the_author()
);
$comment_number = get_comments_number();
$comment_number = sprintf( _n( '1 Comment', '%s Comments', $comment_number, 'abulogics' ), $comment_number );
$comment_number = sprintf( ' %2$s',
get_comments_link(),
$comment_number
);
$utility_text = __( ' %1$s %3$s %4$s %5$s %2$s ', 'abulogics' );
echo $date ;
echo $author ;
echo $comment_number ;
}
endif;
if ( ! function_exists( 'abulogics_entry_meta_footer' ) ) :
/**
* Set up post entry meta.
*
* Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
*
* Create your own twentytwelve_entry_meta() to override in a child theme.
*
* @since NavThemes 1.0
*/
function abulogics_entry_meta_footer() {
// Translators: used between list items, there is a space after the comma.
$categories_list = ''. get_the_category_list( __( ', ', 'abulogics' ) ) . "";
// Translators: used between list items, there is a space after the comma.
$tag_list = ' '. get_the_tag_list( '', __( ', ', 'abulogics' ) ). '';
echo $categories_list ;
echo $tag_list ;
}
endif;
/* ----------------------------------------------------------------------------------- */
/* Comment
/* ----------------------------------------------------------------------------------- */
if ( ! function_exists( 'abulogics_comment' ) ) :
/**
* Template for comments and pingbacks.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
*/
function abulogics_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
// Display trackbacks differently than normal comments.
?>
id="comment-">
', '' ); ?>
%1$s %2$s',
get_comment_author_link(),
// If current post author is also comment author, make it known visually.
( $comment->user_id === $post->post_author ) ? '' . __( 'Post author', 'abulogics' ) . '' : ''
); ?>
';
}
/** Link to current page, plus 2 pages in either direction if necessary */
sort( $links );
foreach ( (array) $links as $link ) {
$class = $paged == $link ? ' class="active"' : '';
printf( '
' . "\n", $class, esc_url( get_pagenum_link( $max ) ), $max );
}
/** Next Post Link */
if ( get_next_posts_link() )
printf( '
%s
' . "\n", get_next_posts_link() );
echo '
' . "\n";
}
// Get Words from a string
function get_words($content,$word_count=10,$suffix=''){
$pieces = explode(" ", $content);
echo $first_part = implode(" ", array_splice($pieces, 0, $word_count)) . $suffix ;
}
/* ----------------------------------------------------------------------------------- */
/* Post Thumbnail
/* ----------------------------------------------------------------------------------- */
if ( ! function_exists( 'abulogics_post_thumbnail' ) ) :
/**
* Display an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*
*/
function abulogics_post_thumbnail($image=null) {
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() && $image == null) :
?>