Actions

J1.5

Difference between revisions of "Customising the JA Purity template/header/search"

From Joomla! Documentation

< J1.5:Customising the JA Purity template‎ | header
m (Applied tutorial template and removed categories)
(2 intermediate revisions by 2 users not shown)
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.
+
{{:Customising the JA Purity template/tutorialtemplate|index.php, template.css and icon-search.gif|<pre>
The relevant files, XXXXX and XXXX, are in the following directories:<br />
+
    <location of template>/
<pre>
+
        index.php
    templates/ja_purity
+
        css/
                index.php
+
            template.css
                css/
+
        images/
                    template.css
+
            icon-search.gif
</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
+
                css/
+
                    template.css
+
</pre>
+
 
==HTML and PHP Files==
 
==HTML and PHP Files==
 
=== ja_purity/index.php ===
 
=== ja_purity/index.php ===
Line 47: Line 39:
 
</source>
 
</source>
 
==Image Files==
 
==Image Files==
 +
===icon-search.gif===
 
==Javascript Files==
 
==Javascript Files==
 
===ja_purity/js/XXXXX.js===
 
===ja_purity/js/XXXXX.js===
 
<source lang="javascript" line start="">
 
<source lang="javascript" line start="">
 
</source>
 
</source>
<noinclude>
 
[[Category:Beginners]]
 
[[Category:JA Purity template]]
 
[[Category:Tutorials]]
 
</noinclude>
 

Revision as of 15:11, 15 January 2011

Replacement filing cabinet.png
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.


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, template.css and icon-search.gif, 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
        css/
            template.css
        images/
            icon-search.gif

Contents

HTML and PHP Files

ja_purity/index.php

  1.         <?php if($this->countModules('user4')) : ?>
    
  2.                 <div id="ja-search">
    
  3.                         <jdoc:include type="modules" name="user4" />
    
  4.                 </div>
    
  5.         <?php endif; ?>
    

CSS Files

ja_purity/css/XXXXX.css

  1. /* Search */
    
  2. #ja-search {
    
  3.         padding-left: 20px;
    
  4.         background: url(../images/icon-search.gif) no-repeat center left;
    
  5.         position: absolute;
    
  6.         bottom: 15px;
    
  7.         right: 0;
    
  8. }
    
  9.  
    
  10. #ja-search .inputbox {
    
  11.         width: 120px;
    
  12.         border: 1px solid #333333;
    
  13.         padding: 3px 5px;
    
  14.         color: #999999;
    
  15.         background: #444444;
    
  16.         font-size: 92%;
    
  17. }
    

Image Files

icon-search.gif

Javascript Files

ja_purity/js/XXXXX.js

  1.