New theme base for SuiteDesk
This commit is contained in:
parent
c1bbd9d6f5
commit
8cf3c56044
137 changed files with 12866 additions and 8 deletions
14
themes/zen/STARTERKIT/js/README.txt
Normal file
14
themes/zen/STARTERKIT/js/README.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
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('js/my-jquery-script.js', 'theme');
|
||||
|
||||
For the full documentation of drupal_add_js(), see:
|
||||
http://api.drupal.org/api/function/drupal_add_js
|
Reference in a new issue