Refactor account link rendering in mobile interface to improve user navigation. Move the full account link functionality to inc_header.php for better organization and visibility control. Update version code to 4.72.788, aligning with MSIN-4401 requirements for enhanced event management functionality.
This commit is contained in:
@ -364,9 +364,30 @@ if (!$blnPreloaderOnLoad && !empty($strCode) && $strCode === 'compte_inc_tableau
|
||||
}
|
||||
} else {
|
||||
if ($blnInscrGestionShell && isset($_SESSION['com_id'])) {
|
||||
if (!function_exists('fxInscrGestionRenderFullAccountLink')) {
|
||||
require_once __DIR__ . '/php/inc_fx_inscriptions_gestion.php';
|
||||
}
|
||||
?>
|
||||
<p class="mb-2"><strong><?php afficheTexte('gauche_bonjour_user',1,1,1); ?> <?php echo $_SESSION['com_info']['com_prenom']; ?></strong></p>
|
||||
<ul class="list-inline mb-0">
|
||||
<?php
|
||||
// MSIN-4401 — Lien hub / Mon compte à côté de Déconnexion (pas dans le contenu).
|
||||
if (function_exists('fxInscrGestionShouldShowFullAccountLink')
|
||||
&& fxInscrGestionShouldShowFullAccountLink(intval($_SESSION['com_id']))) {
|
||||
$strFullUrl = fxInscrGestionFullAccountUrl($strLangue);
|
||||
$blnHubExit = function_exists('fxPromoteurHubIsAvailable')
|
||||
&& fxPromoteurHubIsAvailable(intval($_SESSION['com_id']));
|
||||
$strFullLbl = $blnHubExit
|
||||
? fxInscrGestionT('inscr_gestion_back_full_account')
|
||||
: fxInscrGestionT('inscr_gestion_back_mon_compte');
|
||||
?>
|
||||
<li class="list-inline-item">
|
||||
<i class="fa fa-th-large mr-1" aria-hidden="true"></i>
|
||||
<a href="<?php echo htmlspecialchars($strFullUrl, ENT_QUOTES, 'UTF-8'); ?>"><?php echo htmlspecialchars($strFullLbl, ENT_QUOTES, 'UTF-8'); ?></a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li class="list-inline-item">
|
||||
<i class="fa fa-sign-out mr-1"></i>
|
||||
<a class="btn_logout" href="<?php echo $vDomaine; ?>/logout.php?lang=<?php echo $strLangue; ?>&redirect=mobile"><?php afficheTexte('gauche_deconnextion',1,1,1); ?></a>
|
||||
|
||||
@ -104,9 +104,6 @@ require_once('inc_header.php');
|
||||
echo fxMessage($_SESSION['msg'], '', $strLangue);
|
||||
}
|
||||
|
||||
// MSIN-4401 — Sortie vers hub / Mon compte (si droits plus larges).
|
||||
fxInscrGestionRenderFullAccountLink($strLangue);
|
||||
|
||||
if ($intEveId === 0) {
|
||||
if (count($tabEveIds) === 0) {
|
||||
echo '<div class="alert alert-warning" role="alert">';
|
||||
|
||||
@ -546,8 +546,9 @@ function fxInscrGestionFullAccountUrl($strLangue) {
|
||||
return $vDomaine . ($strLangue === 'en' ? '/account' : '/compte');
|
||||
}
|
||||
|
||||
/** MSIN-4401 — Bouton « Retour au tableau de bord / Mon compte » (entrée /mobile). */
|
||||
/** MSIN-4401 — Bouton « Retour au tableau de bord / Mon compte » (rendu dans inc_header sur /mobile). */
|
||||
function fxInscrGestionRenderFullAccountLink($strLangue) {
|
||||
// Conservé pour appels éventuels ; l'UI principale est dans inc_header (zone Mon compte / Déconnexion).
|
||||
$intComId = intval($_SESSION['com_id'] ?? 0);
|
||||
if (!fxInscrGestionShouldShowFullAccountLink($intComId)) {
|
||||
return;
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
* Constantes *
|
||||
*
|
||||
**************/
|
||||
define('_VERSION_CODE', '4.72.787');
|
||||
define('_VERSION_CODE', '4.72.788');
|
||||
define('_DATE_CODE', '2026-07-13');
|
||||
//MSIN-4290
|
||||
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');
|
||||
|
||||
Reference in New Issue
Block a user