Translated using Weblate (Portuguese)
[phpmyadmin.git] / themes.php
blob8cfa1f4eac3cfa14f142c376d582835d244d68da
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays list of themes.
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Core;
11 use PhpMyAdmin\ThemeManager;
12 use PhpMyAdmin\Response;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
18 /**
19 * get some globals
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>';
33 $output .= '<p>';
34 $output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
35 $output .= __('Get more themes!');
36 $output .= '</a>';
37 $output .= '</p>';
38 $output .= ThemeManager::getInstance()->getPrintPreviews();
40 $response->addHTML($output);