Skip to content

Instantly share code, notes, and snippets.

@fyrye
fyrye / font-awesome-mime-type-icons.php
Last active Oct 7, 2020 — forked from guedressel/font-awesome-mime-type-icons.php
Font Awesome File Icons: Mapping MIME Types to correct icon classes
View font-awesome-mime-type-icons.php
<?php
/**
* Get font awesome file icon class for specific MIME Type
* @see https://gist.github.com/guedressel/0daa170c0fde65ce5551
* @param string|null $mime_type
* @return string
*/
function font_awesome_file_icon_class(?string $mime_type): string
{