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
;
17 require './libraries/common.inc.php';
19 $response = Response
::getInstance();
20 $response->getFooter()->setMinimal();
21 $header = $response->getHeader();
22 $header->setBodyId('bodythemes');
23 $header->setTitle('phpMyAdmin - ' . __('Theme'));
24 $header->disableMenuAndConsole();
26 $hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION
);
27 $url = Core
::linkURL('https://www.phpmyadmin.net/themes/') . $hash;
28 $output = '<h1>phpMyAdmin - ' . __('Theme') . '</h1>';
30 $output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
31 $output .= __('Get more themes!');
34 $output .= ThemeManager
::getInstance()->getPrintPreviews();
36 $response->addHTML($output);