Translated using Weblate (Persian)
[phpmyadmin.git] / themes.php
blobe9496b7ea7e3dbdf31ca17911274b2ff6cddc8f8
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays list of themes.
6 * @package PhpMyAdmin
7 */
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]*)\..*/',
33 '\1_\2',
34 PMA_VERSION
36 'previews' => ThemeManager::getInstance()->getPrintPreviews(),
37 ]));