$line){
if($line != ''){
list($style_name, $style_short, $style_path, $style_rel) = explode (',', $line);
$style_path = CSS_DIR.$style_path;
if(file_exists($style_path)){
if($style_rel) $style_rel = 'stylesheet';
else $style_rel = 'alternate stylesheet';
$style_load .= ''."\n";
$style_js = format_js_var($style_name);
$style_title = str_replace('[what]', $style_name, _T('style_tooltip'));
$style_bar .= ' '.$style_short.' |';
}
}
}
$style_bar .= ']';
// Tidy up trailing seperators and empty brackets
$style_bar = str_replace('|]', ']', $style_bar);
$style_bar = str_replace('[] ', '', $style_bar);
$style_bar = str_replace('[]', '', $style_bar);
}
// Load stylesheet setting from config.php
// if either of the datafiles are missing or empty
if(str_replace('[]', '', $style_bar) == '') $style_load .= '';
// style sheet js loader
$jsdonk = 'var style_cookie = "';
$jsdonk .= ($style_bar) ? 'yo_style' : '';
$jsdonk .= '";';
////++++
// CSS data is loaded And we proceed with head()
?>