This file contains 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 ($mime_type) { | |
// List of official MIME Types: http://www.iana.org/assignments/media-types/media-types.xhtml | |
$icon_classes = array( |
This file contains 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
// Currently going to latest.civicrm.org/stable.php outputs: | |
4.5.4 | |
// Proposed new output | |
{ | |
"4.2": { | |
"status": "lts", // one of "lts", "eol", "stable" or "testing" | |
"releases": [ | |
{"version": "4.2.alpha1", "date": "2012-06-08"}, | |
{"version": "4.2.alpha2", "date": "2012-06-20"}, |