Download the PHP package considbrs-webdev/eslov-customisation without Composer
On this page you can find all versions of the php package considbrs-webdev/eslov-customisation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download considbrs-webdev/eslov-customisation
More information about considbrs-webdev/eslov-customisation
Files in considbrs-webdev/eslov-customisation
Package eslov-customisation
Short Description DB migration CLI and runtime shims for Eslöv Municipio deployment
License MIT
Informations about the package eslov-customisation
Eslöv Customisation
Site-specific WordPress plugin for the Eslöv municipio-deployment migration. All Eslöv-specific DB transforms and runtime shims live here — not in the theme or LTS plugin ports.
Fix types
| Type | Purpose | Lifecycle |
|---|---|---|
| One-time migration | Rewrite DB: meta keys, module JSON, options | wp eslov migrate … — idempotent, --dry-run |
| Runtime shim | Bridge unmigrated rows or permanent site preference | Hook/filter in Customisations/ |
Log every fix in .cursor/plans/db-migration.md.
Installation
WP-CLI
Individual commands (also run by migrate all when status is ready):
Adding a migration
- Add transform logic in
source/php/Migration/(pure PHP, no WP-CLI coupling). - Add
source/php/Cli/Migrate/YourCommand.phpextendingAbstractMigrateCommand. - Register in
CliBootstrap::register(). - Add an entry to
Migration/MigrationRegistry.php(setrun_orderwhen status isready).
Adding a runtime shim
- Create a class in
source/php/Customisations/. - Register hooks in
__construct(). - Add the class to
App::registerInstances().
SMTP
Customisations\Smtp routes outgoing mail through SMTP (via phpmailer_init). It is a no-op
until all six constants below are defined.
Add a config/smtp.php (there's no built-in one), following the pattern of
config-example/sentry-example.php
in municipio-deployment:
...and register it in wp-config.php's $configFiles list, alongside sentry.php etc. The
(#token#) placeholders are filled in per environment by the deploy pipeline, same as
DB_PASSWORD and the other secrets in config-example/.
This replaces the old web/app/mu-plugins/smtp.php mu-plugin — no mu-plugin changes are needed.
Plugin layout (Piteå-style)
Custom Modularity modules register in eslov-customisation.php (init priority 5), same pattern as Piteå AccButtons.
Blade view overrides
- Theme:
views/partials/— registered onMunicipio/viewPathsviaCustomisations\Templates. - Modules:
source/php/Modules/{Name}/views/— registered on/Modularity/externalViewPath. - Components:
views/components/— registered onComponentLibrary/ViewPathsviaCustomisations\TimelineActiveStep(dated@timelineuses sequential layout + cardmetafor dates).
Assets (Vite)
Site CSS/JS and module styles use separate Vite builds and manifests.
Built files land in assets/dist/ (gitignored) — run npm run build locally or via build.php.
| Build | Config | Output | Enqueued by |
|---|---|---|---|
| Site CSS + JS | vite.config.mjs |
assets/dist/ |
SiteStyles + SiteScripts (global) |
| mod-navigation | vite.navigation.config.mjs |
Modules/Navigation/assets/dist/ |
Navigation::style() (on-page only) |
- Site CSS:
source/sass/site-overrides.scss→ importscomponents/* - Site JS:
source/js/site.js→ importscomponents/*(depends onjs-styleguidejs) - Module SCSS: beside the module (
Modules/Navigation/sass/mod-navigation.scss), scoped under.modularity-mod-navigation
License
MIT
Imported-event review is disabled
Events are reviewed at the source site. The registrations for
SubsiteImportReview, SubsiteImportReviewList and SubsiteImportReviewChanges
are commented out in source/php/App.php. External Content follows its normal
publication behavior, with no additional review buttons or change-review metabox.
The handler code remains available for future reuse. There is no site option to switch these handlers on or off; restoring them requires a code change. This applies wherever this plugin runs. Existing pending posts are not automatically published, and checksum-based synchronization may skip unchanged source events.