Follow

SQ: Square Metro Theme Guide

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

/sites/all/themes/sq/sq.info
Contains information about the theme name, default settings, available regions, and also the enabling of stylesheet files and scripts

/sites/all/themes/sq/html.tpl.php
Contains the template of a basic code of page

/sites/all/themes/sq/page.tpl.php
Contains the template of appearance design for internal pages of the site

/sites/all/themes/sq/node.tpl.php
Contains the template of appearance design for nodes of all content types except "Blog", "Portfolio", "Service" content types

/sites/all/themes/sq/node--blog.tpl.php
Contains the template of appearance design for nodes of "blog" content type

/sites/all/themes/sq/node--portfolio.tpl.php
Contains the template of appearance design for nodes of "Portfolio" content type

/sites/all/themes/sq/node--service.tpl.php
Contains the template of appearance design for nodes of "Service" content type

/sites/all/themes/sq/block.tpl.php
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"

/sites/all/themes/sq/block--footer_copyright.tpl.php
Contains the template of appearance design for blocks "Footer Copyright"

/sites/all/themes/sq/block--footer_one.tpl.php
Contains the template of appearance design for blocks "Footer One"

/sites/all/themes/sq/block--footer_two.tpl.php
Contains the template of appearance design for blocks "Footer Two"

/sites/all/themes/sq/block--footer_three.tpl.php
Contains the template of appearance design for blocks "Footer Three"

/sites/all/themes/sq/block--sidebar_top_menu.tpl.php
Contains the template of appearance design for blocks "Sidebar Top Menu"

/sites/all/themes/sq/block--sidebar_welcome.tpl.php
Contains the template of appearance design for blocks "Sidebar Home Welcome"

/sites/all/themes/sq/block--sidebar.tpl.php
Contains the template of appearance design for blocks "Sidebar"

/sites/all/themes/sq/block--views--portfolio-block_1.tpl.php
Contains the template of appearance design for blocks "View: Portfolio"

/sites/all/themes/sq/comment-wrapper.tpl.php
Contains the template of appearance design of comments container

/sites/all/themes/sq/comment.tpl.php
Contains the template of appearance design of a separate comment container

/sites/all/themes/sq/views-view-fields--categories-portfolio--block-1.tpl.php
/sites/all/themes/sq/views-view-fields--categories-portfolio--block.tpl.php
/sites/all/themes/sq/views-view-fields--frontpage--page.tpl.php
/sites/all/themes/sq/views-view-fields--latest-posts--block.tpl.php
/sites/all/themes/sq/views-view-fields--related-posts--block.tpl.php
/sites/all/themes/sq/views-view-fields--slide-show--block.tpl.php
/sites/all/themes/sq/views-view-unformatted--categories-portfolio--block.tpl.php
/sites/all/themes/sq/views-view-unformatted--frontpage--page.tpl.php
/sites/all/themes/sq/views-view-unformatted--latest-posts--block.tpl.php
/sites/all/themes/sq/views-view-unformatted--portfolio--block-1.tpl.php
/sites/all/themes/sq/views-view-unformatted--portfolio--page.tpl.php
/sites/all/themes/sq/views-view-unformatted--related-posts--block.tpl.php
/sites/all/themes/sq/views-view-unformatted--slide-show--block.tpl.php
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

/sites/all/themes/sq/template.php
Contains the auxiliary php code required for the functioning of the theme

/sites/all/themes/sq/screenshot.png
Screenshot of the theme

/sites/all/themes/sq/logo.gif
Default logo of the theme

/sites/all/themes/sq/author-picture.gif
Default user avatar

/sites/all/themes/sq/css/flexslider.css
/sites/all/themes/sq/css/jquery.fancybox-1.3.4.css
/sites/all/themes/sq/css/responsive.css
/sites/all/themes/sq/css/style.css
/sites/all/themes/sq/css/superfish.css
/sites/all/themes/sq/css/typo-style.css
Stylesheet files of the site design

/sites/all/themes/sq/img/
This folder contains image files for the theme design

/sites/all/themes/sq/bg/
This folder contains image files for the backgrounds of the theme

/sites/all/themes/sq/js/
This folder contains JavaScript files that provide the functionality 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
Content
Sidebar (is absent on the pages of portfolio view, services and special pages)
Footer One
Footer Two
Footer Three
Footer Copyright

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

3. Warnings

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

0 Comments

Article is closed for comments.