Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support for themes #12

Open
wants to merge 1 commit into from

1 participant

Peter Farsinsen
Peter Farsinsen

Hi

I've added support for assets located in themes. Please consider merging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 7, 2011
  1. Peter Farsinsen
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 1 deletion.
  1. +4 −1 views/helpers/asset.php
5 views/helpers/asset.php
View
@@ -366,7 +366,10 @@ function __findFile(&$asset, $type) {
$paths = array($this->__getPath($type));
$paths = array_merge($paths, $this->options['searchPaths']);
-
+
+ if(!empty($this->theme)) {
+ $paths[] = VIEWS . 'themed' . DS . $this->theme . DS . 'webroot' . DS;
+ }
if (!empty($asset['plugin']) > 0) {
$pluginPaths = App::path('plugins');
Something went wrong with that request. Please try again.