/
properties.up2_link_sections.php
50 lines (46 loc) · 1.33 KB
/
properties.up2_link_sections.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
<?php
$properties = array();
$tmp = array(
'Sections' => array(
'type' => 'textarea',
'value' => 'info:/users/[id]/,tickets:/users/[id]/tickets/,comments:/users/[id]/comments/,favorites:/users/[id]/favorites/,'
),
'user_id' => array(
'type' => 'textfield',
'value' => '',
),
'tplSectionRow' => array(
'type' => 'textfield',
'value' => '@INLINE <li class="[[+section]] [[+active]]"><a href="[[+link]]">[[+title]] [[+count]]</a></li>',
),
'tplSectionOuter' => array(
'type' => 'textfield',
'value' => '@INLINE <ul class="nav nav-tabs">[[+rows]]</ul><br>',
),
'tplCountWrapper' => array(
'type' => 'textfield',
'value' => '@INLINE <sup>([[+count]])</sup>',
),
'plSection' => array(
'type' => 'textfield',
'value' => '',
),
'plCountPrefix' => array(
'type' => 'textfield',
'value' => 'up2.total.'
),
'toPlaceholder' => array(
'type' => 'combo-boolean',
'value' => false,
),
);
foreach ($tmp as $k => $v) {
$properties[] = array_merge(
array(
'name' => $k,
'desc' => PKG_NAME_LOWER . '_prop_' . $k,
'lexicon' => PKG_NAME_LOWER . ':properties',
), $v
);
}
return $properties;