<head>
<jdoc:include type=”head” />
</head>
Sarbu, nesjis ne tik generuoja headeri bet ir atsakingas kur pasirinkto puslapio iterpimą.
<head>
<jdoc:include type=”head” />
</head>
Sarbu, nesjis ne tik generuoja headeri bet ir atsakingas kur pasirinkto puslapio iterpimą.
jdoc (JDocument) – include executes. (Joomlos isejimai…)
exmple:
<jdoc:include type”module” name=”left” />
In 1.0 version used mos (mambo Open Source). If themplate is for 1.0 version you must enable plugin (joomla – legacy)
in 1.0 version:
mosLoadModules()
mosCountModules()
in 1.5 version:
jdoc:include
jdoc:exists
<!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>
doctype – standartai ri schema, taip pat kaip interpretuoja css. Jei nera gali buti nesuderinamumas browseriuose.
2 – nurodo kalbą ir koduotes pries issunciant browseriui
FF: Web developer
https://addons.mozzila.org/es-US/firefox/addon/60
Firebug
https://addons.mozzila.org/es-US/firefox/addon/1842
IE:
Internet Explorer Developer toolbar (ieškoti MS web)
normal – blokas ir kaires i desine
float – priklausomai nuo kitų
absolute – bet kur
Ie6 neteisingai CSS interpratuoja
Ie7 dauguma jau tiesingai interptretuoja
dėl to naudijama ieonly.css
margin ignoruoja IE
<div>
<div class=”test”>
<jdoc:include type=”module” name=”buttom” />
</div>
</div>
.test {padding: 10px;}
Example!
<table>
<tr>
<td>C1</td><td>c2</td><td>c3</td>
</tr>
<tr>
<td>Pagrindinis</td><td>Turinys</td><td>Prekes</td>
</tr>
<tr>
<td>Duk</td><td>Kainos</td><td>Kainos urmu</td>
</tr>
</table>
and example with CSS
#st1 {float:lef;width:20%;}
#st2 {float:lef;width:60%;}
#st3 {float:lef;width:20%;}
ant some content
<div id=”st1″>C1<br>Pagrindinis<br>Duk</div>
<div id=”st2″>C2<br>Turinys<br>Kainos</div>
<div id=”st3″>C3<br>Prekes<br>Kainos urmu</div>
black and white
black and yellow
blue and yeallow
red and green
red and blue
purple and yellow
red and white
standartinis CSS failas
/css/template.css
template_thumbnail.png – ikona logotipo, rodoma template manageryje
140 x 90
/images – img (pasiekiama per media manageri)
Template manager -> seelct template -> edit -> edit HTML
Iterpia turinį – content komponenta
name neturi paramtro nes ima sistemos defoultini
$option bus com_content
<html>
<head>
<jdoc:include type=”head” />
</head>
<body>
<jdoc:include type=”message” />
<div aling=”center”> Testas </div>
<jdoc:include type=”modules” name=”user1″ />
<jdoc:include type=”component” />
<jdoc:include type=”modules” name=”debug” />
</body>
</html>
Debug modulis. Jei ant global stettings ijungta debuginimas roto scirpto krovimosi laiką
templateDetails.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<install version=”1.5″ type=”template”>
<name>test</name>
<description>Paprastas templaitas ismeginimui</description>
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
</files>
</install>
Įterpia visą hideri:
<head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="index, follow" /> <meta name="keywords" content="joomla, Joomla" /> <meta name="description" content="Joomla! - dinaminis portalų variklis ir turinio valdymo sistema" /> <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" /> <title>title</title> <link href="/test3/index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/test3/index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" /> </head> title nusistato per admin paneli: Manus -> main menu -> home
index.php
<html>
<head>
<jdoc:include typo=”head” />
</head>
<body>
<jdoc:include type=”message” />
<div aling=”center”> Testas </div>
<jdoc:include type=”modules” name=”debug” />
</body>
</html>
rezultatas:
<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="index, follow" /> <meta name="keywords" content="joomla, Joomla" /> <meta name="description" content="Joomla! - dinaminis portalų variklis ir turinio valdymo sistema" /> <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" /> <title>xxx</title> <link href="/test3/index.php?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/test3/index.php?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" /> </head> <body> <div class="cener" aling="center"> Testas </div> </body> </html>
templateDetails.xml – metadata format. Info aput temp. File list. Position list. Aprašas
index.php – html ir php. Branduolys thempleito.
/templates/ – dir. 4 themplates
Didžiosios ir mažosios raidės varduose yra svarbios.
system – legacy –> 1.0 templeitus palaikyti ant 1.5 j.
Templeitai Zipinami!