Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F115450964
PhabricatorProfilePanelIconSet.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 1, 02:31
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jun 3, 02:31 (2 d)
Engine
blob
Format
Raw Data
Handle
26492089
Attached To
rPH Phabricator
PhabricatorProfilePanelIconSet.php
View Options
<?php
final
class
PhabricatorProfilePanelIconSet
extends
PhabricatorIconSet
{
const
ICONSETKEY
=
'profilepanel'
;
public
function
getSelectIconTitleText
()
{
return
pht
(
'Choose Item Icon'
);
}
protected
function
newIcons
()
{
$list
=
array
(
array
(
'key'
=>
'link'
,
'icon'
=>
'fa-link'
,
'name'
=>
pht
(
'Link'
),
),
array
(
'key'
=>
'maniphest'
,
'icon'
=>
'fa-anchor'
,
'name'
=>
pht
(
'Maniphest'
),
),
array
(
'key'
=>
'feed'
,
'icon'
=>
'fa-newspaper-o'
,
'name'
=>
pht
(
'Feed'
),
),
array
(
'key'
=>
'phriction'
,
'icon'
=>
'fa-book'
,
'name'
=>
pht
(
'Phriction'
),
),
array
(
'key'
=>
'conpherence'
,
'icon'
=>
'fa-comments'
,
'name'
=>
pht
(
'Conpherence'
),
),
array
(
'key'
=>
'create'
,
'icon'
=>
'fa-plus'
,
'name'
=>
pht
(
'Create'
),
),
);
$icons
=
array
();
foreach
(
$list
as
$spec
)
{
$icons
[]
=
id
(
new
PhabricatorIconSetIcon
())
->
setKey
(
$spec
[
'key'
])
->
setIcon
(
$spec
[
'icon'
])
->
setLabel
(
$spec
[
'name'
]);
}
return
$icons
;
}
}
Event Timeline
Log In to Comment