Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. <?php
  2.  
  3. function factorian_countTo_vc_addon() {
  4. vc_map(
  5. array(
  6. "name" => __( "Factorian CountUp Box", "factorian-sctheme" ),
  7. "base" => "factorian_countup_box",
  8. "category" => __( "Factorian", "factorian-sctheme"),
  9. "params" => array(
  10. array(
  11. "type" => "iconpicker",
  12. "heading" => __( "Select Icon", "factorian-sctheme" ),
  13. "param_name" => "countup_icon",
  14. "description" => __( "Select FontAwesome Icon For Item ", "factorian-sctheme" )
  15. ),
  16. array(
  17. "type" => "colorpicker",
  18. "heading" => __( "Icon Color", "factorian-sctheme" ),
  19. "param_name" => "countup_icon_color",
  20. "description" => __( "Select The Icon Color ", "factorian-sctheme" )
  21. ),
  22. array(
  23. "type" => "textfield",
  24. "heading" => __( "CountTo Up Digits", "factorian-sctheme" ),
  25. "param_name" => "countup_start_from",
  26. "value" => __( "100", "factorian-sctheme" ),
  27. "description" => __( "CountUp Digits write here ", "factorian-sctheme" )
  28. ),
  29. array(
  30. "type" => "textfield",
  31. "heading" => __( "CountUp Delay", "factorian-sctheme" ),
  32. "param_name" => "countup_delay",
  33. "value" => __( "10", "factorian-sctheme" ),
  34. "description" => __( "Delay Time(s) write here ", "factorian-sctheme" )
  35. ),
  36. array(
  37. "type" => "textfield",
  38. "heading" => __( "CountUp Speed", "factorian-sctheme" ),
  39. "param_name" => "countup_speed",
  40. "description" => __( "Speed Digits write here ", "factorian-sctheme" )
  41. ),
  42. array(
  43. "type" => "textfield",
  44. "heading" => __( "CountUp Box Title", "factorian-sctheme" ),
  45. "param_name" => "countup_title",
  46. "description" => __( "Title write here ", "factorian-sctheme" )
  47. ),
  48. array(
  49. "type" => "colorpicker",
  50. "heading" => __( "CountUp Box Title Color", "factorian-sctheme" ),
  51. "param_name" => "countup_title_color",
  52. "description" => __( "Select Color ", "factorian-sctheme" )
  53. ),
  54. array(
  55. "type" => "colorpicker",
  56. "heading" => __( "CountTo Up Box Background Color", "factorian-sctheme" ),
  57. "param_name" => "countup_box_background",
  58. "description" => __( "Select Color ", "factorian-sctheme" )
  59. ),
  60. )
  61. ) );
  62. }
  63.  
  64. add_action( 'vc_before_init', 'factorian_countTo_vc_addon' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement