1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-23 21:18:19 +01:00
phorge-phorge/src/applications/search/menuitem/PhabricatorProfileMenuItemIconSet.php
epriestley 42896f9f90 Rename all ProfilePanels into ProfileMenuItems
Summary: Ref T11957.

Test Plan:
  - Viewed an existing project profile.
  - Viewed a user profile.
  - Created a new project.
  - Edited a profile menu.
  - Added new profile items.
  - Grepped for renamed symbols.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11957

Differential Revision: https://secure.phabricator.com/D17028
2016-12-11 11:44:38 -08:00

72 lines
1.5 KiB
PHP

<?php
final class PhabricatorProfileMenuItemIconSet
extends PhabricatorIconSet {
const ICONSETKEY = 'profilemenuitem';
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' => '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'),
),
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;
}
}