Skip to content

Settings page: lang-ref heading + Premium upgrade CTA (Lite 2.0.4 prep) - #4

Open
senlin wants to merge 11 commits into
mainfrom
feature/settings-page-lite-2.0.4
Open

Settings page: lang-ref heading + Premium upgrade CTA (Lite 2.0.4 prep)#4
senlin wants to merge 11 commits into
mainfrom
feature/settings-page-lite-2.0.4

Conversation

@senlin

@senlin senlin commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Settings page rework for Lite 2.0.4 (branch feature/settings-page-lite-2.0.4).

Changes

1. images/ folder

  • Added images/.gitkeep, images/qml-free-large.png, images/qml-premium-large.png.
  • Small variants (qml-free-32.png, qml-premium-24.png, qml-premium-64.png, qml-premium-32.png) are referenced by filename only — not yet committed (to be generated).

2. src/Admin/SettingsPage.phprender() rewrite

  • Page title now shows an inline logo (qml-free-32.png) via .so_qmp-page-title.
  • New two-column layout: .so_qmp-content-with-sidebar wrapping .so_qmp-main-content + a persistent .so_qmp-premium-sidebar Premium panel (logo, feature list, Get Premium CTA).
  • General Settings restructured into a single form-table:
    • 'Number of Languages' (disabled, Lite) now sits beside an inline .so_qmp-premium-teaser (logo + copy + Get Premium button) — replaces the old absolute-positioned 'Coming Soon' overlay that bled outside its container.
    • 'Number of Pages to Map' moved up.
    • Lang-ref gist link moved into a colspan table row (.so_qmp-lang-ref-row).
    • Language column header row + Primary / Secondary language rows; Primary's Language-Folder cell shows an italic 'N/A' (.so_qmp-na).
  • Page Translations tab: form/table/loop copied verbatim — no functional change.
  • Image URLs resolved via plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'images/'.
  • No new options registered; so_qmp_number_of_languages remains disabled in Lite.

3. css/admin.css — appended styles for the title logo, two-column layout, Premium sidebar, inline teaser, and the N/A cell / lang-ref row. Existing rules unchanged (old .so_qmp-premium-overlay rules left in place, now unused/harmless).

Validation

  • php -l passes on SettingsPage.php.
  • render() executed against stubbed WordPress functions — renders without errors and emits all expected markup (sidebar, teaser, N/A cell, lang-ref row, page-mapping rows, image references).

senlin and others added 11 commits September 6, 2026 09:27
Add .so_qmp_table class to the settings table and update CSS to increase header padding and emphasize the language reference row (larger font and weight). Reorder table headers and adjust cell structure (move header row above the lang-ref row, add an empty leading cell, and change colspan) to improve column alignment and presentation. Files: css/admin.css, src/Admin/SettingsPage.php.
Tweak admin UI: CSS changes set a fixed 150px width for form table headers, make language-ref rows italic, and push the Premium sidebar down (margin-top 170px). PHP changes add an i18n 'Languages' column header and shorten 'Primary Language'/'Secondary Language' to 'Primary'/'Secondary' in the settings table (using esc_html_e).
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