+ // Use the logo declared in this themes info file, otherwise use logo.svg
+ // from the themes root.
+ if (!empty($theme->info['logo'])) {
+ $values['logo'] = $theme->getPath() . '/' . $theme->info['logo'];
+ }
+ else {
+ $values['logo'] = $theme->getPath() . '/logo.svg';
+ }
+