Skip to content

Plugin is compatible only with Bootstrap3 #3

@ctgraham

Description

@ctgraham

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:

$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:

* The plugin will function with other themes, but the structure of the blocks conforms to bootstrap3 expectations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions