Framework structure
Gavern Framework has a quite extensive files structure. It is similar to a standard structure of majority of the themes, however, because of many functionalities, there are some new elements.
The overall outline of files structure is presented below:
- theme’s catalog
It includes all basic files and catalogs for a theme. It is worth seeing that Custom Pages templats have a theme. prefix at the beginning of their names which helps to find them in files structure.- css
There are all CSS theme’s files in it. They are described in details in an entry about framework’s CSS code.
- back-end
To have everything ordered, CSS files connected with an administration panel were placed in this catalog.
- back-end
- fonts
This catalog is used for storing files with additional fonts. You have to remember that each font must have its own catalog including a stylesheet.css file. More information about fonts service can be found in an entry about Fonts in an administration panel.
- gavern
A catalog including the base of whole GavernWP framework work.
- classes
Files with supporting classes used in framework’s code.
- config
Files including framework’s configuration. It has to be remembered that there are additional catalogs used for making transalations.
- form_elements
It includes a main file with a code which generates basic form elements in an administration panel, as well as, catalogs with elements created by a user.
- helpers
A collection of classes connected with specific framework’s tasks, e.g. with generating layout fragments.
- layouts
Files used for generating HTML code of an administration panel.
- options
Files which store options of particular sections of theme’s administration panel. Similarly to config catalog; there are also additional catalogs used for making translations.
- classes
- images
Graphic files used with a theme
- back-end
Files connected with an administration panel.
- headers
Default header’s images.
- post_formats
Images connected with entries formats.
- back-end
- js
JavaScript scripts files used in a thme
- back-end
Likewise in css and images catalogs there are files included used in an administration panel.
- templates
Additional JavaScript files used by some Custom Pages.
- back-end
- languages
Main files used for creating translations.
- layouts
Files used for generating subpages; they include elements which are used very often; e.g. a head section.
- css