Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (27 sloc) 0.857 kB
47cd12f @lem9 redesign part 3
lem9 authored
1 <?php
817e790 synced/fixed vim line
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
374abd5 fixed/added page level docblock
Sebastian Mendel authored
3 /**
34dce1d @nijel Various coding style improvements
nijel authored
4 * Displays list of themes.
374abd5 fixed/added page level docblock
Sebastian Mendel authored
5 *
e56949f @nijel Use package name PhpMyAdmin
nijel authored
6 * @package PhpMyAdmin
374abd5 fixed/added page level docblock
Sebastian Mendel authored
7 */
8
9 /**
10 * get some globals
11 */
f700a73 @nijel No need for require_once in these files.
nijel authored
12 require './libraries/common.inc.php';
a054562 @roccivic PMA_Footer and PMA_Header no longer need to be singletons
roccivic authored
13 $response = PMA_Response::getInstance();
234480c @roccivic Integrated themes.php with PMA_Response class
roccivic authored
14 $response->getFooter()->setMinimal();
15 $header = $response->getHeader();
54d47b8 @roccivic Use PMA_Header class in themes.php
roccivic authored
16 $header->setBodyId('bodythemes');
17 $header->setTitle('phpMyAdmin - ' . __('Theme'));
fb14e92 @WhaleWatching PMA console, history and bookmarks.
WhaleWatching authored
18 $header->disableMenuAndConsole();
234480c @roccivic Integrated themes.php with PMA_Response class
roccivic authored
19
20 $hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION);
a6fd4c2 @nijel Cleanup URLs to our website
nijel authored
21 $url = PMA_linkURL('https://www.phpmyadmin.net/themes/') . $hash;
234480c @roccivic Integrated themes.php with PMA_Response class
roccivic authored
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();
29
30 $response->addHTML($output);
Something went wrong with that request. Please try again.