diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-22 23:36:38 +0100 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-22 23:36:38 +0100 |
commit | b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3 (patch) | |
tree | 64b5e1367d0d01efb0687ef7c27f27de02f866bb /sites/brdo.brontosaurus.cz.mrp/themes/mrp/js/README.txt | |
parent | eb273b377f00fabe7b90791333f8e915a201c69a (diff) | |
download | brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.gz brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.bz2 |
Add theme for MRP site.
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/js/README.txt')
-rw-r--r-- | sites/brdo.brontosaurus.cz.mrp/themes/mrp/js/README.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/js/README.txt b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/js/README.txt new file mode 100644 index 000000000..da94e902a --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/js/README.txt @@ -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(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 |