This repository has been archived by the owner on Nov 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Gravatar): Add support of gravatar
1. Add support of gravatar 2. Fix Behaviour of display username
- Loading branch information
Showing
11 changed files
with
115 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: Rhilip | ||
* Date: 8/1/2019 | ||
* Time: 10:57 AM | ||
* | ||
* @var League\Plates\Template\Template $this | ||
* @var \apps\models\User $user | ||
* @var \apps\models\Torrent $torrent | ||
*/ | ||
|
||
$torrent = $torrent ?? false; | ||
$user_name_hide = $user_name_hide ?? ($torrent && $torrent->getUplver()); | ||
$user_badge = $user_badge ?? false; | ||
?> | ||
<?php if ($user_name_hide): ?> | ||
<i>Anonymous</i> | ||
<?php if (app()->site->getCurUser()->isPrivilege('see_anonymous_uploader')): ?> | ||
(<?= $this->insert('helper/username', ['user' => $user, 'user_name_hide' => false, 'user_badge' => $user_badge]) ?>) | ||
<?php endif; ?> | ||
<?php else: ?> | ||
<a href="/user?id=<?= $user->getId() ?>"><?= $user->getUsername() ?></a> | ||
<?php if ($user_badge): ?> | ||
<!-- TODO --> | ||
<?php endif; ?> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters