-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Because we override frontend/components templates, this plugin is really only compatible with Bootstrap3 subthemes.
The frontend/components templates are not core to this plugin and might be considered spurrious. These should be migrated upstream to bootstrap3 as PRs or subthemes if possible.
Until such is done, we need to check in the register method to ensure Bootstrap3 is the enabled theme, and skip any practical effect if not:
inlineHtmlGalley/InlineHtmlGalleyPlugin.inc.php
Lines 24 to 26 in d10cc31
| $success = parent::register($category, $path, $mainContextId); | |
| if (!$success) return false; | |
| if ($success && $this->getEnabled()) { |
Specifically, it is critical not to hook TemplateResource::getFilename if our template overrides are not going to be compatible with the selected theme.
| HookRegistry::register('TemplateResource::getFilename', array($this, '_overridePluginTemplates'), HOOK_SEQUENCE_CORE); |
The documentation should be clarified here:
Line 10 in d10cc31
| * The plugin will function with other themes, but the structure of the blocks conforms to bootstrap3 expectations |