Memanggil Module Joomla!
fungsi untuk memanggil module :
<jdoc:include type=”modules” name=”user4″ style=”xhtml” />
user4 adalah module name yang terdapat pada admin site.
fungsi untuk memanggil module :
<jdoc:include type=”modules” name=”user4″ style=”xhtml” />
user4 adalah module name yang terdapat pada admin site.
html
{
margin: 0;
/* setting border: 0 hoses ie6 win window inner well border */
padding: 0;
}
body
{
margin: 0;
/* setting border: 0 hoses ie5 win window inner well border */
padding: 0;
font-family: verdana, ‘trebuchet ms’, sans-serif;
font-size: 12px;
background: #e6e6e6;
}
/* page layout */
body { text-align: center; } /* center on ie */
#container
{
position: relative;
margin: 0 auto; /* center on everything else */
width: 720px;
text-align: left;
}
#container-inner { position: static; width: auto; }
#container {
width: 1000px;
height: 800px;
border: 1px solid gray;
background: url(../images/body-bg.gif) center top repeat-y
}
#container-inner {
margin: 0 0 0px 0;
}
#alpha, #beta, #gamma
{
float: left;
margin: 0 0 0 0px;
}
#alpha-inner, #beta-inner, #gamma-inner
{
padding: 0px 0 0px 0;
}
#alpha {
margin: 0px 0px 0px 19px;
width: 265px;
border: 1px solid gray;
}
#beta {
width: 415px;
margin-left: 40px;
border: 1px solid gray;
}
#gamma {
width: 200px;
border: 1px solid gray;
}
/* .pkg class wraps enclosing block element around inner floated elements */
.pkg:after
{
content: ” “;
display: block;
visibility: hidden;
clear: both;
height: 0.1px;
font-size: 0.1em;
line-height: 0;
}
* html .pkg { display: inline-block; }
/* no ie mac \*/
* html .pkg { height: 1%; }
.pkg { display: block; }
/* */
1. copyright dicantumkan di paling atas, contoh template :
<?php
/**
* @copyright Copyright (C) 2005 – 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
?>
<!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” />
<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/default/css/template.css” type=”text/css” />
<body>
<!– container –>
<div id=”container”>
<div id=”container-inner” class=”pkg”>
<!– banner –>
<div id=”banner”>
<div id=”banner-inner” class=”pkg”>
</div>
</div>
<!– /banner –>
<!– page body –>
<div id=”pagebody”>
<div id=”pagebody-inner” class=”pkg”>
<!– alpha –>
<div id=”alpha”>
<div id=”alpha-inner” class=”pkg”>
</div>
</div>
<!– /alpha –>
<!– beta –>
<div id=”beta”>
<div id=”beta-inner” class=”pkg”>
</div>
</div>
<!– /beta –>
<!– beta –>
<div id=”gamma”>
<div id=”gamma-inner” class=”pkg”>
</div>
</div>
<!– /beta –>
</div>
</div>
<!– /page body –>
</div>
</div>
<!– /container –>
</body>
</html>