Download - Drupal Theming
Transcript
Drupal
Theming
Theming
● Вывод
● Препроцесс
● Начальные данные
Example
Start data:
1. $article_body
Preprocess
$title = “Why Choose Drupal?”;
$button = theme(“article_button”);
Output
● Template● Function
Output
Redefine
CUSTOM
CUSTOM CUSTOM
CUSTOM
~ 3000 – 5000 theme() calls
Work examples
● Whitehouse● BBC● LinuxFoundation● Ubuntu● Forbes● Stanford● And many others