- 15 Jun, 2015 1 commit
-
-
Aaron Wells authored
Bug 1465107: Use Bootstrap CSS Framework 1. Moving all the pluginfiles for themes into a "plugintype" directory. So e.g. htdocs/theme/raw/blocktype/clippy/templates/clippy.tpl becomes htdocs/theme/raw/plugintype/blocktype/clippy/templates/clippy.tpl. 2. Moving all the things under "static" in themes, to the theme's root. So htdocs/theme/raw/static/style/style.css becomes htdocs/theme/raw/style.css and htdocs/theme/raw/blocktype/clippy/static/images/clippy.png becomes htdocs/theme/raw/blocktype/clippy/images/clippy.png This should make things a little clearer for new theme devs. It's still confusing to have all the images scattered throughout the plugin subdirectories, but that's hard to fix because we treat the asset type as part of the filename, e.g. $THEME->get_url('style/style.css') instead of $THEME->get_url('style', 'style.css'); Change-Id: Ia216a40fb72624113e56d7eac698bfeb5adafcf0
-
- 13 Jun, 2014 3 commits
-
-
Aaron Wells authored
Bug 1231755 Change-Id: I198f04bb652d3220bcceb77c685edcae2fe68e52
-
Aaron Wells authored
Bug 1328319. Still keeping the old location in the search path as well, for backwards-compatibility. Change-Id: Iee2c908bad933a3942f103df6f827ace3beee259
-
Aaron Wells authored
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 2. /theme/(themename)/artefact/fun/templates/path/to/file.tpl 3. /artefact/fun/theme/(themename)/path/to/file.tpl 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: Id90ee1d1dec0bda93a0d30e54229fd7dacbe5b96
-
- 12 Jun, 2014 1 commit
-
-
Aaron Wells authored
Bug 1231755 - Cleanup, documentation, and removing replicated code. - Not checking for whether the file exists. We'll just make a list of search paths and pass those through to Dwoo_Template_File, and let it determine which path has the file. - Eliminating the separate Dwoo_Template_Mahara classes for plugintypes, and moving the custom logic for how plugintypes find their template files, into the Plugin class itself. Change-Id: I877a4221323333e8e8b6c6df54062a0f8bf2b817
-
- 13 Oct, 2009 1 commit
-
-
Jordi Boggiano authored
integrating dwoo into mahara, includes many small templates changes, smarty plugins ported to dwoo syntax as well as the custom mahara resource types ported to dwoo templates Signed-off-by:
Jordi Boggiano <j.boggiano@seld.be>
-