Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: revagomes commentedComment #2
revagomes CreditAttribution: revagomes commentedComment #3
revagomes CreditAttribution: revagomes commentedHere goes the patch.
Comment #4
johnhanley CreditAttribution: 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 CreditAttribution: donapis commented