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

  1. Move the prtfolio carousel code to a separated file called carousel.js
  2. Update drupal_add_js to call a file instead of adding an inline code.
  3. Fix Drupal JavaScript coding standards issues.

@see https://drupal.org/node/172169 and https://drupal.org/node/1720586

Comments

revagomes’s picture

Title: Move portfolio carousel code to its own file. » Move portfolio carousel code from template.php to its own file.
revagomes’s picture

Here goes the patch.

revagomes’s picture

Issue summary: View changes
revagomes’s picture

Status: Active » Needs review