From 318418963b484af49637ec3faeba3a1051b2f9eb Mon Sep 17 00:00:00 2001 From: arzynik Date: Thu, 8 Aug 2013 16:02:17 -0700 Subject: [PATCH] added fonts and some sample icons --- .../controllers/default/crunchbutton/api/build/index.php | 8 ++++++++ include/views/default/crunchbutton/layout/html.body.phtml | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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 @@