2016-01-12 15:06:43 -08:00
|
|
|
<?php
|
|
|
|
|
2016-12-11 10:08:26 -08:00
|
|
|
final class PhabricatorProfileMenuItemIconSet
|
2016-01-12 15:06:43 -08:00
|
|
|
extends PhabricatorIconSet {
|
|
|
|
|
2016-12-11 10:08:26 -08:00
|
|
|
const ICONSETKEY = 'profilemenuitem';
|
2016-01-12 15:06:43 -08:00
|
|
|
|
|
|
|
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'),
|
|
|
|
),
|
2016-01-13 16:07:04 -08:00
|
|
|
array(
|
|
|
|
'key' => 'phriction',
|
|
|
|
'icon' => 'fa-book',
|
|
|
|
'name' => pht('Phriction'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'key' => 'conpherence',
|
|
|
|
'icon' => 'fa-comments',
|
|
|
|
'name' => pht('Conpherence'),
|
|
|
|
),
|
2016-01-14 06:47:06 -08:00
|
|
|
array(
|
|
|
|
'key' => 'differential',
|
|
|
|
'icon' => 'fa-cog',
|
|
|
|
'name' => pht('Differential'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'key' => 'diffusion',
|
|
|
|
'icon' => 'fa-code',
|
|
|
|
'name' => pht('Diffusion'),
|
|
|
|
),
|
|
|
|
array(
|
|
|
|
'key' => 'calendar',
|
|
|
|
'icon' => 'fa-calendar',
|
|
|
|
'name' => pht('Calendar'),
|
|
|
|
),
|
2016-01-13 16:07:04 -08:00
|
|
|
array(
|
|
|
|
'key' => 'create',
|
|
|
|
'icon' => 'fa-plus',
|
|
|
|
'name' => pht('Create'),
|
|
|
|
),
|
2016-01-12 15:06:43 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
$icons = array();
|
|
|
|
foreach ($list as $spec) {
|
|
|
|
$icons[] = id(new PhabricatorIconSetIcon())
|
|
|
|
->setKey($spec['key'])
|
|
|
|
->setIcon($spec['icon'])
|
|
|
|
->setLabel($spec['name']);
|
|
|
|
}
|
|
|
|
|
|
|
|
return $icons;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|