Allow a theme to specify that it has *no* parent

Bug #1410638 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Aaron Wells

Bug Description

Currently *all* themes (except the "raw" theme) either have another theme as their parent, or they default to having the "raw" theme as their parent. If a theme has no $theme->parent in its themeconfig.php file, then it gets assigned the "raw" theme as its parent.

The team that's working on switching our themes to the Bootstrap framework, say that it would be useful for their development work if they could make an "alternate raw" theme that does *not* inherit from the raw theme.

So I've implemented a patch that allows a theme to specify $theme->parent = FALSE in its themeconfig.php, to indicate that it has no parent theme.

Aaron Wells (u-aaronw)
Changed in mahara:
assignee: nobody → Aaron Wells (u-aaronw)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/4177

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/4177
Committed: http://gitorious.org/mahara/mahara/commit/b822b5673edb615c1fd34af3f131aaaa2d0b9331
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit b822b5673edb615c1fd34af3f131aaaa2d0b9331
Author: Aaron Wells <email address hidden>
Date: Wed Jan 14 17:29:38 2015 +1300

Let a theme specify that it has no parent

Bug 1410638. Currently, a theme that specifies no $theme->parent
in its themeconfig.php is forced to use "raw" as its parent.
With this patch, there are three options:

1. $theme->parent = false; : No parent theme.
2. $theme->parent = "sometheme"; : Sometheme is the parent
3. $theme->parent not defined at all: "raw" is the parent

Change-Id: Ibfeeae246b0f505b5759ee77eeed32467c464cab

Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.