**.info file **.info file is a required file: Drupal must include it in order to see the topic. The. info file tells the internal name of the Drupal topic. For example, if the name of this file is Ibmtheme.info, then the name Drupal gives to this topic will be ibmtheme. If your theme uses elements such as JavaScript, metadata, style sheets, or block regions, you must also define them in the. info file. Everything is optional. In Listing 1, the content of the. info file for the Bartik topic explains this behavior. Listing 1. The content of the. info file for the Bartik theme; I d :baRTIk.INF o,v1.5 ./ One/ -xx: -: -d RIesE xP Name = Bartikdescription = A flexible, recolorable theme with many regions.package = Coreversion = Versioncore = 7.xstyles Heets[all][] = css/layout.cssstylesheets[all][] = css/style.cssstylesheets[all][] = Css/colors.cssstylesheets[print] [] = Css/print.cssregions[header] = Headerregions[help] = helpregions[page_top] = page Topregions[page_bottom] = page Bott Omregions[highlighted] = highlightedregions[featured] = featuredregions[content] = Contentregions[sidebar_first] = Sidebar Firstregions[sidebar_second] = Sidebar Secondregions[triptych_first] = Triptych Firstregions[triptych_middle] = Triptych Middleregions[triptych_last] = triptych Lastregions[footer_firstcolumn] = Footer First Columnregions[footer_ Secondcolumn] = Footer second Columnregions[footer_thirdcolumn] = Footer third Columnregions[footer_fourthcolumn] = Footer Fourth Columnregions[footer] = Footersettings[shortcut_module_link] = 0; Information added by drupal.org packaging script on 2011-01-05version = "7.0" project = "DrupAl "Datestamp =" 1294208756 "**.tpl.php template file * * The theme directory contains several template files with filenames such as xxx.tpl.php. These template files contain extensible HTML (XHTML) tags and PHP variables for the theme. In some cases, you can write them to provide other types of data output, such as RSS. In general, each Drupal theme's tpl.php files are encoded to handle specific data output: Embedding complex logic in template files can be confusing and counterproductive, as it may make them difficult to maintain. The ideal scenario is to have them contain only simple XHTML markup and PHP variables. Listing 2. Garland content of the theme node.tpl.php file
Drupal Theme Main file