drupal theme is a set of files (.php, .html .css .js) - can be
placed in root/themes, root/sites/default/themes,
root/sites/siteurl/themes, root/sites/all/themes
each template file has a number of associated variables that
spit out dynamic content: available variables: page.tpl.php,
block.tpl.php, box.tpl.php, comment.tpl.php, node.tpl.php.
Page.tpl.php: the layout, basically everything but the content.
- Structure: all .tpl pages are (x)HTML files with disscrete PHP
print statements that output dynamic content from Drupal. Basic
example:
php conditions to print content only when needed: . Presentation
example: in page.tpl.php in the base theme: ie Conditional Comments
in , linking to IE-specific stylesheets, - added skip content link
for visually impaired - php conditions around most
content/regions
15 comments so far
The Design Draft: - Basic CSS strategy
1 month, 3 weeks ago by xalk.
Optimize images/use only when needed/sIFR?/use consistant & descriptive identifiers/use dynamic ID/Classes to apply different css
1 month, 3 weeks ago by xalk.
AVOID HAXXORING
1 month, 3 weeks ago by xalk.
hack hack hack
1 month, 3 weeks ago by randomfrequency.
PHP Template: written by @vertice
1 month, 3 weeks ago by xalk.
drupal theme is a set of files (.php, .html .css .js) - can be placed in root/themes, root/sites/default/themes, root/sites/siteurl/themes, root/sites/all/themes
1 month, 3 weeks ago by xalk.
folder name becomes the theme name
1 month, 3 weeks ago by xalk.
page.tpl.php - overallpage, node.tpl.php - basic piece of content, block.tpl.php - theme a block, template.php - function overrides, custom themeing functions / general themeing functionalities, screenshot.png - preview the theme layout
1 month, 3 weeks ago by xalk.
page-node-edit.tpl.php , page-node-1.tpl.php, page-node.tpl.php to override template file. page-front.tpl.php, page-admin.tpl.php
1 month, 3 weeks ago by xalk.
each template file has a number of associated variables that spit out dynamic content: available variables: page.tpl.php, block.tpl.php, box.tpl.php, comment.tpl.php, node.tpl.php.
1 month, 3 weeks ago by xalk.
Page.tpl.php: the layout, basically everything but the content. - Structure: all .tpl pages are (x)HTML files with disscrete PHP print statements that output dynamic content from Drupal. Basic example:
1 month, 3 weeks ago by xalk.
php conditions to print content only when needed: . Presentation example: in page.tpl.php in the base theme: ie Conditional Comments in , linking to IE-specific stylesheets, - added skip content link for visually impaired - php conditions around most content/regions
1 month, 3 weeks ago by xalk.
additional node-templates: node-blog.tpl.php; node-forum.tpl.php, node-foobar.tpl.php ... etc
1 month, 3 weeks ago by xalk.
to theme full view of a node edit the node.tpl.php
1 month, 3 weeks ago by xalk.
to edit teaser content
1 month, 3 weeks ago by xalk.