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