/** * Set a bunch of placeholders to be used within Smarty templates * * @return void */ public function setPlaceholders() { $username = ''; if ($this->modx->getOption('manager_use_fullname') == true) { $userProfile = $this->modx->user->getOne('Profile'); $username = $userProfile->get('fullname'); } if (empty($username)) { $username = $this->modx->getLoginUserName(); } $placeholders = array('username' => $username, 'userImage' => $this->getUserImage()); $this->controller->setPlaceholders($placeholders); }
/** * Set a bunch of placeholders to be used within Smarty templates * * @return void */ public function setPlaceholders() { $placeholders = array('username' => $this->modx->getLoginUserName(), 'userImage' => $this->getUserImage()); $this->controller->setPlaceholders($placeholders); }