PluginProbe
Borderless – Addons and Templates for Elementor / 1.0.2
Borderless – Addons and Templates for Elementor v1.0.2
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 All 78 releases
borderless / modules / wpbakery / elements / pricing.php

pricing.php in Borderless – Addons and Templates for Elementor 1.0.2, at modules/wpbakery/elements/pricing.php

1,223 lines 37.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( '-1' );
4 }
5
6 /*-----------------------------------------------------------------------------------*/
7 /* Pricing
8 /*-----------------------------------------------------------------------------------*/
9
10 class WPBakeryShortCode_borderless_wpbakery_pricing extends WPBakeryShortCodesContainer {
11 protected function content( $atts, $content = null ) {
12 extract( shortcode_atts( array(
13 'title' => '',
14 'price' => '',
15 'currency' => '',
16 'plan' => '',
17 'features_spacing' => '',
18 'features_line_list' => '',
19 'features_line_list_color' => '',
20 'icon_display' => '',
21 'custom_image_icon' => '',
22 'custom_svg_icon' => '',
23 'icon' => '',
24 'icon_color' => '',
25 'custom_icon_color' => '',
26 'shape' => '',
27 'color_shape' => '',
28 'icon_size' => '8rem',
29 'icon_spacing' => '',
30 'icon_alignment' => 'left',
31 'button_title' => 'Link Button',
32 'button_link' => '#',
33 'button_text_color' => '#ffffff',
34 'button_background_color' => '',
35 'button_shape' => 'rounded',
36 'button_size' => 'btn-lg',
37 'button_extra_size' => '',
38 'button_alignment' => 'text-left',
39 'area_1' => 'icon',
40 'margin_area_1' => '0',
41 'padding_area_1' => '0',
42 'background_area_1' => 'transparent',
43 'area_2' => 'title',
44 'margin_area_2' => '0',
45 'padding_area_2' => '0',
46 'background_area_2' => '',
47 'area_3' => 'sub_heading',
48 'margin_area_3' => '0',
49 'padding_area_3' => '0',
50 'background_area_3' => 'transparent',
51 'area_4' => 'price',
52 'margin_area_4' => '0',
53 'padding_area_4' => '0',
54 'background_area_4' => '',
55 'area_5' => 'featured_list',
56 'margin_area_5' => '0',
57 'padding_area_5' => '0',
58 'background_area_5' => '',
59 'area_6' => 'pricing_button',
60 'margin_area_6' => '0',
61 'padding_area_6' => '0',
62 'background_area_6' => '',
63 'title_tag' => 'h3',
64 'title_size' => '',
65 'title_line_height' => '',
66 'title_spacing' => '',
67 'title_alignment' => '',
68 'title_color' => '',
69 'price_size' => '',
70 'price_line_height' => '',
71 'price_spacing' => 'auto',
72 'price_alignment' => '',
73 'price_color' => '',
74 'currency_size' => '',
75 'currency_spacing' => '',
76 'shadow_pricing_table' => '',
77 'el_class' => '',
78 'css' => '',
79 'css_animation' => ''
80 ), $atts ) );
81 $output = '';
82
83
84 // Retrieve data from the database.
85 $options = get_option( 'borderless' );
86
87
88 // Set default values
89 $borderless_primary_color = isset( $options['primary_color'] ) ? $options['primary_color'] : '#3379fc'; //Primary Color
90 $borderless_secondary_color = isset( $options['secondary_color'] ) ? $options['secondary_color'] : '#3379fc'; //Secondary Color
91 $borderless_text_color = isset( $options['text_color'] ) ? $options['text_color'] : ''; //Text Color
92 $borderless_accent_color = isset( $options['accent_color'] ) ? $options['accent_color'] : '#3379fc'; //Accent Color
93
94
95 // Start Default Extra Class, CSS and CSS animation
96
97 $css = isset( $atts['css'] ) ? $atts['css'] : '';
98 $el_class = isset( $atts['el_class'] ) ? $atts['el_class'] : '';
99
100 if ( '' !== $css_animation ) {
101 wp_enqueue_script( 'waypoints' );
102 $css_animation_style = ' wpb_animate_when_almost_visible wpb_' . $css_animation;
103 }
104
105 $class_to_filter = vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation );
106 $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
107
108 // End Default Extra Class, CSS and CSS animation
109
110 // Icon
111 if ($icon_display == 'image_icon') {
112
113 if($icon_alignment != '') {
114 $icon_alignment = 'text-align:'.$icon_alignment.';';
115 }
116
117 $default_src = vc_asset_url( 'vc/no_image.png' );
118 $img = wp_get_attachment_image_src( $custom_image_icon );
119 $src = $img[0];
120 $custom_src = $src ? esc_attr( $src ) : $default_src;
121
122 $icon_content = '<div style="'.$icon_alignment.'"><img src="'.$custom_src.'" ></div>';
123
124 } elseif ($icon_display == 'svg_icon') {
125
126 if($icon_alignment != '') {
127 $icon_alignment = 'text-align:'.$icon_alignment.';';
128 }
129
130 $default_src = vc_asset_url( 'vc/no_image.png' );
131 $img = wp_get_attachment_image_src( $custom_svg_icon );
132 $src = $img[0];
133 $custom_src = $src ? esc_attr( $src ) : $default_src;
134
135 $icon_content = '<div class="elvn" style="'.$icon_alignment.'"><img class="vesvg" src="'.$custom_src.'" ></div>';
136
137 } else {
138
139 $iconClass = isset( $icon ) ? esc_attr( $icon ) : 'fa fa-adjust';
140
141 $custom_icon_color = $icon_color ? 'color:'.$custom_icon_color.';' : 'color:'.$borderless_primary_color.';'; //Icon Color
142
143 $font_size_reference = $icon_size;
144
145 if($icon_size != '') {
146 $icon_size = 'font-size:'.$icon_size.';';
147 }
148
149 if($icon_alignment != '') {
150 $icon_alignment = 'text-align:'.$icon_alignment.';display: block;';
151 }
152
153 if($shape != '') {
154
155 if($shape == 'rounded' || $shape == 'square' || $shape == 'round') {
156 $color_shape = $color_shape ? 'background-color:'.$color_shape.';' : 'background-color:'.$borderless_primary_color.';'; //Background Color Shape
157 } else {
158 $color_shape = $color_shape ? 'border-color:'.$color_shape.';' : 'border-color:'.$borderless_primary_color.';'; //Border Color Shape
159 }
160
161 if($icon_spacing != '') {
162 $icon_spacing = 'height:'.$icon_spacing.'; width:'.$icon_spacing.';';
163 } else {
164 $icon_spacing = 'height:calc('.$font_size_reference.' + 2em); width:calc('.$font_size_reference.' + 2em);';
165 }
166
167 $shape_render_start = '<div style="'.$icon_alignment.'"><div class="icon-pricing '.$shape.'" style="'.$color_shape.''.$icon_spacing.'">';
168 $shape_render_finish = '</div></div>';
169
170 } else {
171 $shape_render_start = '';
172 $shape_render_finish = '';
173 }
174
175 $icon_content = ''.$shape_render_start.'<span style="'.$custom_icon_color.' '.$icon_size.' '.$icon_alignment.'" class="vc_icon_element-icon '.$iconClass.'"></span>'.$shape_render_finish.'';
176 }
177
178
179
180 // Title
181 $title_content = '<'.$title_tag.' style="font-size:'.$title_size.';line-height:'.$title_line_height.';margin:'.$title_spacing.';text-align:'.$title_alignment.';color:'.$title_color.';">'.$title.'</'.$title_tag.'>';
182
183 //Price
184 $price_content = '<p class="price" style="line-height:'.$price_line_height.';margin:'.$price_spacing.';text-align:'.$price_alignment.';color:'.$price_color.';">
185 <span class="pricing-currency" style="font-size:'.$currency_size.';margin:'.$currency_spacing.';">'.$currency.'</span><span class="pricing-value" style="font-size:'.$price_size.';">'.$price.'</span>
186 <span class="pricing-plan">'.$plan.'</span>
187 </p>';
188
189 //Sub Heading
190
191 $sub_heading_content = $content;
192
193 //Featured List
194 if($features_icon == 'features-arrow') {
195 $features_icon = 'fa-chevron-right';
196 } else if($features_icon == 'features-check') {
197 $features_icon = 'fa-check';
198 } else if($features_icon == 'features-more') {
199 $features_icon = 'fa-plus';
200 } else {
201 $features_icon = 'fa-star';
202 }
203
204 $featured_list = '';
205
206 if($features_icon_color != '') {
207 $features_icon_color = 'style="color:'.$features_icon_color.'"';
208 } else {
209 $features_icon_color = '';
210 }
211
212 if($features_line_list == 'line_list' ) {
213 $features_line_list = 'line-list';
214 if($features_line_list_color != '') {
215 $features_line_list_color = 'border-bottom-color:'.$features_line_list_color.';';
216 } else {
217 $features_line_list_color = '';
218 }
219 } else {
220 $features_line_list = '';
221 $features_line_list_color = '';
222 }
223
224 $features_counter = 1;
225
226 while( $features_counter <= 15 ){
227 if(${'feature_' . $features_counter} != ''){
228 $featured_list = $featured_list .'<li class="'.$features_line_list.'" style="color:'.$features_color.';padding:'.$features_spacing.';'.$features_line_list_color.'"><i '.$features_icon_color.' class="fa '.$features_icon.'"></i>'.${'feature_' . $features_counter}.'</li>';
229 }
230 $features_counter++;
231 }
232
233
234 $featured_list_content = '<div><ul class="featured-list">'.$featured_list.'</ul></div>';
235
236
237 if($shadow_pricing_table != '') {
238 $shadow_pricing_table = 'shadow-pricing';
239 }
240
241 //Button
242
243 $link = vc_build_link( $button_link );
244
245 if($button_shape == 'rounded' || $button_shape == 'square' || $button_shape == 'round') {
246 $button_background_color = $button_background_color ? 'background-color:'.$button_background_color.';' : 'background-color:'.$borderless_primary_color.';';
247 } else {
248 $button_background_color = $button_background_color ? 'border-width: 2px;border-style: solid;border-color:'.$button_background_color.';' : 'border-width: 2px;border-style: solid;border-color:'.$borderless_primary_color.';';
249 }
250
251 $pricing_button_content = '<div class="'.$button_alignment.'"><a style="'.$button_background_color.' color:'.$button_text_color.';padding:'.$button_extra_size.';" href="'.esc_attr( $link['url'] ).'" class="'.$button_shape.' pricing-button btn '.$button_size.'" role="button">'.$button_title.'</a></div>';
252
253 //Layout
254
255 $layout = 1;
256
257 $output .= '<div class="pricing-table '.$css_class.' '.$shadow_pricing_table.'">';
258
259 while( $layout <= 6 ){
260 if(${'area_' . $layout} != '' && ${'area_' . $layout} != 'disable'){
261
262 $data_content = ${'area_' . $layout} . '_content';
263
264 $output .= '<div class="'.${'area_' . $layout}.'" style="margin:'.${'margin_area_' . $layout}.';padding:'.${'padding_area_' . $layout}.';background-color:'.${'background_area_' . $layout}.';">'.${$data_content}.'</div>';
265
266 }
267 $layout++;
268 }
269
270 $output .= '</div>';
271
272 return $output;
273 }
274 }
275
276 class WPBakeryShortCode_borderless_wpbakery_feature extends WPBakeryShortCode {
277 protected function content( $atts, $content = null ) {
278 extract( shortcode_atts( array(
279 'description' => '',
280 'icon' => '',
281 'colors' => '',
282 'icon_color' => '',
283 'title_color' => '',
284 //Static
285 'el_id' => '',
286 'el_class' => '',
287 'css' => '',
288 'css_animation' => ''
289 ), $atts ) );
290 $output = '';
291
292 // URL Builder
293
294 $link = vc_build_link( $link );
295
296 // Start Default Extra Class, CSS and CSS animation
297
298 $css = isset( $atts['css'] ) ? $atts['css'] : '';
299 $el_id = isset( $atts['el_id'] ) ? 'id="' . esc_attr( $el_id ) . '"' : '';
300 $el_class = isset( $atts['el_class'] ) ? $atts['el_class'] : '';
301
302 if ( '' !== $css_animation ) {
303 wp_enqueue_script( 'waypoints' );
304 $css_animation_style = ' wpb_animate_when_almost_visible wpb_' . $css_animation;
305 }
306
307 $class_to_filter = vc_shortcode_custom_css_class( $css, ' ' ) . $this->getExtraClass( $el_class ) . $this->getCSSAnimation( $css_animation );
308 $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, $class_to_filter, $this->settings['base'], $atts );
309
310 // End Default Extra Class, CSS and CSS animation
311
312 // Start Custom Colors
313
314 $icon_color = $icon_color ? 'style=color:'.$icon_color.'' : '';
315 $title_color = $title_color ? 'style=color:'.$title_color.'' : '';
316
317 // End Custom Colors
318
319 // Start Icon
320
321 $icon = $icon ? '<i class="'.$icon.'" '.$icon_color.' aria-hidden="true"></i>' : '';
322
323 //End Icon
324
325 // Start Link
326 if($link['url'] != ''){
327 $tag = 'a';
328 $href = 'href="'.esc_attr( $link['url'] ).'"';
329 } else {
330 $tag = 'span';
331 $href = '';
332 }
333 // End Link
334
335 $output .= '<'.$tag.' '.$href.' '.$el_id.' class="borderless-wpbakery-list-group-item '.$css_class.'" '.$title_color.'>'.$icon.$title.'</'.$tag.'>';
336
337
338 return $output;
339 }
340 }
341
342 vc_map( array(
343 'name' => __( 'Pricing', 'borderless' ),
344 'base' => 'borderless_wpbakery_pricing',
345 'icon' => plugins_url('../images/pricing.png', __FILE__),
346 "as_parent" => array('only' => 'borderless_wpbakery_feature'),
347 "content_element" => true,
348 "show_settings_on_create" => false,
349 "is_container" => true,
350 'category' => __( 'Borderless', 'borderless' ),
351 'description' => __( 'Show a flexible and powerful list', 'borderless' ),
352 'params' => array(
353
354 array(
355 'type' => 'textfield',
356 'heading' => __( 'Title', 'borderless' ),
357 'param_name' => 'title',
358 'description' => __( 'Enter the title here.', 'borderless' ),
359 ),
360
361 array(
362 'type' => 'textfield',
363 'heading' => __( 'Price', 'borderless' ),
364 'param_name' => 'price',
365 'description' => __( 'Enter the price for this package. e.g. 999.', 'borderless' ),
366 ),
367
368 array(
369 'type' => 'textfield',
370 'heading' => __( 'Currency', 'borderless' ),
371 'param_name' => 'currency',
372 'description' => __( 'Enter the price unit for this package. e.g. $.', 'borderless' ),
373 ),
374
375 array(
376 'type' => 'textfield',
377 'heading' => __( 'Plan', 'borderless' ),
378 'param_name' => 'plan',
379 'description' => __( 'Enter the plan for this package. e.g. per month.', 'borderless' ),
380 ),
381
382 array(
383 'type' => 'textarea_html',
384 'heading' => __( 'Sub Heading', 'borderless' ),
385 'param_name' => 'content',
386 'description' => __( 'Enter short description.', 'borderless' ),
387 ),
388
389 /*
390 * Features Tab
391 */
392
393 array(
394 'type' => 'textfield',
395 'heading' => __( 'Features Spacing', 'borderless' ),
396 'param_name' => 'features_spacing',
397 'description' => __( 'Select features spacing. e.g. 16px.', 'borderless' ),
398 'group' => 'Features',
399 ),
400
401 array(
402 'type' => 'checkbox',
403 'heading' => __('Features Line List', 'borderless'),
404 'param_name' => 'features_line_list',
405 'group' => 'Features',
406 'value' => array(
407 __( 'Enable Features Line List.', 'borderless' ) => 'line_list',
408 ),
409 ),
410
411 array(
412 'type' => 'colorpicker',
413 'heading' => __( 'Features Line List Color', 'borderless' ),
414 'param_name' => 'features_line_list_color',
415 'description' => __( 'Select custom line color.', 'borderless' ),
416 'group' => 'Features',
417 'dependency' => array(
418 'element' => 'features_line_list',
419 'value' => array( 'line_list' ),
420 ),
421 ),
422
423 array(
424 'type' => 'checkbox',
425 'heading' => __('Shadow Pricing Table', 'borderless'),
426 'param_name' => 'shadow_pricing_table',
427 'value' => array(
428 __( 'Apply shadow on the Pricing table.', 'borderless' ) => 'shadow_pricing',
429 ),
430 ),
431
432 /*
433 * Icon Tab
434 */
435
436 array(
437 'type' => 'dropdown',
438 'heading' => __( 'Icon to display', 'borderless' ),
439 'param_name' => 'icon_display',
440 'value' => array(
441 __( 'Icon Manager', 'borderless' ) => 'icon_manager',
442 __( 'Image Icon', 'borderless' ) => 'image_icon',
443 __( 'SVG Icon', 'borderless' ) => 'svg_icon',
444 ),
445 'description' => __( 'Enable Icon Library.', 'borderless' ),
446 'group' => 'Icon',
447 ),
448
449 array(
450 'type' => 'attach_image',
451 'heading' => __( 'Upload Image Icon', 'borderless' ),
452 'param_name' => 'custom_image_icon',
453 'description' => __( 'Upload the custom image icon.', 'borderless' ),
454 'group' => 'Icon',
455 'dependency' => array(
456 'element' => 'icon_display',
457 'value' => array( 'image_icon' ),
458 ),
459 ),
460
461 array(
462 'type' => 'attach_image',
463 'heading' => __( 'Upload SVG Icon', 'borderless' ),
464 'param_name' => 'custom_svg_icon',
465 'description' => __( 'Upload the custom svg icon.', 'borderless' ),
466 'group' => 'Icon',
467 'dependency' => array(
468 'element' => 'icon_display',
469 'value' => array( 'svg_icon' ),
470 ),
471 ),
472
473 array(
474 'type' => 'iconmanager',
475 'heading' => __( 'Icon', 'borderless' ),
476 'param_name' => 'icon',
477 'description' => __( 'Select icon from library.', 'borderless' ),
478 'group' => 'Icon',
479 'dependency' => array(
480 'element' => 'icon_display',
481 'value' => array( 'icon_manager' ),
482 ),
483 ),
484
485 array(
486 'type' => 'dropdown',
487 'heading' => __( 'Icon color', 'borderless' ),
488 'param_name' => 'icon_color',
489 'value' => array(
490 __( 'Preset Color', 'borderless' ) => '',
491 __( 'Custom Color', 'borderless' ) => 'custom',
492 ),
493 'description' => __( 'Select icon color.', 'borderless' ),
494 'dependency' => array(
495 'element' => 'icon_display',
496 'value' => array( 'icon_manager' ),
497 ),
498 'group' => 'Icon',
499 ),
500 array(
501 'type' => 'colorpicker',
502 'heading' => __( 'Custom Icon Color', 'borderless' ),
503 'param_name' => 'custom_icon_color',
504 'description' => __( 'Select custom icon color.', 'borderless' ),
505 'group' => 'Icon',
506 'dependency' => array(
507 'element' => 'icon_color',
508 'value' => array( 'custom' ),
509 ),
510 ),
511 array(
512 'type' => 'dropdown',
513 'heading' => __( 'Shape', 'borderless' ),
514 'description' => __( 'Select icon shape.', 'borderless' ),
515 'param_name' => 'shape',
516 'group' => 'Icon',
517 'dependency' => array(
518 'element' => 'icon_display',
519 'value' => array( 'icon_manager' ),
520 ),
521 'value' => array(
522 __( 'None', 'borderless' ) => '',
523 __( 'Rounded', 'borderless' ) => 'rounded',
524 __( 'Square', 'borderless' ) => 'square',
525 __( 'Round', 'borderless' ) => 'round',
526 __( 'Outline Rounded', 'borderless' ) => 'outline-rounded',
527 __( 'Outline Square', 'borderless' ) => 'outline-square',
528 __( 'Outline Round', 'borderless' ) => 'outline-round',
529 ),
530 ),
531 array(
532 'type' => 'colorpicker',
533 'heading' => __( 'Color Shape', 'borderless' ),
534 'param_name' => 'color_shape',
535 'description' => __( 'Select custom shape background color.', 'borderless' ),
536 'group' => 'Icon',
537 'dependency' => array(
538 'element' => 'shape',
539 'value' => array( 'rounded','boxed','rounded-less','rounded-outline','boxed-outline','rounded-less-outline' ),
540 ),
541 ),
542 array(
543 'type' => 'textfield',
544 'heading' => __( 'Size', 'borderless' ),
545 'param_name' => 'icon_size',
546 'description' => __( 'Icon size. Default value is 16px.', 'borderless' ),
547 'dependency' => array(
548 'element' => 'icon_display',
549 'value' => array( 'icon_manager' ),
550 ),
551 'group' => 'Icon',
552 ),
553 array(
554 'type' => 'textfield',
555 'heading' => __( 'Icon Spacing', 'borderless' ),
556 'param_name' => 'icon_spacing',
557 'description' => __( 'Select icon spacing. e.g. 16px.', 'borderless' ),
558 'dependency' => array(
559 'element' => 'icon_display',
560 'value' => array( 'icon_manager' ),
561 ),
562 'group' => 'Icon',
563 ),
564 array(
565 'type' => 'dropdown',
566 'heading' => __( 'Alignment', 'borderless' ),
567 'param_name' => 'icon_alignment',
568 'value' => array(
569 __( 'Left', 'borderless' ) => 'left',
570 __( 'Right', 'borderless' ) => 'right',
571 __( 'Center', 'borderless' ) => 'center',
572 ),
573 'description' => __( 'Select icon alignment.', 'borderless' ),
574 'group' => 'Icon',
575 ),
576
577 /*
578 * Button Tab
579 */
580
581 array(
582 'type' => 'textfield',
583 'heading' => __( 'Title', 'borderless' ),
584 'param_name' => 'button_title',
585 'description' => __( 'Enter the title here.', 'borderless' ),
586 'group' => 'Button',
587 ),
588
589 array(
590 'type' => 'vc_link',
591 'heading' => __( 'URL (Link)', 'borderless' ),
592 'param_name' => 'button_link',
593 'description' => __( 'Add link to button.', 'borderless' ),
594 'group' => 'Button',
595 ),
596
597 array(
598 'type' => 'colorpicker',
599 'heading' => __( 'Text Color', 'borderless' ),
600 'param_name' => 'button_text_color',
601 'description' => __( 'Select button text color.', 'borderless' ),
602 //CURIOSIDADE'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown',
603 'value' => '#ffffff',
604 'group' => 'Button',
605 ),
606
607 array(
608 'type' => 'colorpicker',
609 'heading' => __( 'Background Color', 'borderless' ),
610 'param_name' => 'button_background_color',
611 'description' => __( 'Select button background color.', 'borderless' ),
612 'group' => 'Button',
613 ),
614
615 array(
616 'type' => 'dropdown',
617 'heading' => __( 'Shape', 'borderless' ),
618 'description' => __( 'Select button shape.', 'borderless' ),
619 'param_name' => 'button_shape',
620 'group' => 'Button',
621 'value' => array(
622 __( 'Rounded', 'borderless' ) => 'rounded',
623 __( 'Square', 'borderless' ) => 'square',
624 __( 'Round', 'borderless' ) => 'round',
625 __( 'Outline Rounded', 'borderless' ) => 'outline-rounded',
626 __( 'Outline Square', 'borderless' ) => 'outline-square',
627 __( 'Outline Round', 'borderless' ) => 'outline-round',
628 ),
629 ),
630
631 array(
632 'type' => 'dropdown',
633 'heading' => __( 'Size', 'borderless' ),
634 'param_name' => 'button_size',
635 'value' => array(
636 __( 'Extra Small', 'borderless' ) => 'btn-xs',
637 __( 'Small', 'borderless' ) => 'btn-sm',
638 __( 'Medium', 'borderless' ) => 'btn-md',
639 __( 'Large', 'borderless' ) => 'btn-lg',
640 __( 'Block', 'borderless' ) => 'btn-block',
641 ),
642 'description' => __( 'Select button display size.', 'borderless' ),
643 'group' => 'Button',
644 ),
645
646 array(
647 'type' => 'textfield',
648 'heading' => __( 'Extra Size', 'borderless' ),
649 'param_name' => 'button_extra_size',
650 'description' => __( 'Enter extra size.', 'borderless' ),
651 'group' => 'Button',
652 ),
653
654 array(
655 'type' => 'dropdown',
656 'heading' => __( 'Alignment', 'borderless' ),
657 'param_name' => 'button_alignment',
658 'value' => array(
659 __( 'Left', 'borderless' ) => 'text-left',
660 __( 'Right', 'borderless' ) => 'text-right',
661 __( 'Center', 'borderless' ) => 'text-center',
662 ),
663 'description' => __( 'Select button alignment.', 'borderless' ),
664 'group' => 'Button',
665 ),
666
667 /*
668 * Layout Tab
669 */
670
671 array(
672 'type' => 'dropdown',
673 'heading' => __( 'First Area', 'borderless' ),
674 'param_name' => 'area_1',
675 'group' => 'Layout',
676 'value' => array(
677 __( 'Icon', 'borderless' ) => 'icon',
678 __( 'Title', 'borderless' ) => 'title',
679 __( 'Sub Heading', 'borderless' ) => 'sub_heading',
680 __( 'Price and Plan', 'borderless' ) => 'price',
681 __( 'Featured List', 'borderless' ) => 'featured_list',
682 __( 'Button', 'borderless' ) => 'pricing_button',
683 __( 'Disable', 'borderless' ) => 'disable',
684 ),
685 'default' => 'icon_image',
686 'description' => __( 'Choose the element.', 'borderless' ),
687 ),
688
689 array(
690 'type' => 'textfield',
691 'heading' => __( 'Margin First Area', 'borderless' ),
692 'param_name' => 'margin_area_1',
693 'description' => __( 'Enter margin. e.g. 16px.', 'borderless' ),
694 'group' => 'Layout',
695 'dependency' => array(
696 'element' => 'area_1',
697 'value_not_equal_to' => array( '' ),
698 ),
699 ),
700
701 array(
702 'type' => 'textfield',
703 'heading' => __( 'Padding First Area', 'borderless' ),
704 'param_name' => 'padding_area_1',
705 'description' => __( 'Enter padding. e.g. 16px.', 'borderless' ),
706 'group' => 'Layout',
707 'dependency' => array(
708 'element' => 'area_1',
709 'value_not_equal_to' => array( '' ),
710 ),
711 ),
712
713 array(
714 'type' => 'colorpicker',
715 'heading' => __( 'Background First Area', 'borderless' ),
716 'param_name' => 'background_area_1',
717 'description' => __( 'Select custom background color for first area.', 'borderless' ),
718 'group' => 'Layout',
719 'dependency' => array(
720 'element' => 'area_1',
721 'value_not_equal_to' => array( '' ),
722 ),
723 ),
724
725 array(
726 'type' => 'dropdown',
727 'heading' => __( 'Second Area', 'borderless' ),
728 'param_name' => 'area_2',
729 'group' => 'Layout',
730 'value' => array(
731 __( 'Icon', 'borderless' ) => 'icon',
732 __( 'Title', 'borderless' ) => 'title',
733 __( 'Sub Heading', 'borderless' ) => 'sub_heading',
734 __( 'Price and Plan', 'borderless' ) => 'price',
735 __( 'Featured List', 'borderless' ) => 'featured_list',
736 __( 'Button', 'borderless' ) => 'pricing_button',
737 __( 'Disable', 'borderless' ) => 'disable',
738 ),
739 'default' => 'title',
740 'description' => __( 'Choose the element.', 'borderless' ),
741 ),
742
743 array(
744 'type' => 'textfield',
745 'heading' => __( 'Margin Second Area', 'borderless' ),
746 'param_name' => 'margin_area_2',
747 'description' => __( 'Enter margin. e.g. 16px.', 'borderless' ),
748 'group' => 'Layout',
749 'dependency' => array(
750 'element' => 'area_2',
751 'value_not_equal_to' => array( '' ),
752 ),
753 ),
754
755 array(
756 'type' => 'textfield',
757 'heading' => __( 'Padding Second Area', 'borderless' ),
758 'param_name' => 'padding_area_2',
759 'description' => __( 'Enter padding. e.g. 16px.', 'borderless' ),
760 'group' => 'Layout',
761 'dependency' => array(
762 'element' => 'area_2',
763 'value_not_equal_to' => array( '' ),
764 ),
765 ),
766
767 array(
768 'type' => 'colorpicker',
769 'heading' => __( 'Background Second Area', 'borderless' ),
770 'param_name' => 'background_area_2',
771 'description' => __( 'Select custom background color for second area.', 'borderless' ),
772 'group' => 'Layout',
773 'dependency' => array(
774 'element' => 'area_2',
775 'value_not_equal_to' => array( '' ),
776 ),
777 ),
778
779 array(
780 'type' => 'dropdown',
781 'heading' => __( 'Third Area', 'borderless' ),
782 'param_name' => 'area_3',
783 'group' => 'Layout',
784 'value' => array(
785 __( 'Icon', 'borderless' ) => 'icon',
786 __( 'Title', 'borderless' ) => 'title',
787 __( 'Sub Heading', 'borderless' ) => 'sub_heading',
788 __( 'Price and Plan', 'borderless' ) => 'price',
789 __( 'Featured List', 'borderless' ) => 'featured_list',
790 __( 'Button', 'borderless' ) => 'pricing_button',
791 __( 'Disable', 'borderless' ) => 'disable',
792 ),
793 'default' => 'value',
794 'description' => __( 'Choose the element.', 'borderless' ),
795 ),
796
797 array(
798 'type' => 'textfield',
799 'heading' => __( 'Margin Third Area', 'borderless' ),
800 'param_name' => 'margin_area_3',
801 'description' => __( 'Enter margin. e.g. 16px.', 'borderless' ),
802 'group' => 'Layout',
803 'dependency' => array(
804 'element' => 'area_3',
805 'value_not_equal_to' => array( '' ),
806 ),
807 ),
808
809 array(
810 'type' => 'textfield',
811 'heading' => __( 'Padding Third Area', 'borderless' ),
812 'param_name' => 'padding_area_3',
813 'description' => __( 'Enter padding. e.g. 16px.', 'borderless' ),
814 'group' => 'Layout',
815 'dependency' => array(
816 'element' => 'area_3',
817 'value_not_equal_to' => array( '' ),
818 ),
819 ),
820
821 array(
822 'type' => 'colorpicker',
823 'heading' => __( 'Background Third Area', 'borderless' ),
824 'param_name' => 'background_area_3',
825 'description' => __( 'Select custom background color for third area.', 'borderless' ),
826 'group' => 'Layout',
827 'dependency' => array(
828 'element' => 'area_3',
829 'value_not_equal_to' => array( '' ),
830 ),
831 ),
832
833 array(
834 'type' => 'dropdown',
835 'heading' => __( 'Fourth Area', 'borderless' ),
836 'param_name' => 'area_4',
837 'group' => 'Layout',
838 'value' => array(
839 __( 'Icon', 'borderless' ) => 'icon',
840 __( 'Title', 'borderless' ) => 'title',
841 __( 'Sub Heading', 'borderless' ) => 'sub_heading',
842 __( 'Price and Plan', 'borderless' ) => 'price',
843 __( 'Featured List', 'borderless' ) => 'featured_list',
844 __( 'Button', 'borderless' ) => 'pricing_button',
845 __( 'Disable', 'borderless' ) => 'disable',
846 ),
847 'default' => 'featured_list',
848 'description' => __( 'Choose the element.', 'borderless' ),
849 ),
850
851 array(
852 'type' => 'textfield',
853 'heading' => __( 'Margin Fourth Area', 'borderless' ),
854 'param_name' => 'margin_area_4',
855 'description' => __( 'Enter margin. e.g. 16px.', 'borderless' ),
856 'group' => 'Layout',
857 'dependency' => array(
858 'element' => 'area_4',
859 'value_not_equal_to' => array( '' ),
860 ),
861 ),
862
863 array(
864 'type' => 'textfield',
865 'heading' => __( 'Padding Fourth Area', 'borderless' ),
866 'param_name' => 'padding_area_4',
867 'description' => __( 'Enter padding. e.g. 16px.', 'borderless' ),
868 'group' => 'Layout',
869 'dependency' => array(
870 'element' => 'area_4',
871 'value_not_equal_to' => array( '' ),
872 ),
873 ),
874
875 array(
876 'type' => 'colorpicker',
877 'heading' => __( 'Background Fourth Area', 'borderless' ),
878 'param_name' => 'background_area_4',
879 'description' => __( 'Select custom background color for fourth area.', 'borderless' ),
880 'group' => 'Layout',
881 'dependency' => array(
882 'element' => 'area_4',
883 'value_not_equal_to' => array( '' ),
884 ),
885 ),
886
887 array(
888 'type' => 'dropdown',
889 'heading' => __( 'Fifth Area', 'borderless' ),
890 'param_name' => 'area_5',
891 'group' => 'Layout',
892 'value' => array(
893 __( 'Icon', 'borderless' ) => 'icon',
894 __( 'Title', 'borderless' ) => 'title',
895 __( 'Sub Heading', 'borderless' ) => 'sub_heading',
896 __( 'Price and Plan', 'borderless' ) => 'price',
897 __( 'Featured List', 'borderless' ) => 'featured_list',
898 __( 'Button', 'borderless' ) => 'pricing_button',
899 __( 'Disable', 'borderless' ) => 'disable',
900 ),
901 'default' => 'btn',
902 'description' => __( 'Choose the element.', 'borderless' ),
903 ),
904
905 array(
906 'type' => 'textfield',
907 'heading' => __( 'Margin Fifth Area', 'borderless' ),
908 'param_name' => 'margin_area_5',
909 'description' => __( 'Enter margin. e.g. 16px.', 'borderless' ),
910 'group' => 'Layout',
911 'dependency' => array(
912 'element' => 'area_5',
913 'value_not_equal_to' => array( '' ),
914 ),
915 ),
916
917 array(
918 'type' => 'textfield',
919 'heading' => __( 'Padding Fifth Area', 'borderless' ),
920 'param_name' => 'padding_area_5',
921 'description' => __( 'Enter padding. e.g. 16px.', 'borderless' ),
922 'group' => 'Layout',
923 'dependency' => array(
924 'element' => 'area_5',
925 'value_not_equal_to' => array( '' ),
926 ),
927 ),
928
929 array(
930 'type' => 'colorpicker',
931 'heading' => __( 'Background Fifth Area', 'borderless' ),
932 'param_name' => 'background_area_5',
933 'description' => __( 'Select custom background color for fifth area.', 'borderless' ),
934 'group' => 'Layout',
935 'dependency' => array(
936 'element' => 'area_5',
937 'value_not_equal_to' => array( '' ),
938 ),
939 ),
940
941 array(
942 'type' => 'dropdown',
943 'heading' => __( 'Sixth Area', 'borderless' ),
944 'param_name' => 'area_6',
945 'group' => 'Layout',
946 'value' => array(
947 __( 'Icon', 'borderless' ) => 'icon',
948 __( 'Title', 'borderless' ) => 'title',
949 __( 'Sub Heading', 'borderless' ) => 'sub_heading',
950 __( 'Price and Plan', 'borderless' ) => 'price',
951 __( 'Featured List', 'borderless' ) => 'featured_list',
952 __( 'Button', 'borderless' ) => 'pricing_button',
953 __( 'Disable', 'borderless' ) => 'disable',
954 ),
955 'default' => 'btn',
956 'description' => __( 'Choose the element.', 'borderless' ),
957 ),
958
959 array(
960 'type' => 'textfield',
961 'heading' => __( 'Margin Sixth Area', 'borderless' ),
962 'param_name' => 'margin_area_6',
963 'description' => __( 'Enter margin. e.g. 16px.', 'borderless' ),
964 'group' => 'Layout',
965 'dependency' => array(
966 'element' => 'area_6',
967 'value_not_equal_to' => array( '' ),
968 ),
969 ),
970
971 array(
972 'type' => 'textfield',
973 'heading' => __( 'Padding Sixth Area', 'borderless' ),
974 'param_name' => 'padding_area_6',
975 'description' => __( 'Enter padding. e.g. 16px.', 'borderless' ),
976 'group' => 'Layout',
977 'dependency' => array(
978 'element' => 'area_6',
979 'value_not_equal_to' => array( '' ),
980 ),
981 ),
982
983 array(
984 'type' => 'colorpicker',
985 'heading' => __( 'Background Sixth Area', 'borderless' ),
986 'param_name' => 'background_area_6',
987 'description' => __( 'Select custom background color for sixth area.', 'borderless' ),
988 'group' => 'Layout',
989 'dependency' => array(
990 'element' => 'area_6',
991 'value_not_equal_to' => array( '' ),
992 ),
993 ),
994
995 /*
996 * Typography Tab
997 */
998
999 array(
1000 'type' => 'dropdown',
1001 'heading' => __( 'Title Tag', 'borderless' ),
1002 'param_name' => 'title_tag',
1003 'group' => 'Typography',
1004 'value' => array(
1005 __( 'H1', 'borderless' ) => 'h1',
1006 __( 'H2', 'borderless' ) => 'h2',
1007 __( 'H3', 'borderless' ) => 'h3',
1008 __( 'H4', 'borderless' ) => 'h4',
1009 __( 'H5', 'borderless' ) => 'h5',
1010 __( 'H6', 'borderless' ) => 'h6',
1011 __( 'p', 'borderless' ) => 'p',
1012 __( 'div', 'borderless' ) => 'div',
1013 ),
1014 'description' => __( 'Select title tag.', 'borderless' ),
1015 ),
1016
1017 array(
1018 'type' => 'textfield',
1019 'heading' => __( 'Title Font Size', 'borderless' ),
1020 'param_name' => 'title_size',
1021 'description' => __( 'Enter font size.', 'borderless' ),
1022 'group' => 'Typography',
1023 ),
1024
1025 array(
1026 'type' => 'textfield',
1027 'heading' => __( 'Title Line Height', 'borderless' ),
1028 'param_name' => 'title_line_height',
1029 'description' => __( 'Enter line height.', 'borderless' ),
1030 'group' => 'Typography',
1031 ),
1032
1033 array(
1034 'type' => 'textfield',
1035 'heading' => __( 'Title Spacing', 'borderless' ),
1036 'param_name' => 'title_spacing',
1037 'description' => __( 'Select title spacing. e.g. 16px.', 'borderless' ),
1038 'group' => 'Typography',
1039 ),
1040 array(
1041 'type' => 'dropdown',
1042 'heading' => __( 'Title Alignment', 'borderless' ),
1043 'param_name' => 'title_alignment',
1044 'value' => array(
1045 __( 'Left', 'borderless' ) => 'left',
1046 __( 'Right', 'borderless' ) => 'right',
1047 __( 'Center', 'borderless' ) => 'center',
1048 ),
1049 'description' => __( 'Select title alignment.', 'borderless' ),
1050 'group' => 'Typography',
1051 ),
1052
1053 array(
1054 'type' => 'colorpicker',
1055 'heading' => __( 'Title Color', 'borderless' ),
1056 'param_name' => 'title_color',
1057 'description' => __( 'Select custom color for the title.', 'borderless' ),
1058 'group' => 'Typography',
1059 ),
1060
1061 array(
1062 'type' => 'textfield',
1063 'heading' => __( 'Price Font Size', 'borderless' ),
1064 'param_name' => 'price_size',
1065 'description' => __( 'Enter font size.', 'borderless' ),
1066 'group' => 'Typography',
1067 ),
1068
1069 array(
1070 'type' => 'textfield',
1071 'heading' => __( 'Price Line Height', 'borderless' ),
1072 'param_name' => 'price_line_height',
1073 'description' => __( 'Enter line height.', 'borderless' ),
1074 'group' => 'Typography',
1075 ),
1076
1077 array(
1078 'type' => 'textfield',
1079 'heading' => __( 'Price Spacing', 'borderless' ),
1080 'param_name' => 'price_spacing',
1081 'description' => __( 'Select title spacing. e.g. 16px.', 'borderless' ),
1082 'group' => 'Typography',
1083 ),
1084 array(
1085 'type' => 'dropdown',
1086 'heading' => __( 'Price Alignment', 'borderless' ),
1087 'param_name' => 'price_alignment',
1088 'value' => array(
1089 __( 'Left', 'borderless' ) => 'left',
1090 __( 'Right', 'borderless' ) => 'right',
1091 __( 'Center', 'borderless' ) => 'center',
1092 ),
1093 'description' => __( 'Select price alignment.', 'borderless' ),
1094 'group' => 'Typography',
1095 ),
1096
1097 array(
1098 'type' => 'colorpicker',
1099 'heading' => __( 'Price Color', 'borderless' ),
1100 'param_name' => 'price_color',
1101 'description' => __( 'Select custom color for the price.', 'borderless' ),
1102 'group' => 'Typography',
1103 ),
1104
1105 array(
1106 'type' => 'textfield',
1107 'heading' => __( 'Currency Font Size', 'borderless' ),
1108 'param_name' => 'currency_size',
1109 'description' => __( 'Enter font size.', 'borderless' ),
1110 'group' => 'Typography',
1111 ),
1112
1113 array(
1114 'type' => 'textfield',
1115 'heading' => __( 'Currency Spacing', 'borderless' ),
1116 'param_name' => 'currency_spacing',
1117 'description' => __( 'Select spacing. e.g. 16px.', 'borderless' ),
1118 'group' => 'Typography',
1119 ),
1120
1121 // Animation
1122 vc_map_add_css_animation(),
1123
1124 array(
1125 'type' => 'el_id',
1126 'heading' => __( 'Element ID', 'borderless' ),
1127 'param_name' => 'el_id',
1128 'description' => sprintf( __( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'borderless' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
1129 ),
1130
1131 array(
1132 'type' => 'textfield',
1133 'heading' => __( 'Extra class name', 'borderless' ),
1134 'param_name' => 'el_class',
1135 'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'borderless' ),
1136 ),
1137
1138 array(
1139 'type' => 'css_editor',
1140 'heading' => __( 'CSS box', 'borderless' ),
1141 'param_name' => 'css',
1142 'group' => __( 'Design Options', 'borderless' ),
1143 ),
1144 ),
1145 "js_view" => 'VcColumnView'
1146 ) );
1147
1148 vc_map( array(
1149 "name" => __("Feature", 'borderless'),
1150 'description' => __( 'Display List Group Item', 'borderless' ),
1151 "base" => "borderless_wpbakery_feature",
1152 'icon' => plugins_url('../images/feature.png', __FILE__),
1153 "content_element" => true,
1154 "as_child" => array('only' => 'borderless_wpbakery_pricing'),
1155 "params" => array(
1156 array(
1157 'type' => 'textarea_html',
1158 'heading' => __( 'Description', 'borderless' ),
1159 'param_name' => 'description',
1160 ),
1161
1162 array(
1163 'type' => 'iconmanager',
1164 'heading' => __( 'Icon', 'borderless' ),
1165 'param_name' => 'icon',
1166 'description' => __( 'Select icon from library.', 'borderless' ),
1167 ),
1168
1169 array(
1170 'type' => 'dropdown',
1171 'heading' => __( 'Colors', 'borderless' ),
1172 'param_name' => 'colors',
1173 'value' => array(
1174 __( 'Preset Colors', 'borderless' ) => '',
1175 __( 'Custom Colors', 'borderless' ) => 'custom',
1176 ),
1177 'description' => __( 'Choose a color for icons and titles.', 'borderless' ),
1178 ),
1179
1180 array(
1181 'type' => 'colorpicker',
1182 'heading' => __( 'Icon Color', 'borderless' ),
1183 'param_name' => 'icon_color',
1184 'description' => __( 'Select custom color for icons.', 'borderless' ),
1185 'dependency' => array(
1186 'element' => 'colors',
1187 'value' => array( 'custom' ),
1188 ),
1189 ),
1190
1191 array(
1192 'type' => 'colorpicker',
1193 'heading' => __( 'Title Color', 'borderless' ),
1194 'param_name' => 'title_color',
1195 'description' => __( 'Select custom color for titles.', 'borderless' ),
1196 'dependency' => array(
1197 'element' => 'colors',
1198 'value' => array( 'custom' ),
1199 ),
1200 ),
1201
1202 array(
1203 'type' => 'el_id',
1204 'heading' => __( 'Element ID', 'borderless' ),
1205 'param_name' => 'el_id',
1206 'description' => sprintf( __( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'borderless' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
1207 ),
1208
1209 array(
1210 'type' => 'textfield',
1211 'heading' => __( 'Extra class name', 'borderless' ),
1212 'param_name' => 'el_class',
1213 'description' => __( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'borderless' ),
1214 ),
1215
1216 array(
1217 'type' => 'css_editor',
1218 'heading' => __( 'CSS box', 'borderless' ),
1219 'param_name' => 'css',
1220 'group' => __( 'Design Options', 'borderless' ),
1221 ),
1222 )
1223 ) );