title: How add jQuery to Joomla Template?
body: <p>Sorry for my ignorance but I am starting in Joomla and I would need to add to my Joomla Template named Lumiere some jQuery scripts and their images.
  I am looking at the template and I saw that Index.html is empty of code but the index.php file is the code and I guess I should add this one "there"
  The code in the php script is the following:</p>
  
  <pre><code>&lt;?php
  /**
  * @version   $Id: index.php 5057 2012-11-06 04:48:10Z rhuk $
   * @author RocketTheme http://www.rockettheme.com
   * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC
   * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
   *
   * Gantry uses the Joomla Framework (http://www.joomla.org), a GNU/GPLv2 content management system
   *
   */
  // no direct access
  defined( '_JEXEC' ) or die( 'Restricted index access' );
  
  // load and inititialize gantry class
  require_once(dirname(__FILE__) . '/lib/gantry/gantry.php');
  $gantry-&gt;init();
  
  // get the current preset
  $gpreset = str_replace(' ','',strtolower($gantry-&gt;get('name')));
  
  ?&gt;
  &lt;!doctype html&gt;
  &lt;html xml:lang="&lt;?php echo $gantry-&gt;language; ?&gt;" lang="&lt;?php echo $gantry-&gt;language;?&gt;" &gt;
  &lt;head&gt;
      &lt;?php if ($gantry-&gt;get('layout-mode') == '960fixed') : ?&gt;
      &lt;meta name="viewport" content="width=960px"&gt;
      &lt;?php elseif ($gantry-&gt;get('layout-mode') == '1200fixed') : ?&gt;
      &lt;meta name="viewport" content="width=1200px"&gt;
      &lt;?php else : ?&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;?php endif; ?&gt;
      &lt;?php
          $gantry-&gt;displayHead();
  
          $gantry-&gt;addStyle('grid-responsive.css', 5);
          $gantry-&gt;addLess('bootstrap.less', 'bootstrap.css', 6);
          $gantry-&gt;addLess('global.less', 'master.css', 8, array('main-body'=&gt;$gantry-&gt;get('main-body','light'), 'main-accent'=&gt;$gantry-&gt;get('main-accent', '#a84d6c')));
  
          if ($gantry-&gt;browser-&gt;name == 'ie'){
              if ($gantry-&gt;browser-&gt;shortversion == 9){
                  $gantry-&gt;addInlineScript("if (typeof RokMediaQueries !== 'undefined') window.addEvent('domready', function(){ RokMediaQueries._fireEvent(RokMediaQueries.getQuery()); });");
              }
              if ($gantry-&gt;browser-&gt;shortversion == 8){
                  $gantry-&gt;addScript('html5shim.js');
              }
          }
          if ($gantry-&gt;get('layout-mode', 'responsive') == 'responsive') $gantry-&gt;addScript('rokmediaqueries.js');
          if ($gantry-&gt;get('loadtransition')) {
          $gantry-&gt;addScript('load-transition.js');
          $hidden = ' class="rt-hidden"';}
  
      ?&gt;
  &lt;/head&gt;
  &lt;body &lt;?php echo $gantry-&gt;displayBodyTag(); ?&gt;&gt;
      &lt;?php /** Begin Top Surround **/ if ($gantry-&gt;countModules('top') or $gantry-&gt;countModules('header')) : ?&gt;
      &lt;header id="rt-top-surround"&gt;
          &lt;?php /** Begin Top **/ if ($gantry-&gt;countModules('top')) : ?&gt;
          &lt;div id="rt-top" &lt;?php echo $gantry-&gt;displayClassesByTag('rt-top'); ?&gt;&gt;
              &lt;div class="rt-container"&gt;
                  &lt;?php echo $gantry-&gt;displayModules('top','standard','standard'); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** End Top **/ endif; ?&gt;
  
          &lt;?php echo $gantry-&gt;displayModules('background','basic','basic'); ?&gt;
          &lt;?php if (($gantry-&gt;countModules('showcase')) and (!$gantry-&gt;countModules('feature'))) : ?&gt;
          &lt;div class="rt-bg-fade"&gt;&lt;/div&gt;
          &lt;?php endif; ?&gt;
  
          &lt;?php /** Begin Header **/ if ($gantry-&gt;countModules('header')) : ?&gt;
          &lt;div id="rt-header"&gt;
              &lt;div class="rt-container"&gt;
                  &lt;?php echo $gantry-&gt;displayModules('header','standard','standard'); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** End Header **/ endif; ?&gt;
          &lt;?php /** Begin Showcase **/ if ($gantry-&gt;countModules('showcase')) : ?&gt;
          &lt;div id="rt-showcase"&gt;
              &lt;div class="rt-container"&gt;
                  &lt;?php echo $gantry-&gt;displayModules('showcase','standard','standard'); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** End Showcase **/ endif; ?&gt;
          &lt;?php /** Begin Feature **/ if ($gantry-&gt;countModules('feature')) : ?&gt;
          &lt;div id="rt-feature"&gt;
              &lt;div class="rt-container"&gt;
                  &lt;?php echo $gantry-&gt;displayModules('feature','standard','standard'); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** End Feature **/ endif; ?&gt;
      &lt;/header&gt;
      &lt;?php /** End Top Surround **/ endif; ?&gt;
      &lt;?php /** Begin Drawer **/ if ($gantry-&gt;countModules('drawer')) : ?&gt;
      &lt;div id="rt-drawer"&gt;
          &lt;div class="rt-container"&gt;
              &lt;?php echo $gantry-&gt;displayModules('drawer','standard','standard'); ?&gt;
              &lt;div class="clear"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;?php /** End Drawer **/ endif; ?&gt;
      &lt;div id="rt-main-container"&gt;
          &lt;div id="rt-transition"&lt;?php if ($gantry-&gt;get('loadtransition')) echo $hidden; ?&gt;&gt;
              &lt;div id="rt-mainbody-surround"&gt;
                  &lt;?php /** Begin Utility **/ if ($gantry-&gt;countModules('utility')) : ?&gt;
                  &lt;div id="rt-utility"&gt;
                      &lt;div class="rt-container"&gt;
                          &lt;?php echo $gantry-&gt;displayModules('utility','standard','standard'); ?&gt;
                          &lt;div class="rt-main-divider"&gt;&lt;/div&gt;
                          &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;?php /** End Utility **/ endif; ?&gt;
                  &lt;?php /** Begin Breadcrumbs **/ if ($gantry-&gt;countModules('breadcrumb')) : ?&gt;
                  &lt;div id="rt-breadcrumbs"&gt;
                      &lt;div class="rt-container"&gt;
                          &lt;?php echo $gantry-&gt;displayModules('breadcrumb','standard','standard'); ?&gt;
                          &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;?php /** End Breadcrumbs **/ endif; ?&gt;
                  &lt;?php /** Begin Main Top **/ if ($gantry-&gt;countModules('maintop')) : ?&gt;
                  &lt;div id="rt-maintop"&gt;
                      &lt;div class="rt-container"&gt;
                          &lt;?php echo $gantry-&gt;displayModules('maintop','standard','standard'); ?&gt;
                          &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;?php /** End Main Top **/ endif; ?&gt;
                  &lt;?php /** Begin Main Body **/ ?&gt;
                  &lt;div class="rt-container"&gt;
                          &lt;?php echo $gantry-&gt;displayMainbody('mainbody','sidebar','standard','standard','standard','standard','standard'); ?&gt;
                      &lt;/div&gt;
                  &lt;?php /** End Main Body **/ ?&gt;
                  &lt;?php /** Begin Main Bottom **/ if ($gantry-&gt;countModules('mainbottom')) : ?&gt;
                  &lt;div id="rt-mainbottom"&gt;
                      &lt;div class="rt-container"&gt;
                          &lt;?php echo $gantry-&gt;displayModules('mainbottom','standard','standard'); ?&gt;
                          &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;?php /** End Main Bottom **/ endif; ?&gt;
                  &lt;?php /** Begin Extension **/ if ($gantry-&gt;countModules('extension')) : ?&gt;
                  &lt;div id="rt-extension"&gt;
                      &lt;div class="rt-container"&gt;
                          &lt;?php echo $gantry-&gt;displayModules('extension','standard','standard'); ?&gt;
                          &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;?php /** End Extension **/ endif; ?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** Begin Bottom **/ if ($gantry-&gt;countModules('bottom')) : ?&gt;
          &lt;div id="rt-bottom"&gt;
              &lt;div class="rt-container"&gt;
                  &lt;?php echo $gantry-&gt;displayModules('bottom','standard','standard'); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** End Bottom **/ endif; ?&gt;
          &lt;?php /** Begin Footer Section **/ if ($gantry-&gt;countModules('footer') or $gantry-&gt;countModules('copyright')) : ?&gt;
          &lt;footer id="rt-footer-surround"&gt;
              &lt;?php /** Begin Footer **/ if ($gantry-&gt;countModules('footer')) : ?&gt;
              &lt;div id="rt-footer"&gt;
                  &lt;div class="rt-container"&gt;
                      &lt;?php echo $gantry-&gt;displayModules('footer','standard','standard'); ?&gt;
                      &lt;div class="clear"&gt;&lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;?php /** End Footer **/ endif; ?&gt;
              &lt;?php /** Begin Copyright **/ if ($gantry-&gt;countModules('copyright')) : ?&gt;
              &lt;div id="rt-copyright"&gt;
                  &lt;div class="rt-container"&gt;
                      &lt;?php echo $gantry-&gt;displayModules('copyright','standard','standard'); ?&gt;
                      &lt;div class="clear"&gt;&lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;?php /** End Copyright **/ endif; ?&gt;
          &lt;/footer&gt;
          &lt;?php /** End Footer Surround **/ endif; ?&gt;
          &lt;?php /** Begin Debug **/ if ($gantry-&gt;countModules('debug')) : ?&gt;
          &lt;div id="rt-debug"&gt;
              &lt;div class="rt-container"&gt;
                  &lt;?php echo $gantry-&gt;displayModules('debug','standard','standard'); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php /** End Debug **/ endif; ?&gt;
      &lt;/div&gt;
      &lt;?php /** Begin Popups **/
          echo $gantry-&gt;displayModules('popup','popup','popup');
          echo $gantry-&gt;displayModules('login','login','popup');
      /** End Popup s**/ ?&gt;
      &lt;?php /** Begin Analytics **/ if ($gantry-&gt;countModules('analytics')) : ?&gt;
      &lt;?php echo $gantry-&gt;displayModules('analytics','basic','basic'); ?&gt;
      &lt;?php /** End Analytics **/ endif; ?&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  &lt;?php
  $gantry-&gt;finalize();
  ?&gt;
  </code></pre>
  
  <p>I guess, I should add the js files into Js folder and css files into CSS folder and the images into Images folder, but if I have the following js/css scripts:</p>
  
  <pre><code>carousel.css
  carousel.js
  jquery.roundabout.min.js
  jquery-1.6.min.js
  </code></pre>
  
  <p>What code have to add to this php script(above) to that this one works fine?
  Thanks in advance
  Alejandro
  PS: Sorry for my little English</p>