Merge branch 'QA_4_3'
[phpmyadmin.git] / themes.php
blobf0d1be6f095a19de448d1d3895db63c09b61657e
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays list of themes.
6 * @package PhpMyAdmin
7 */
9 /**
10 * get some globals
12 require './libraries/common.inc.php';
13 $response = PMA_Response::getInstance();
14 $response->getFooter()->setMinimal();
15 $header = $response->getHeader();
16 $header->setBodyId('bodythemes');
17 $header->setTitle('phpMyAdmin - ' . __('Theme'));
18 $header->disableMenuAndConsole();
20 $hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION);
21 $url = PMA_linkURL('http://www.phpmyadmin.net/home_page/themes.php') . $hash;
22 $output = '<h1>phpMyAdmin - ' . __('Theme') . '</h1>';
23 $output .= '<p>';
24 $output .= '<a href="' . $url . '" class="_blank">';
25 $output .= __('Get more themes!');
26 $output .= '</a>';
27 $output .= '</p>';
28 $output .= $_SESSION['PMA_Theme_Manager']->getPrintPreviews();
30 $response->addHTML($output);