Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
- Enh: Add Jitsi Meet module
- Enh: Better UI of the configuration page
  • Loading branch information
marc-farre committed Feb 12, 2025
1 parent 9605d5f commit b4e0268
Show file tree
Hide file tree
Showing 104 changed files with 310 additions and 269 deletions.
13 changes: 9 additions & 4 deletions Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ public static function onTopMenuBeforeRun($event)
}

$menuEntryConfig = $configuration->getMenuEntryConfig($attribute);
/** @var MenuLink $entry */
$entry = ($attribute === 'topMenuCalendar') ? // TODO: add an ID to the calendar module top menu entry
$menu->getEntryByUrl(\humhub\modules\calendar\helpers\Url::toGlobalCalendar()) :
$menu->getEntryById($menuEntryConfig->id);

if ($attribute === 'topMenuCalendar') { // TODO: add an ID to the Calendar module top menu entry
$entry = $menu->getEntryByUrl(\humhub\modules\calendar\helpers\Url::toGlobalCalendar());
} elseif ($attribute === 'topMenuJitsiMeet') { // TODO: add an ID to the Jitsi Meet module top menu entry
$entry = $menu->getEntryByUrl(['/jitsi-meet/room']);
} else {
/** @var MenuLink $entry */
$entry = $menu->getEntryById($menuEntryConfig->id);
}
if (!$entry) {
continue;
}
Expand Down
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Changelog
=========

Unreleased
1.0.1 (February 12, 2025)
--------------------
- Enh: Add Jitsi Meet module
- Enh: Better UI of the configuration page
- Enh: Add GitHub HumHub PHP workflows (tests & CS fixer)

1.0 (April 12, 2024)
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Top menu items that can be managed:
- Events Map
- eCommerce Store
- Surveys
- Jitsi Meet

A "Home" item can be added to the menu.
The homepage can be managed with [the Homepage module](https://marketplace.humhub.com/module/homepage), or by editing the configuration file `protected/config/web.php`, e.g.:
Expand Down
4 changes: 2 additions & 2 deletions messages/am/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'ከፍተኛ የምናሌ ንጥሎችን ይቀይሩ እና "ቤት" ንጥል ያክሉ።',
'Menu Manager' => 'ምናሌ አስተዳዳሪ',
);
];
6 changes: 3 additions & 3 deletions messages/am/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'አስተዳዳሪዎች ብቻ',
'All' => 'ሁሉም',
'Default if empty.' => 'ባዶ ከሆነ ነባሪ።',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'ቅደም ተከተል ደርድር',
'To be displayed, it must also be enabled in the configuration' => 'ለመታየት ውቅር ውስጥ መንቃት አለበት።',
'Values between 1 and 10000.' => 'በ1 እና በ10000 መካከል ያሉ እሴቶች።',
'Who should these items be displayed for?' => 'እነዚህ እቃዎች ለማን መታየት አለባቸው?',
'Visibility' => 'ታይነት',
'{ClassifiedSpace} module' => '{ClassifiedSpace} ሞጁል',
);
];
4 changes: 2 additions & 2 deletions messages/an/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => '',
'Menu Manager' => '',
);
];
6 changes: 3 additions & 3 deletions messages/an/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => '',
'All' => '',
'Default if empty.' => '',
Expand All @@ -11,6 +11,6 @@
'Sort order' => '',
'To be displayed, it must also be enabled in the configuration' => '',
'Values between 1 and 10000.' => '',
'Who should these items be displayed for?' => '',
'Visibility' => '',
'{ClassifiedSpace} module' => '',
);
];
4 changes: 2 additions & 2 deletions messages/ar/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'قم بتغيير عناصر القائمة العلوية وأضف عنصر "الصفحة الرئيسية".',
'Menu Manager' => 'مدير القائمة',
);
];
6 changes: 3 additions & 3 deletions messages/ar/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'المسؤولين فقط',
'All' => 'الجميع',
'Default if empty.' => 'الافتراضي إذا كان فارغا.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'امر ترتيب',
'To be displayed, it must also be enabled in the configuration' => 'ليتم عرضه، يجب أيضًا تمكينه في التكوين',
'Values between 1 and 10000.' => 'القيم بين 1 و10000.',
'Who should these items be displayed for?' => 'لمن يجب عرض هذه العناصر؟',
'Visibility' => 'الرؤية',
'{ClassifiedSpace} module' => 'وحدة {ClassifiedSpace}',
);
];
4 changes: 2 additions & 2 deletions messages/bg/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Променете елементите от горното меню и добавете елемент „Начало“.',
'Menu Manager' => 'Мениджър на менюто',
);
];
6 changes: 3 additions & 3 deletions messages/bg/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Само за администратори',
'All' => 'всичко',
'Default if empty.' => 'По подразбиране, ако е празно.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Ред на сортиране',
'To be displayed, it must also be enabled in the configuration' => 'За да се показва, трябва също да е активиран в конфигурацията',
'Values between 1 and 10000.' => 'Стойности между 1 и 10 000.',
'Who should these items be displayed for?' => 'За кого трябва да се показват тези елементи?',
'Visibility' => 'Видимост',
'{ClassifiedSpace} module' => 'Модул {ClassifiedSpace}',
);
];
2 changes: 1 addition & 1 deletion messages/br/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
'Sort order' => '',
'To be displayed, it must also be enabled in the configuration' => '',
'Values between 1 and 10000.' => '',
'Who should these items be displayed for?' => '',
'Visibility' => '',
'{ClassifiedSpace} module' => '',
];
4 changes: 2 additions & 2 deletions messages/ca/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Canvieu els elements del menú superior i afegiu un element "Inici".',
'Menu Manager' => 'Gestor de menús',
);
];
6 changes: 3 additions & 3 deletions messages/ca/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Només administradors',
'All' => 'Tots',
'Default if empty.' => 'Per defecte si està buit.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Ordre de classificació',
'To be displayed, it must also be enabled in the configuration' => 'Perquè es mostri, també ha d\'estar habilitat a la configuració',
'Values between 1 and 10000.' => 'Valors entre 1 i 10.000.',
'Who should these items be displayed for?' => 'Per a qui s\'han de mostrar aquests elements?',
'Visibility' => 'Visibilitat',
'{ClassifiedSpace} module' => 'Mòdul {ClassifiedSpace}',
);
];
4 changes: 2 additions & 2 deletions messages/cs/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Změňte položky horní nabídky a přidejte položku „Domů“.',
'Menu Manager' => 'Správce menu',
);
];
6 changes: 3 additions & 3 deletions messages/cs/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Pouze správci',
'All' => 'Všechno',
'Default if empty.' => 'Výchozí, pokud je prázdné.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Řadit pořadí',
'To be displayed, it must also be enabled in the configuration' => 'Aby se zobrazil, musí být také povolen v konfiguraci',
'Values between 1 and 10000.' => 'Hodnoty mezi 1 a 10 000.',
'Who should these items be displayed for?' => 'Komu by se měly tyto položky zobrazovat?',
'Visibility' => 'Viditelnost',
'{ClassifiedSpace} module' => 'Modul {ClassifiedSpace}',
);
];
4 changes: 2 additions & 2 deletions messages/cy/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Newid yr eitemau dewislen uchaf ac ychwanegu eitem "Cartref".',
'Menu Manager' => 'Rheolwr Dewislen',
);
];
6 changes: 3 additions & 3 deletions messages/cy/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Gweinyddwyr yn unig',
'All' => 'I gyd',
'Default if empty.' => 'Diofyn os yn wag.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Trefnu trefn',
'To be displayed, it must also be enabled in the configuration' => 'Er mwyn cael ei arddangos, rhaid ei alluogi hefyd yn y ffurfweddiad',
'Values between 1 and 10000.' => 'Gwerthoedd rhwng 1 a 10000.',
'Who should these items be displayed for?' => 'Ar gyfer pwy y dylid arddangos yr eitemau hyn?',
'Visibility' => 'Gwelededd',
'{ClassifiedSpace} module' => 'Modiwl {ClassifiedSpace}',
);
];
4 changes: 2 additions & 2 deletions messages/da/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Skift topmenupunkter og tilføj et "Hjem"-punkt.',
'Menu Manager' => 'Menu Manager',
);
];
6 changes: 3 additions & 3 deletions messages/da/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Kun administratorer',
'All' => 'Alle',
'Default if empty.' => 'Standard, hvis tom.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Sorteringsrækkefølge',
'To be displayed, it must also be enabled in the configuration' => 'For at blive vist skal den også være aktiveret i konfigurationen',
'Values between 1 and 10000.' => 'Værdier mellem 1 og 10000.',
'Who should these items be displayed for?' => 'Hvem skal disse varer vises for?',
'Visibility' => 'Sigtbarhed',
'{ClassifiedSpace} module' => '{ClassifiedSpace} -modul',
);
];
4 changes: 2 additions & 2 deletions messages/de/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Ändern Sie die oberen Menüelemente und fügen Sie ein „Home“-Element hinzu.',
'Menu Manager' => 'Menü-Manager',
);
];
6 changes: 3 additions & 3 deletions messages/de/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Nur Administratoren',
'All' => 'Alle',
'Default if empty.' => 'Standardmäßig, wenn leer.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Sortierreihenfolge',
'To be displayed, it must also be enabled in the configuration' => 'Um angezeigt zu werden, muss es auch in der Konfiguration aktiviert werden',
'Values between 1 and 10000.' => 'Werte zwischen 1 und 10000.',
'Who should these items be displayed for?' => 'Für wen sollen diese Artikel angezeigt werden?',
'Visibility' => 'Sichtweite',
'{ClassifiedSpace} module' => '{ClassifiedSpace} -Modul',
);
];
4 changes: 2 additions & 2 deletions messages/el/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Αλλάξτε τα στοιχεία του επάνω μενού και προσθέστε ένα στοιχείο "Αρχική σελίδα".',
'Menu Manager' => 'Διαχείριση μενού',
);
];
6 changes: 3 additions & 3 deletions messages/el/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Μόνο διαχειριστές',
'All' => 'Ολα',
'Default if empty.' => 'Προεπιλογή εάν είναι κενό.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Σειρά ταξινόμησης',
'To be displayed, it must also be enabled in the configuration' => 'Για να εμφανιστεί, πρέπει επίσης να είναι ενεργοποιημένο στη διαμόρφωση',
'Values between 1 and 10000.' => 'Τιμές μεταξύ 1 και 10000.',
'Who should these items be displayed for?' => 'Σε ποιον πρέπει να εμφανίζονται αυτά τα στοιχεία;',
'Visibility' => 'Ορατότητα',
'{ClassifiedSpace} module' => 'Ενότητα {ClassifiedSpace}',
);
];
5 changes: 5 additions & 0 deletions messages/es-419/base.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
return [
'Change top menu items and add a "Home" item.' => '',
'Menu Manager' => '',
];
16 changes: 16 additions & 0 deletions messages/es-419/config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
return [
'Administrators only' => '',
'All' => '',
'Default if empty.' => '',
'Icon' => '',
'Logged in users' => '',
'Name' => '',
'None (hidden for all)' => '',
'Reset all settings' => '',
'Sort order' => '',
'To be displayed, it must also be enabled in the configuration' => '',
'Values between 1 and 10000.' => '',
'Visibility' => '',
'{ClassifiedSpace} module' => '',
];
4 changes: 2 additions & 2 deletions messages/es/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Cambie los elementos del menú superior y agregue un elemento "Inicio".',
'Menu Manager' => 'Administrador de menú',
);
];
6 changes: 3 additions & 3 deletions messages/es/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Sólo administradores',
'All' => 'Todo',
'Default if empty.' => 'Predeterminado si está vacío.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Orden de clasificación',
'To be displayed, it must also be enabled in the configuration' => 'Para ser mostrado también debe estar habilitado en la configuración',
'Values between 1 and 10000.' => 'Valores entre 1 y 10000.',
'Who should these items be displayed for?' => '¿Para quién deberían mostrarse estos artículos?',
'Visibility' => 'Visibilidad',
'{ClassifiedSpace} module' => 'Módulo {ClassifiedSpace}',
);
];
2 changes: 1 addition & 1 deletion messages/et/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
'Sort order' => '',
'To be displayed, it must also be enabled in the configuration' => '',
'Values between 1 and 10000.' => '',
'Who should these items be displayed for?' => '',
'Visibility' => '',
'{ClassifiedSpace} module' => '',
];
4 changes: 2 additions & 2 deletions messages/eu/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Aldatu goiko menuko elementuak eta gehitu "Hasierako" elementua.',
'Menu Manager' => 'Menu-kudeatzailea',
);
];
6 changes: 3 additions & 3 deletions messages/eu/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'Administratzaileak soilik',
'All' => 'Denak',
'Default if empty.' => 'Lehenetsia hutsik badago.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'Ordenatzeko ordena',
'To be displayed, it must also be enabled in the configuration' => 'Bistaratzeko, konfigurazioan ere gaituta egon behar da',
'Values between 1 and 10000.' => '1 eta 10000 arteko balioak.',
'Who should these items be displayed for?' => 'Norentzat erakutsi behar dira elementu hauek?',
'Visibility' => 'Ikusgarritasuna',
'{ClassifiedSpace} module' => '{ClassifiedSpace} modulua',
);
];
4 changes: 2 additions & 2 deletions messages/fa-IR/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'آیتم های منوی بالا را تغییر دهید و یک مورد "صفحه اصلی" اضافه کنید.',
'Menu Manager' => 'مدیر منو',
);
];
6 changes: 3 additions & 3 deletions messages/fa-IR/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Administrators only' => 'فقط مدیران',
'All' => 'همه',
'Default if empty.' => 'پیش فرض اگر خالی باشد.',
Expand All @@ -11,6 +11,6 @@
'Sort order' => 'ترتیب مرتب سازی',
'To be displayed, it must also be enabled in the configuration' => 'برای نمایش، باید در پیکربندی نیز فعال باشد',
'Values between 1 and 10000.' => 'مقادیر بین 1 تا 10000',
'Who should these items be displayed for?' => 'این موارد باید برای چه کسانی نمایش داده شوند؟',
'Visibility' => 'دید',
'{ClassifiedSpace} module' => 'ماژول {ClassifiedSpace}',
);
];
4 changes: 2 additions & 2 deletions messages/fi/base.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
return array (
return [
'Change top menu items and add a "Home" item.' => 'Muuta valikon yläkohtia ja lisää "Koti"-kohta.',
'Menu Manager' => 'Valikkohallinta',
);
];
Loading

0 comments on commit b4e0268

Please sign in to comment.