Location: PHPKode > projects > HuMo-gen > styles/sss1.php
<?php
//Stylesheetwsitcher 1 wordt een include

$map=opendir($cms['cms_path'].'styles/');
while (false!==($file = readdir($map))) { 
	if (substr($file,-4,4)=='.css') { 
		$theme_map[]=$file; 
	}
}
closedir($map);

for ($i=0; $i<count($theme_map); $i++){
	$theme=$theme_map[$i];
	$theme=str_replace(".css","", $theme);  
	echo '<link href="'.$cms['cms_path'].'styles/'.$theme.'.css" rel="alternate stylesheet" type="text/css" media="screen" title="'.$theme.'">';
}

// Added by Huub for default skin!
echo '<script type="text/javascript">';
if (isset($humo_option['default_skin'])){
	echo 'var defaultskin="'.$humo_option['default_skin'].'";';
}
else{
	echo 'var defaultskin="";';  // Added by Huub for default skin!
}		
echo '</script>';

//Stylesheetswitcher 2 wordt een include
echo '<script src="styles/styleswitch.js" type="text/javascript"></script>';

echo '<script type="text/javascript">window.onload=function(){';
echo 'var formref=document.getElementById("switchform");
indicateSelected(formref.switchcontrol) }';
echo '</script>';
?>
Return current item: HuMo-gen