+
+ public function addStyleSheets($action) {
+ $view = $this->getActionController()->view;
+ if (APPLICATION_ENV == "production") {
+ $suffix = '?' . Syj_Version::VERSION;
+ } else {
+ $suffix = '';
+ }
+
+ $sheets = explode(',', $this->_config->get('css')->get($action));
+ foreach ($sheets as $sheet) {
+ $arr = explode(':', $sheet);
+ $arr = array_map('trim', $arr);
+ $href = 'css/' . $arr[0] . '.css' . $suffix;
+ $medias = array_slice($arr, 1);
+ if (!$medias) {
+ $medias = "all";
+ }
+ $view->headLink()->appendStylesheet($href, $medias);
+ }
+ }