-
Notifications
You must be signed in to change notification settings - Fork 0
/
de.j0sh.socialclub.tar
83 lines (79 loc) · 12.5 KB
/
de.j0sh.socialclub.tar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
files/ 40777 0 0 0 12335507233 5202 5 files/files.tar 100777 0 0 12000 12335507231 7123 0 lib/ 40777 0 0 0 12335507115 4645 5 lib/system/ 40777 0 0 0 12335507115 6171 5 lib/system/option/ 40777 0 0 0 12335507115 7501 5 lib/system/option/user/ 40777 0 0 0 12335507115 10457 5 lib/system/option/user/SocialclubUserOptionOutput.class.php 100777 0 0 2045 12335507211 17723 0 <?php
namespace wcf\system\option\user;
use wcf\data\user\option\UserOption;
use wcf\data\user\User;
use wcf\util\StringUtil;
/**
* User option output implementation for the output of a socialclub user profile.
*
* @author Joshua Dehler
* @copyright 2014 Joshua Dehler
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @subpackage system.option.user
* @category Community Framework
*/
class SocialclubUserOptionOutput implements IUserOptionOutput {
/**
* @see wcf\system\option\user\IUserOptionOutput::getOutput()
*/
public function getOutput(User $user, UserOption $option, $value) {
if (empty($value)) return '';
$value = StringUtil::encodeHTML($value);
$link = StringUtil::encodeHTML('http://de.socialclub.rockstargames.com/member/' . $value);
return '<a href="'.$link.'" class="externalURL"'.(EXTERNAL_LINK_REL_NOFOLLOW ? ' rel="nofollow"' : '').(EXTERNAL_LINK_TARGET_BLANK ? ' target="_blank"' : '').'>'.$value.'</a>';
}
}