Skip to content

MultiContactForm 1.0.1

Choose a tag to compare

@SalvatoreNoschese SalvatoreNoschese released this 11 Nov 18:15
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
v1.0.1
329c847

Self-hosted fonts, a cleaner way to pass the theme between your sites, and a handful of interface fixes.

Highlights

  • Ubuntu Sans and Ubuntu Sans Mono, self-hosted (OFL-1.1): the same look on every device, nothing loaded from third parties. The CSP now allows font-src 'self'.
  • ?view=light|dark is the theme for this visit only. A linking site can still open the form in its own theme, but the parameter no longer stays in the address or travels through internal links: the new public/assets/js/theme.js keeps it in sessionStorage for this tab and removes it before the page is drawn (other parameters and the #fragment are kept). It never becomes a saved choice: only the 🌓 toggle saves one, and using it ends the visit's theme. Theme shown: this visit's › the saved choice › the device's.
  • site_url accepts {lang} and {theme}, e.g. https://example.com/{lang}/?view={theme}: the link in the page stays clean, and the theme on screen is added only when it is followed.
  • The privacy page lists the visit's theme (mcf.view, sessionStorage) next to the cookies, with its state and a delete link.

Fixes

  • "Back to …" from a site that is not one of your projects now says "Go back" instead of a long host name.
  • "Reset" is grey and inactive until there is something to reset (before, it reloaded the page for nothing).
  • The German and English flags now fill their frame (they were drawn 5:3 and 2:1 in a 3:2 box).
  • theme-color follows a device theme change while the page is open, and a page restored with the Back button re-aligns its theme without reloading.

Upgrading from 1.0.0

  • Upload the release over your installation: config.php, projects.php and the data folder are not in the package and stay as they are.
  • No configuration change is required. Optionally, add {theme} (and {lang}) to site_url to pass the theme to your site.
  • If you added or customised a language file, translate the new keys back, privacy.storage_visit_duration and privacy.storage_visit_purpose (until then they fall back to English).
  • If you modified app/views/topbar.php or app/views/privacy.php, merge your changes by hand.

Full details in CHANGELOG.md.