$url) { if (!empty($url)) { if (preg_match('/frontend/i', $type)) { if (preg_match('/ico/i', $type)) { ?>