Skip to content

Commit

Permalink
#4800 Add replaceable markers for pages blocks for currently logged p…
Browse files Browse the repository at this point in the history
…rofile
  • Loading branch information
AlexTr committed Sep 12, 2024
1 parent 4ecd84c commit 062c419
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions template/scripts/BxBasePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ public function __construct ($aObject, $oTemplate)
'help_popup' => $sHtmlId . '-help-popup-',
);
$this->addMarkers(array('site_title' => getParam('site_title')));
if (isLogged() && $oProfile = BxDolProfile::getInstance()) {
$this->addMarkers([
'logged_profile_id' => $oProfile->id(),;
'logged_account_id' => $oProfile->getAccountId()]);
'logged_profile_module' => $oProfile->getModule()]);
'logged_display_name' => $oProfile->getDisplayName()]);
'logged_profile_url' => $oProfile->getUrl()
]);
}
if (isset($GLOBALS['bxReplaceableMarkersPages'])) {
$this->addMarkers($GLOBALS['bxReplaceableMarkersPages']);
}
}

public function performActionGetHelp ()
Expand Down

0 comments on commit 062c419

Please sign in to comment.