Initial skeleton for an AtoM theme plugin, extending arDominionB5Plugin without modifications.
Requires an AtoM version of 2.7, or up, to include such theme.
Clone repository within AtoM's plugin folder and delete git related files.
git clone --depth=1 https://github.com/artefactual-labs/arThemeB5Plugin.git plugins/arThemeB5Plugin
rm -rf plugins/arThemeB5Plugin/.git plugins/arB5ThemePlugin/README.md
- Rename the plugin folder.
- Rename the config filename.
- Rename the config class name.
- Modify the theme summary and version.
- Update the theme image (shown in the themes page).
IMPORTANT: config filename and config class name must be the same as the plugin folder name
ex. for
plugins/arThemeB5Plugin
, a config file namedarThemeB5PluginConfiguration.class.php
is required with a class namedarThemeB5PluginConfiguration
- Add styling changes directly to, or link stylesheets in, main SCSS file.
- Link scripts to main JS file.
- Copy any actions and templates files required to the new
plugins/arThemeB5Plugin
directory to overwrite files.-
copy files from
plugins/arDominionB5Plugin
, if available, and fromapps/qubit
only when required files are not available inplugins/arDominionB5Plugin
[due to precedence] -
place copied files into
plugins/arThemeB5Plugin/modules
with the same pathExamples
/apps/qubit/templates/_footer.php
=>plugins/arThemeB5Plugin/templates/_footer.php
/plugins/arDominionB5Plugin/modules/informationobject/templates/_editActions.php
=>plugins/arThemeB5Plugin/modules/informationobject/templates/_editActions.php
-
npm install
npm run build
php symfony cc # clear cache [OPTIONAL]