Passed
Push — master ( ea84ac...27186d )
by
unknown
04:56 queued 12s
created

createFeatherIconSelectChoices()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Flynt\Components\ListIcons;
4
5
use Flynt\Api;
6
7
Api::registerFields('ListIcons', [
8
    'layout' => [
9
        'name' => 'ListIcons',
10
        'label' => 'List: Icons',
11
        'sub_fields' => [
12
            [
13
                'label' => 'General',
14
                'name' => 'generalTab',
15
                'type' => 'tab',
16
                'placement' => 'top',
17
                'endpoint' => 0
18
            ],
19
            [
20
                'label' => 'Title',
21
                'name' => 'preContentHtml',
22
                'type' => 'wysiwyg',
23
                'tabs' => 'visual,text',
24
                'media_upload' => 0,
25
                'delay' => 1
26
            ],
27
            [
28
                'label' => 'Items',
29
                'name' => 'items',
30
                'type' => 'repeater',
31
                'min' => 1,
32
                'layout' => 'row',
33
                'button_label' => 'Add Item',
34
                'sub_fields' => [
35
                    Api::loadFields('FieldVariables', 'icon'),
36
                    [
37
                        'label' => 'Text content',
38
                        'name' => 'textContentHtml',
39
                        'type' => 'wysiwyg',
40
                        'tabs' => 'visual,text',
41
                        'media_upload' => 0,
42
                        'delay' => 1
43
                    ],
44
                    [
45
                        'label' => 'Link',
46
                        'name' => 'link',
47
                        'type' => 'link',
48
                    ],
49
                ]
50
            ],
51
            [
52
                'label' => 'Options',
53
                'name' => 'optionsTab',
54
                'type' => 'tab',
55
                'placement' => 'top',
56
                'endpoint' => 0
57
            ],
58
            [
59
                'label' => '',
60
                'name' => 'options',
61
                'type' => 'group',
62
                'layout' => 'row',
63
                'sub_fields' => [
64
                    Api::loadFields('FieldVariables', 'theme')
65
                ]
66
            ],
67
        ]
68
    ]
69
]);
70