Microsoft Office Tutorials and References
In Depth Information
Template Files
Template Files
These are the default template files with a theme:
Page theme ( page.tpl.php )
Block within a sidebar ( block.tpl.php )
Generic container for the main area of the site ( box.tpl.php )
Comment theme ( comment.tpl.php )
Node theme ( node.tpl.php )
These files can then be edited with our favorite text editor and we can import our
design into the template files.
We now need to examine each of these files and transfer our HTML template to
these, and replace the CSS file with the one from our template.
If we start with the page.tpl.php file we can get a basic design up and running to
see what it is like, then we can concern ourselves with sections such as comments
and nodes. The key to doing this is keeping the sections of the template code which
are encapsulated within <?php ?> tags in the new template but ensuring they are
placed correctly within the file.
The code for Doug's page.tpl.php file is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xml:lang="en" lang="en">
<?php print $head_title; ?>
<meta http-equiv="content-type" content="text/html;
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<meta name="description" content="Doug's dinos aim to
provide education resources on Dinosaurs as well as
selling models and toys relating to the Jurassic era." />
<meta name="keywords" content="dougs dinos" />
<meta name="author" content="Juniper Productions" />
<meta name="copyright" content="© Peacock, Carter and
Associates/Dougs Dinos" />
<style type="text/css" title="Default page style"
media="screen">@import "
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"
Search JabSto ::

Custom Search