From 8c215531372152ee25fc40fe7ef5f6de01c7ddc6 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 20 Jun 2026 21:56:16 -0500 Subject: [PATCH] =?UTF-8?q?fix(menu):=20MokoSuiteClient=E2=86=92MokoClient?= =?UTF-8?q?,=20strip=20MokoSuite=20from=20others?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - HQ and Client keep "Moko" prefix: MokoHQ, MokoClient - All other extensions drop MokoSuite entirely: Backup, OpenGraph, etc. - Component menu title changed to MokoClient --- .../language/en-GB/com_mokosuiteclient.sys.ini | 2 +- .../mod_mokosuiteclient_menu/tmpl/default.php | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/source/packages/com_mokosuiteclient/admin/language/en-GB/com_mokosuiteclient.sys.ini b/source/packages/com_mokosuiteclient/admin/language/en-GB/com_mokosuiteclient.sys.ini index cf66bc07..ce949b2d 100644 --- a/source/packages/com_mokosuiteclient/admin/language/en-GB/com_mokosuiteclient.sys.ini +++ b/source/packages/com_mokosuiteclient/admin/language/en-GB/com_mokosuiteclient.sys.ini @@ -2,7 +2,7 @@ ; Copyright (C) 2026 Moko Consulting. All rights reserved. ; License: GPL-3.0-or-later -COM_MOKOSUITECLIENT="MokoSuiteClient" +COM_MOKOSUITECLIENT="MokoClient" COM_MOKOSUITECLIENT_DESCRIPTION="MokoSuiteClient admin dashboard and REST API. Control panel for managing site features, health monitoring, and remote management." COM_MOKOSUITECLIENT_DASHBOARD_TITLE="MokoSuiteClient Control Panel" COM_MOKOSUITECLIENT_MENU_DASHBOARD="Dashboard" diff --git a/source/packages/mod_mokosuiteclient_menu/tmpl/default.php b/source/packages/mod_mokosuiteclient_menu/tmpl/default.php index 2c4398ac..760748c4 100644 --- a/source/packages/mod_mokosuiteclient_menu/tmpl/default.php +++ b/source/packages/mod_mokosuiteclient_menu/tmpl/default.php @@ -101,7 +101,7 @@ else // com_mokosuiteclient not in admin menu — add it manually $mokoComponents['com_mokosuiteclient'] = [ 'id' => 0, - 'title' => 'MokoSuiteClient', + 'title' => 'MokoClient', 'link' => 'index.php?option=com_mokosuiteclient', 'icon' => 'icon-shield-alt', 'element' => 'com_mokosuiteclient', @@ -116,8 +116,17 @@ $rest = []; foreach ($mokoComponents as $key => $comp) { - // Strip "MokoSuite" prefix from display titles - $comp['title'] = preg_replace('/^MokoSuite\s*/i', '', $comp['title']); + // Shorten display titles: + // MokoSuiteClient → MokoClient, MokoSuiteHQ → MokoHQ + // Everything else: MokoSuiteBackup → Backup, MokoSuiteOpenGraph → OpenGraph + if ($key === 'com_mokosuiteclient' || $key === 'com_mokosuitehq') + { + $comp['title'] = preg_replace('/^MokoSuite/i', 'Moko', $comp['title']); + } + else + { + $comp['title'] = preg_replace('/^MokoSuite\s*/i', '', $comp['title']); + } if ($key === 'com_mokosuitehq') {