-
Notifications
You must be signed in to change notification settings - Fork 1
/
j21300channelmanagement_rentalsunited_account_form_fields.class.php
52 lines (45 loc) · 1.99 KB
/
j21300channelmanagement_rentalsunited_account_form_fields.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Jomres CMS Agnostic Plugin
* @author Woollyinwales IT <sales@jomres.net>
* @version Jomres 9
* @package Jomres
* @copyright 2005-2019 Woollyinwales IT
* Jomres (tm) PHP files are released under both MIT and GPL2 licenses. This means that you can choose the license that best suits your project.
**/
// ################################################################
defined( '_JOMRES_INITCHECK' ) or die( 'Direct Access to this file is not allowed.' );
// ################################################################
class j21300channelmanagement_rentalsunited_account_form_fields {
function __construct($componentArgs)
{
// Must be in all minicomponents. Minicomponents with templates that can contain editable text should run $this->template_touch() else just return
$MiniComponents =jomres_getSingleton('mcHandler');
if ($MiniComponents->template_touch)
{
$this->template_touchable=false; return;
}
$channel_name = 'rentalsunited';
$channel_form_fields = get_showtime('channel_form_fields');
$channel_form_fields[$channel_name] = array (
"channel_management_rentals_united_username" =>
array (
"type" => "input" ,
"field_title" => jr_gettext('CHANNELMANAGEMENT_RENTALSUNITED_USERNAME_TITLE', 'CHANNELMANAGEMENT_RENTALSUNITED_USERNAME_TITLE', false),
"field_help" => jr_gettext('CHANNELMANAGEMENT_RENTALSUNITED_USERNAME_DESC', 'CHANNELMANAGEMENT_RENTALSUNITED_USERNAME_DESC', false),
) ,
"channel_management_rentals_united_password" =>
array (
"type" => "password" ,
"field_title" => jr_gettext('CHANNELMANAGEMENT_RENTALSUNITED_PASSWORD_TITLE', 'CHANNELMANAGEMENT_RENTALSUNITED_PASSWORD_TITLE', false),
"field_help" => jr_gettext('CHANNELMANAGEMENT_RENTALSUNITED_PASSWORD_DESC', 'CHANNELMANAGEMENT_RENTALSUNITED_PASSWORD_DESC', false),
)
);
set_showtime('channel_form_fields' , $channel_form_fields );
}
// This must be included in every Event/Mini-component
function getRetVals()
{
return null;
}
}