Coding
To make your jobsite template, first create a temporary folder with the name jobsitetemplate
or you can also define this folder with a different name. Your template files will be created on this folder.
Now, you also have to create a file with the name index.php
. Then add the following code on the file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" /> </head>
This code has started with a DOCTYPE declaration and an<html>
tag, and then a jdoc include tag,<jdoc:include type="head"/>
, is placed to use header contents (such as title, metadata, and so on).
This is not a complete code. Only the head section has been placed; we have to place the body section too:
<body> <jdoc:include type="component...