Changeset 2449424
- Timestamp:
- 01/03/2021 03:07:04 PM (5 years ago)
- Location:
- all-in-one-avada-addons
- Files:
-
- 16 added
- 6 edited
-
tags/1.1.2 (added)
-
tags/1.1.2/all-in-one-avada-addons.php (added)
-
tags/1.1.2/css (added)
-
tags/1.1.2/css/all-in-one-style.css (added)
-
tags/1.1.2/deprecated (added)
-
tags/1.1.2/deprecated/addons-order-and-view-filtering.php (added)
-
tags/1.1.2/deprecated/addons-post-archive-page.php (added)
-
tags/1.1.2/js (added)
-
tags/1.1.2/js/global.js (added)
-
tags/1.1.2/readme.txt (added)
-
tags/1.1.2/template (added)
-
tags/1.1.2/template/addons-post-carousel.php (added)
-
tags/1.1.2/template/addons-woo-best-sellers-carousel.php (added)
-
tags/1.1.2/template/addons-woo-on-sales-carousel.php (added)
-
tags/1.1.2/template/global-layout-product.php (added)
-
tags/1.1.2/template/template-woo-product.php (added)
-
trunk/all-in-one-avada-addons.php (modified) (1 diff)
-
trunk/css/all-in-one-style.css (modified) (1 diff)
-
trunk/deprecated/addons-order-and-view-filtering.php (modified) (2 diffs)
-
trunk/deprecated/addons-post-archive-page.php (modified) (2 diffs)
-
trunk/js/global.js (modified) (1 diff)
-
trunk/template/template-woo-product.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-avada-addons/trunk/all-in-one-avada-addons.php
r2448906 r2449424 4 4 * Plugin URI: http://www.advisionplus.com 5 5 * Description: This is an addons collection for Avada Theme. 6 * Version: 1.1. 16 * Version: 1.1.2 7 7 * Author: Marco Pappalardo 8 8 * Author URI: http://www.marcopappalardo.it -
all-in-one-avada-addons/trunk/css/all-in-one-style.css
r2437866 r2449424 1 1 .single-news-excerpt p {color:red;} 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 .MultiCarousel { float: left; overflow: hidden; padding: 15px; width: 100%; position:relative; } 25 .MultiCarousel .MultiCarousel-inner { transition: 1s ease all; float: left; } 26 .MultiCarousel .MultiCarousel-inner .item { float: left;} 27 .MultiCarousel .MultiCarousel-inner .item > div { text-align: center; padding:10px; margin:10px; background:#f1f1f1; color:#666;} 28 .MultiCarousel .leftLst, .MultiCarousel .rightLst { position:absolute; border-radius:50%;top:calc(50% - 20px); } 29 .MultiCarousel .leftLst { left:0; } 30 .MultiCarousel .rightLst { right:0; } 31 32 .MultiCarousel .leftLst.over, .MultiCarousel .rightLst.over { pointer-events: none; background:#ccc; } 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 @media (min-width: 768px) { 50 /* show 3 items */ 51 .carousel-inner .active, 52 .carousel-inner .active + .carousel-item, 53 .carousel-inner .active + .carousel-item + .carousel-item { 54 display: block; 55 } 56 57 .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left), 58 .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item, 59 .carousel-inner .carousel-item.active:not(.carousel-item-right):not(.carousel-item-left) + .carousel-item + .carousel-item { 60 transition: none; 61 } 62 63 .carousel-inner .carousel-item-next, 64 .carousel-inner .carousel-item-prev { 65 position: relative; 66 transform: translate3d(0, 0, 0); 67 } 68 69 .carousel-inner .active.carousel-item + .carousel-item + .carousel-item + .carousel-item { 70 position: absolute; 71 top: 0; 72 right: -33.3333%; 73 z-index: -1; 74 display: block; 75 visibility: visible; 76 } 77 78 /* left or forward direction */ 79 .active.carousel-item-left + .carousel-item-next.carousel-item-left, 80 .carousel-item-next.carousel-item-left + .carousel-item, 81 .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item, 82 .carousel-item-next.carousel-item-left + .carousel-item + .carousel-item + .carousel-item { 83 position: relative; 84 transform: translate3d(-100%, 0, 0); 85 visibility: visible; 86 } 87 88 /* farthest right hidden item must be abso position for animations */ 89 .carousel-inner .carousel-item-prev.carousel-item-right { 90 position: absolute; 91 top: 0; 92 left: 0; 93 z-index: -1; 94 display: block; 95 visibility: visible; 96 } 97 98 /* right or prev direction */ 99 .active.carousel-item-right + .carousel-item-prev.carousel-item-right, 100 .carousel-item-prev.carousel-item-right + .carousel-item, 101 .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item, 102 .carousel-item-prev.carousel-item-right + .carousel-item + .carousel-item + .carousel-item { 103 position: relative; 104 transform: translate3d(100%, 0, 0); 105 visibility: visible; 106 display: block; 107 visibility: visible; 108 } 109 } 110 -
all-in-one-avada-addons/trunk/deprecated/addons-order-and-view-filtering.php
r2448906 r2449424 42 42 add_shortcode('adv_woo_archive_order', 'avada_addons_woo_archive_order_func'); 43 43 } 44 /* 44 45 45 if (!function_exists('avada_addons_woo_filter_order')){ 46 46 function avada_addons_woo_filter_order() { … … 49 49 'FusionProd_Archive_filterig', 50 50 [ 51 'name' => esc_attr__( 'AIO Woocommerce Products Filtering ', 'avada_addons' ),51 'name' => esc_attr__( 'AIO Woocommerce Products Filtering - Decrepated', 'avada_addons' ), 52 52 'shortcode' => 'adv_woo_archive_order', 53 53 'icon' => 'fusiona-tag', -
all-in-one-avada-addons/trunk/deprecated/addons-post-archive-page.php
r2448906 r2449424 260 260 261 261 //----------------------------------------------------------------------------->>>START FUSION BUILDER INTEGRATION 262 /*263 262 if (!function_exists('avada_addons_add_post_arch_element')){ 264 263 function avada_addons_add_post_arch_element() { … … 267 266 'FusionPost_ArchivePage', 268 267 [ 269 'name' => esc_attr__( 'AIO Post Archive ', 'avada_addons' ),268 'name' => esc_attr__( 'AIO Post Archive - Decrepated', 'avada_addons' ), 270 269 'shortcode' => 'adv_archive_post_page', 271 270 'icon' => 'fusiona-tag', -
all-in-one-avada-addons/trunk/js/global.js
r2448906 r2449424 1 2 jQuery( ".adv-add-to-cart-grid-modern a" ).empty(); 1 //GRID MODERN LAYOUT FOR WOOCOMMERCE PRODUCTS LIST 2 jQuery( ".adv-add-to-cart-grid-modern a" ).empty(); 3 3 jQuery( ".adv-add-to-cart-grid-modern a" ).append('<i class="fas fa-shopping-cart"></i>'); 4 4 jQuery(".AIO-grid-modern-layout .product-buttons").remove(); 5 jQuery(".AIO-grid-modern-layout .product-details-container .product-title").remove(); 6 7 //GRID MODERN LAYOUT FOR WOOCOMMERCE PRODUCTS LIST 8 jQuery( ".adv-add-to-cart-special-offer a" ).empty(); 9 jQuery( ".adv-add-to-cart-special-offer a" ).append('<i class="fas fa-shopping-cart"></i>'); 10 jQuery(".AIO-special-offer-layout .product-buttons").remove(); -
all-in-one-avada-addons/trunk/template/template-woo-product.php
r2448906 r2449424 7 7 global $show_details_button; 8 8 global $show_cart_button; 9 global $hide_star_rating; 9 10 $i ++; 10 11 … … 15 16 'order' => '', // DONE ------------------------------------------------------ 16 17 'orderby' => '', // DONE ------------------------------------------------------ 18 'ids' => '', // DONE ------------------------------------------------------ 17 19 'category' => '', // DONE ------------------------------------------------------ 18 20 'class' =>'', // DONE ------------------------------------------------------ … … 23 25 'top_rated' => '', // DONE ------------------------------------------------------ 24 26 'padding-bewteen-columns' => '', // DONE ------------------------------------------------------ 27 28 //CAROUSEL 29 'carousel' => 'yes', 25 30 26 31 //COLUMNS DESIGN GROUP … … 39 44 'col-border-top-left-radius' => '', // DONE ------------------------------------------------------ 40 45 'col-border-bottom-left-radius' => '', // DONE ------------------------------------------------------ 46 'col-border' => '', // DONE ------------------------------------------------------ 47 'col-border-top' => '', // DONE ------------------------------------------------------ 48 'col-border-right' => '', // DONE ------------------------------------------------------ 49 'col-border-left' => '', // DONE ------------------------------------------------------ 50 'col-border-bottom' => '', // DONE ------------------------------------------------------ 51 'col-border-color' => '', // DONE ------------------------------------------------------ 41 52 'content-text-align' => '', // DONE ------------------------------------------------------ 42 53 … … 155 166 $show_details_button = $atts['show_details_button']; 156 167 $show_cart_button = $atts['show_cart_button']; 168 $hide_star_rating = $atts['hide_star_rating']; 157 169 158 170 … … 187 199 elseif($atts['content-text-align']=='right'){$text_align_content='text-align:right;';} 188 200 else{$text_align_content='text-align=left;';} 201 202 if($atts['col-border-top']){$col_border_top = 'border-top:'.$atts['col-border-top'].' solid '.$atts['col-border-color'].';';} 203 if($atts['col-border-right']){$col_border_right = 'border-right:'.$atts['col-border-right'].' solid '.$atts['col-border-color'].';';} 204 if($atts['col-border-bottom']){$col_border_bottom = 'border-bottom:'.$atts['col-border-bottom']. ' solid '.$atts['col-border-color'].';';} 205 if($atts['col-border-left']){$col_border_left = 'border-left:'.$atts['col-border-left']. ' solid '.$atts['col-border-color'].'';} 189 206 190 207 //TITLE STYLE SETTING … … 303 320 .AIO-products-'.$i.' .products li .fusion-product-wrapper {'.$background_color.''.$padding_top.''.$padding_right.''.$padding_bottom.''.$padding_left.''.$col_margin_top.''.$col_margin_right.''.$col_margin_bottom.''.$col_margin_left.''.$col_border_top_right_radius.''.$col_border_bottom_right_radius.''.$col_border_top_left_radius.''.$col_border_bottom_left_radius.''.$col_overflow.'} 304 321 .AIO-products-'.$i.' .products li {'.$padding_bewteen_columns.'} 322 .AIO-products-'.$i.' .products .fusion-product-wrapper {'.$col_border_top.''.$col_border_right.''.$col_border_bottom.''.$col_border_left.'} 305 323 306 324 .AIO-products-'.$i.' .product-title {'.$show_title.''.$font_family_title.''.$font_variant_title.''.$title_background.''.$title_font_size.''.$title_line_height.''.$title_padding_top.''.$title_padding_right.''.$title_padding_bottom.''.$title_padding_left.''.$title_margin_top.''.$title_margin_right.''.$title_margin_bottom.''.$title_margin_left.''.$title_min_height.''.$text_align_content.'} … … 326 344 .AIO-products-'.$i.' .star-rating span {width: 100%;'.$rating_text_color.'} 327 345 328 .AIO-products-'.$i.' .add_to_cart_button {display: block; '.$show_cart_button.''.$text_align_content.''.$font_family_button.''.$button_color_bg.''.$button_font_color.''.$button_padding_top.''.$button_padding_right.''.$button_padding_bottom.''.$button_padding_left.''.$button_margin_top.''.$button_margin_right.''.$button_margin_bottom.''.$button_margin_left.''.$font_size_button.''.$button_border_top_right_radius.''.$button_border_bottom_right_radius.''.$button_border_bottom_left_radius.''.$button_border_top_left_radius.'} 329 .AIO-products-'.$i.' .show_details_button {display: block; '.$show_details_button.''.$text_align_content.''.$font_family_button.''.$button_color_bg.''.$button_font_color.''.$button_padding_top.''.$button_padding_right.''.$button_padding_bottom.''.$button_padding_left.''.$button_margin_top.''.$button_margin_right.''.$button_margin_bottom.''.$button_margin_left.''.$font_size_button.''.$button_border_top_right_radius.''.$button_border_bottom_right_radius.''.$button_border_bottom_left_radius.''.$button_border_top_left_radius.'} 330 .AIO-products-'.$i.' .add_to_cart_button:hover {'.$button_color_bg_hover.''.$button_font_color.'} 331 .AIO-products-'.$i.' .show_details_button:hover {'.$button_color_bg.''.$button_font_color.'} 346 .AIO-products-'.$i.' .adv-button a, .AIO-products-'.$i.' a.adv-button {display: block; '.$show_cart_button.''.$text_align_content.''.$font_family_button.''.$button_color_bg.''.$button_font_color.''.$button_padding_top.''.$button_padding_right.''.$button_padding_bottom.''.$button_padding_left.''.$button_margin_top.''.$button_margin_right.''.$button_margin_bottom.''.$button_margin_left.''.$font_size_button.''.$button_border_top_right_radius.''.$button_border_bottom_right_radius.''.$button_border_bottom_left_radius.''.$button_border_top_left_radius.'} 347 .AIO-products-'.$i.' .adv-button a:hover, .AIO-products-'.$i.' a.adv-button:hover {'.$button_color_bg_hover.''.$button_font_color.'} 348 .AIO-products-'.$i.' .fusion-product-content {padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; } 332 349 </style>'; 333 350 351 352 353 354 if(is_archive()){ 355 $arch_prod_cat = get_term_by( 'slug', get_query_var('term'), get_query_var('taxonomy') ); 356 $atts['category'] = $arch_prod_cat->slug; 357 358 $output .= do_shortcode('[products 359 limit = "'.$atts['limit'].'" 360 columns = "'.$atts['columns'].'" 361 paginate = "'.$atts['paginate'].'" 362 orderby = "'.$atts['orderby'].'" 363 category = "'.$atts['category'].'" 364 order = "'.$atts['order'].'" 365 class = "AIO-products-'.$i.' AIO-'.$atts['layout'].'-layout '.$atts['class'].' AIO-products-archive-page" 366 on_sale = "'.$atts['on-sale'].'" 367 best_selling = "'.$atts['best-selling'].'" 368 top_rated = "'.$atts['top_rated'].'" 369 ]'); 370 return $output; 371 } 372 else{ 373 $output .= do_shortcode('[products 374 limit = "'.$atts['limit'].'" 375 columns = "'.$atts['columns'].'" 376 paginate = "'.$atts['paginate'].'" 377 orderby = "'.$atts['orderby'].'" 378 ids= "'.$atts['ids'].'" 379 skus = "" 380 category = "'.$atts['category'].'" 381 tag = "'.$atts['tag'].'" 382 order = "'.$atts['order'].'" 383 class = "AIO-products-'.$i.' AIO-'.$atts['layout'].'-layout '.$atts['class'].'" 384 on_sale = "'.$atts['on-sale'].'" 385 best_selling = "'.$atts['best-selling'].'" 386 top_rated = "'.$atts['top_rated'].'" 387 ]'); 388 return $output; 389 } 390 391 } 392 add_shortcode ('adv_products_template','adv_query_woo_products'); 393 add_shortcode ('adv_products_template_archive','adv_query_woo_products'); 394 395 396 397 } 398 399 334 400 //LAYOUT OPTION----------------------------------------------------------------------------------------------------------------- 335 401 //GRID CLASSIC----------------------------------------------------------------------------------------------------------------- 336 function adv_get_layout_grid_classic_terms(){337 global $layout;338 339 if($layout=='grid-classic'){340 $terms = get_the_terms( get_the_ID(), 'product_cat' ); 341 342 echo '<div class="AIO-product-terms">'; 343 foreach ($terms as $term){344 $terms_number = count($terms);345 echo '<a href="'.get_term_link($term).'" class="AIO-product-terms-link">'.$term->name.'</a>';346 if($terms>1){347 echo '<span class="AIO-product-terms-separator"> | </span>';348 }349 }350 echo '</div>';402 function adv_get_layout_grid_classic_terms(){ 403 global $layout; 404 global $product; 405 global $hide_star_rating; 406 407 if($layout=='grid-classic'){ 408 409 $terms = get_the_terms( get_the_ID(), 'product_cat' ); 410 411 echo '<div class="AIO-product-terms">'; 412 foreach ($terms as $term){ 413 $terms_number = count($terms); 414 echo '<a href="'.get_term_link($term).'" class="AIO-product-terms-link">'.$term->name.'</a>'; 415 if($terms>1){ 416 echo '<span class="AIO-product-terms-separator"> | </span>'; 351 417 } 352 418 } 353 add_action ('woocommerce_after_shop_loop_item_title', 'adv_get_layout_grid_classic_terms'); 354 //GRID MODERN----------------------------------------------------------------------------------------------------------------- 355 function adv_get_layout_grid_modern_terms(){ 356 global $layout; 357 358 if($layout=='grid-modern'){ 359 $terms = get_the_terms( get_the_ID(), 'product_cat' ); 360 361 echo '<div class="AIO-product-terms">'; 362 foreach ($terms as $term){ 363 $terms_number = count($terms); 364 echo '<a href="'.get_term_link($term).'" class="AIO-product-terms-link">'.$term->name.'</a>'; 365 if($terms>1){ 366 echo '<span class="AIO-product-terms-separator"> | </span>'; 367 } 368 } 369 echo'</div>'; 419 echo'</div>'; 420 421 //GET AVERAGE 422 if($hide_star_rating=='no'){ 423 if($average = $product->get_average_rating()){ 424 echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average).'"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'woocommerce' ).'</span></div>'; 370 425 } 371 426 } 372 add_action ('woocommerce_before_shop_loop_item', 'adv_get_layout_grid_modern_terms'); 427 } 428 } 429 add_action ('woocommerce_after_shop_loop_item_title', 'adv_get_layout_grid_classic_terms'); 430 //GRID MODERN----------------------------------------------------------------------------------------------------------------- 431 function adv_get_layout_grid_modern_terms(){ 432 global $layout; 433 global $product; 434 global $hide_star_rating; 435 436 if($layout=='grid-modern'){ 437 $terms = get_the_terms( get_the_ID(), 'product_cat' ); 373 438 374 function adv_get_layout_grid_modern_cart(){ 375 global $layout; 376 global $i; 377 global $show_details_button; 378 global $show_cart_button; 379 380 echo '<style> 381 .AIO-products-'.$i.' span.price {width: max-content; text-align: center;} 382 .AIO-products-'.$i.' .product-details-container .fusion-price-rating .price {order: unset;} 383 </style>'; 384 385 if($layout=='grid-modern'){ 386 if($show_cart_button){ 387 echo '<div class="adv-add-to-cart-grid-modern">'; 388 woocommerce_template_loop_add_to_cart(); 389 echo '</div>'; 390 } 391 392 if($show_details_button=='yes'){ 393 echo '<div class="adv-details-grid-modern">'; 394 echo '<a href="'.get_permalink().'" class="show_details_button"><i class="fas fa-bars"></i></a>'; 395 echo '</div>'; 396 } 439 echo '<div class="AIO-product-terms">'; 440 foreach ($terms as $term){ 441 $terms_number = count($terms); 442 echo '<a href="'.get_term_link($term).'" class="AIO-product-terms-link">'.$term->name.'</a>'; 443 if($terms>1){ 444 echo '<span class="AIO-product-terms-separator"> | </span>'; 397 445 } 398 446 } 399 add_action ('woocommerce_after_shop_loop_item_title', 'adv_get_layout_grid_modern_cart'); 400 401 $output .= do_shortcode('[products 402 limit = "'.$atts['numberposts'].'" 403 columns = "'.$atts['columns'].'" 404 paginate = "'.$atts['paginate'].'" 405 orderby = "'.$atts['orderby'].'" 406 skus = "" 407 category = "'.$atts['category'].'" 408 tag = "'.$atts['tag'].'" 409 order = "'.$atts['order'].'" 410 class = "AIO-products-'.$i.' AIO-'.$atts['layout'].'-layout '.$atts['class'].'" 411 on_sale = "'.$atts['on-sale'].'" 412 best_selling = "'.$atts['best-selling'].'" 413 top_rated = "'.$atts['top_rated'].'" 414 ]'); 415 416 return $output; 417 447 echo'</div>'; 448 449 echo '<h3 class="product-title fusion-responsive-typography-calculated"> 450 <a href="'.get_permalink().'">'.get_the_title().'</a> 451 </h3>'; 452 453 //GET AVERAGE 454 if($hide_star_rating=='no'){ 455 if($average = $product->get_average_rating()){ 456 echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average).'"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'woocommerce' ).'</span></div>'; 457 } 458 } 459 } 418 460 } 419 add_shortcode ('adv_products_template','adv_query_woo_products'); 420 421 422 423 } 424 425 461 add_action ('woocommerce_before_shop_loop_item', 'adv_get_layout_grid_modern_terms'); 462 463 function adv_get_layout_grid_modern_cart(){ 464 global $layout; 465 global $i; 466 global $show_details_button; 467 global $show_cart_button; 468 469 echo '<style> 470 .AIO-products-'.$i.' span.price {width: max-content; text-align: center;} 471 .AIO-products-'.$i.' .product-details-container .fusion-price-rating .price {order: 0;} 472 .AIO-products-'.$i.' .adv-add-to-cart-grid-modern {order: 10;} 473 .AIO-products-'.$i.' .adv_woo_grid_modern_after_cart_loop {order: 20;} 474 </style>'; 475 476 if($layout=='grid-modern'){ 477 478 do_action ('adv_woo_grid_modern_before_cart_loop'); 479 if($show_cart_button){ 480 echo '<div class="adv-button adv-add-to-cart-grid-modern">'; 481 woocommerce_template_loop_add_to_cart(); 482 echo '</div>'; 483 } 484 485 if($show_details_button=='yes'){ 486 echo '<div class="adv-details-grid-modern">'; 487 echo '<a href="'.get_permalink().'" class="adv-button show_details_button"><i class="fas fa-bars"></i></a>'; 488 echo '</div>'; 489 } 490 echo '<div class="adv_woo_grid_modern_after_cart_loop">'; 491 do_action ('adv_woo_grid_modern_after_cart_loop'); 492 echo '</div>'; 493 494 echo '<div class="adv_woo_grid_modern_after_cart_loop2">'; 495 do_action ('adv_woo_grid_modern_after_cart_loop2'); 496 echo '</div>'; 497 } 498 } 499 add_action ('woocommerce_after_shop_loop_item_title', 'adv_get_layout_grid_modern_cart'); 500 //SPECIAL OFFER----------------------------------------------------------------------------------------------------------------- 501 function adv_get_layout_special_offer_terms(){ 502 global $layout; 503 504 if($layout=='special-offer'){ 505 $terms = get_the_terms( get_the_ID(), 'product_cat' ); 506 507 echo '<div class="AIO-product-terms">'; 508 foreach ($terms as $term){ 509 $terms_number = count($terms); 510 echo '<a href="'.get_term_link($term).'" class="AIO-product-terms-link">'.$term->name.'</a>'; 511 if($terms>1){ 512 echo '<span class="AIO-product-terms-separator"> | </span>'; 513 } 514 } 515 echo'</div>'; 516 } 517 } 518 add_action ('woocommerce_after_shop_loop_item_title', 'adv_get_layout_special_offer_terms'); 519 520 521 function adv_get_layout_special_offer_cart(){ 522 global $layout; 523 global $i; 524 global $show_details_button; 525 global $show_cart_button; 526 global $product; 527 global $hide_star_rating; 528 529 if($layout=='special-offer'){ 530 echo '<style> 531 .AIO-products-'.$i.' span.price {width: max-content; text-align: center;} 532 .AIO-products-'.$i.' .product-details-container .fusion-price-rating .price {order: 0;} 533 .AIO-products-'.$i.' .adv-add-to-cart-special-offer {order: 10;} 534 .AIO-products-'.$i.' .product-details-container .fusion-price-rating .star-rating {order: 10;} 535 .AIO-products-'.$i.' .adv_woo_special_offer_after_cart_loop {order: 20;} 536 .AIO-products-'.$i.' .adv_woo_special_offer_count_down .fusion-countdown-counter-wrapper {font-size: 15px;} 537 .AIO-products-'.$i.' .adv_woo_special_offer_count_down .fusion-dash-title {font-size: 10px;} 538 .AIO-products-'.$i.' .adv_woo_special_offer_count_down .fusion-countdown {padding: 12px 0px;} 539 .AIO-products-'.$i.' .adv_woo_special_offer_count_down {width: 100%;} 540 .AIO-products-'.$i.' .adv_woo_special_offer_count_down .fusion-dash {padding: 5px 0px;} 541 .AIO-products-'.$i.' .adv_woo_special_offer_count_down .fusion-dash-wrapper {padding: 2px;} 542 </style>'; 543 } 544 545 if($layout=='special-offer'){ 546 do_action ('adv_woo_special_offer_before_cart_loop'); 547 if($show_cart_button){ 548 echo '<div class="adv-button adv-add-to-cart-special-offer">'; 549 woocommerce_template_loop_add_to_cart(); 550 echo '</div>'; 551 } 552 553 if($show_details_button=='yes'){ 554 echo '<div class="adv-details-grid-modern">'; 555 echo '<a href="'.get_permalink().'" class="show_details_button"><i class="fas fa-bars"></i></a>'; 556 echo '</div>'; 557 } 558 echo '<div class="adv_woo_special_offer_after_cart_loop">'; 559 do_action ('adv_woo_grid_modern_after_cart_loop'); 560 echo '</div>'; 561 562 //GET AVERAGE 563 if($hide_star_rating=='no'){ 564 if($average = $product->get_average_rating()){ 565 echo '<div class="star-rating" title="'.sprintf(__( 'Rated %s out of 5', 'woocommerce' ), $average).'"><span style="width:'.( ( $average / 5 ) * 100 ) . '%"><strong itemprop="ratingValue" class="rating">'.$average.'</strong> '.__( 'out of 5', 'woocommerce' ).'</span></div>'; 566 } 567 } 568 echo '<div class="adv_woo_special_offer_count_down">'; 569 do_action ('adv_woo_special_offer_count_down'); 570 echo '</div>'; 571 } 572 } 573 add_action ('woocommerce_after_shop_loop_item_title', 'adv_get_layout_special_offer_cart'); 574 575 function adv_add_countdown_sale_in_loop(){ 576 global $product; 577 578 $sales_price_to = get_post_meta( $product->id, '_sale_price_dates_to', true ); 579 $sales_price_date_to = date( "Y-m-d H:i:s", $sales_price_to ); 580 581 $countdouwn = '[fusion_countdown countdown_end="'.$sales_price_date_to.'" timezone="" layout="stacked" show_weeks="" label_position="bottom" border_radius="" heading_text=" Offer ends in" subheading_text="" link_url="" link_text="" link_target="default" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="adv-count-down-on-sale" id="" background_color="#fed700" background_image="" background_position="" background_repeat="" counter_box_spacing="" counter_box_color="#ffffff" counter_border_size="" counter_border_color="" counter_border_radius="" counter_padding_top="" counter_padding_right="" counter_padding_bottom="" counter_padding_left="" counter_font_size="" counter_text_color="#333e48" label_font_size="" label_color="#333e48" heading_font_size="" heading_text_color="#ffffff" subheading_font_size="" subheading_text_color="#ffffff" link_text_color="" /]'; 582 echo do_shortcode($countdouwn); 583 } 584 585 add_action( 'adv_woo_special_offer_count_down', 'adv_add_countdown_sale_in_loop', 10 ); 586 587 function adv_rating(){ 588 } 589 add_action( 'woocommerce_before_shop_loop_item', 'adv_rating', 10 ); 426 590 427 591 … … 452 616 'value' => [ 453 617 'grid-classic' => esc_attr__( 'Grid Classic', 'avada_addons' ), 454 'grid-modern' => esc_attr__( 'Grid Modern', 'avada_addons' ), 618 'grid-modern' => esc_attr__( 'Grid Modern', 'avada_addons' ), 619 'special-offer' => esc_attr__( 'Special Offer', 'avada_addons' ), 455 620 ], 456 621 'default' => 'grid-classic', … … 461 626 'description' => esc_attr__( 'The number of products to display. Defaults to and -1 (display all) when listing products, and -1 (display all) for categories.', 'avada_addons' ), 462 627 'param_name' => 'limit', 463 'value' => ' -1',628 'value' => '4', 464 629 'min' => '-1', 465 'max' => ' 1000',630 'max' => '200', 466 631 'step' => '1', 467 632 ], … … 471 636 'description' => esc_attr__( 'The number of columns to display. Defaults to 4', 'avada_addons' ), 472 637 'param_name' => 'columns', 473 'value' => ' -1',474 'min' => ' -1',475 'max' => ' 1000',638 'value' => '4', 639 'min' => '1', 640 'max' => '6', 476 641 'step' => '1', 477 642 ], … … 518 683 [ 519 684 'type' => 'textfield', 685 'heading' => esc_attr__( 'Ids', 'avada_addons' ), 686 'description' => esc_attr__( 'Will display products based on a comma-separated list of Post IDs.', 'avada_addons' ), 687 'param_name' => 'ids', 688 'value' => '', 689 ], 690 [ 691 'type' => 'textfield', 520 692 'heading' => esc_attr__( 'Tag', 'avada_addons' ), 521 693 'description' => esc_attr__( 'Comma-separated list of tag slugs.', 'avada_addons' ), 522 'param_name' => ' category',694 'param_name' => 'tag', 523 695 'value' => '', 524 696 ], … … 653 825 ], 654 826 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 655 ], 827 ], 828 [ 829 'type' => 'dimension', 830 'heading' => esc_attr__( 'Border Size', 'avada_addons' ), 831 'description' => esc_attr__( 'Controls the border size of the columns element.', 'avada_addons' ), 832 'param_name' => 'col-border', 833 'value' => [ 834 'col-border-top' => '', 835 'col-border-right' => '', 836 'col-border-left' => '', 837 'col-border-bottom' => '', 838 ], 839 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 840 ], 841 [ 842 'type' => 'colorpicker', 843 'heading' => esc_attr__( 'Border Color', 'avada_addons' ), 844 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 845 'param_name' => 'col-border-color', 846 'value' => '', 847 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 848 ], 656 849 [ 657 850 'type' => 'dimension', … … 1484 1677 add_action( 'fusion_builder_before_init', 'adv_products_template_builder' ); 1485 1678 } 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 //----------------------------------------------------------------------------->>>START FUSION BUILDER INTEGRATION 1754 if (!function_exists('adv_products_template_builder_archive')){ 1755 function adv_products_template_builder_archive() { 1756 1757 global $term_archive_product; 1758 1759 fusion_builder_map( 1760 fusion_builder_frontend_data( 1761 'FusionProductsTemplateArchive', 1762 [ 1763 'name' => esc_attr__( 'WooCommerce Archive Product AIO', 'avada_addons' ), 1764 'shortcode' => 'adv_products_template_archive', 1765 'icon' => 'fusiona-tag', 1766 'component' => true, 1767 'templates' => [ 'content' ], 1768 'params' => [ 1769 // GENERAL SECTION --------------------------------------------------------------------------------------------------------------------------------- 1770 [ 1771 'type' => 'select', 1772 'heading' => esc_attr__( 'Layout', 'avada_addons' ), 1773 'description' => esc_attr__( 'Select the layout you would to use', 'avada_addons' ), 1774 'param_name' => 'layout', 1775 'value' => [ 1776 'grid-classic' => esc_attr__( 'Grid Classic', 'avada_addons' ), 1777 'grid-modern' => esc_attr__( 'Grid Modern', 'avada_addons' ), 1778 'special-offer' => esc_attr__( 'Special Offer', 'avada_addons' ), 1779 ], 1780 'default' => 'grid-classic', 1781 ], 1782 [ 1783 'type' => 'range', 1784 'heading' => esc_attr__( 'Number of Products to display', 'avada_addons' ), 1785 'description' => esc_attr__( 'The number of products to display. Defaults to and -1 (display all) when listing products, and -1 (display all) for categories.', 'avada_addons' ), 1786 'param_name' => 'limit', 1787 'value' => '4', 1788 'min' => '-1', 1789 'max' => '200', 1790 'step' => '1', 1791 ], 1792 [ 1793 'type' => 'range', 1794 'heading' => esc_attr__( 'Columns', 'avada_addons' ), 1795 'description' => esc_attr__( 'The number of columns to display. Defaults to 4', 'avada_addons' ), 1796 'param_name' => 'columns', 1797 'value' => '4', 1798 'min' => '1', 1799 'max' => '6', 1800 'step' => '1', 1801 ], 1802 [ 1803 'type' => 'textfield', 1804 'heading' => esc_attr__( 'Space Between Columns', 'avada_addons' ), 1805 'description' => esc_attr__( 'Space between each columns. ex 10px.', 'avada_addons' ), 1806 'param_name' => 'padding-bewteen-columns', 1807 'value' => '', 1808 ], 1809 [ 1810 'type' => 'radio_button_set', 1811 'heading' => esc_attr__( 'Pagination', 'avada_addons' ), 1812 'description' => esc_attr__( 'Toggles pagination on. Use in conjunction with Number of Products to display', 'avada_addons' ), 1813 'param_name' => 'paginate', 1814 'default' => 'false', 1815 'value' => [ 1816 'true' => esc_attr__( 'Yes', 'avada_addons' ), 1817 'false' => esc_attr__( 'No', 'avada_addons' ), 1818 ], 1819 ], 1820 [ 1821 'type' => 'multiple_select', 1822 'heading' => esc_attr__( 'Order By', 'avada_addons' ), 1823 'description' => esc_attr__( 'Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Defaults is Title', 'avada_addons' ), 1824 'param_name' => 'orderby', 1825 'value' => [ 1826 'date' => esc_attr__( 'Date', 'avada_addons' ), 1827 'id' => esc_attr__( 'Id', 'avada_addons' ), 1828 'menu_order' => esc_attr__( 'Menu Order', 'avada_addons' ), 1829 'popularity' => esc_attr__( 'Popularity', 'avada_addons' ), 1830 'rand' => esc_attr__( 'Random', 'avada_addons' ), 1831 'rating' => esc_attr__( 'Rating', 'avada_addons' ), 1832 'title' => esc_attr__( 'Title', 'avada_addons' ), 1833 ], 1834 ], 1835 [ 1836 'type' => 'radio_button_set', 1837 'heading' => esc_attr__( 'Order', 'avada_addons' ), 1838 'description' => esc_attr__( 'States whether the product order is ascending (ASC) or descending (DESC), using the method set in orderby. Defaults to ASC.', 'avada_addons' ), 1839 'param_name' => 'order', 1840 'default' => 'DESC', 1841 'value' => [ 1842 'DESC' => esc_attr__( 'Descending', 'avada_addons' ), 1843 'ASC' => esc_attr__( 'Ascending', 'avada_addons' ), 1844 ], 1845 'callback' => [ 1846 'function' => 'fusion_ajax', 1847 'action' => 'get_fusion_blog', 1848 'ajax' => true, 1849 ], 1850 ], 1851 [ 1852 'type' => 'textfield', 1853 'heading' => esc_attr__( 'CSS Class', 'avada_addons' ), 1854 'description' => esc_attr__( 'Adds an HTML wrapper class so you can modify the specific output with custom CSS.', 'avada_addons' ), 1855 'param_name' => 'class', 1856 'value' => '', 1857 ], 1858 [ 1859 'type' => 'select', 1860 'heading' => esc_attr__( 'Overflow', 'avada_addons' ), 1861 'description' => esc_attr__( 'Select the overflow attribute for the columns', 'avada_addons' ), 1862 'param_name' => 'col-overflow', 1863 'default' => 'visible', 1864 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1865 'value' => [ 1866 'visible' => esc_attr__( 'Visible', 'avada_addons' ), 1867 'hidden' => esc_attr__( 'Hidden', 'avada_addons' ), 1868 'scroll' => esc_attr__( 'Scroll', 'avada_addons' ), 1869 'auto' => esc_attr__( 'Auto', 'avada_addons' ), 1870 'initial' => esc_attr__( 'Initial', 'avada_addons' ), 1871 'inherit' => esc_attr__( 'Inherit', 'avada_addons' ), 1872 1873 ], 1874 'callback' => [ 1875 'function' => 'fusion_ajax', 1876 'action' => 'get_fusion_blog', 1877 'ajax' => true, 1878 ], 1879 ], 1880 [ 1881 'type' => 'radio_button_set', 1882 'heading' => esc_attr__( 'On sale', 'avada_addons' ), 1883 'description' => esc_attr__( 'Retrieve on sale products. Not to be used in conjunction with best sellingor top rated.', 'avada_addons' ), 1884 'param_name' => 'on-sale', 1885 'default' => 'false', 1886 'value' => [ 1887 'true' => esc_attr__( 'Yes', 'avada_addons' ), 1888 'false' => esc_attr__( 'No', 'avada_addons' ), 1889 ], 1890 ], 1891 [ 1892 'type' => 'radio_button_set', 1893 'heading' => esc_attr__( 'Best Selling', 'avada_addons' ), 1894 'description' => esc_attr__( 'Retrieve the best selling products. Not to be used in conjunction with on sale or top rated.', 'avada_addons' ), 1895 'param_name' => 'best-selling', 1896 'default' => 'false', 1897 'value' => [ 1898 'true' => esc_attr__( 'Yes', 'avada_addons' ), 1899 'false' => esc_attr__( 'No', 'avada_addons' ), 1900 ], 1901 ], 1902 [ 1903 'type' => 'radio_button_set', 1904 'heading' => esc_attr__( 'Top Rated', 'avada_addons' ), 1905 'description' => esc_attr__( 'Retrieve top-rated products. Not to be used in conjunction with on sale or best selling.', 'avada_addons' ), 1906 'param_name' => 'top-rated', 1907 'default' => 'false', 1908 'value' => [ 1909 'true' => esc_attr__( 'Yes', 'avada_addons' ), 1910 'false' => esc_attr__( 'No', 'avada_addons' ), 1911 ], 1912 ], 1913 // GLOBAL SETTING SECTION -------------------------------------------------------------------------------------------------------------------------- 1914 [ 1915 'type' => 'colorpicker', 1916 'heading' => esc_attr__( 'Background Color', 'avada_addons' ), 1917 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 1918 'param_name' => 'background-color', 1919 'value' => '', 1920 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1921 ], 1922 [ 1923 'type' => 'select', 1924 'heading' => esc_attr__( 'Text Align', 'avada_addons' ), 1925 'description' => esc_attr__( 'Controls the alignment of the content.', 'avada_addons' ), 1926 'param_name' => 'content-text-align', 1927 'default' => 'center', 1928 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1929 'value' => [ 1930 'center' => esc_attr__( 'Center', 'avada_addons' ), 1931 'left' => esc_attr__( 'Left', 'avada_addons' ), 1932 'right' => esc_attr__( 'Right', 'avada_addons' ), 1933 ], 1934 'callback' => [ 1935 'function' => 'fusion_ajax', 1936 'action' => 'get_fusion_blog', 1937 'ajax' => true, 1938 ], 1939 ], 1940 [ 1941 'type' => 'dimension', 1942 'heading' => esc_attr__( 'Padding', 'avada_addons' ), 1943 'description' => esc_attr__( 'Controls the padding size of the columns element.', 'avada_addons' ), 1944 'param_name' => 'padding_columns', 1945 'value' => [ 1946 'padding_top' => '', 1947 'padding_right' => '', 1948 'padding_bottom' => '', 1949 'padding_left' => '', 1950 ], 1951 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1952 ], 1953 [ 1954 'type' => 'dimension', 1955 'heading' => esc_attr__( 'Margin', 'avada_addons' ), 1956 'description' => esc_attr__( 'Controls the margin size of the columns element.', 'avada_addons' ), 1957 'param_name' => 'margin_columns', 1958 'value' => [ 1959 'col-margin-top' => '', 1960 'col-margin-right' => '', 1961 'col-margin-bottom' => '', 1962 'col-margin-left' => '', 1963 ], 1964 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1965 ], 1966 [ 1967 'type' => 'dimension', 1968 'heading' => esc_attr__( 'Border Size', 'avada_addons' ), 1969 'description' => esc_attr__( 'Controls the border size of the columns element.', 'avada_addons' ), 1970 'param_name' => 'col-border', 1971 'value' => [ 1972 'col-border-top' => '', 1973 'col-border-right' => '', 1974 'col-border-left' => '', 1975 'col-border-bottom' => '', 1976 ], 1977 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1978 ], 1979 [ 1980 'type' => 'colorpicker', 1981 'heading' => esc_attr__( 'Border Color', 'avada_addons' ), 1982 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 1983 'param_name' => 'col-border-color', 1984 'value' => '', 1985 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1986 ], 1987 [ 1988 'type' => 'dimension', 1989 'heading' => esc_attr__( 'Border Radius', 'avada_addons' ), 1990 'description' => esc_attr__( 'Controls the margin size of the columns element.', 'avada_addons' ), 1991 'param_name' => 'col-border-radius', 1992 'value' => [ 1993 'col-border-top-right-radius' => '', 1994 'col-border-bottom-right-radius' => '', 1995 'col-border-bottom-left-radius' => '', 1996 'col-border-top-left-radius' => '', 1997 ], 1998 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 1999 ], 2000 [ 2001 'type' => 'select', 2002 'heading' => esc_attr__( 'Overflow', 'avada_addons' ), 2003 'description' => esc_attr__( 'Select the overflow attribute for the columns', 'avada_addons' ), 2004 'param_name' => 'col-overflow', 2005 'default' => 'visible', 2006 'group' => esc_attr__( 'Global Design', 'avada_addons' ), 2007 'value' => [ 2008 'visible' => esc_attr__( 'Visible', 'avada_addons' ), 2009 'hidden' => esc_attr__( 'Hidden', 'avada_addons' ), 2010 'scroll' => esc_attr__( 'Scroll', 'avada_addons' ), 2011 'auto' => esc_attr__( 'Auto', 'avada_addons' ), 2012 'initial' => esc_attr__( 'Initial', 'avada_addons' ), 2013 'inherit' => esc_attr__( 'Inherit', 'avada_addons' ), 2014 2015 ], 2016 'callback' => [ 2017 'function' => 'fusion_ajax', 2018 'action' => 'get_fusion_blog', 2019 'ajax' => true, 2020 ], 2021 ], 2022 // TITLE SECTION ------------------------------------------------------------------------------------------------------------------------------------ 2023 [ 2024 'type' => 'radio_button_set', 2025 'heading' => esc_attr__( 'Show Title', 'avada_addons' ), 2026 'description' => esc_attr__( 'Select Yes if you would to show the title.', 'avada_addons' ), 2027 'param_name' => 'show-title', 2028 'default' => 'yes', 2029 'value' => [ 2030 'yes' => esc_attr__( 'Yes', 'avada_addons' ), 2031 'no' => esc_attr__( 'No', 'avada_addons' ), 2032 ], 2033 'group' => esc_attr__( 'Title', 'avada_addons' ), 2034 ], 2035 [ 2036 'type' => 'font_family', 2037 'remove_from_atts' => true, 2038 'heading' => esc_attr__( 'Font Family', 'fusion-builder' ), 2039 'description' => sprintf( esc_html__( 'Controls the font family of the title text. Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ), 2040 'param_name' => 'title', 2041 'group' => esc_attr__( 'Title', 'avada_addons' ), 2042 'default' => [ 2043 'font-family' => '', 2044 'font-variant' => '400', 2045 ], 2046 ], 2047 [ 2048 'type' => 'colorpicker', 2049 'heading' => esc_attr__( 'Background Color', 'avada_addons' ), 2050 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2051 'param_name' => 'title-background', 2052 'value' => '', 2053 'group' => esc_attr__( 'Title', 'avada_addons' ), 2054 'dependency' => [ 2055 [ 2056 'element' => 'show-title', 2057 'value' => 'yes', 2058 'operator' => '==', 2059 ], 2060 ], 2061 ], 2062 [ 2063 'type' => 'textfield', 2064 'heading' => esc_attr__( 'Font Size', 'avada_addons' ), 2065 'description' => esc_attr__( 'Controls the font size of the title. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2066 'param_name' => 'title-font-size', 2067 'value' => '', 2068 'group' => esc_attr__( 'Title', 'avada_addons' ), 2069 'dependency' => [ 2070 [ 2071 'element' => 'show-title', 2072 'value' => 'yes', 2073 'operator' => '==', 2074 ], 2075 ], 2076 ], 2077 [ 2078 'type' => 'textfield', 2079 'heading' => esc_attr__( 'Line Height', 'avada_addons' ), 2080 'description' => esc_attr__( 'Controls the line height of the title. Enter value including any valid CSS unit, ex: 28px.', 'avada_addons' ), 2081 'param_name' => 'title-line-height', 2082 'value' => '', 2083 'group' => esc_attr__( 'Title', 'avada_addons' ), 2084 'dependency' => [ 2085 [ 2086 'element' => 'show-title', 2087 'value' => 'yes', 2088 'operator' => '==', 2089 ], 2090 ], 2091 ], 2092 [ 2093 'type' => 'colorpicker', 2094 'heading' => esc_attr__( 'Font Color', 'avada_addons' ), 2095 'description' => esc_attr__( 'Controls the color of the title, ex: #000.', 'avada_addons' ), 2096 'param_name' => 'title-color', 2097 'value' => '', 2098 'group' => esc_attr__( 'Title', 'avada_addons' ), 2099 'dependency' => [ 2100 [ 2101 'element' => 'show-title', 2102 'value' => 'yes', 2103 'operator' => '==', 2104 ], 2105 ], 2106 ], 2107 [ 2108 'type' => 'colorpicker', 2109 'heading' => esc_attr__( 'Hover Font Color', 'avada_addons' ), 2110 'description' => esc_attr__( 'Controls the color of the title on hover, ex: #000.', 'avada_addons' ), 2111 'param_name' => 'title-color-hover', 2112 'value' => '', 2113 'group' => esc_attr__( 'Title', 'avada_addons' ), 2114 'dependency' => [ 2115 [ 2116 'element' => 'show-title', 2117 'value' => 'yes', 2118 'operator' => '==', 2119 ], 2120 ], 2121 ], 2122 [ 2123 'type' => 'dimension', 2124 'heading' => esc_attr__( 'Padding', 'avada_addons' ), 2125 'description' => esc_attr__( 'Controls the padding size of the title.', 'avada_addons' ), 2126 'param_name' => 'title-padding', 2127 'value' => [ 2128 'title-padding-top' => '', 2129 'title-padding-right' => '', 2130 'title-padding-bottom' => '', 2131 'title-padding-left' => '', 2132 ], 2133 'group' => esc_attr__( 'Title', 'avada_addons' ), 2134 'dependency' => [ 2135 [ 2136 'element' => 'show-title', 2137 'value' => 'yes', 2138 'operator' => '==', 2139 ], 2140 ], 2141 ], 2142 [ 2143 'type' => 'dimension', 2144 'heading' => esc_attr__( 'Margin', 'avada_addons' ), 2145 'description' => esc_attr__( 'Controls the margin size of the title.', 'avada_addons' ), 2146 'param_name' => 'title-margin', 2147 'value' => [ 2148 'title-margin-top' => '', 2149 'title-margin-right' => '', 2150 'title-margin-bottom' => '', 2151 'title-margin-left' => '', 2152 ], 2153 'group' => esc_attr__( 'Title', 'avada_addons' ), 2154 'dependency' => [ 2155 [ 2156 'element' => 'show-title', 2157 'value' => 'yes', 2158 'operator' => '==', 2159 ], 2160 ], 2161 ], 2162 [ 2163 'type' => 'textfield', 2164 'heading' => esc_attr__( 'Min Height', 'avada_addons' ), 2165 'description' => esc_attr__( 'Controls the minimum height of the title. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2166 'param_name' => 'title-min-height', 2167 'value' => '', 2168 'group' => esc_attr__( 'Title', 'avada_addons' ), 2169 'dependency' => [ 2170 [ 2171 'element' => 'show-title', 2172 'value' => 'yes', 2173 'operator' => '==', 2174 ], 2175 ], 2176 ], 2177 // TERMS SECTION -------------------------------------------------------------------------------------------------------------------------- 2178 [ 2179 'type' => 'radio_button_set', 2180 'heading' => esc_attr__( 'Show Terms', 'avada_addons' ), 2181 'description' => esc_attr__( 'Select Yes if you would to show the terms.', 'avada_addons' ), 2182 'param_name' => 'show-terms', 2183 'default' => 'yes', 2184 'value' => [ 2185 'yes' => esc_attr__( 'Yes', 'avada_addons' ), 2186 'no' => esc_attr__( 'No', 'avada_addons' ), 2187 ], 2188 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2189 ], 2190 [ 2191 'type' => 'font_family', 2192 'remove_from_atts' => true, 2193 'heading' => esc_attr__( 'Font Family', 'fusion-builder' ), 2194 'description' => sprintf( esc_html__( 'Controls the font family of the terms text. Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ), 2195 'param_name' => 'terms', 2196 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2197 'default' => [ 2198 'font-family' => '', 2199 'font-variant' => '400', 2200 ], 2201 ], 2202 [ 2203 'type' => 'colorpicker', 2204 'heading' => esc_attr__( 'Background Color', 'avada_addons' ), 2205 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2206 'param_name' => 'terms-background', 2207 'value' => '', 2208 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2209 'dependency' => [ 2210 [ 2211 'element' => 'show-terms', 2212 'value' => 'yes', 2213 'operator' => '==', 2214 ], 2215 ], 2216 ], 2217 [ 2218 'type' => 'textfield', 2219 'heading' => esc_attr__( 'Font Size', 'avada_addons' ), 2220 'description' => esc_attr__( 'Controls the font size of the terms. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2221 'param_name' => 'terms-font-size', 2222 'value' => '', 2223 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2224 'dependency' => [ 2225 [ 2226 'element' => 'show-terms', 2227 'value' => 'yes', 2228 'operator' => '==', 2229 ], 2230 ], 2231 ], 2232 [ 2233 'type' => 'textfield', 2234 'heading' => esc_attr__( 'Line Height', 'avada_addons' ), 2235 'description' => esc_attr__( 'Controls the line height of the terms. Enter value including any valid CSS unit, ex: 28px.', 'avada_addons' ), 2236 'param_name' => 'terms-line-height', 2237 'value' => '', 2238 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2239 'dependency' => [ 2240 [ 2241 'element' => 'show-terms', 2242 'value' => 'yes', 2243 'operator' => '==', 2244 ], 2245 ], 2246 ], 2247 [ 2248 'type' => 'colorpicker', 2249 'heading' => esc_attr__( 'Font Color', 'avada_addons' ), 2250 'description' => esc_attr__( 'Controls the color of the terms, ex: #000.', 'avada_addons' ), 2251 'param_name' => 'terms-color', 2252 'value' => '', 2253 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2254 'dependency' => [ 2255 [ 2256 'element' => 'show-terms', 2257 'value' => 'yes', 2258 'operator' => '==', 2259 ], 2260 ], 2261 ], 2262 [ 2263 'type' => 'colorpicker', 2264 'heading' => esc_attr__( 'Hover Font Color', 'avada_addons' ), 2265 'description' => esc_attr__( 'Controls the color of the terms on hover, ex: #000.', 'avada_addons' ), 2266 'param_name' => 'terms-color-hover', 2267 'value' => '', 2268 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2269 'dependency' => [ 2270 [ 2271 'element' => 'show-terms', 2272 'value' => 'yes', 2273 'operator' => '==', 2274 ], 2275 ], 2276 ], 2277 [ 2278 'type' => 'dimension', 2279 'heading' => esc_attr__( 'Margin', 'avada_addons' ), 2280 'description' => esc_attr__( 'Controls the margin size of the terms.', 'avada_addons' ), 2281 'param_name' => 'terms-margin', 2282 'value' => [ 2283 'terms-margin-top' => '', 2284 'terms-margin-right' => '', 2285 'terms-margin-bottom' => '', 2286 'terms-margin-left' => '', 2287 ], 2288 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2289 'dependency' => [ 2290 [ 2291 'element' => 'show-terms', 2292 'value' => 'yes', 2293 'operator' => '==', 2294 ], 2295 ], 2296 ], 2297 [ 2298 'type' => 'dimension', 2299 'heading' => esc_attr__( 'Padding', 'avada_addons' ), 2300 'description' => esc_attr__( 'Controls the padding size of the terms.', 'avada_addons' ), 2301 'param_name' => 'terms-padding', 2302 'value' => [ 2303 'terms-padding-top' => '', 2304 'terms-padding-right' => '', 2305 'terms-padding-bottom' => '', 2306 'terms-padding-left' => '', 2307 ], 2308 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2309 'dependency' => [ 2310 [ 2311 'element' => 'show-terms', 2312 'value' => 'yes', 2313 'operator' => '==', 2314 ], 2315 ], 2316 ], 2317 [ 2318 'type' => 'textfield', 2319 'heading' => esc_attr__( 'Min Height', 'avada_addons' ), 2320 'description' => esc_attr__( 'Controls the minimum height of the terms. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2321 'param_name' => 'terms-min-height', 2322 'value' => '', 2323 'group' => esc_attr__( 'Terms', 'avada_addons' ), 2324 'dependency' => [ 2325 [ 2326 'element' => 'show-terms', 2327 'value' => 'yes', 2328 'operator' => '==', 2329 ], 2330 ], 2331 ], 2332 // RATING SECTION ---------------------------------------------------------------------------------------------------------------------------------------------------- 2333 [ 2334 'type' => 'radio_button_set', 2335 'heading' => esc_attr__( 'Hide Star Rating', 'avada_addons' ), 2336 'description' => esc_attr__( 'Select if you would to show review stars.', 'avada_addons' ), 2337 'param_name' => 'hide_star_rating', 2338 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2339 'value' => [ 2340 'yes' => esc_attr__( 'Yes', 'avada_addons' ), 2341 'no' => esc_attr__( 'No', 'avada_addons' ), 2342 ], 2343 'default' => 'no', 2344 ], 2345 [ 2346 'type' => 'colorpicker', 2347 'heading' => esc_attr__( 'Background Color', 'avada_addons' ), 2348 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2349 'param_name' => 'rating-background-color', 2350 'value' => '', 2351 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2352 'dependency' => [ 2353 [ 2354 'element' => 'hide_star_rating', 2355 'value' => 'no', 2356 'operator' => '==', 2357 ], 2358 ], 2359 ], 2360 [ 2361 'type' => 'colorpicker', 2362 'heading' => esc_attr__( 'Rating Border Stars Color', 'avada_addons' ), 2363 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2364 'param_name' => 'rating-border-color', 2365 'value' => '', 2366 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2367 'dependency' => [ 2368 [ 2369 'element' => 'hide_star_rating', 2370 'value' => 'no', 2371 'operator' => '==', 2372 ], 2373 ], 2374 ], 2375 [ 2376 'type' => 'colorpicker', 2377 'heading' => esc_attr__( 'Rating Full Stars Color', 'avada_addons' ), 2378 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2379 'param_name' => 'rating-full-color', 2380 'value' => '', 2381 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2382 'dependency' => [ 2383 [ 2384 'element' => 'hide_star_rating', 2385 'value' => 'no', 2386 'operator' => '==', 2387 ], 2388 ], 2389 ], 2390 [ 2391 'type' => 'textfield', 2392 'heading' => esc_attr__( 'Stars Size', 'avada_addons' ), 2393 'description' => esc_attr__( 'Controls the stars size. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2394 'param_name' => 'rating-star-size', 2395 'value' => '', 2396 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2397 'dependency' => [ 2398 [ 2399 'element' => 'hide_star_rating', 2400 'value' => 'no', 2401 'operator' => '==', 2402 ], 2403 ], 2404 ], 2405 [ 2406 'type' => 'colorpicker', 2407 'heading' => esc_attr__( 'Rating Text Color', 'avada_addons' ), 2408 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2409 'param_name' => 'rating-text-color', 2410 'value' => '', 2411 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2412 'dependency' => [ 2413 [ 2414 'element' => 'hide_star_rating', 2415 'value' => 'no', 2416 'operator' => '==', 2417 ], 2418 ], 2419 ], 2420 [ 2421 'type' => 'dimension', 2422 'heading' => esc_attr__( 'Margin', 'avada_addons' ), 2423 'description' => esc_attr__( 'Controls the margin size of the rating.', 'avada_addons' ), 2424 'param_name' => 'rating-margin', 2425 'value' => [ 2426 'rating-margin-top' => '', 2427 'rating-margin-right' => '', 2428 'rating-margin-bottom' => '', 2429 'rating-margin-left' => '', 2430 ], 2431 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2432 'dependency' => [ 2433 [ 2434 'element' => 'hide_star_rating', 2435 'value' => 'no', 2436 'operator' => '==', 2437 ], 2438 ], 2439 ], 2440 [ 2441 'type' => 'dimension', 2442 'heading' => esc_attr__( 'Padding', 'avada_addons' ), 2443 'description' => esc_attr__( 'Controls the padding size of the rating.', 'avada_addons' ), 2444 'param_name' => 'rating-padding', 2445 'value' => [ 2446 'rating-padding-top' => '', 2447 'rating-padding-right' => '', 2448 'rating-padding-bottom' => '', 2449 'rating-padding-left' => '', 2450 ], 2451 'group' => esc_attr__( 'Rating', 'avada_addons' ), 2452 'dependency' => [ 2453 [ 2454 'element' => 'hide_star_rating', 2455 'value' => 'no', 2456 'operator' => '==', 2457 ], 2458 ], 2459 ], 2460 // PRICE SECTION --------------------------------------------------------------------------------------------------------------------------- 2461 [ 2462 'type' => 'radio_button_set', 2463 'heading' => esc_attr__( 'Show Price', 'avada_addons' ), 2464 'description' => esc_attr__( 'Select Yes if you would to show the price.', 'avada_addons' ), 2465 'param_name' => 'show-price', 2466 'default' => 'yes', 2467 'value' => [ 2468 'yes' => esc_attr__( 'Yes', 'avada_addons' ), 2469 'no' => esc_attr__( 'No', 'avada_addons' ), 2470 ], 2471 'group' => esc_attr__( 'Price', 'avada_addons' ), 2472 ], 2473 [ 2474 'type' => 'font_family', 2475 'remove_from_atts' => true, 2476 'heading' => esc_attr__( 'Font Family', 'fusion-builder' ), 2477 'description' => sprintf( esc_html__( 'Controls the font family of the price text. Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ), 2478 'param_name' => 'price', 2479 'group' => esc_attr__( 'Price', 'avada_addons' ), 2480 'default' => [ 2481 'font-family' => '', 2482 'font-variant' => '400', 2483 ], 2484 ], 2485 [ 2486 'type' => 'colorpicker', 2487 'heading' => esc_attr__( 'Background Color', 'avada_addons' ), 2488 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2489 'param_name' => 'price-background', 2490 'value' => '', 2491 'group' => esc_attr__( 'Price', 'avada_addons' ), 2492 'dependency' => [ 2493 [ 2494 'element' => 'show-price', 2495 'value' => 'yes', 2496 'operator' => '==', 2497 ], 2498 ], 2499 ], 2500 [ 2501 'type' => 'textfield', 2502 'heading' => esc_attr__( 'Font Size', 'avada_addons' ), 2503 'description' => esc_attr__( 'Controls the font size of the price. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2504 'param_name' => 'price-font-size', 2505 'value' => '', 2506 'group' => esc_attr__( 'Price', 'avada_addons' ), 2507 'dependency' => [ 2508 [ 2509 'element' => 'show-price', 2510 'value' => 'yes', 2511 'operator' => '==', 2512 ], 2513 ], 2514 ], 2515 [ 2516 'type' => 'colorpicker', 2517 'heading' => esc_attr__( 'Font Color', 'avada_addons' ), 2518 'description' => esc_attr__( 'Controls the color of the price, ex: #000.', 'avada_addons' ), 2519 'param_name' => 'price-color', 2520 'value' => '', 2521 'group' => esc_attr__( 'Price', 'avada_addons' ), 2522 'dependency' => [ 2523 [ 2524 'element' => 'show-price', 2525 'value' => 'yes', 2526 'operator' => '==', 2527 ], 2528 ], 2529 ], 2530 [ 2531 'type' => 'textfield', 2532 'heading' => esc_attr__( 'Line Height', 'avada_addons' ), 2533 'description' => esc_attr__( 'Controls the line height of the price. Enter value including any valid CSS unit, ex: 28px.', 'avada_addons' ), 2534 'param_name' => 'price-line-height', 2535 'value' => '', 2536 'group' => esc_attr__( 'Price', 'avada_addons' ), 2537 'dependency' => [ 2538 [ 2539 'element' => 'show-price', 2540 'value' => 'yes', 2541 'operator' => '==', 2542 ], 2543 ], 2544 ], 2545 [ 2546 'type' => 'dimension', 2547 'heading' => esc_attr__( 'Padding', 'avada_addons' ), 2548 'description' => esc_attr__( 'Controls the padding size of the price.', 'avada_addons' ), 2549 'param_name' => 'price-padding', 2550 'value' => [ 2551 'price-padding-top' => '', 2552 'price-padding-right' => '', 2553 'price-padding-bottom' => '', 2554 'price-padding-left' => '', 2555 ], 2556 'group' => esc_attr__( 'Price', 'avada_addons' ), 2557 'dependency' => [ 2558 [ 2559 'element' => 'show-price', 2560 'value' => 'yes', 2561 'operator' => '==', 2562 ], 2563 ], 2564 ], 2565 [ 2566 'type' => 'dimension', 2567 'heading' => esc_attr__( 'Margin', 'avada_addons' ), 2568 'description' => esc_attr__( 'Controls the margin size of the price.', 'avada_addons' ), 2569 'param_name' => 'price-margin', 2570 'value' => [ 2571 'price-margin-top' => '', 2572 'price-margin-right' => '', 2573 'price-margin-bottom' => '', 2574 'price-margin-left' => '', 2575 ], 2576 'group' => esc_attr__( 'Price', 'avada_addons' ), 2577 'dependency' => [ 2578 [ 2579 'element' => 'show-price', 2580 'value' => 'yes', 2581 'operator' => '==', 2582 ], 2583 ], 2584 ], 2585 [ 2586 'type' => 'textfield', 2587 'heading' => esc_attr__( 'Min Height', 'avada_addons' ), 2588 'description' => esc_attr__( 'Controls the minimum height of the price. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2589 'param_name' => 'price-min-height', 2590 'value' => '', 2591 'group' => esc_attr__( 'Price', 'avada_addons' ), 2592 'dependency' => [ 2593 [ 2594 'element' => 'show-price', 2595 'value' => 'yes', 2596 'operator' => '==', 2597 ], 2598 ], 2599 ], 2600 [ 2601 'type' => 'colorpicker', 2602 'heading' => esc_attr__( 'Full Price Background Color', 'avada_addons' ), 2603 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2604 'param_name' => 'full-price-background', 2605 'value' => '', 2606 'group' => esc_attr__( 'Price', 'avada_addons' ), 2607 'dependency' => [ 2608 [ 2609 'element' => 'show-price', 2610 'value' => 'yes', 2611 'operator' => '==', 2612 ], 2613 ], 2614 ], 2615 [ 2616 'type' => 'textfield', 2617 'heading' => esc_attr__( 'Full Price Font Size', 'avada_addons' ), 2618 'description' => esc_attr__( 'Controls the font size of the price. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2619 'param_name' => 'full-price-font-size', 2620 'value' => '', 2621 'group' => esc_attr__( 'Price', 'avada_addons' ), 2622 'dependency' => [ 2623 [ 2624 'element' => 'show-price', 2625 'value' => 'yes', 2626 'operator' => '==', 2627 ], 2628 ], 2629 ], 2630 [ 2631 'type' => 'colorpicker', 2632 'heading' => esc_attr__( 'Full Price Font Color', 'avada_addons' ), 2633 'description' => esc_attr__( 'Controls the color of the price, ex: #000.', 'avada_addons' ), 2634 'param_name' => 'full-price-color', 2635 'value' => '', 2636 'group' => esc_attr__( 'Price', 'avada_addons' ), 2637 'dependency' => [ 2638 [ 2639 'element' => 'show-price', 2640 'value' => 'yes', 2641 'operator' => '==', 2642 ], 2643 ], 2644 ], 2645 [ 2646 'type' => 'textfield', 2647 'heading' => esc_attr__( 'Full Price Line Height', 'avada_addons' ), 2648 'description' => esc_attr__( 'Controls the line height of the price. Enter value including any valid CSS unit, ex: 28px.', 'avada_addons' ), 2649 'param_name' => 'full-price-line-height', 2650 'value' => '', 2651 'group' => esc_attr__( 'Price', 'avada_addons' ), 2652 'dependency' => [ 2653 [ 2654 'element' => 'show-price', 2655 'value' => 'yes', 2656 'operator' => '==', 2657 ], 2658 ], 2659 ], 2660 [ 2661 'type' => 'dimension', 2662 'heading' => esc_attr__( 'Full Price Padding', 'avada_addons' ), 2663 'description' => esc_attr__( 'Controls the padding size of the price.', 'avada_addons' ), 2664 'param_name' => 'full-price-padding', 2665 'value' => [ 2666 'full-price-padding-top' => '', 2667 'full-price-padding-right' => '', 2668 'full-price-padding-bottom' => '', 2669 'full-price-padding-left' => '', 2670 ], 2671 'group' => esc_attr__( 'Price', 'avada_addons' ), 2672 'dependency' => [ 2673 [ 2674 'element' => 'show-price', 2675 'value' => 'yes', 2676 'operator' => '==', 2677 ], 2678 ], 2679 ], 2680 // BUTTON SECTION -------------------------------------------------------------------------------------------------------------------------- 2681 [ 2682 'type' => 'radio_button_set', 2683 'heading' => esc_attr__( 'Show Cart Button', 'avada_addons' ), 2684 'description' => esc_attr__( 'Select if you would to show the button.', 'avada_addons' ), 2685 'param_name' => 'show_cart_button', 2686 'value' => [ 2687 'yes' => esc_attr__( 'Yes', 'avada_addons' ), 2688 'no' => esc_attr__( 'No', 'avada_addons' ), 2689 ], 2690 'group' => esc_attr__( 'Button', 'avada_addons' ), 2691 'default' => 'yes', 2692 ], 2693 [ 2694 'type' => 'radio_button_set', 2695 'heading' => esc_attr__( 'Show Details Button', 'avada_addons' ), 2696 'description' => esc_attr__( 'Select if you would to show the button.', 'avada_addons' ), 2697 'param_name' => 'show_details_button', 2698 'value' => [ 2699 'yes' => esc_attr__( 'Yes', 'avada_addons' ), 2700 'no' => esc_attr__( 'No', 'avada_addons' ), 2701 ], 2702 'group' => esc_attr__( 'Button', 'avada_addons' ), 2703 'default' => 'no', 2704 ], 2705 [ 2706 'type' => 'font_family', 2707 'remove_from_atts' => true, 2708 'heading' => esc_attr__( 'Font Family', 'fusion-builder' ), 2709 'description' => sprintf( esc_html__( 'Controls the font family of the button text. Leave empty if the global font family for the corresponding heading size (h1-h6) should be used: %s.', 'fusion-builder' ), $to_link ), 2710 'param_name' => 'button', 2711 'group' => esc_attr__( 'Button', 'avada_addons' ), 2712 'default' => [ 2713 'font-family' => '', 2714 'font-variant' => '400', 2715 ], 2716 ], 2717 [ 2718 'type' => 'colorpicker', 2719 'heading' => esc_attr__( 'Background Color', 'avada_addons' ), 2720 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2721 'param_name' => 'button-color-bg', 2722 'value' => '', 2723 'group' => esc_attr__( 'Button', 'avada_addons' ), 2724 ], 2725 [ 2726 'type' => 'colorpicker', 2727 'heading' => esc_attr__( 'Font Color', 'avada_addons' ), 2728 'description' => esc_attr__( 'Controls the font color of the content, ex: #000.', 'avada_addons' ), 2729 'param_name' => 'button-font-color', 2730 'value' => '', 2731 'group' => esc_attr__( 'Button', 'avada_addons' ), 2732 ], 2733 [ 2734 'type' => 'colorpicker', 2735 'heading' => esc_attr__( 'Hover Background Color', 'avada_addons' ), 2736 'description' => esc_attr__( 'This field allows you to select the color with a hex value.', 'avada_addons' ), 2737 'param_name' => 'button-color-bg-hover', 2738 'value' => '', 2739 'group' => esc_attr__( 'Button', 'avada_addons' ), 2740 ], 2741 [ 2742 'type' => 'colorpicker', 2743 'heading' => esc_attr__( 'Hover Font Color', 'avada_addons' ), 2744 'description' => esc_attr__( 'Controls the font color of the content, ex: #000.', 'avada_addons' ), 2745 'param_name' => 'button-font-color-hover', 2746 'value' => '', 2747 'group' => esc_attr__( 'Button', 'avada_addons' ), 2748 ], 2749 [ 2750 'type' => 'textfield', 2751 'heading' => esc_attr__( 'Font Size', 'avada_addons' ), 2752 'description' => esc_attr__( 'Controls the font size of the Button. Enter value including any valid CSS unit, ex: 20px.', 'avada_addons' ), 2753 'param_name' => 'font-size-button', 2754 'value' => '', 2755 'group' => esc_attr__( 'Button', 'avada_addons' ), 2756 ], 2757 [ 2758 'type' => 'dimension', 2759 'heading' => esc_attr__( 'Padding', 'avada_addons' ), 2760 'description' => esc_attr__( 'Controls the padding size of the button.', 'avada_addons' ), 2761 'param_name' => 'button-padding', 2762 'value' => [ 2763 'button-padding-top' => '', 2764 'button-padding-right' => '', 2765 'button-padding-bottom' => '', 2766 'button-padding-left' => '', 2767 ], 2768 'group' => esc_attr__( 'Button', 'avada_addons' ), 2769 ], 2770 [ 2771 'type' => 'dimension', 2772 'heading' => esc_attr__( 'Margin', 'avada_addons' ), 2773 'description' => esc_attr__( 'Controls the margin size of the button.', 'avada_addons' ), 2774 'param_name' => 'button-margin', 2775 'value' => [ 2776 'button-margin-top' => '', 2777 'button-margin-right' => '', 2778 'button-margin-bottom' => '', 2779 'button-margin-left' => '', 2780 ], 2781 'group' => esc_attr__( 'Button', 'avada_addons' ), 2782 ], 2783 [ 2784 'type' => 'dimension', 2785 'heading' => esc_attr__( 'Border Radius', 'avada_addons' ), 2786 'description' => esc_attr__( 'Controls the border radius of the button.', 'avada_addons' ), 2787 'param_name' => 'button-border-radius', 2788 'value' => [ 2789 'button-border-top-right-radius' => '', 2790 'button-border-bottom-right-radius' => '', 2791 'button-border-bottom-left-radius' => '', 2792 'button-border-top-left-radius' => '', 2793 ], 2794 'group' => esc_attr__( 'Button', 'avada_addons' ), 2795 ], 2796 2797 ], 2798 ] 2799 ) 2800 ); 2801 } 2802 add_action( 'fusion_builder_before_init', 'adv_products_template_builder_archive' ); 2803 }
Note: See TracChangeset
for help on using the changeset viewer.