J1.5:Customising the JA Purity template/header
From Joomla! Documentation
< J1.5:Customising the JA Purity template(Difference between revisions)
m |
(Created basic stub) |
||
| Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
| + | The original JA Purity template was provided from JoomlArt.com as a zip but the latest files have been installed along with Joomla. | ||
| + | The relevant files, index.php and template.css, are in the following directories:<br /> | ||
| + | <pre> | ||
| + | templates/ja_purity | ||
| + | index.php | ||
| + | css/ | ||
| + | template.css | ||
| + | </pre> | ||
| + | |||
| + | If you've been following the [[Tutorial:Customising_the_JA_Purity_template|tutorial]] you can download a tutorial version of the template that installs to the following directory:<br/> | ||
| + | <pre> | ||
| + | templates/my_japurity | ||
| + | index.php | ||
| + | css/ | ||
| + | template.css | ||
| + | </pre> | ||
| + | ==HTML and PHP Files== | ||
| + | ===ja_purity/index.php=== | ||
| + | <source lang="php" line start="110"> | ||
| + | <!-- BEGIN: HEADER --> | ||
| + | <div id="ja-headerwrap"> | ||
| + | <div id="ja-header" class="clearfix" style="background: url(<?php echo $tmpTools->templateurl(); ?>/images/header/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).DS.'images/header'); ?>) no-repeat top <?php if($this->direction == 'rtl') echo 'left'; else echo 'right';?>;"> | ||
| + | |||
| + | <div class="ja-headermask"> </div> | ||
| + | |||
| + | <?php | ||
| + | $siteName = $tmpTools->sitename(); | ||
| + | if ($tmpTools->getParam('logoType')=='image'): ?> | ||
| + | <h1 class="logo"> | ||
| + | <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a> | ||
| + | </h1> | ||
| + | <?php else: | ||
| + | $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText'); | ||
| + | $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?> | ||
| + | <h1 class="logo-text"> | ||
| + | <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a> | ||
| + | </h1> | ||
| + | <p class="site-slogan"><?php echo $sloganText;?></p> | ||
| + | <?php endif; ?> | ||
| + | |||
| + | <?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?> | ||
| + | |||
| + | <?php if($this->countModules('user4')) : ?> | ||
| + | <div id="ja-search"> | ||
| + | <jdoc:include type="modules" name="user4" /> | ||
| + | </div> | ||
| + | <?php endif; ?> | ||
| + | |||
| + | </div> | ||
| + | </div> | ||
| + | <!-- END: HEADER --> | ||
| + | </source> | ||
| + | ==CSS Files== | ||
| + | ===ja_purity/css/template.css=== | ||
| + | <source lang="css" line start="921"> | ||
| + | /* HEADER | ||
| + | --------------------------------------------------------- */ | ||
| + | #ja-headerwrap { | ||
| + | background: #333333; | ||
| + | color: #CCCCCC; | ||
| + | line-height: normal; | ||
| + | height: 80px; | ||
| + | } | ||
| + | |||
| + | #ja-header { | ||
| + | position: relative; | ||
| + | height: 80px; | ||
| + | } | ||
| + | |||
| + | .ja-headermask { | ||
| + | width: 602px; | ||
| + | display: block; | ||
| + | background: url(../images/header-mask.png) no-repeat top right; | ||
| + | height: 80px; | ||
| + | position: absolute; | ||
| + | top: 0; | ||
| + | right: -1px; | ||
| + | } | ||
| + | |||
| + | #ja-header a { | ||
| + | color: #CCCCCC; | ||
| + | } | ||
| + | |||
| + | h1.logo, h1.logo-text { | ||
| + | margin: 0 0 0 5px; | ||
| + | padding: 0; | ||
| + | font-size: 180%; | ||
| + | text-transform: uppercase; | ||
| + | } | ||
| + | |||
| + | h1.logo a { | ||
| + | width: 208px; | ||
| + | display: block; | ||
| + | background: url(../images/logo.png) no-repeat; | ||
| + | height: 80px; | ||
| + | position: relative; | ||
| + | z-index: 100; | ||
| + | } | ||
| + | |||
| + | h1.logo a span { | ||
| + | position: absolute; | ||
| + | top: -1000px; | ||
| + | } | ||
| + | |||
| + | h1.logo-text a { | ||
| + | color: #CCCCCC !important; | ||
| + | text-decoration: none; | ||
| + | outline: none; | ||
| + | position: absolute; | ||
| + | bottom: 40px; | ||
| + | left: 5px; | ||
| + | } | ||
| + | |||
| + | p.site-slogan { | ||
| + | margin: 0; | ||
| + | padding: 0; | ||
| + | padding: 2px 5px; | ||
| + | color: #FFFFFF; | ||
| + | background: #444444; | ||
| + | font-size: 92%; | ||
| + | position: absolute; | ||
| + | bottom: 20px; | ||
| + | left: 0; | ||
| + | } | ||
| + | |||
| + | /* Search */ | ||
| + | #ja-search { | ||
| + | padding-left: 20px; | ||
| + | background: url(../images/icon-search.gif) no-repeat center left; | ||
| + | position: absolute; | ||
| + | bottom: 15px; | ||
| + | right: 0; | ||
| + | } | ||
| + | |||
| + | #ja-search .inputbox { | ||
| + | width: 120px; | ||
| + | border: 1px solid #333333; | ||
| + | padding: 3px 5px; | ||
| + | color: #999999; | ||
| + | background: #444444; | ||
| + | font-size: 92%; | ||
| + | } | ||
| + | </source> | ||
| + | ===ja_purity/styles/header/blue/style.css=== | ||
| + | <source lang="css" line> | ||
| + | #ja-headerwrap { | ||
| + | background: #006699; | ||
| + | color: #C3DFED; | ||
| + | } | ||
| + | |||
| + | .ja-headermask { | ||
| + | background: url(images/header-mask.png) no-repeat top right; | ||
| + | } | ||
| + | |||
| + | #ja-header a { | ||
| + | color: #C3DFED; | ||
| + | } | ||
| + | |||
| + | h1.logo-text a { | ||
| + | color: #C3DFED !important; | ||
| + | } | ||
| + | |||
| + | p.site-slogan { | ||
| + | background: #1E7CAB; | ||
| + | } | ||
| + | |||
| + | #ja-search { | ||
| + | background: url(images/icon-search.gif) no-repeat center left; | ||
| + | } | ||
| + | |||
| + | #ja-search .inputbox { | ||
| + | border: 1px solid #005A87; | ||
| + | color: #C3DFED; | ||
| + | background: #1E7CAB; | ||
| + | } | ||
| + | </source> | ||
| + | ===ja_purity/styles/header/green/style.css=== | ||
| + | <source lang="css" line> | ||
| + | #ja-headerwrap { | ||
| + | background: #7BA566; | ||
| + | color: #E4EFDF; | ||
| + | } | ||
| + | |||
| + | .ja-headermask { | ||
| + | background: url(images/header-mask.png) no-repeat top right; | ||
| + | } | ||
| + | |||
| + | #ja-header a { | ||
| + | color: #E4EFDF; | ||
| + | } | ||
| + | |||
| + | h1.logo-text a { | ||
| + | color: #E4EFDF !important; | ||
| + | } | ||
| + | |||
| + | p.site-slogan { | ||
| + | background: #9DBF8C; | ||
| + | } | ||
| + | |||
| + | #ja-search { | ||
| + | background: url(images/icon-search.gif) no-repeat center left; | ||
| + | } | ||
| + | |||
| + | #ja-search .inputbox { | ||
| + | border: 1px solid #658854; | ||
| + | color: #E4EFDF; | ||
| + | background: #9DBF8C; | ||
| + | } | ||
| + | </source> | ||
| + | ==Image Files== | ||
| + | ==Javascript Files== | ||
<noinclude> | <noinclude> | ||
[[Category:Beginners]] | [[Category:Beginners]] | ||
Revision as of 05:58, 13 June 2009
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
| This article is a stub and needs to be expanded. If you can provide information or finish this article you're welcome to do so. Please remove this message afterwards or replace with {{inuse}} while making major edits. - Thank you. |
The original JA Purity template was provided from JoomlArt.com as a zip but the latest files have been installed along with Joomla.
The relevant files, index.php and template.css, are in the following directories:
templates/ja_purity
index.php
css/
template.css
If you've been following the tutorial you can download a tutorial version of the template that installs to the following directory:
templates/my_japurity
index.php
css/
template.css
Contents |
HTML and PHP Files
ja_purity/index.php
<!-- BEGIN: HEADER -->
<div id="ja-headerwrap">
<div id="ja-header" class="clearfix" style="background: url(<?php echo $tmpTools->templateurl(); ?>/images/header/<?php echo $tmpTools->getRandomImage(dirname(__FILE__).DS.'images/header'); ?>) no-repeat top <?php if($this->direction == 'rtl') echo 'left'; else echo 'right';?>;">
<div class="ja-headermask"> </div>
<?php$siteName = $tmpTools->sitename();
if ($tmpTools->getParam('logoType')=='image'): ?>
<h1 class="logo">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a>
</h1>
<?php else:
$logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText');
$sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?>
<h1 class="logo-text">
<a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
</h1>
<p class="site-slogan"><?php echo $sloganText;?></p>
<?php endif; ?>
<?php $tmpTools->genToolMenu(JA_TOOL_FONT, 'png'); ?>
<?php if($this->countModules('user4')) : ?>
<div id="ja-search">
<jdoc:include type="modules" name="user4" />
</div>
<?php endif; ?>
</div>
</div>
<!-- END: HEADER -->
CSS Files
ja_purity/css/template.css
/* HEADER--------------------------------------------------------- */#ja-headerwrap {
background: #333333;
color: #CCCCCC;
line-height: normal;
height: 80px;
}#ja-header {
position: relative;
height: 80px;
}.ja-headermask {
width: 602px;
display: block;
background: url(../images/header-mask.png) no-repeat top right;
height: 80px;
position: absolute;
top: 0;
right: -1px;
}#ja-header a {
color: #CCCCCC;
}h1.logo, h1.logo-text {
margin: 0 0 0 5px;
padding: 0;
font-size: 180%;
text-transform: uppercase;
}h1.logo a {
width: 208px;
display: block;
background: url(../images/logo.png) no-repeat;
height: 80px;
position: relative;
z-index: 100;
}h1.logo a span {
position: absolute;
top: -1000px;
}h1.logo-text a {
color: #CCCCCC !important;
text-decoration: none;
outline: none;
position: absolute;
bottom: 40px;
left: 5px;
}p.site-slogan {
margin: 0;
padding: 0;
padding: 2px 5px;
color: #FFFFFF;
background: #444444;
font-size: 92%;
position: absolute;
bottom: 20px;
left: 0;
}/* Search */#ja-search {
padding-left: 20px;
background: url(../images/icon-search.gif) no-repeat center left;
position: absolute;
bottom: 15px;
right: 0;
}#ja-search .inputbox {
width: 120px;
border: 1px solid #333333;
padding: 3px 5px;
color: #999999;
background: #444444;
font-size: 92%;
}
ja_purity/styles/header/blue/style.css
#ja-headerwrap {
background: #006699;
color: #C3DFED;
}.ja-headermask {
background: url(images/header-mask.png) no-repeat top right;
}#ja-header a {
color: #C3DFED;
}h1.logo-text a {
color: #C3DFED !important;
}p.site-slogan {
background: #1E7CAB;
}#ja-search {
background: url(images/icon-search.gif) no-repeat center left;
}#ja-search .inputbox {
border: 1px solid #005A87;
color: #C3DFED;
background: #1E7CAB;
}
ja_purity/styles/header/green/style.css
#ja-headerwrap {
background: #7BA566;
color: #E4EFDF;
}.ja-headermask {
background: url(images/header-mask.png) no-repeat top right;
}#ja-header a {
color: #E4EFDF;
}h1.logo-text a {
color: #E4EFDF !important;
}p.site-slogan {
background: #9DBF8C;
}#ja-search {
background: url(images/icon-search.gif) no-repeat center left;
}#ja-search .inputbox {
border: 1px solid #658854;
color: #E4EFDF;
background: #9DBF8C;
}
