__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
.. _themes:
Custom Themes
=============
phpMyAdmin comes with support for third party themes. You can download
additional themes from our website at <https://www.phpmyadmin.net/themes/>.
Configuration
-------------
Themes are configured with :config:option:`$cfg['ThemeManager']` and
:config:option:`$cfg['ThemeDefault']`. Under :file:`./themes/`, 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 :config:option:`$cfg['ThemeManager']` is enabled, you
can select your favorite theme on the main page. Your selected theme will be
stored in a cookie.
Creating custom theme
---------------------
To create a theme:
* make a new subdirectory (for example "your\_theme\_name") under :file:`./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 :file:`_variables.scss` in "your\_theme\_name/scss"
* edit :file:`theme.json` in "your\_theme\_name" to contain theme metadata (see below)
* make a new screenshot of your theme and save it under
"your\_theme\_name/screen.png"
Theme metadata
++++++++++++++
.. versionchanged:: 4.8.0
Before 4.8.0 the theme metadata was passed in the :file:`info.inc.php` file.
It has been replaced by :file:`theme.json` to allow easier parsing (without
need to handle PHP code) and to support additional features.
In theme directory there is file :file:`theme.json` which contains theme
metadata. Currently it consists of:
.. describe:: name
Display name of the theme.
**This field is required.**
.. describe:: version
Theme version, can be quite arbitrary and does not have to match phpMyAdmin version.
**This field is required.**
.. describe:: description
Theme description. this will be shown on the website.
**This field is required.**
.. describe:: author
Theme author name.
**This field is required.**
.. describe:: url
Link to theme author website. It's good idea to have way for getting
support there.
.. describe:: supports
Array of supported phpMyAdmin major versions.
**This field is required.**
For example, the definition for Original theme shipped with phpMyAdmin 4.8:
.. code-block:: json
{
"name": "Original",
"version": "4.8",
"description": "Original phpMyAdmin theme",
"author": "phpMyAdmin developers",
"url": "https://www.phpmyadmin.net/",
"supports": ["4.8"]
}
Sharing images
++++++++++++++
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``).
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| bookmarks.rst.txt | File | 2.41 KB | 0644 |
|
| charts.rst.txt | File | 4.63 KB | 0644 |
|
| config.rst.txt | File | 124.59 KB | 0644 |
|
| copyright.rst.txt | File | 1.58 KB | 0644 |
|
| credits.rst.txt | File | 27.36 KB | 0644 |
|
| developers.rst.txt | File | 380 B | 0644 |
|
| faq.rst.txt | File | 92.28 KB | 0644 |
|
| glossary.rst.txt | File | 14.94 KB | 0644 |
|
| import_export.rst.txt | File | 9.97 KB | 0644 |
|
| index.rst.txt | File | 573 B | 0644 |
|
| intro.rst.txt | File | 3.08 KB | 0644 |
|
| other.rst.txt | File | 916 B | 0644 |
|
| privileges.rst.txt | File | 3.22 KB | 0644 |
|
| relations.rst.txt | File | 3.26 KB | 0644 |
|
| require.rst.txt | File | 1.84 KB | 0644 |
|
| security.rst.txt | File | 4.5 KB | 0644 |
|
| settings.rst.txt | File | 1015 B | 0644 |
|
| setup.rst.txt | File | 45.06 KB | 0644 |
|
| themes.rst.txt | File | 2.87 KB | 0644 |
|
| transformations.rst.txt | File | 7.76 KB | 0644 |
|
| two_factor.rst.txt | File | 2.82 KB | 0644 |
|
| user.rst.txt | File | 195 B | 0644 |
|
| vendors.rst.txt | File | 2.25 KB | 0644 |
|