J1.5

Difference between revisions of "Customising the JA Purity template/customisations/Removing the rotating header graphics"

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | customisations
m (archiving articles with category removal and addition)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The original JA Purity template was provided from JoomlArt.com as a zip but the latest files have been installed along with Joomla.
+
{{:Customising the JA Purity template/tutorialtemplate|index.php|<pre>
The relevant file is in the following directory:<br />
+
    <location of template>/
<pre>
+
        index.php
    templates/ja_purity/index.php
+
</pre>}}
</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
 
</pre>
 
  
 
Change this line:
 
Change this line:
<pre><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';?>;"></pre>
+
<source lang="php"><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';?>;"></source>
  
 
to
 
to
  
<pre><div id="ja-header" class="clearfix"></pre>
+
<source lang="php"><div id="ja-header" class="clearfix"></source>
<noinclude>
+
 
[[Category:Beginners]]
+
 
[[Category:JA Purity template]]
+
[[Category:Archived version Joomla! 1.5|{{PAGENAME}}]]
[[Category:Tutorials]]
 
</noinclude>
 

Latest revision as of 09:26, 29 April 2013

The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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, can be found in templates/ja_purity. If you've been following the tutorial, you can download a tutorial version of the template that installs to the templates/my_japurity folder. Inside the folder of the template, the files are located as follows:

    <location of template>/
        index.php

Change this line:

<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';?>;">

to

<div id="ja-header" class="clearfix">