Translated using Weblate (Bengali)
[phpmyadmin.git] / themes.php
blobe57e34f37bba16fce36d4e4e46c4c9bd5b5fc628
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays list of themes.
6 * @package PhpMyAdmin
7 */
8 use PMA\libraries\ThemeManager;
9 use PMA\libraries\Response;
11 /**
12 * get some globals
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>';
26 $output .= '<p>';
27 $output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
28 $output .= __('Get more themes!');
29 $output .= '</a>';
30 $output .= '</p>';
31 $output .= ThemeManager::getInstance()->getPrintPreviews();
33 $response->addHTML($output);