Drupal Theme Main file

Source: Internet
Author: User
Tags php template drupal

**.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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.