Академический Документы
Профессиональный Документы
Культура Документы
THE PIECES
Directory
Structure
DIRECTORY STRUCTURE
http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla
%21_template
Template css/ images/
DIRECTORY STRUCTURE
http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla
%21_template
Template css/ images/
IMPORTANT FILES
templateDetails.xml* index.php* template_thumbnail.png params.ini style.css index.html
IMPORTANT FILES
templateDetails.xml* index.php* template_thumbnail.png params.ini style.css index.html
TEMPLATEDETAILS.XML
<?xml
version="1.0" encoding="utf-8"?>
<!DOCTYPE
<install
DESCRIPTION ELEMENTS
<name>tba</name> <creationDate>2009-02-01</creationDate> <author>Arc Technology
Group</author>
Group</copyright>
6
<files><filename>relative_path/file_name</filename></files> <positions><position>name</position></positions>
PARAMS
http://docs.joomla.org/Tutorial:Template_parameters <params><param
...>...</param></params>
name="templateColor" type="list" default="white" label="Template Color" description="Choose the template color."> <option value="white">White</option> <option value="black">Black</option> </param>
</params>
templateColor=white
10
templateColor=white
10
INDEX.PHP
Restrict <?php
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd"> xmlns="http://www.w3.org/1999/xhtml" xml:lang="<? php echo $this->language; ?>" lang="<?php echo $this>language; ?>" >
11
<html
INDEX.PHP
Add
type="head" />
</head>
12
INDEX.PHP
Add
<body>
<jdoc:include type="modules" name="top" /> <jdoc:include type="component" /> <jdoc:include type="modules" name="footer" />
</body></html>
13
INDEX.PHP
Add
<body>
<jdoc:include type="modules" name="top" /> <jdoc:include type="component" /> <jdoc:include type="modules" name="footer" />
</body></html>
13
ZIP IT!
Zip
Install
14
ZIP IT!
Zip
Install
14
ZIP IT!
Zip
Install
14
rel="stylesheet" href="<?php echo $this->baseurl . '/ templates/' . $this->template . '/css/style.css' ?>" type="text/css" /> rel="stylesheet" href="<?php $tplColor = $this->params->get( 'templateColor' ); echo $this->baseurl . '/templates/' . $this->template . '/css/' . $tplColor . '.css'; ?>" type="text/css" />
15
<link
<?php
echo $this->baseurl . '/templates/' . $this->template . '/ images/taylor-bruce-logo.gif' ?> if($this->countModules('debug')) : ?> <jdoc:include type="modules" name="debug" /> <?php endif; ?> echo JHTML::_('date', 'now', '%Y' ) ?>
<?php
<?php
16
<?php
echo $this->baseurl . '/templates/' . $this->template . '/ images/taylor-bruce-logo.gif' ?> if($this->countModules('debug')) : ?> <jdoc:include type="modules" name="debug" /> <?php endif; ?> echo JHTML::_('date', 'now', '%Y' ) ?>
<?php
<?php
16
ADD IMAGES
Are
17
ADD IMAGES
Are
17
ADD CSS
Make
18
ADD CSS
Make
18
ADD CSS
Make
18
ADD CSS
Make
18
ADD CSS
Make
18
FrontPage Extended
19
FrontPage Extended
19
Styles the raw Module content with no wrapping. the module in a table. the module as a table inside an outer table. the module wrapped in div tags.
xhtml. Output
rounded. Output
For
Common
21
For
Common
21
http://developer.joomla.org/tutorials/165-understanding-
output-overrides-in-joomla.html
Component Module
Overrides
Overrides
22
THANK YOU
23