Update mobile registration menu labels and enhance SQL entries for V2
This commit modifies the mobile registration menu labels to reflect the new versioning, changing the text to "Gestion des inscriptions V2" in French and "Registration management V2" in English. Additionally, it introduces a new function, `fxInscrMobilePromoteurMenuLabel`, to standardize the label retrieval process. The icon for the mobile registration link is also updated to improve visual consistency across the interface.
This commit is contained in:
@ -264,7 +264,7 @@ if ($intEveId != 0) {
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-list"
|
<a class="nav-list"
|
||||||
href="<?php echo $vDomaine; ?>/compte/inc_tableau_inscriptions_mobile?promoteur_eve_id=<?php echo urlencode(base64_encode($intEveId)); ?>&lng=<?php echo $strLangue; ?>">
|
href="<?php echo $vDomaine; ?>/compte/inc_tableau_inscriptions_mobile?promoteur_eve_id=<?php echo urlencode(base64_encode($intEveId)); ?>&lng=<?php echo $strLangue; ?>">
|
||||||
<i class="fa fa-mobile" aria-hidden="true"></i> <?php echo afficheTexte('tableau_promoteur_menu_inscriptions_mobile', 0); ?>
|
<i class="fa fa-users" aria-hidden="true"></i> <?php echo htmlspecialchars(fxInscrMobilePromoteurMenuLabel(), ENT_QUOTES, 'UTF-8'); ?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
@ -1510,10 +1510,10 @@ function fxShowMenuCompte($arrCompteClient, $strLangue)
|
|||||||
if (count($arrMobileEveIds) === 1) {
|
if (count($arrMobileEveIds) === 1) {
|
||||||
$strMobileUrl .= '?promoteur_eve_id=' . urlencode(base64_encode($arrMobileEveIds[0]));
|
$strMobileUrl .= '?promoteur_eve_id=' . urlencode(base64_encode($arrMobileEveIds[0]));
|
||||||
}
|
}
|
||||||
$strMobileLabel = fxInscrMobileT('tableau_promoteur_menu_inscriptions_mobile');
|
$strMobileLabel = fxInscrMobilePromoteurMenuLabel();
|
||||||
$strRetour .= '
|
$strRetour .= '
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-list" href="' . $strMobileUrl . '"><i class="fa fa-mobile" aria-hidden="true"></i> '
|
<a class="nav-list" href="' . $strMobileUrl . '"><i class="fa fa-users" aria-hidden="true"></i> '
|
||||||
. htmlspecialchars($strMobileLabel, ENT_QUOTES, 'UTF-8') . '</a>
|
. htmlspecialchars($strMobileLabel, ENT_QUOTES, 'UTF-8') . '</a>
|
||||||
</li>
|
</li>
|
||||||
';
|
';
|
||||||
|
|||||||
@ -233,6 +233,11 @@ function fxInscrMobileRenderLoginPage($strLangue) {
|
|||||||
echo '</form></div></div>';
|
echo '</form></div></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Libellé menu promoteur V2 (même texte que l'ancien + suffixe V2). */
|
||||||
|
function fxInscrMobilePromoteurMenuLabel() {
|
||||||
|
return afficheTexte('tableau_promoteur_menueinscription', 0) . ' V2';
|
||||||
|
}
|
||||||
|
|
||||||
function fxInscrMobileListBackLabel($strLangue) {
|
function fxInscrMobileListBackLabel($strLangue) {
|
||||||
if (fxInscrMobileIsEntry()) {
|
if (fxInscrMobileIsEntry()) {
|
||||||
return ($strLangue === 'fr') ? 'Événements' : 'Events';
|
return ($strLangue === 'fr') ? 'Événements' : 'Events';
|
||||||
|
|||||||
7
sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql
Normal file
7
sql/MSIN-inscriptions-mobile-menu-v2-i18n.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-- Menu promoteur — libellé inscriptions mobile V2 (aligné sur l'ancien menu)
|
||||||
|
|
||||||
|
UPDATE info SET info_texte = 'Gestion des inscriptions V2'
|
||||||
|
WHERE info_clef = 'tableau_promoteur_menu_inscriptions_mobile' AND info_langue = 'fr' AND info_prg = 'compte.php';
|
||||||
|
|
||||||
|
UPDATE info SET info_texte = 'Registration management V2'
|
||||||
|
WHERE info_clef = 'tableau_promoteur_menu_inscriptions_mobile' AND info_langue = 'en' AND info_prg = 'compte.php';
|
||||||
@ -24,8 +24,8 @@ DELETE FROM info WHERE info_clef IN (
|
|||||||
) AND info_prg = 'compte.php';
|
) AND info_prg = 'compte.php';
|
||||||
|
|
||||||
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
|
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
|
||||||
('tableau_promoteur_menu_inscriptions_mobile', 'fr', 'Inscriptions (mobile)', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
('tableau_promoteur_menu_inscriptions_mobile', 'fr', 'Gestion des inscriptions V2', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
||||||
('tableau_promoteur_menu_inscriptions_mobile', 'en', 'Registrations (mobile)', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
('tableau_promoteur_menu_inscriptions_mobile', 'en', 'Registration management V2', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
||||||
('inscr_mobile_title', 'fr', 'Liste des inscriptions', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
('inscr_mobile_title', 'fr', 'Liste des inscriptions', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
||||||
('inscr_mobile_title', 'en', 'Registration list', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
('inscr_mobile_title', 'en', 'Registration list', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
||||||
('inscr_mobile_filters', 'fr', 'Filtres', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
('inscr_mobile_filters', 'fr', 'Filtres', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
||||||
|
|||||||
Reference in New Issue
Block a user