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