diff --git a/include/controllers/default/crunchbutton/api/build/index.php b/include/controllers/default/crunchbutton/api/build/index.php index 83db0e806..60a092592 100644 --- a/include/controllers/default/crunchbutton/api/build/index.php +++ b/include/controllers/default/crunchbutton/api/build/index.php @@ -46,6 +46,14 @@ class Controller_api_build extends Crunchbutton_Controller_Rest { // css $files[] = 'css/bundle.css'; + // fonts + $use = '/fontawesome/i'; + foreach (new DirectoryIterator(c::config()->dirs->www.'assets/fonts') as $fileInfo) { + if (!$fileInfo->isDot() && preg_match($use, $fileInfo->getBasename())) { + $files[] = 'fonts/'.$fileInfo->getBasename(); + } + } + echo json_encode($files); } } diff --git a/include/views/default/crunchbutton/layout/html.body.phtml b/include/views/default/crunchbutton/layout/html.body.phtml index 8581a91ee..af9784ec1 100644 --- a/include/views/default/crunchbutton/layout/html.body.phtml +++ b/include/views/default/crunchbutton/layout/html.body.phtml @@ -10,10 +10,10 @@