2016-10-22 14:57:10 +00:00
|
|
|
<?php
|
|
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
|
|
/**
|
|
|
|
* Displays list of themes.
|
|
|
|
*
|
|
|
|
* @package PhpMyAdmin
|
|
|
|
*/
|
2018-04-14 09:18:00 +00:00
|
|
|
|
|
|
|
use PhpMyAdmin\Core;
|
|
|
|
use PhpMyAdmin\ThemeManager;
|
|
|
|
use PhpMyAdmin\Response;
|
2016-10-22 14:57:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get some globals
|
|
|
|
*/
|
|
|
|
require './libraries/common.inc.php';
|
2017-04-20 10:55:30 +00:00
|
|
|
|
|
|
|
$response = Response::getInstance();
|
2016-10-22 14:57:10 +00:00
|
|
|
$response->getFooter()->setMinimal();
|
|
|
|
$header = $response->getHeader();
|
|
|
|
$header->setBodyId('bodythemes');
|
|
|
|
$header->setTitle('phpMyAdmin - ' . __('Theme'));
|
|
|
|
$header->disableMenuAndConsole();
|
|
|
|
|
|
|
|
$hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION);
|
2018-04-14 09:18:00 +00:00
|
|
|
$url = Core::linkURL('https://www.phpmyadmin.net/themes/') . $hash;
|
2016-10-22 14:57:10 +00:00
|
|
|
$output = '<h1>phpMyAdmin - ' . __('Theme') . '</h1>';
|
|
|
|
$output .= '<p>';
|
2017-04-20 10:55:30 +00:00
|
|
|
$output .= '<a href="' . $url . '" rel="noopener noreferrer" target="_blank">';
|
2016-10-22 14:57:10 +00:00
|
|
|
$output .= __('Get more themes!');
|
|
|
|
$output .= '</a>';
|
|
|
|
$output .= '</p>';
|
2017-04-20 10:55:30 +00:00
|
|
|
$output .= ThemeManager::getInstance()->getPrintPreviews();
|
2016-10-22 14:57:10 +00:00
|
|
|
|
|
|
|
$response->addHTML($output);
|