Brain a.k.a. thief

Liepa 21, 2009

jdoc:include type:head

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 11:51 am

<head>

<jdoc:include type=”head” />

</head>

Sarbu, nesjis ne tik generuoja headeri bet ir atsakingas kur pasirinkto puslapio iterpimą.

JDocument

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 11:48 am

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

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 11:43 am

<!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

Liepa 20, 2009

sIFR

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 11:43 am

Super font palaikymas

mokeindustries.com/blog/sifr

GIMPshop

Įrašyta kategorijoje: Gimp, Templatedeveloping, tools — brainthief @ 11:41 am

GIMP with photoshop UI

gimpshop.com

Tools

Įrašyta kategorijoje: Templatedeveloping, tools — brainthief @ 11:40 am

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)

Pozicija:

Įrašyta kategorijoje: CSS, Templatedeveloping — brainthief @ 11:38 am

normal – blokas ir kaires i desine

float – priklausomai nuo kitų

absolute – bet kur

IE css

Įrašyta kategorijoje: CSS, Templatedeveloping — brainthief @ 11:37 am

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;}

Why CSS better then table? :)

Įrašyta kategorijoje: CSS, Templatedeveloping — brainthief @ 11:33 am

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>

Siulomas spalvų derinys

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 10:59 am

black and white

black and yellow

blue and yeallow

red and green

red and blue

purple and yellow

red and white

Basic: css, dir ir template_thumbnail.png

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 10:58 am

standartinis CSS failas

/css/template.css

template_thumbnail.png – ikona logotipo, rodoma template manageryje

140 x 90

/images – img (pasiekiama per media manageri)

index.php modification under admin panel

Įrašyta kategorijoje: Patarimai, Templatedeveloping, develop — brainthief @ 8:35 am

Template manager -> seelct template -> edit -> edit HTML

jdoc:include type=”component”

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:33 am

Iterpia turinį – content komponenta

name neturi paramtro nes ima sistemos defoultini

$option bus com_content

Simple ‘test’ p3 index.php add some text

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:32 am

<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>

jdoc:include type=”modules” name=”debug”

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:25 am

Debug modulis. Jei ant global stettings ijungta debuginimas roto scirpto krovimosi laiką

jdoc:include type=”message”

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:22 am

Get server message

Simple ‘test’ p2 templateDetails.xml

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:21 am

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>

jdoc:include type=”head”

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:16 am

Į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&amp;type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
  <link href="/test3/index.php?format=feed&amp;type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
</head>

title nusistato per admin paneli: Manus -> main menu -> home

Simple ‘test’ p1 index.php

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 8:12 am

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&amp;type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
  <link href="/test3/index.php?format=feed&amp;type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
</head>
<body>

<div class="cener" aling="center"> Testas </div>

</body>
</html>

Basic:files

Įrašyta kategorijoje: Templatedeveloping — brainthief @ 7:21 am

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!

Blog at WordPress.com.