2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays list of themes.
8 declare(strict_types
=1);
11 use PhpMyAdmin\ThemeManager
;
12 use PhpMyAdmin\Response
;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
21 include ROOT_PATH
. 'libraries/common.inc.php';
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 $hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION
);
31 $url = Core
::linkURL('https://www.phpmyadmin.net/themes/') . $hash;
32 $output = '<h1>phpMyAdmin - ' . __('Theme') . '</h1>';
34 $output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
35 $output .= __('Get more themes!');
38 $output .= ThemeManager
::getInstance()->getPrintPreviews();
40 $response->addHTML($output);