Skip to content

Core 5889 - #12

Open
abdyfranco wants to merge 3 commits into
masterfrom
CORE-5889
Open

Core 5889#12
abdyfranco wants to merge 3 commits into
masterfrom
CORE-5889

Conversation

@abdyfranco

Copy link
Copy Markdown
Member

No description provided.

Abdy Franco added 2 commits August 12, 2026 15:36
<?= only works where short_open_tag is enabled, so the page listing and the manage form
could render their markup as literal text on a server that has it off. Spells them out as
<?php echo instead, matching the rest of the plugin.

Also guards the language loop in the manage form against a missing $languages.
The portal renders through the active client template already, since Main::preAction()
points the structure at client/{template}, and the page markup itself lives in cms_pages.
What did not follow was views/default/css/styles.css, which paints the portal boxes and the
install notice in fixed colors. Against Meridian's dark palette that left white cards on a
dark page, and an install notice whose inherited near-white text sat on a white background.

Adds views/meridian/, resolved per file through PluginViewResolver, holding the portal view
and a stylesheet that takes its colors from the Meridian design tokens, so light and dark
mode need no extra rules. Also carries the FontAwesome sizing classes: Meridian maps the
FontAwesome class names onto Bootstrap Icons glyphs but ships none of fa-lg through fa-5x,
so the fa-4x icons on the seeded portal page were drawing at 1em.

The stylesheet link is built in preAction, before the view directory is settled, so it was
always pointing at views/default/ no matter which directory the view came from. It now
resolves the directory the same way the renderer does.

The admin views are left on views/default/, which the admin template goes on using.
…lates

The two client structures include stylesheets in mutually exclusive ways. Meridian renders
the Css helper and carries no custom_head at all, while the Bootstrap template is the other
way around, so the link set here reached the head on one and was silently discarded on the
other. Meridian dropped custom_head as of core 5e7cfa300, which left the portal page with
none of the plugin stylesheet: the portal boxes and the install notice rendered unstyled,
including the dark mode rules views/meridian/css/styles.css exists to provide.

The Meridian view now loads the stylesheet itself, where $this->view_dir is already the
directory the view resolved to, and setting custom_head is left to the templates that
render it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant