PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.43
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.43
1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.23 All 172 releases
userswp / templates / comments-item.php

comments-item.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.43, at templates/comments-item.php

33 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit; // Exit if accessed directly
5 }
6 global $comment;
7 $comment = isset( $args['template_args']['comment'] ) ? $args['template_args']['comment'] : '';
8 ?>
9 <li class="uwp-profile-item-li uwp-profile-item-clearfix">
10 <a class="uwp-profile-item-img" href="<?php echo esc_url( get_comment_link($comment->comment_ID) ); ?>">
11 <?php
12 if ( has_post_thumbnail($comment->comment_post_ID) ) {
13 $thumb_url = get_the_post_thumbnail_url($comment->comment_post_ID, array(80, 80));
14 } else {
15 $thumb_url = uwp_get_default_thumb_uri();
16 }
17 ?>
18 <img class="uwp-profile-item-alignleft uwp-profile-item-thumb" src="<?php echo esc_url( $thumb_url ); ?>">
19 </a>
20
21 <h3 class="uwp-profile-item-title">
22 <a href="<?php echo esc_url( get_comment_link($comment->comment_ID) ); ?>"><?php echo esc_html( get_the_title($comment->comment_post_ID) ); ?></a>
23 </h3>
24 <time class="uwp-profile-item-time published" datetime="<?php echo esc_attr( get_comment_time('c') ); ?>">
25 <?php echo esc_html( date_i18n( get_option( 'date_format' ), strtotime( get_comment_date("", $comment->comment_ID) ) ) ); ?>
26 </time>
27 <div class="uwp-profile-item-summary">
28 <?php
29 $excerpt = strip_shortcodes(wp_trim_words( $comment->comment_content, 100, '...' ));
30 echo esc_attr( $excerpt );
31 ?>
32 </div>
33 </li>