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
|
<?php
$group_filter = 'Filter'; $group_color = 'Color';
// Shortcode settings return array( 'name' => esc_html__( 'Authors Box', 'penci-framework' ), 'weight' => 820, 'params' => array_merge( Penci_Framework_Shortcode_Params::block_title(), array( array( 'type' => 'autocomplete', 'heading' => __( 'User roles', 'penci-framework' ), 'param_name' => 'user_roles', 'settings' => array( 'multiple' => true, 'sortable' => true, 'min_length' => 1, 'no_hide' => true, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'values' => Penci_Framework_Helper::get_roles(), ), 'description' => __( 'Filter by role, add one or more user roles, separate them with a comma.', 'penci-framework' ) . Penci_Framework_Helper::get_roles( true ), ), array( 'type' => 'dropdown', 'heading' => __( 'Sort by:', 'penci-framework' ), 'param_name' => 'sort_by', 'value' => array( __( 'Sort by name', 'penci-framework' ) => '', __( 'Sort by post count', 'penci-framework' ) => 'post_count', ) ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Hide Count Post', 'penci-framework' ), 'param_name' => 'hide_count_post', 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Number of Users', 'penci-framework' ), 'param_name' => 'author_limit', 'value' => 10, ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Hide Count Comments', 'penci-framework' ), 'param_name' => 'hide_count_comment', 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Hide Description', 'penci-framework' ), 'param_name' => 'hide_desc', 'edit_field_class' => 'vc_col-sm-6', 'value' => array( __( 'Yes', 'penci-framework' ) => 'yes' ), 'std' => 'yes', ), array( 'type' => 'checkbox', 'heading' => esc_html__( 'Hide Contact Info', 'penci-framework' ), 'param_name' => 'hide_contact_info', 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Custom Description Length:', 'penci-framework' ), 'param_name' => 'post_desc_length', 'std' => 20, 'dependency' => array( 'element' => 'hide_desc', 'is_empty' => true ), ) ), Penci_Framework_Shortcode_Params::color_params( 'authors_box', false ), array( array( 'type' => 'textfield', 'param_name' => 'color_authors_css', 'heading' => esc_html__( 'Author box colors', 'penci-framework' ), 'value' => '', 'group' => $group_color, 'edit_field_class' => 'penci-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Username color', 'penci-framework' ), 'param_name' => 'authorbox_username_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Username hover color', 'penci-framework' ), 'param_name' => 'authorbox_username_hcolor', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Comments and Count Posts text color', 'penci-framework' ), 'param_name' => 'authorbox_comment_post_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Comments and Count Posts background color', 'penci-framework' ), 'param_name' => 'authorbox_comment_post_bgcolor', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Social media color', 'penci-framework' ), 'param_name' => 'authorbox_social_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Social media hover color', 'penci-framework' ), 'param_name' => 'authorbox_social_hcolor', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Description color', 'penci-framework' ), 'param_name' => 'authorbox_desc_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', 'dependency' => array( 'element' => 'hide_desc', 'is_empty' => true ), ), ), Penci_Framework_Shortcode_Params::block_option_block_title( ), Penci_Framework_Shortcode_Params::block_option_note_custom_fonts(), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'block_title', 'title' => esc_html__( 'Block title settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'oswald' ), 'font-size' => '18px', ) ) ) );
|