File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @package JD Simple Contact Form
4+ * @author JoomDev https://www.joomdev.com
5+ * @copyright Copyright (C) 2009 - 2020 JoomDev.
6+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
7+ */
8+ // no direct access
9+ defined ('_JEXEC ' ) or die ('Restricted access ' );
10+
11+ jimport ('joomla.form.formfield ' );
12+
13+ class JFormFieldHelp extends JFormField {
14+
15+ protected $ type = 'Help ' ;
16+
17+ // getLabel() left out
18+
19+ public function getInput () {
20+ return '<a href="https://docs.joomdev.com/article/jd-simple-contact-form/" target="_blank" class="btn primary-btn"><span class="icon-question-sign" aria-hidden="true"></span> Help</a> ' ;
21+ }
22+ }
Original file line number Diff line number Diff line change 2020 <filename >helper.php</filename >
2121 <folder >tmpl</folder >
2222 <folder >layouts</folder >
23+ <folder >fields</folder >
2324 <folder >forms</folder >
2425 </files >
2526 <media folder =" media" destination =" mod_jdsimplecontactform" >
2627 <folder >assets/css</folder >
2728 <folder >assets/js</folder >
2829 </media >
2930 <config >
30- <fields name =" params" >
31+ <fields name =" params" addfieldpath = " /modules/mod_jdsimplecontactform/fields/ " >
3132 <fieldset name =" basic" >
33+ <field name =" help" type =" help" default =" module" label =" Help" description =" Click on the help button to get some help" />
3234 <field
3335 name =" title"
3436 type =" text"
You can’t perform that action at this time.
0 commit comments