Ejemplo n.º 1
0
 private function replaceCSSPlaceholder()
 {
     $cssFiles = JFBCFactory::getStylesheets();
     $contents = JResponse::getBody();
     $tag = '';
     foreach ($cssFiles as $f) {
         $tag .= '<link rel="stylesheet" href="' . JUri::base(true) . '/media/sourcecoast/css/' . $f . '" type="text/css" />';
     }
     $contents = str_replace('<SourceCoastCSSPlaceholder />', $tag, $contents);
     JResponse::setBody($contents);
 }