diff options
Diffstat (limited to 'templates/actor_profile.php')
| -rw-r--r-- | templates/actor_profile.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/actor_profile.php b/templates/actor_profile.php index 8a97bd8..c480d21 100644 --- a/templates/actor_profile.php +++ b/templates/actor_profile.php @@ -1,3 +1,8 @@ +<?php +use Digitigrade\Model\UserAccount; + +$user = UserAccount::findByCurrentSession(); +?> <div class="fullProfile"> <div class="basicInfo"> <?php call_template('actor_avatar', ['actor' => $actor]); ?> @@ -18,4 +23,13 @@ <?php } else { call_template('placeholder_text', ['message' => __('user.profile.bio.placeholder')]); } ?> + + <?php if (isset($user) && $actor->id != $user->actor->id): ?> + <div class="followInfo"> + <?php if ($actor->follows($user->actor)): ?> + <?= __('user.profile.followsYou') ?> + <?php endif; ?> + <?php call_template('actor_profile_follow_button', ['actor' => $actor, 'user' => $user]); ?> + </div> + <?php endif; ?> </div>
\ No newline at end of file |
