PluginProbe
wpForo Forum / 3.1.6
wpForo Forum v3.1.6
3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 138 releases
wpforo / themes / classic / profile-following.php

profile-following.php in wpForo Forum 3.1.6, at themes/classic/profile-following.php

48 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Exit if accessed directly
3 if( ! defined( 'ABSPATH' ) ) exit;
4
5 $follows = (array) wpfval( WPF()->current_object, 'follows' );
6 ?>
7
8 <div class="wpforo-following">
9 <?php do_action( 'wpforo_template_profile_following_head_bar', $follows ); ?>
10
11 <h3 class="wpf-tab-subtitle"><?php wpforo_phrase('Following') ?></h3>
12
13 <?php if( $follows ) : ?>
14 <div class="wpforo-following-list">
15 <?php
16 foreach( $follows as $follow ) {
17 if( $follow['itemtype'] === 'user' ) {
18 if( $user = WPF()->member->get_member( $follow['itemid'] ) ){
19 printf(
20 '<div class="wpforo-follower">
21 <div class="follower-avatar">%1$s</div>
22 <div class="follower-title">%2$s</div>
23 <div class="sbn-action">%3$s</div>
24 </div>',
25 wpforo_member_link( $user, '', 64, '', false, 'avatar' ),
26 wpforo_member_link( $user, '', 30, '', false ),
27 (
28 ( WPF()->current_object['user_is_same_current_user'] || wpforo_current_user_is( 'admin' ) )
29 ? sprintf(
30 '<a href="%1$s" title="%2$s"><i class="fas fa-bell-slash"></i> %2$s</a>',
31 esc_url( (string) $follow['unfollow_link'] ),
32 wpforo_phrase( 'Unfollow', false )
33 ) : ''
34 )
35 );
36 }
37 }
38 }
39 ?>
40 </div>
41 <div class="sbn-foot">
42 <?php wpforo_template_pagenavi() ?>
43 </div>
44 <?php else : ?>
45 <p class="wpf-p-error"> <?php wpforo_phrase( 'No following found for this member.' ) ?> </p>
46 <?php endif; ?>
47 </div>
48