Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/calendar/icon/PhabricatorCalendarIconSet.php
12256 views
1
<?php
2
3
final class PhabricatorCalendarIconSet
4
extends PhabricatorIconSet {
5
6
const ICONSETKEY = 'calendar.event';
7
8
public function getSelectIconTitleText() {
9
return pht('Choose Event Icon');
10
}
11
12
protected function newIcons() {
13
$map = array(
14
'fa-calendar' => pht('Default'),
15
'fa-glass' => pht('Party'),
16
'fa-plane' => pht('Travel'),
17
'fa-plus-square' => pht('Health / Appointment'),
18
19
'fa-rocket' => pht('Sabbatical / Leave'),
20
'fa-home' => pht('Working From Home'),
21
'fa-tree' => pht('Holiday'),
22
'fa-gamepad' => pht('Staycation'),
23
24
'fa-coffee' => pht('Coffee Meeting'),
25
'fa-film' => pht('Movie'),
26
'fa-users' => pht('Meeting'),
27
'fa-cutlery' => pht('Meal'),
28
29
'fa-paw' => pht('Pet Activity'),
30
'fa-institution' => pht('Official Business'),
31
'fa-bus' => pht('Field Trip'),
32
'fa-microphone' => pht('Conference'),
33
);
34
35
$icons = array();
36
foreach ($map as $key => $label) {
37
$icons[] = id(new PhabricatorIconSetIcon())
38
->setKey($key)
39
->setLabel($label);
40
}
41
42
return $icons;
43
}
44
45
}
46
47