protected function getInput() { $this->multiple = true; if (!JFolder::exists(JPATH_ADMINISTRATOR . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_emerald')) { return '<b>' . JText::_('Please install Emerald extension') . '</b>'; } if ($this->multiple) { $this->name .= '[]'; } $this->getGroups(); if ($this->num > 10) { $this->element['size'] = 10; } else { $this->element['size'] = $this->num; } return parent::getInput(); }
protected function getInput() { $register_type = $this->form->getValue('register_type', 'params', null); $notice_display = $register_type == "custom" ? "none" : "block"; $input_display = $register_type == "custom" ? "block" : "none"; $html = '<div id="reglinknotice" style="display:' . $notice_display . '; clear:both;">' . JText::_("MOD_SCLOGIN_LOGIN_CUSTOM_REG_LINK_NOTICE") . '</div>'; return $html . '<div id="registrationlink" style="display:' . $input_display . '">' . parent::getInput() . '</div>'; }