Prev | Current Page 63 | Next

Marc Delisle

"Mastering phpMyAdmin 2.11 for Effective MySQL Management"

For each available theme, there is a subdirectory named after
the theme. It contains:
layout.inc.php for the theme parameters
css directory with the various CSS scripts
img directory containing the icons
screen.png, a screenshot of this theme
The downloaded kit contains two themes, and more themes are available at
http://www.phpmyadmin.net/home_page/downloads.php?themes.
Theme Configuration
In config.inc.php, the $cfg['ThemePath'] parameter contains 'themes' by
default, which indicates which subdirectory the required structure is located in.
This could be changed to point to another directory where our company's specific
phpMyAdmin themes are located.
The default chosen theme is specified in $cfg['ThemeDefault'], and is set to
'original'. If no theme selection is available for users, this theme will be used.
The original subdirectory should never be deleted; phpMyAdmin relies
on it for normal operations.
??? ??? ??? ???
Chapter 3
[ 49 ]
Theme Selection
On the Home page, we can offer a theme selector to users. Setting
$cfg['ThemeManager'] to TRUE (the default) shows the selector:
To help choose a suitable theme, the color palette icon next to Theme/Style brings
us screenshots of the available themes. We can then click on take it under the theme
we want. The chosen theme is remembered in a cookie. By default, the remembered
theme applies to all servers we connect to.


Pages:
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75