fix(template): GTranslate position + theme FAB collision avoidance #177

Merged
jmiller merged 1 commits from fix/gtranslate-fab-position into main 2026-07-19 06:59:45 +00:00
Owner

Summary

Adds a dedicated gtranslate template position and shifts the theme FAB clear of the GTranslate floating widget.

  • New <position>gtranslate</position> (above debug) in templateDetails.xml; rendered in index.php. Reassign the auto-injected GTranslate module (which defaults to debug) to this position.
  • has-gtranslate body class via countModules(gtranslate).
  • #mokoThemeFab.pos-br shifts to right: 9.5rem and .pos-bl to left: 9.5rem under has-gtranslate, so the FAB clears GTranslate on whichever bottom corner it floats (per the module settings).

Relates to #176 (first-class GTranslate integration).

3 files, +18 lines. No functional change unless a module is assigned to the new position.

## Summary Adds a dedicated `gtranslate` template position and shifts the theme FAB clear of the GTranslate floating widget. - New `<position>gtranslate</position>` (above `debug`) in `templateDetails.xml`; rendered in `index.php`. Reassign the auto-injected GTranslate module (which defaults to `debug`) to this position. - `has-gtranslate` body class via `countModules(gtranslate)`. - `#mokoThemeFab.pos-br` shifts to `right: 9.5rem` and `.pos-bl` to `left: 9.5rem` under `has-gtranslate`, so the FAB clears GTranslate on whichever bottom corner it floats (per the module settings). Relates to #176 (first-class GTranslate integration). 3 files, +18 lines. No functional change unless a module is assigned to the new position.
jmiller added 1 commit 2026-07-19 06:58:16 +00:00
fix(template): add gtranslate position + shift theme FAB clear of GTranslate widget
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Failing after 40s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 43s
Generic: Project CI / Lint & Validate (pull_request) Successful in 16s
Joomla: Extension CI / Release Readiness Check (pull_request) Failing after 5s
Joomla: Extension CI / Lint & Validate (pull_request) Failing after 17s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
Generic: Project CI / Tests (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.2) (pull_request) Has been cancelled
Joomla: Extension CI / Tests (PHP 8.3) (pull_request) Has been cancelled
Joomla: Extension CI / PHPStan Analysis (pull_request) Has been cancelled
Joomla: Extension CI / Build RC Pre-Release (pull_request) Has been cancelled
164cf91776
- New 'gtranslate' template position (above debug); rendered in index.php
- has-gtranslate body class via countModules('gtranslate')
- Shift #mokoThemeFab .pos-br (right) and .pos-bl (left) by 9.5rem under
  has-gtranslate so the FAB clears the GTranslate floating widget on either
  bottom corner (GTranslate side is set per module settings)
jmiller merged commit 6b221c0864 into main 2026-07-19 06:59:45 +00:00
jmiller deleted branch fix/gtranslate-fab-position 2026-07-19 06:59:48 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoOnyx#177