Information for the file structure and inner-workings of the SQ: Square Metro Drupal theme:
Functional structure of theme: SQ: Square Metro (Drupal version)
1. The features of the theme files
Contains information about the theme name, default settings, available regions, and also the enabling of stylesheet files and scripts
Contains the template of a basic code of page
Contains the template of appearance design for internal pages of the site
Contains the template of appearance design for nodes of all content types except "Blog", "Portfolio", "Service" content types
Contains the template of appearance design for nodes of "blog" content type
Contains the template of appearance design for nodes of "Portfolio" content type
Contains the template of appearance design for nodes of "Service" content type
Contains the template of appearance design for blocks except block regions "Footer Copyright", "Footer One", "Footer Two", "Footer Three", "Sidebar Top Menu", "Sidebar Home Welcome", "Sidebar" and "View: Portfolio"
Contains the template of appearance design for blocks "Footer Copyright"
Contains the template of appearance design for blocks "Footer One"
Contains the template of appearance design for blocks "Footer Two"
Contains the template of appearance design for blocks "Footer Three"
Contains the template of appearance design for blocks "Sidebar Top Menu"
Contains the template of appearance design for blocks "Sidebar Home Welcome"
Contains the template of appearance design for blocks "Sidebar"
Contains the template of appearance design for blocks "View: Portfolio"
Contains the template of appearance design of comments container
Contains the template of appearance design of a separate comment container
Contain the template of appearance design of Views, the names of the files correspond to the names of the views, see the description of "Views" module
Contains the auxiliary php code required for the functioning of the theme
Screenshot of the theme
Default logo of the theme
Default user avatar
Stylesheet files of the site design
This folder contains image files for the theme design
This folder contains image files for the backgrounds of the theme
2. The structure of the site
The pages consist of the following regions
Sidebar Top Menu
Sidebar Home Slide Show
Sidebar Home Welcome
Sidebar (is absent on the pages of portfolio view, services and special pages)
The content types:
Basic page is used for separate pages such as "About Us"
Blog entry is used for posting blogs
Portfolio is used for posting a portfolio
Service is used for posting a service
The display sections "Portfolio" and "Service" are implemented using "Views" module
Taxonomy vocabulary "Tags" is used for blogs section
Taxonomy vocabulary "Categories" is used for blogs section
Taxonomy vocabulary "Portfolio categories" is used for portfolio section
It's necessary to make a backup of all files and a database before updating any modules, theme or Drupal core.
The output of content on the main page is limited to "blog" content type