2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays list of themes.
9 use PMA\libraries\Core
;
10 use PMA\libraries\ThemeManager
;
11 use PMA\libraries\Response
;
16 require './libraries/common.inc.php';
18 $response = Response
::getInstance();
19 $response->getFooter()->setMinimal();
20 $header = $response->getHeader();
21 $header->setBodyId('bodythemes');
22 $header->setTitle('phpMyAdmin - ' . __('Theme'));
23 $header->disableMenuAndConsole();
25 $hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION
);
26 $url = Core
::linkURL('https://www.phpmyadmin.net/themes/') . $hash;
27 $output = '<h1>phpMyAdmin - ' . __('Theme') . '</h1>';
29 $output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
30 $output .= __('Get more themes!');
33 $output .= ThemeManager
::getInstance()->getPrintPreviews();
35 $response->addHTML($output);