This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# File is "indented" using multiple of 4 spaces | |
# | |
# Specify the docker image to use (only used if using docker runners) | |
# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html | |
# From https://hub.docker.com/r/kaffineaddict/gitlabcakephp3/ - we could use image: kaffineaddict/gitlabcakephp3 | |
image: php:7.2 | |
# The docker services to configure | |
# See: http://doc.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get font awesome file icon class for specific MIME Type | |
* @see https://gist.github.com/guedressel/0daa170c0fde65ce5551 | |
* | |
*/ | |
function font_awesome_file_icon_class( $mime_type ) { | |
// List of official MIME Types: http://www.iana.org/assignments/media-types/media-types.xhtml |