2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays list of themes.
8 declare(strict_types
=1);
10 use PhpMyAdmin\Response
;
11 use PhpMyAdmin\Template
;
12 use PhpMyAdmin\ThemeManager
;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
18 include ROOT_PATH
. 'libraries/common.inc.php';
20 /** @var Template $template */
21 $template = $containerBuilder->get('template');
23 $response = Response
::getInstance();
24 $response->getFooter()->setMinimal();
25 $header = $response->getHeader();
26 $header->setBodyId('bodythemes');
27 $header->setTitle('phpMyAdmin - ' . __('Theme'));
28 $header->disableMenuAndConsole();
30 $response->addHTML($template->render('themes', [
31 'version' => preg_replace(
32 '/([0-9]*)\.([0-9]*)\..*/',
36 'previews' => ThemeManager
::getInstance()->getPrintPreviews(),