ID ) );
$m = esc_attr( get_post_time( 'm', false, $post -> ID ) );
$d = esc_attr( get_post_time( 'd', false, $post -> ID ) );
$name = get_the_author_meta( 'display_name' , $post -> post_author );
$dtime = get_post_time( 'Y-m-d', false, $post -> ID );
$ptime = get_post_time( esc_attr( get_option( 'date_format' ) ), false , $post -> ID, true );
echo '
';
echo '
';
echo '
';
edit_post_link( '' . __( 'Edit' , 'cannyon' ) , '- ', '
' );
echo '- ';
echo '
';
echo '- ' . esc_html( $name ) . '
';
if( $post -> comment_status == 'open' ) {
$nr = get_comments_number( $post -> ID );
echo '- ';
echo '';
echo '';
echo sprintf( _nx( '%s Comment' , '%s Comments' , absint( $nr ) , 'Number of comment(s) from widget "myThemes: Meta Details"' , 'cannyon' ), number_format_i18n( absint( $nr ) ) );
echo '
';
}
if( function_exists( 'stats_get_csv' ) ) {
$args = array(
'days' => -1,
'post_id' => $post -> ID,
);
$result = stats_get_csv( 'postviews' , $args );
$views = $result[ 0 ][ 'views' ];
echo '- ' . sprintf( _n( '%s view' , '%s views' , absint( $views ) , 'cannyon' ) , number_format_i18n( absint( $views ) ) ) . '
';
}
echo '
';
echo '
';
echo '
';
/* ARTICLE CATEGORIES */
if( has_category() ){
echo '';
echo '
';
echo '
';
echo '
';
echo '- ';
the_category( '
- ' );
echo '
';
echo '
';
echo '
';
echo '
';
}
/* ARTICLE TAGS */
if( has_tag() ){
echo '';
echo '
';
echo '
';
$tags = wp_get_post_tags( $post -> ID );
foreach( $tags as $t => $tag ){
$tag_url = get_tag_link( $tag -> term_id );
if( is_wp_error( $tag_url ) ){
continue;
}
echo '
';
echo esc_html( $tag -> name );
echo '';
}
echo '
';
echo '
';
echo '
';
}
}
?>