| @@ -1,0 +1,24 @@ | ||
| 1 | +<?php | |
| 2 | +defined('ABSPATH') || die('Restricted Access'); | |
| 3 | + | |
| 4 | +include_once __DIR__.DIRECTORY_SEPARATOR.'AcymJFormField.php'; | |
| 5 | + | |
| 6 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Joomla specific class naming with imposed prefix "JFormField". | |
| 7 | +class JFormFieldHelp extends AcymJFormField | |
| 8 | +{ | |
| 9 | + public function __construct($form = null) | |
| 10 | + { | |
| 11 | + $this->type = 'help'; | |
| 12 | + parent::__construct($form); | |
| 13 | + } | |
| 14 | + | |
| 15 | + public function getInput() | |
| 16 | + { | |
| 17 | + | |
| 18 | + $config = acym_config(); | |
| 19 | + $level = $config->get('level'); | |
| 20 | + $link = ACYM_DOCUMENTATION; | |
| 21 | + | |
| 22 | + return '<a class="btn" target="_blank" href="'.$link.'">'.acym_translation('ACYM_HELP').'</a>'; | |
| 23 | + } | |
| 24 | +} | |