0 ) { ?>

0 ) { ?>

0 ) { ?>

%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $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() ) ); $archive_year = esc_attr( get_the_time( 'Y' ) ); $archive_month = esc_attr( get_the_time( 'm' ) ); $archive_day = esc_attr( get_the_time( 'd' ) ); $day_link = esc_url( get_day_link( $archive_year, $archive_month, $archive_day ) ); return sprintf( ' %2$s', $day_link, $time_string ); } /** * Displays update date * @return string */ public static function article_meta_update() { $time_string = ''; $time_string = sprintf( $time_string, esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); return '' . __( 'Last updated on', 'canvi' ) . ': ' . $time_string . ''; } /** * Displays categories list * @return string */ public static function category_line( $container_class ) { $categories = get_the_category(); $category_content = ''; if ( count( $categories ) > 0 ) { $category_content .= '
'; foreach ( $categories as $category ) { $category_content .= '' . $category->name . ''; } $category_content .= '
'; } echo $category_content; } /** * Displays post format * @return string */ public static function post_format() { global $post; $post_format = get_post_format( $post->ID ); return '' . $post_format . ''; } /** * Displays Comments Counter & Link * @return string */ public static function comments_count() { return ' ' . get_comments_number() . ' '; } /** * Displays Author Line * @return string/null */ public static function author_line() { if ( strlen( get_the_author_link() ) > 0 ) { return '' . __( 'Published by: ', 'canvi' ) . get_the_author_link() . ''; } } /** * Template for comments and pingbacks. */ public static function comment_template( $comment, $args, $depth ) { switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    user_id, 'smartlib_profile_image', TRUE ) ); if ( ! empty( $user_photo ) ) { ?>
    User
    %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', 'canvi' ) . '' : '' ); printf( '', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'canvi' ), get_comment_date(), get_comment_time() ) ); ?> ', '' ); ?>
    comment_approved ) : ?>

    __( 'Reply', 'canvi' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ), 1 ); //comment_reply_link( array_merge( $args, array( , 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>

    have_posts() ) { $query->the_post(); $post_format = get_post_format(); ?>

    have_posts() ) { $query->the_post(); ?>