Mobile-Menu iFuturz Infoweb Inc. Contact Portfolio

19

Jul

Drupal 6 theme structure

Drupal 6 theme structure

Posted On : July 19, 2013

| No Comment

A theme is a collection of files that define the presentation layer. You can also create one or more “sub-themes” or variations on a theme. Only the .info file is required, but most themes and sub-themes will use other files as well. The following diagram illustrates the files that are found in a typical theme and sub-theme.


Below files are require to create a drupal themes :-

.info file contains the following code that need to include.
name = basic
description = Basic starter theme for Drupal 6
screenshot = images/screenshot.gif
core = “6.x”
project = “basic”
engine = phptemplate

regions[content_top] = Content top
regions[header] = Header
regions[left] = First sidebar
regions[right] = Second sidebar
regions[footer_block] = Footer
regions[content_bottom] = Content bottom

features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links

stylesheets[all][] = css/default.css
stylesheets[all][] = css/layout.css
stylesheets[all][] = css/style.css
stylesheets[print][] = css/print.css

; Compass Support
; http://drupal.org/project/compass
compass[status] = 1
compass[sass_dir] = sass
compass[css_dir] = css

settings[basic_zen_tabs] = 1
settings[basic_wireframe] = 0
settings[basic_block_editing] = 1
settings[basic_rebuild_registry] = 0
settings[basic_breadcrumb] = yes
settings[basic_breadcrumb_separator] = ‘ ยป ‘
settings[basic_breadcrumb_home] = 1
settings[basic_breadcrumb_trailing] = 0
settings[basic_breadcrumb_title] = 0
; Information added by drupal.org packaging script on 2012-04-11
version = “6.x-2.13″
core = “6.x”
project = “basic”
datestamp = “1334122541″

template files (.tpl.php)
template.php

Sub-themes

Screenshot of Drupal Themes Structure

Comment