A theme is defined using a collection of files within the Drupal themes directory.
使用Drupal主题目录(themes directory)中的文件集合来定义主题。
One of the variables presented to this template by the Drupal theme system can flag whether the front page is being displayed.
Drupal主题系统给这个模板提供的一个变量可以指出主页是否显示。
In this article, follow along as we create a theme in Drupal and focus on methods that helped to enable.
在本文中,请跟着我们在Drupal中创建一个主题,关注的重点是帮助实现以下特性的方法。
Figure 3 shows the default installation of Drupal using the new Garland theme.
图3显示Drupal的默认安装,其中使用了新的Garland主题。
By definition, if you use.tpl.php files in your theme directory, Drupal will know to use the phptemplate engine.
根据定义,如果在主题目录中使用. tpl . php文件,Drupal就知道应该使用phptemplate引擎。
Drupal lets theme designers use CSS to alter the presentation of the XHTML content.
Drupal允许主题设计人员使用CSS修改XHTML内容的表示方式。
Drupal separates the content from the presentation using a theme system.
Drupal使用一个主题系统将内容和表示方式分隔开。
Instead of naming a specific theme template file in the _phptemplate_callback function, Drupal 5.0 allows the definition of a list of file names that can be used to find the template.
不再需要在_ phptemplate_callback函数中指定主题模板文件,Drupal 5.0允许定义一个文件名列表,可以使用这个列表寻找模板。
There are generic templates for existing node types that Drupal provides to help you customize your theme. The page.tpl.php.
Drupal为现有的节点类型提供了一般性模板,帮助您对主题进行定制。
If your current theme USES the phptemplate engine, then Drupal would look for a function named phptemplate_foo .
如果当前主题使用phptemplate引擎,那么drupal会寻找phptemplate_foo函数。
In Part 7, we create a new theme directory under the themes directory by copying the Bluemarine theme that comes with the Drupal distribution.
在第7部分中,我们通过复制Drupal发布版附带的Bluemarine主题,在themes目录下面创建了一个新的主题目录。
This is a default phptemplate engine theme that comes with Drupal and contains the basis on which you can create your own custom theme.
这是 Drupal附带的默认的phptemplate引擎主题,可以以它为基础创建自己的定制主题。
Drupal comes with the files you need for a theme and are dependent on your theme engine.
Drupal附带主题所需的文件,而且这些文件依赖于主题引擎。
For a specific theme, certain content elements, provided by Drupal to be used by a theme, can be enabled or disabled.
对于特定的主题,可以启用或禁用Drupal提供给主题使用的内容元素。
There is a special file you can use within an individual theme's directory called template.php. If this file exists, Drupal will use it to allow you to override default actions of the theme system.
在单独主题的目录中可以使用一个特殊文件,它称为template.php。
Strix is a theme specifically designed for the Drupal administration pages. It is built as a sub theme of zen.
Strix是专门为Drupal设计的一个管理主题。
You can theme your content using various theme engines within Drupal.
可以使用Drupal中的各种主题引擎(theme engine) 对内容进行主题化。
Theme functions provide generic methods to build Web content that is used by modules providing core functions in Drupal, or by your own modules to extend Drupal.
主题函数提供生成Web内容的一般性方法,模块使用它们提供Drupal中的核心函数或者对Drupal进行扩展。
Theme functions provide generic methods to build Web content that is used by modules providing core functions in Drupal, or by your own modules to extend Drupal.
主题函数提供生成Web内容的一般性方法,模块使用它们提供Drupal中的核心函数或者对Drupal进行扩展。
应用推荐