Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

@@ -26,7 +26,28 @@ class _profilecompletion extends \IPS\Node\Controller
* Node Class
*/
protected $nodeClass = '\IPS\Member\ProfileStep';
/**
* Get Root Buttons
*
* @return array
*/
public function _getRootButtons()
{
$return = parent::_getRootButtons();
if ( isset( \IPS\Output::i()->sidebar['actions']['add'] ) )
{
$class = new \IPS\Member\ProfileStep;
if ( ! $class->canAdd() )
{
unset( \IPS\Output::i()->sidebar['actions']['add'] );
}
}
return $return;
}
/**
* Execute
*
@@ -45,7 +66,8 @@ class _profilecompletion extends \IPS\Node\Controller
*/
public function manage()
{
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'members' )->profileCompleteBlurb();
$class = new \IPS\Member\ProfileStep;
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'members' )->profileCompleteBlurb( $class->canAdd() );
parent::manage();
}