-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsf-options.php
90 lines (79 loc) · 2.52 KB
/
sf-options.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
<?php
$options = array();
$options[] = array( 'name' => __( 'General', 'geczy' ), 'type' => 'heading' );
$options[] = array( 'name' => __( 'General options', 'geczy' ), 'type' => 'title', 'desc' => __( '', 'geczy' ) );
$options[] = array(
'name' => __( 'Name', 'geczy' ),
'desc' => __( 'Please tell me who you are.', 'geczy' ),
'id' => 'text_sample',
'type' => 'text',
);
$options[] = array(
'name' => __( 'Age', 'geczy' ),
'desc' => __( 'What\'s your age, buddy?.', 'geczy' ),
'tip' => __('It\'s simple, just enter your age!', 'geczy'),
'id' => 'number_sample',
'css' => 'width:70px;',
'type' => 'number',
'restrict' => array(
'min' => 0,
'max' => 100
)
);
$options[] = array(
'name' => __( 'Describe yourself', 'geczy' ),
'desc' => __( 'Which word describes you best?.', 'geczy' ),
'tip' => __('If you can\'t choose, I\'ve defaulted an option for you.', 'geczy'),
'std' => 'gorgeous',
'id' => 'radio_sample',
'type' => 'radio',
'options' => array(
'gorgeous' => 'Gorgeous',
'pretty' => 'Pretty'
)
);
$options[] = array(
'name' => __( 'Biography', 'geczy' ),
'desc' => __( 'So tell me about yourself.', 'geczy' ),
'id' => 'textarea_sample',
'type' => 'textarea',
);
$options[] = array(
'name' => __( 'Wordpress page', 'geczy' ),
'desc' => __( 'Pick your favorite page!', 'geczy' ),
'tip' => __('Or maybe you don\'t have a favorite?', 'geczy'),
'id' => 'single_select_page_sample',
'type' => 'single_select_page',
);
$options[] = array(
'name' => __( 'Would you rather have', 'geczy' ),
'desc' => __( 'Which would you rather have?.', 'geczy' ),
'id' => 'select_sample',
'type' => 'select',
'options' => array(
'tenbucks' => 'Ten dollars',
'redhead' => 'A readheaded girlfriend',
'tofly' => 'Flying powers',
'lolwhat' => 'Three hearts',
)
);
$options[] = array(
'name' => __( 'Terms', 'geczy' ),
'desc' => __( 'Agree to my terms...Or else.', 'geczy' ),
'id' => 'checkbox_sample',
'type' => 'checkbox',
);
$options[] = array( 'name' => __( 'More tabs', 'geczy' ), 'type' => 'heading' );
$options[] = array( 'name' => __( 'More tabs', 'geczy' ), 'type' => 'title', 'desc' => __( 'There\'s awesome options on this page to configure!', 'geczy' ) );
$options[] = array(
'name' => __( 'Awesome', 'geczy' ),
'desc' => __( 'Is this awesome or what?', 'geczy' ),
'id' => 'checkbox_sample2',
'type' => 'checkbox',
);
$options[] = array(
'name' => __( 'Colorpicker', 'geczy' ),
'desc' => __( 'Is this Colorpicker awesome or what?', 'geczy' ),
'id' => 'colorpicker_sample',
'type' => 'color',
);