MDL-40759 icons: Remove unused file type icons.
[moodle.git] / lib / classes / output / icon_system_fontawesome.php
CommitLineData
95b06c13
DW
1<?php
2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * Contains class \core\output\icon_system
19 *
20 * @package core
21 * @category output
22 * @copyright 2016 Damyon Wiese
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24 */
25
26namespace core\output;
27
28/**
29 * Class allowing different systems for mapping and rendering icons.
30 *
31 * Possible icon styles are:
32 * 1. standard - image tags are generated which point to pix icons stored in a plugin pix folder.
33 * 2. fontawesome - font awesome markup is generated with the name of the icon mapped from the moodle icon name.
34 * 3. inline - inline tags are used for svg and png so no separate page requests are made (at the expense of page size).
35 *
36 * @package core
37 * @category output
38 * @copyright 2016 Damyon Wiese
39 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40 */
41class icon_system_fontawesome extends icon_system_font {
42
43 public function get_core_icon_map() {
44 return [
45 'core:docs' => 'fa-info-circle',
46 'core:help' => 'fa-question-circle',
47 'core:req' => 'fa-exclamation-circle',
48 'core:a/add_file' => 'fa-file-o',
49 'core:a/create_folder' => 'fa-folder-o',
50 'core:a/download_all' => 'fa-download',
51 'core:a/help' => 'fa-question-circle',
52 'core:a/logout' => 'fa-sign-out',
53 'core:a/refresh' => 'fa-refresh',
54 'core:a/search' => 'fa-search',
55 'core:a/setting' => 'fa-cog',
56 'core:a/view_icon_active' => 'fa-th',
57 'core:a/view_list_active' => 'fa-list',
58 'core:a/view_tree_active' => 'fa-folder',
59 'core:b/bookmark-new' => 'fa-bookmark',
60 'core:b/document-edit' => 'fa-pencil',
61 'core:b/document-new' => 'fa-file-o',
62 'core:b/document-properties' => 'fa-info',
63 'core:b/edit-copy' => 'fa-files-o',
64 'core:b/edit-delete' => 'fa-trash',
65 'core:e/abbr' => 'fa-comment',
66 'core:e/absolute' => 'fa-crosshairs',
67 'core:e/accessibility_checker' => 'fa-universal-access',
68 'core:e/acronym' => 'fa-comment',
69 'core:e/advance_hr' => 'fa-arrows-h',
70 'core:e/align_center' => 'fa-align-center',
71 'core:e/align_left' => 'fa-align-left',
72 'core:e/align_right' => 'fa-align-right',
73 'core:e/anchor' => 'fa-chain',
74 'core:e/backward' => 'fa-undo',
75 'core:e/bold' => 'fa-bold',
76 'core:e/bullet_list' => 'fa-list-ul',
77 'core:e/cell_props' => 'fa-info',
78 'core:e/cite' => 'fa-quote-right',
79 'core:e/cleanup_messy_code' => 'fa-eraser',
80 'core:e/clear_formatting' => 'fa-fire',
81 'core:e/copy' => 'fa-clone',
82 'core:e/cut' => 'fa-scissors',
83 'core:e/decrease_indent' => 'fa-outdent',
84 'core:e/delete_col' => 'fa-minus',
85 'core:e/delete_row' => 'fa-minus',
86 'core:e/delete' => 'fa-minus',
87 'core:e/delete_table' => 'fa-minus',
88 'core:e/document_properties' => 'fa-info',
89 'core:e/emoticons' => 'fa-meh-o',
90 'core:e/find_replace' => 'fa-search-plus',
91 'core:e/forward' => 'fa-arrow-right',
92 'core:e/fullpage' => 'fa-arrows-alt',
93 'core:e/fullscreen' => 'fa-arrows-alt',
94 'core:e/help' => 'fa-question-circle',
95 'core:e/increase_indent' => 'fa-indent',
96 'core:e/insert_col_after' => 'fa-columns',
97 'core:e/insert_col_before' => 'fa-columns',
98 'core:e/insert_date' => 'fa-calendar',
99 'core:e/insert_edit_image' => 'fa-picture-o',
100 'core:e/insert_edit_link' => 'fa-link',
101 'core:e/insert_edit_video' => 'fa-video-camera',
102 'core:e/insert_file' => 'fa-file',
103 'core:e/insert_horizontal_ruler' => 'fa-arrows-h',
104 'core:e/insert_nonbreaking_space' => 'fa-square-o',
105 'core:e/insert_page_break' => 'fa-level-down',
106 'core:e/insert_row_after' => 'fa-plus',
107 'core:e/insert_row_before' => 'fa-plus',
108 'core:e/insert' => 'fa-plus',
109 'core:e/insert_time' => 'fa-clock-o',
110 'core:e/italic' => 'fa-italic',
111 'core:e/justify' => 'fa-align-justify',
112 'core:e/layers_over' => 'fa-level-up',
113 'core:e/layers' => 'fa-window-restore',
114 'core:e/layers_under' => 'fa-level-down',
115 'core:e/left_to_right' => 'fa-chevron-right',
116 'core:e/manage_files' => 'fa-files-o',
117 'core:e/math' => 'fa-calculator',
118 'core:e/merge_cells' => 'fa-compress',
119 'core:e/new_document' => 'fa-file-o',
120 'core:e/numbered_list' => 'fa-list-ol',
121 'core:e/page_break' => 'fa-level-down',
122 'core:e/paste' => 'fa-clipboard',
123 'core:e/paste_text' => 'fa-clipboard',
124 'core:e/paste_word' => 'fa-clipboard',
125 'core:e/prevent_autolink' => 'fa-exclamation',
126 'core:e/preview' => 'fa-search-plus',
127 'core:e/print' => 'fa-print',
128 'core:e/question' => 'fa-question',
129 'core:e/redo' => 'fa-repeat',
130 'core:e/remove_link' => 'fa-remove',
131 'core:e/remove_page_break' => 'fa-remove',
132 'core:e/resize' => 'fa-expand',
133 'core:e/restore_draft' => 'fa-undo',
134 'core:e/restore_last_draft' => 'fa-undo',
135 'core:e/right_to_left' => 'fa-chevron-left',
136 'core:e/row_props' => 'fa-info',
137 'core:e/save' => 'fa-floppy-o',
138 'core:e/screenreader_helper' => 'fa-braille',
139 'core:e/search' => 'fa-search',
140 'core:e/select_all' => 'fa-arrows-h',
141 'core:e/show_invisible_characters' => 'fa-eye',
142 'core:e/source_code' => 'fa-code',
143 'core:e/special_character' => 'fa-heart',
144 'core:e/spellcheck' => 'fa-check',
145 'core:e/split_cells' => 'fa-columns',
146 'core:e/strikethrough' => 'fa-strikethrough',
147 'core:e/styleprops' => 'fa-info',
148 'core:e/subscript' => 'fa-subscript',
149 'core:e/superscript' => 'fa-superscript',
150 'core:e/table_props' => 'fa-table',
151 'core:e/table' => 'fa-table',
152 'core:e/template' => 'fa-sticky-note',
153 'core:e/text_color_picker' => 'fa-paint-brush',
154 'core:e/text_color' => 'fa-paint-brush',
155 'core:e/text_highlight_picker' => 'fa-lightbulb-o',
156 'core:e/text_highlight' => 'fa-lightbulb-o',
157 'core:e/tick' => 'fa-check',
158 'core:e/toggle_blockquote' => 'fa-quote-left',
159 'core:e/underline' => 'fa-underline',
160 'core:e/undo' => 'fa-undo',
161 'core:e/visual_aid' => 'fa-universal-access',
162 'core:e/visual_blocks' => 'fa-audio-description',
163 'core:f/archive' => 'fa-file-zip-o',
95b06c13 164 'core:f/audio' => 'fa-file-audio-o',
95b06c13 165 'core:f/avi' => 'fa-file-movie-o',
95b06c13 166 'core:f/base' => 'fa-file-o',
95b06c13 167 'core:f/bmp' => 'fa-file-image-o',
95b06c13 168 'core:f/calc' => 'fa-file-excel-o',
95b06c13 169 'core:f/chart' => 'fa-bar-chart',
95b06c13 170 'core:f/database' => 'fa-database',
95b06c13 171 'core:f/document' => 'fa-file',
95b06c13 172 'core:f/draw' => 'fa-file-image-o',
95b06c13 173 'core:f/eps' => 'fa-file-pdf-o',
95b06c13 174 'core:f/epub' => 'fa-book',
95b06c13 175 'core:f/flash' => 'fa-flash',
3c885071 176 'core:f/folder' => 'fa-folder-o',
3c885071 177 'core:f/folder-open' => 'fa-folder-open-o',
95b06c13 178 'core:f/gif' => 'fa-file-image-o',
95b06c13 179 'core:f/html' => 'fa-file-code-o',
95b06c13 180 'core:f/image' => 'fa-file-image-o',
95b06c13 181 'core:f/impress' => 'fa-file-powerpoint-o',
95b06c13 182 'core:f/isf' => 'fa-file-image-o',
95b06c13 183 'core:f/jpeg' => 'fa-file-image-o',
95b06c13 184 'core:f/markup' => 'fa-file-code-o',
95b06c13 185 'core:f/math' => 'fa-calculator',
95b06c13 186 'core:f/moodle' => 'fa-graduation-cap',
95b06c13 187 'core:f/mp3' => 'fa-file-audio-o',
95b06c13 188 'core:f/mpeg' => 'fa-file-video-o',
95b06c13 189 'core:f/oth' => 'fa-file-o',
95b06c13 190 'core:f/pdf' => 'fa-file-pdf-o',
95b06c13 191 'core:f/png' => 'fa-file-image-o',
95b06c13 192 'core:f/powerpoint' => 'fa-file-powerpoint-o',
95b06c13 193 'core:f/psd' => 'fa-file-image-o',
95b06c13 194 'core:f/publisher' => 'fa-file-image-o',
95b06c13 195 'core:f/quicktime' => 'fa-file-video-o',
95b06c13 196 'core:f/sourcecode' => 'fa-file-code-o',
95b06c13 197 'core:f/spreadsheet' => 'fa-file-excel-o',
95b06c13 198 'core:f/text' => 'fa-file-text-o',
95b06c13 199 'core:f/tiff' => 'fa-file-image-o',
95b06c13 200 'core:f/unknown' => 'fa-file-o',
95b06c13 201 'core:f/video' => 'fa-file-video-o',
95b06c13 202 'core:f/wav' => 'fa-file-audio-o',
95b06c13 203 'core:f/wmv' => 'fa-file-video-o',
95b06c13 204 'core:f/writer' => 'fa-file-word-o',
95b06c13
DW
205 'theme:fp/add_file' => 'fa-file-o',
206 'theme:fp/alias' => 'fa-link',
207 'theme:fp/check' => 'fa-check',
3c885071 208 'theme:fp/create_folder' => 'fa-folder-o',
95b06c13
DW
209 'theme:fp/cross' => 'fa-remove',
210 'theme:fp/download_all' => 'fa-download',
211 'theme:fp/help' => 'fa-question-circle',
212 'theme:fp/link' => 'fa-link',
213 'theme:fp/link_sm' => 'fa-link',
214 'theme:fp/logout' => 'fa-sign-out',
215 'theme:fp/path_folder' => 'fa-folder',
216 'theme:fp/path_folder_rtl' => 'fa-folder',
217 'theme:fp/refresh' => 'fa-refresh',
218 'theme:fp/search' => 'fa-search',
219 'theme:fp/setting' => 'fa-cog',
220 'theme:fp/view_icon_active' => 'fa-th',
221 'theme:fp/view_list_active' => 'fa-list',
222 'theme:fp/view_tree_active' => 'fa-folder',
223 'core:i/assignroles' => 'fa-user-plus',
224 'core:i/backup' => 'fa-file-zip-o',
225 'core:i/badge' => 'fa-shield',
226 'core:i/calc' => 'fa-calculator',
227 'core:i/calendar' => 'fa-calendar',
228 'core:i/caution' => 'fa-exclamation',
229 'core:i/checked' => 'fa-check',
230 'core:i/checkpermissions' => 'fa-unlock-alt',
231 'core:i/cohort' => 'fa-users',
232 'core:i/competencies' => 'fa-check-square-o',
233 'core:i/completion-auto-enabled' => 'fa-check-square',
234 'core:i/completion-auto-fail' => 'fa-square-o',
235 'core:i/completion-auto-n' => 'fa-square-o',
236 'core:i/completion-auto-pass' => 'fa-check-square',
237 'core:i/completion-auto-y' => 'fa-check-square',
238 'core:i/completion-manual-enabled' => 'fa-square-o',
239 'core:i/completion-manual-y' => 'fa-check-square',
240 'core:i/completion-manual-n' => 'fa-minus-square',
241 'core:i/completion-self' => 'fa-user-o',
242 'core:i/lock' => 'fa-lock',
243 'core:i/courseevent' => 'fa-calendar',
244 'core:i/course' => 'fa-globe',
245 'core:i/db' => 'fa-database',
246 'core:i/delete' => 'fa-trash',
247 'core:i/down' => 'fa-arrow-down',
248 'core:i/dragdrop' => 'fa-arrows',
249 'core:i/duration' => 'fa-clock',
250 'core:i/edit' => 'fa-pencil',
251 'core:i/email' => 'fa-envelope',
252 'core:i/enrolmentsuspended' => 'fa-user-circle',
253 'core:i/enrolusers' => 'fa-user-plus',
254 'core:i/expired' => 'fa-exclamation',
255 'core:i/export' => 'fa-level-down',
256 'core:i/files' => 'fa-file',
257 'core:i/filter' => 'fa-filter',
258 'core:i/flagged' => 'fa-flag',
259 'core:i/folder' => 'fa-folder',
260 'core:i/grade_correct' => 'fa-check',
261 'core:i/grade_incorrect' => 'fa-remove',
262 'core:i/grade_partiallycorrect' => 'fa-check-square',
263 'core:i/grades' => 'fa-graduation-cap',
264 'core:i/groupevent' => 'fa-group',
265 'core:i/groupn' => 'fa-user',
266 'core:i/group' => 'fa-users',
267 'core:i/groups' => 'fa-user-circle-o',
268 'core:i/groupv' => 'fa-users',
269 'core:i/hide' => 'fa-eye',
270 'core:i/heirarchylock' => 'fa-lock',
271 'core:i/import' => 'fa-level-up',
272 'core:i/info' => 'fa-info',
273 'core:i/invalid' => 'fa-exclamation',
274 'core:i/item' => 'fa-circle',
275 'core:i/loading' => 'fa-circle-o-notch fa-spin',
276 'core:i/loading_small' => 'fa-circle-o-notch fa-spin',
277 'core:i/lock' => 'fa-lock',
278 'core:i/log' => 'fa-list-alt',
279 'core:i/mahara_host' => 'fa-id-badge',
280 'core:i/manual_item' => 'fa-square-o',
281 'core:i/marked' => 'fa-check-square',
282 'core:i/marker' => 'fa-user-o',
283 'core:i/mean' => 'fa-calculator',
284 'core:i/menu' => 'fa-ellipsis-v',
285 'core:i/mnethost' => 'fa-external-link',
286 'core:i/moodle_host' => 'fa-graduation-cap',
287 'core:i/move_2d' => 'fa-arrows',
288 'core:i/navigationitem' => 'fa-angle-right',
289 'core:i/ns_red_mark' => 'fa-remove',
290 'core:i/new' => 'fa-plus',
291 'core:i/news' => 'fa-newspaper',
292 'core:i/nosubcat' => 'fa-plus-square-o',
293 'core:i/notifications' => 'fa-bell',
294 'core:i/open' => 'fa-folder-open',
295 'core:i/outcomes' => 'fa-tasks',
296 'core:i/payment' => 'fa-money',
297 'core:i/permissionlock' => 'fa-lock',
298 'core:i/permissions' => 'fa-pencil-square-o',
299 'core:i/persona_sign_in_black' => 'fa-male',
300 'core:i/portfolio' => 'fa-id-badge',
301 'core:i/preview' => 'fa-search-plus',
302 'core:i/progressbar' => 'fa-spinner fa-spin',
303 'core:i/publish' => 'fa-share',
304 'core:i/questions' => 'fa-question',
305 'core:i/reload' => 'fa-refresh',
306 'core:i/report' => 'fa-area-chart',
307 'core:i/repository' => 'fa-hdd-o',
308 'core:i/restore' => 'fa-level-up',
309 'core:i/return' => 'fa-arrow-left',
310 'core:i/risk_config' => 'fa-cog',
311 'core:i/risk_managetrust' => 'fa-exclamation-triangle',
312 'core:i/risk_personal' => 'fa-user',
313 'core:i/risk_spam' => 'fa-trash',
314 'core:i/risk_xss' => 'fa-exchange',
315 'core:i/role' => 'fa-user-md',
316 'core:i/rss' => 'fa-rss',
24a6b594 317 'core:i/rsssitelogo' => 'fa-graduation-cap',
95b06c13
DW
318 'core:i/scales' => 'fa-balance-scale',
319 'core:i/scheduled' => 'fa-calendar-check-o',
320 'core:i/search' => 'fa-search',
321 'core:i/settings' => 'fa-cogs',
322 'core:i/show' => 'fa-eye-slash',
323 'core:i/siteevent' => 'fa-share-alt',
324 'core:i/starrating' => 'fa-star',
325 'core:i/stats' => 'fa-line-chart',
326 'core:i/switch' => 'fa-exchange',
327 'core:i/switchrole' => 'fa-user-secret',
328 'core:i/twoway' => 'fa-arrows-h',
329 'core:i/unchecked' => 'fa-square-o',
330 'core:i/unflagged' => 'fa-flag-o',
331 'core:i/unlock' => 'fa-unlock',
332 'core:i/up' => 'fa-arrow-up',
333 'core:i/userevent' => 'fa-user',
334 'core:i/user' => 'fa-user',
335 'core:i/users' => 'fa-users',
336 'core:i/valid' => 'fa-check-square-o',
337 'core:i/warning' => 'fa-exclamation',
338 'core:i/withsubcat' => 'fa-plus-square',
339 'core:m/USD' => 'fa-usd',
340 'core:t/addcontact' => 'fa-address-card',
341 'core:t/add' => 'fa-plus',
342 'core:t/approve' => 'fa-thumbs-up',
343 'core:t/assignroles' => 'fa-user-circle',
344 'core:t/award' => 'fa-trophy',
345 'core:t/backpack' => 'fa-shopping-bag',
346 'core:t/backup' => 'fa-arrow-circle-down',
347 'core:t/block' => 'fa-commenting-o',
348 'core:t/block_to_dock_rtl' => 'fa-chevron-right',
349 'core:t/block_to_dock' => 'fa-chevron-left',
350 'core:t/calc_off' => 'fa-times',
351 'core:t/calc' => 'fa-calculator',
352 'core:t/check' => 'fa-check',
353 'core:t/cohort' => 'fa-users',
354 'core:t/collapsed_empty_rtl' => 'fa-plus-square-o',
355 'core:t/collapsed_empty' => 'fa-plus-square-o',
356 'core:t/collapsed_rtl' => 'fa-plus-square',
357 'core:t/collapsed' => 'fa-plus-square',
358 'core:t/contextmenu' => 'fa-cog',
359 'core:t/copy' => 'fa-copy',
360 'core:t/delete' => 'fa-trash',
361 'core:t/dockclose' => 'fa-window-close',
362 'core:t/dock_to_block_rtl' => 'fa-chevron-right',
363 'core:t/dock_to_block' => 'fa-chevron-left',
364 'core:t/download' => 'fa-download',
365 'core:t/down' => 'fa-arrow-down',
366 'core:t/dropdown' => 'fa-cog',
367 'core:t/editinline' => 'fa-pencil',
368 'core:t/edit_menu' => 'fa-cog',
369 'core:t/editstring' => 'fa-pencil',
370 'core:t/edit' => 'fa-cog',
371 'core:t/emailno' => 'fa-envelope-o',
372 'core:t/email' => 'fa-envelope',
373 'core:t/enrolusers' => 'fa-user-plus',
374 'core:t/expanded' => 'fa-caret-down',
375 'core:t/go' => 'fa-arrow-right',
376 'core:t/grades' => 'fa-graduation-cap',
377 'core:t/groupn' => 'fa-users',
378 'core:t/groups' => 'fa-users',
379 'core:t/groupv' => 'fa-users',
380 'core:t/hide' => 'fa-eye',
381 'core:t/left' => 'fa-arrow-left',
382 'core:t/less' => 'fa-caret-up',
383 'core:t/locked' => 'fa-lock',
384 'core:t/lock' => 'fa-lock',
385 'core:t/locktime' => 'fa-lock',
386 'core:t/markasread' => 'fa-check',
387 'core:t/messages' => 'fa-comments',
388 'core:t/message' => 'fa-comment',
389 'core:t/more' => 'fa-caret-down',
390 'core:t/move' => 'fa-arrows',
391 'core:t/passwordunmask-edit' => 'fa-pencil',
392 'core:t/passwordunmask-reveal' => 'fa-eye',
393 'core:t/portfolioadd' => 'fa-plus',
394 'core:t/preferences' => 'fa-wrench',
395 'core:t/preview' => 'fa-search-plus',
396 'core:t/print' => 'fa-print',
397 'core:t/removecontact' => 'fa-user-times',
398 'core:t/reset' => 'fa-repeat',
399 'core:t/restore' => 'fa-arrow-circle-up',
400 'core:t/right' => 'fa-arrow-right',
401 'core:t/show' => 'fa-eye-slash',
402 'core:t/sort_asc' => 'fa-sort-asc',
403 'core:t/sort_desc' => 'fa-sort-desc',
404 'core:t/sort' => 'fa-sort',
405 'core:t/stop' => 'fa-stop',
406 'core:t/switch_minus' => 'fa-minus',
407 'core:t/switch_plus' => 'fa-plus',
408 'core:t/switch_whole' => 'fa-square-o',
409 'core:t/unblock' => 'fa-commenting',
410 'core:t/unlocked' => 'fa-unlock-alt',
411 'core:t/unlock' => 'fa-unlock',
412 'core:t/up' => 'fa-arrow-up',
413 'core:t/user' => 'fa-user',
414 'core:t/viewdetails' => 'fa-list',
415 ];
416 }
417}
418