Follow

Drupit Theme Guide

Functional structure of theme "DrupIt" v1.0

1. The features of the theme files

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

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

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

/sites/all/themes/drupit/node.tpl.php
Contains the template of appearance design for nodes of all content types except "Post" and "Topic" content types

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

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

/sites/all/themes/drupit/block.tpl.php
Contains the template of appearance design for blocks except block regions "Footer" and "Footer Copyright"

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

/sites/all/themes/drupit/block--sidebar_footer.tpl.php
Contains the template of appearance design for block region "Footer"

/sites/all/themes/drupit/comment-wrapper.tpl.php
Contains the template of appearance design of comments container except comments "Post"

/sites/all/themes/drupit/comment.tpl.php
Contains the template of appearance design of a separate comment container except comments "Post"

/sites/all/themes/drupit/comment-wrapper--node-post.tpl.php
Contains the template of appearance design of comments container for "Post"

/sites/all/themes/drupit/comment--node-post.tpl.php
Contains the template of appearance design of a separate comment container for "Post"

/sites/all/themes/drupit/user-profile.tpl.php
Contains the template of appearance design and the code of user page output

/sites/all/themes/drupit/views-view-unformatted--categories-topics--page.tpl.php
Contain templates of appearance design of the view of category pages

/sites/all/themes/drupit/views-view-unformatted--frontpage--page.tpl.php
Contain templates of appearance design of the view of home page

/sites/all/themes/drupit/views-view-unformatted--taxonomy-term--page.tpl.php
Contain templates of appearance design of the view of taxonomy pages

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

/sites/all/themes/drupit/screenshot.png
The screenshot of the theme

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

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

/sites/all/themes/drupit/css/blue.css
/sites/all/themes/drupit/css/green.css
/sites/all/themes/drupit/css/orange.css
/sites/all/themes/drupit/css/red.css
/sites/all/themes/drupit/css/style.css
Contain the stylesheet files of the site design. The corresponding file is used for various color schemes

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

/sites/all/themes/drupit/js/
This folder contains JavaScript files that provide the functionality of the theme

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

/sites/all/themes/drupit/type
This folder contains additional fonts and the styles for the use of the fonts

2. The site structure

The pages consist of the following regions
Sidebar Top
Sidebar Menu
Content
Sidebar Right - is absent on the display pages of topics, posts and user
Sidebar Bottom
Footer
Footer Copyright

The content types:
Basic page is used for separate pages such as "About Us"
Blog entry is used for blog pages
Topic is used for creating new topics
Post is used for creating new posts

The sections of posts display are implemented using "Views" module

Taxonomy vocabulary "Categories" is used for categorizing topics 

The number of topics displayed at a time is 12, 
If you want to increase the number of the pins then you need to change parameter "Pager" in the settings of the views
Categories Topics http://site.name/admin/structure/views/view/categories_topics/edit
Taxonomy term http://site.name/admin/structure/views/view/taxonomy_term/edit
Front page http://site.name/admin/structure/views/view/frontpage/edit

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 "Topic" content type, the selection of "Promote to front page" checkbox places content in "Featured Topics" section (this is the main page by default).

"Post" content type is output only on the topic page that corresponds to this content type. The output of a separate post is not provided.

If you add content types for the output in categories or on the main page, keep in mind, that you will need a template, the same as for "Topic" content type, otherwise you will break the appearance of these pages.

Disabling of "DrupIt Helper" module will lead to a complete inoperability of the site. Never disable this module.

The functionality of linking posts to topics is implemented on the basis of "book" module. The standard management of "book" module doesn't work for "Topic" and "Post" content types. The additional functionality implemented in "DrupIt Helper" module is used for these content types.
It's not recommended to manage content of these content types with the help of "book" module (the given functionality is available for administrator).

If you want to use "book" module with standard functionality on your site then you will need to create a new content type and make appropriate settings of "book" module (see the documentation of "book" module).

0 Comments

Article is closed for comments.