ID .".jpg")) { $noheaderimg = 1; $lastminutecss .= " #headerimg { background: url(". $dirs['www']['headers'] . $post->ID .".jpg) bottom center no-repeat; }\n"; } elseif (get_option('mandigo_headers_random')) { $headersdir = opendir($dirs['loc']['headers']); while (false !== ($file = readdir($headersdir))) { if (preg_match("/\.(?:jpe?g|png|gif|bmp)$/i",$file)) $headers[] = $file; } if (sizeof($headers)) { $noheaderimg = 1; $lastminutecss .= " #headerimg { background: url(". str_replace(' ','%20',$dirs['www']['headers'] . $headers[array_rand($headers,1)]) .") bottom center no-repeat; }\n"; } } ?> \n$lastminutecss\n"; echo get_option('mandigo_inserts_header'); ?> "); $stroke = get_option('mandigo_stroke'); $tag_blogname = get_option('mandigo_tag_blogname'); $tag_blogdesc = get_option('mandigo_tag_blogdesc'); ?>