-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfiguration.php
executable file
·89 lines (87 loc) · 2.6 KB
/
configuration.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
<?php
if ( function_exists( 'acf_add_local_field_group' ) ):
acf_add_local_field_group( array(
'key' => 'group_60a5b52b5fe1d',
'title' => 'Gitpress Configuration',
'fields' => array(
array(
'key' => 'field_60a5b540cc9ae',
'label' => 'Github / Gitlab username',
'name' => 'git_username',
'type' => 'text',
'instructions' => 'The username for github / gitlab',
'required' => 1,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
array(
'key' => 'field_60a5b564cc9af',
'label' => 'Github / Gitlab password ( use accesstoken if you enabled 2FA)',
'name' => 'git_password',
'type' => 'password',
'instructions' => 'Password for github or gitlab ( dont worry, this data is stored locally, no one can access it except you )',
'required' => 1,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'placeholder' => '',
'prepend' => '',
'append' => '',
),
array(
'key' => 'field_60a5b5a1cc9b0',
'label' => 'Hosting Site',
'name' => 'hosting_site',
'type' => 'select',
'instructions' => 'The site where you want to host your site',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'github' => 'github',
'gitlab' => 'gitlab',
),
'default_value' => 'github',
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'return_format' => 'value',
'ajax' => 0,
'placeholder' => '',
),
),
'location' => array(
array(
array(
'param' => 'user_role',
'operator' => '==',
'value' => 'administrator',
),
),
),
'menu_order' => 0,
'position' => 'high',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
) );
endif;