devilbox/.devilbox/www/htdocs/vendor/phpmyadmin-4.8.4/themes.php

36 lines
956 B
PHP
Raw Normal View History

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';
$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>';
$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>';
$output .= ThemeManager::getInstance()->getPrintPreviews();
2016-10-22 14:57:10 +00:00
$response->addHTML($output);