Themes are configured with $cfg['ThemePath'], $cfg['ThemeManager'] and $cfg['ThemeDefault']. Under $cfg['ThemePath'], you should not delete the directory pmahomme or its underlying structure, because this is the system theme used by phpMyAdmin. pmahomme contains all images and styles, for backwards compatibility and for all themes that would not include images or css-files. If $cfg['ThemeManager'] is enabled, you can select your favorite theme on the main page. Your selected theme will be stored in a cookie.
To create a theme:
- make a new subdirectory (for example “your_theme_name”) under $cfg['ThemePath'] (by default themes)
- copy the files and directories from pmahomme to “your_theme_name”
- edit the css-files in “your_theme_name/css”
- put your new images in “your_theme_name/img”
- edit layout.inc.php in “your_theme_name”
- edit info.inc.php in “your_theme_name” to contain your chosen theme name, that will be visible in user interface
- make a new screenshot of your theme and save it under “your_theme_name/screen.png”
In theme directory there is file info.inc.php which contains theme verbose name, theme generation and theme version. These versions and generations are enumerated from 1 and do not have any direct dependence on phpMyAdmin version. Themes within same generation should be backwards compatible – theme with version 2 should work in phpMyAdmin requiring version 1. Themes with different generation are incompatible.
If you do not want to use your own symbols and buttons, remove the directory “img” in “your_theme_name”. phpMyAdmin will use the default icons and buttons (from the system-theme pmahomme).
Posted in: PhpMyAdmin