Allow plugin theme files to live under the /theme and /local directory
Bug 1231755. In order to make it easier for custom theme authors to customize
the appearance of plugins, I'm adding the /theme directory to the search path
for plugin files.
The /local directory doesn't have separate copies for separate
themes. It's a sitewide override of all themes.
For some reason theme directories under plugins don't have a "templates"
directory. The templates sit loose under the theme directory. In my new
version, plugin directories under themes DO have a "templates" directory.
Reviewed: https:/ /reviews. mahara. org/3425 gitorious. org/mahara/ mahara/ commit/ fd85506f254ebc3 675718ce54029ff 96a4c13856
Committed: http://
Submitter: Yuliya Bozhko (<email address hidden>)
Branch: master
commit fd85506f254ebc3 675718ce54029ff 96a4c13856
Author: Aaron Wells <email address hidden>
Date: Mon Jun 9 20:24:58 2014 +1200
Allow plugin theme files to live under the /theme and /local directory
Bug 1231755. In order to make it easier for custom theme authors to customize
the appearance of plugins, I'm adding the /theme directory to the search path
for plugin files.
Example: smarty- >display( 'artefact: fun:path/ to/file. tpl')
Old searchpath:
/artefact/ fun/theme/ (themename) /path/to/ file.tpl
New searchpath (in order of precedence):
1. /local/ theme/artefact/ fun/templates/ path/to/ file.tpl (themename) /artefact/ fun/templates/ path/to/ file.tpl fun/theme/ (themename) /path/to/ file.tpl
2. /theme/
3. /artefact/
Further notes:
The /local directory doesn't have separate copies for separate
themes. It's a sitewide override of all themes.
For some reason theme directories under plugins don't have a "templates"
directory. The templates sit loose under the theme directory. In my new
version, plugin directories under themes DO have a "templates" directory.
Change-Id: Id90ee1d1dec0bd a93a0d30e54229f d7dacbe5b96