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
|
<?php
$group_filter = 'Filter'; $group_color = 'Color';
// Shortcode settings return array( 'name' => esc_html__( 'Banner Box', 'penci-framework' ), 'weight' => 828, 'params' => array_merge( Penci_Framework_Shortcode_Params::block_title(), array( array( 'type' => 'attach_image', 'heading' => __( 'Banner Image', 'penci-framework' ), 'param_name' => 'image', 'value' => '', 'description' => __( 'Select image from media library.', 'penci-framework' ), ), array( 'type' => 'textfield', 'heading' => __( 'Banner Image size', 'penci-framework' ), 'param_name' => 'img_size', 'std' => 'full', 'description' => __( 'Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)). Leave parameter empty to use "thumbnail" by default.', 'penci-framework' ), ), array( 'type' => 'href', 'heading' => __( 'Banner Link', 'penci-framework' ), 'param_name' => 'link', 'description' => __( 'Enter URL if you want this image to have a link (Note: parameters like "mailto:" are also accepted).', 'penci-framework' ) ),array( 'type' => 'textfield', 'heading' => __( 'Banner Text', 'penci-framework' ), 'param_name' => 'banner_text' ), array( 'type' => 'dropdown', 'heading' => __( 'Link Target', 'penci-framework' ), 'param_name' => 'img_link_target', 'value' => array( __( 'Same window', 'penci-framework' ) => '_self', __( 'New window', 'penci-framework' ) => '_blank', ), ), array( 'type' => 'checkbox', 'heading' => __( 'Enable Nofollow', 'penci-framework' ), 'param_name' => 'enable_nofollow', ),array( 'type' => 'checkbox', 'heading' => __( 'Show banner border', 'penci-framework' ), 'param_name' => 'show_banner_border', ), ), Penci_Framework_Shortcode_Params::color_params( 'ad_box', false ), Penci_Framework_Shortcode_Params::block_option_block_title( ), array( // Colors array( 'type' => 'textfield', 'param_name' => 'color_genral_css', 'heading' => esc_html__( 'Extra 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__( 'Border color', 'penci-framework' ), 'param_name' => 'banner_border_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( ' Banner text background color', 'penci-framework' ), 'param_name' => 'banner_text_bgcolor', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ),array( 'type' => 'colorpicker', 'heading' => esc_html__( ' Banner text color', 'penci-framework' ), 'param_name' => 'banner_text_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), ), 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', ) ), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'banner_text', 'title' => esc_html__( 'Banner text settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'roboto' ), 'font-size' => '', ) ) ) );
|