* @license MIT */ // Provided by composer for psr-4 style autoloading. require __DIR__ .'/vendor/autoload.php'; $config = new Jump\Config(); $blur = floor((int)$config->get('bgblur', false) / 100 * 15); $brightness = (int)$config->get('bgbright', false) ? (int)$config->get('bgbright', false) / 100 : 1; $bgurlstring = ''; if ($config->get('unsplashapikey', false) == null) { $backgroundimgfile = (new Jump\Background($config))->get_random_background_file(); $bgurlstring = 'background-image: url("'.$backgroundimgfile.'");'; } header('Content-Type: text/css'); echo '.background {'.$bgurlstring.'filter: brightness('.$brightness.') blur('.$blur.'px);}';