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