root / drupal7 / sites / all / themes / zen / STARTERKIT / js @ edccd837
Nom | Taille | Révision | Âge | Auteur | Commentaire |
---|---|---|---|---|---|
README.txt | 569 octets | 87dbc3bf | plus de 9 ans | Benjamin Luce | Addition of 3 themes : - adminimal_theme in fi... |
script.js | 701 octets | 87dbc3bf | plus de 9 ans | Benjamin Luce | Addition of 3 themes : - adminimal_theme in fi... |
Dernières révisions
README
Your theme can add JavaScript files in two ways:
To add a JavaScript file to all pages on your website, edit your sub-theme's
.info file and add a line like this one:scripts[] = js/my-jquery-script.js
To add a JavaScript file depending on a certain condition, you can add it
using some PHP code in a preprocess function:drupal_add_js(drupal_get_path('theme', 'THEME_NAME') . '/js/my-jquery-script.js', array('group' => JS_THEME));
For the full documentation of drupal_add_js(), see:
http://api.drupal.org/api/function/drupal_add_js
Formats disponibles : Atom