Problem/Motivation
The template.php file has lots of inline code additions that should be moved to a separated file in order to be clean and easily maintainable.
Proposed resolution
- Move the frontpage slideshow code to a separated file called slideshow.js
- Update drupal_add_js to call a file instead of adding an inline code.
- Fix Drupal JavaScript coding standards issues.
@see https://drupal.org/node/172169 and https://drupal.org/node/1720586
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | simplecorp-move_slideshow_to_saparated_file-2163081-3.patch | 6.3 KB | revagomes |
Comments
Comment #1
revagomes commentedComment #2
revagomes commentedComment #3
revagomes commentedHere goes the patch.
Comment #4
johnhanley commentedI'm planning to use this nice theme for a new project, but I too find the code related to the slideshow (i.e. part of template.php) cumbersome.
This patch makes perfect since to me. What's the status of rolling it into the next release?
Comment #5
donapis commented