Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRouslan Placella <rouslan@placella.com>2012-06-02 00:54:25 +0400
committerRouslan Placella <rouslan@placella.com>2012-06-11 17:06:03 +0400
commit234480cdae019acd2cc980a5126775601cb298ab (patch)
tree57a3c7ac7de67fec2a400d930343a806e731c97e /themes.php
parent07c7b29f48cf401a6f235271cf894b917e88a161 (diff)
Integrated themes.php with PMA_Response class
Diffstat (limited to 'themes.php')
-rw-r--r--themes.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/themes.php b/themes.php
index f5723f3833..4328383a73 100644
--- a/themes.php
+++ b/themes.php
@@ -10,17 +10,22 @@
*/
require './libraries/common.inc.php';
$response = PMA_Response::getInstance();
-$header = $response->getHeader();
+$response->getFooter()->setMinimal();
+$header = $response->getHeader();
$header->setBodyId('bodythemes');
$header->setTitle('phpMyAdmin - ' . __('Theme'));
$header->disableMenu();
-$header->display();
+
+$hash = '#pma_' . preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION);
+$url = PMA_linkURL('http://www.phpmyadmin.net/home_page/themes.php') . $hash;
+$output = '<h1>phpMyAdmin - ' . __('Theme') . '</h1>';
+$output .= '<p>';
+$output .= '<a href="' . $url . '" class="_blank">';
+$output .= __('Get more themes!');
+$output .= '</a>';
+$output .= '</p>';
+$output .= $_SESSION['PMA_Theme_Manager']->getPrintPreviews();
+
+$response->addHTML($output);
?>
-<h1>phpMyAdmin - <?php echo __('Theme'); ?></h1>
-<p><a href="<?php echo PMA_linkURL('http://www.phpmyadmin.net/home_page/themes.php'); ?>#pma_<?php echo preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION); ?>" class="_blank"><?php echo __('Get more themes!'); ?></a></p>
-<?php
-$_SESSION['PMA_Theme_Manager']->printPreviews();
-?>
-</body>
-</html>