/
properties.comments.php
138 lines (134 loc) · 3.46 KB
/
properties.comments.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
$properties = array();
$tmp = array(
'thread' => array(
'name' => 'thread',
'type' => 'textfield',
'value' => '',
),
'fastMode' => array(
'type' => 'combo-boolean',
'value' => true,
),/*
'dateFormat' => array(
'type' => 'textfield'
'value' => 'd F Y H:i'
),*/
'gravatarIcon' => array(
'type' => 'textfield',
'value' => 'mm',
),
'gravatarSize' => array(
'type' => 'numberfield',
'value' => '24',
),
'gravatarUrl' => array(
'type' => 'textfield',
'value' => 'https://www.gravatar.com/avatar/',
),
'tplCommentForm' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.form',
),
'tplCommentFormGuest' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.form.guest',
),
'tplCommentAuth' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.one.auth',
),
'tplCommentGuest' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.one.guest',
),
'tplCommentDeleted' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.one.deleted',
),
'tplComments' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.wrapper',
),
'tplLoginToComment' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.login',
),
'tplCommentEmailOwner' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.email.owner',
),
'tplCommentEmailReply' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.email.reply',
),
'tplCommentEmailSubscription' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.email.subscription',
),
'tplCommentEmailBcc' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.email.bcc',
),
'tplCommentEmailUnpublished' => array(
'type' => 'textfield',
'value' => 'tpl.Tickets.comment.email.unpublished',
),
'autoPublish' => array(
'type' => 'combo-boolean',
'value' => true,
),
'autoPublishGuest' => array(
'type' => 'combo-boolean',
'value' => true,
),
'formBefore' => array(
'type' => 'combo-boolean',
'value' => false,
),
'depth' => array(
'type' => 'numberfield',
'desc' => 'tickets_prop_commentsDepth',
'value' => 0,
),
'allowGuest' => array(
'type' => 'combo-boolean',
'value' => false,
),
'allowGuestEdit' => array(
'type' => 'combo-boolean',
'value' => true,
),
'allowGuestEmails' => array(
'type' => 'combo-boolean',
'value' => false,
),
'enableCaptcha' => array(
'type' => 'combo-boolean',
'value' => true,
),
'minCaptcha' => array(
'type' => 'numberfield',
'value' => 1,
),
'maxCaptcha' => array(
'type' => 'numberfield',
'value' => 10,
),
'requiredFields' => array(
'type' => 'textfield',
'value' => 'name,email',
),
'threadUrl' => array(
'type' => 'textfield',
'value' => '',
),
);
foreach ($tmp as $k => $v) {
$properties[$k] = array_merge(array(
'name' => $k,
'desc' => 'tickets_prop_' . $k,
'lexicon' => 'tickets:properties',
), $v);
}
return $properties;