Exemplo n.º 1
0
 /**
  * Empties the CSS queue except for the fabriq base css file
  */
 public static function empty_css_queue()
 {
     self::$cssqueue = array();
     self::add_css('fabriq.base', 'screen', 'core/');
 }
Exemplo n.º 2
0
 * Licensed under the BSD license.
 * http://fabriqframework.com/license
 */
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Fabriq Framework | <?php 
echo Fabriq::title();
?>
</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet' type='text/css'>
<?php 
// process css queue
foreach (Fabriq::cssqueue() as $css) {
    echo "<link href=\"{$css['path']}{$css['css']}{$css['ext']}\" media=\"{$css['media']}\" rel=\"stylesheet\" type=\"text/css\" />\n";
}
// process javascript queue
foreach (Fabriq::jsqueue() as $js) {
    echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"{$js['path']}{$js['js']}{$js['ext']}\"></script>\n";
}
?>
<script type="text/javascript">
//<![CDATA[
jQuery.extend(Fabriq.settings, {"basePath": "<?php 
echo PathMap::base_path();
?>
", "cleanURLs": <?php 
echo PathMap::clean_urls_str();
?>