pathinfo($f, PATHINFO_FILENAME), $files); sort($names); return $names; } function bg_default(): string { $all = bg_styles(); return in_array('flow', $all, true) ? 'flow' : ($all[0] ?? ''); } /** A different style on every page load. */ function bg_pick(): string { $all = bg_styles(); return $all ? $all[random_int(0, count($all) - 1)] : ''; }