нет Templete рhp файла

Главные вкладки

Аватар пользователя DDDDD099 DDDDD099 26 апреля 2010 в 18:03

Подскажите новичку - для темизации зачастую используют файл templetephp - но в моей теме pushbutton
его нет - как его создать - или может его функцию віполняет другой файл ?

Комментарии

Аватар пользователя Oleksa@drupal.org Oleksa@drupal.org 26 апреля 2010 в 18:30

А что мешает самому создать файл template.php и вставить в него что вам нужно ?

Если не знаете как делать файлы с расширением php , тогда скопируйте с любой другой темы и вставьте в сою, предварительно удалив все из него и затем вставьте свои функции.

Аватар пользователя xxandeadxx xxandeadxx 26 апреля 2010 в 19:04

http://drupal.org/node/11811

Quote:
If you want to override a theme function not included in the basic list (block, box, comment, node, page), you need to tell PHPTemplate about it.

To do this, you need to create a template.php file in your theme's directory. This file must start with a PHP opening tag < ?php but the close tag is not needed and it is recommended that you omit it. Also included in the file are stubs for the theme overrides. These stubs instruct the engine what template file to use and which variables to pass to it.