isActiveTheme() ? '[*] ' : '[-] '; $themeId = $theme->getId(); $themeName = $themeManager->findByDirName($themeId) ?: $themeId; $this->info($flag . $themeName); } if ($this->option('include-marketplace')) { // @todo List everything in the marketplace - not just popular. $popularThemes = $updateManager->requestPopularProducts('theme'); foreach ($popularThemes as $popularTheme) { if (!$themeManager->isInstalled($popularTheme['code'])) { $this->info('[ ] '.$popularTheme['code']); } } } $this->info(PHP_EOL."[*] Active [-] Installed [ ] Not installed"); } /** * Get the console command options. */ protected function getOptions() { return [ ['include-marketplace', 'm', InputOption::VALUE_NONE, 'Include downloadable themes from the October marketplace.'] ]; } }