-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
152 lines (151 loc) · 4.98 KB
/
config.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
/**
* Pi Engine (http://piengine.org)
*
* @link http://code.piengine.org for the Pi Engine source repository
* @copyright Copyright (c) Pi Engine http://piengine.org
* @license http://piengine.org/license.txt New BSD License
*/
/**
* @author Hossein Azizabadi <azizabadi@faragostaresh.com>
*/
return array(
'category' => array(
array(
'title' => _a('Admin'),
'name' => 'admin'
),
array(
'title' => _a('Show'),
'name' => 'show'
),
array(
'title' => _a('Question'),
'name' => 'question'
),
array(
'title' => _a('Project'),
'name' => 'project'
),
array(
'title' => _a('Feed'),
'name' => 'feed'
),
array(
'title' => _a('Vote'),
'name' => 'vote'
),
),
'item' => array(
// Admin
'admin_perpage' => array(
'category' => 'admin',
'title' => _a('Perpage'),
'description' => '',
'edit' => 'text',
'filter' => 'number_int',
'value' => 50
),
// Show
'show_perpage' => array(
'category' => 'show',
'title' => _a('Perpage'),
'description' => _a('Number of questions in each page'),
'edit' => 'text',
'filter' => 'number_int',
'value' => 10
),
'show_info' => array(
'category' => 'show',
'title' => _a('Show information'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
'show_tags' => array(
'category' => 'show',
'title' => _a('Tags'),
'description' => _a('Number of tags in tag controller'),
'edit' => 'text',
'filter' => 'number_int',
'value' => 50
),
'view_breadcrumbs' => array(
'category' => 'show',
'title' => _a('Show breadcrumbs'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
// Project
'project_active' => array(
'category' => 'project',
'title' => _a('Active project system'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
// Question
'question_ask' => array(
'category' => 'question',
'title' => _a('Can ask'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
'question_answer' => array(
'category' => 'question',
'title' => _a('Can answer'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
'auto_approval' => array(
'title' => _a('Automatic approval'),
'description' => '',
'edit' => array(
'type' => 'select',
'options' => array(
'options' => array(
1 => _a('Automatic approval all questions and answers'),
2 => _a('All questions and answers need admin or project manager review before publish'),
),
),
),
'filter' => 'number_int',
'value' => 1,
'category' => 'question',
),
// Feed
'feed_icon' => array(
'category' => 'feed',
'title' => _a('Show feed icon'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
'feed_num' => array(
'category' => 'feed',
'title' => _a('Feed number'),
'description' => '',
'edit' => 'text',
'filter' => 'number_int',
'value' => 10
),
// Vote
'vote_bar' => array(
'category' => 'vote',
'title' => _a('Use vote system'),
'description' => '',
'edit' => 'checkbox',
'filter' => 'number_int',
'value' => 1
),
),
);