Fix #15621 - Support CloudFront-Forwarded-Proto header
[phpmyadmin.git] / themes.php
blob760015b14056599fee77599c221197338bed95ae
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays list of themes.
6 * @package PhpMyAdmin
7 */
9 use PhpMyAdmin\Core;
10 use PhpMyAdmin\ThemeManager;
11 use PhpMyAdmin\Response;
13 /**
14 * get some globals
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>';
28 $output .= '<p>';
29 $output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
30 $output .= __('Get more themes!');
31 $output .= '</a>';
32 $output .= '</p>';
33 $output .= ThemeManager::getInstance()->getPrintPreviews();
35 $response->addHTML($output);