Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / zen / STARTERKIT / js @ 87dbc3bf

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

# Date Auteur Commentaire
87dbc3bf 21/12/2014 20:59 Benjamin Luce

Addition of 3 themes :
- adminimal_theme in file drupal7/sites/all/themes
- bootstrap in the same file
- zen in the same file
Addition of 1 module :
- adminimal_admin_menu in file drupal7/sites/all/modules

I hope I don't make any mistake...

Voir les révisions

README


Your theme can add JavaScript files in two ways:

  1. 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

  2. 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