shortcode-vc-cta-button2.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Old Call to Action Button', 'js_composer' ) . ' 2',
  7. 'base' => 'vc_cta_button2',
  8. 'icon' => 'icon-wpb-call-to-action',
  9. 'deprecated' => '4.5',
  10. 'content_element' => false,
  11. 'category' => array( esc_html__( 'Content', 'js_composer' ) ),
  12. 'description' => esc_html__( 'Catch visitors attention with CTA block', 'js_composer' ),
  13. 'params' => array(
  14. array(
  15. 'type' => 'textfield',
  16. 'heading' => esc_html__( 'Heading', 'js_composer' ),
  17. 'admin_label' => true,
  18. 'param_name' => 'h2',
  19. 'value' => esc_html__( 'Hey! I am first heading line feel free to change me', 'js_composer' ),
  20. 'description' => esc_html__( 'Enter text for heading line.', 'js_composer' ),
  21. ),
  22. array(
  23. 'type' => 'textfield',
  24. 'heading' => esc_html__( 'Subheading', 'js_composer' ),
  25. 'param_name' => 'h4',
  26. 'value' => '',
  27. 'description' => esc_html__( 'Enter text for subheading line.', 'js_composer' ),
  28. ),
  29. array(
  30. 'type' => 'dropdown',
  31. 'heading' => esc_html__( 'Shape', 'js_composer' ),
  32. 'param_name' => 'style',
  33. 'value' => vc_get_shared( 'cta styles' ),
  34. 'description' => esc_html__( 'Select display shape and style.', 'js_composer' ),
  35. ),
  36. array(
  37. 'type' => 'dropdown',
  38. 'heading' => esc_html__( 'Width', 'js_composer' ),
  39. 'param_name' => 'el_width',
  40. 'value' => vc_get_shared( 'cta widths' ),
  41. 'description' => esc_html__( 'Select element width (percentage).', 'js_composer' ),
  42. ),
  43. array(
  44. 'type' => 'dropdown',
  45. 'heading' => esc_html__( 'Text alignment', 'js_composer' ),
  46. 'param_name' => 'txt_align',
  47. 'value' => vc_get_shared( 'text align' ),
  48. 'description' => esc_html__( 'Select text alignment in "Call to Action" block.', 'js_composer' ),
  49. ),
  50. array(
  51. 'type' => 'colorpicker',
  52. 'heading' => esc_html__( 'Background color', 'js_composer' ),
  53. 'param_name' => 'accent_color',
  54. 'description' => esc_html__( 'Select background color.', 'js_composer' ),
  55. ),
  56. array(
  57. 'type' => 'textarea_html',
  58. 'heading' => esc_html__( 'Text', 'js_composer' ),
  59. 'param_name' => 'content',
  60. 'value' => esc_html__( 'I am promo text. 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.', 'js_composer' ),
  61. ),
  62. array(
  63. 'type' => 'vc_link',
  64. 'heading' => esc_html__( 'URL (Link)', 'js_composer' ),
  65. 'param_name' => 'link',
  66. 'description' => esc_html__( 'Add link to button (Important: adding link automatically adds button).', 'js_composer' ),
  67. ),
  68. array(
  69. 'type' => 'textfield',
  70. 'heading' => esc_html__( 'Text on the button', 'js_composer' ),
  71. 'param_name' => 'title',
  72. 'value' => esc_html__( 'Text on the button', 'js_composer' ),
  73. 'description' => esc_html__( 'Add text on the button.', 'js_composer' ),
  74. ),
  75. array(
  76. 'type' => 'dropdown',
  77. 'heading' => esc_html__( 'Shape', 'js_composer' ),
  78. 'param_name' => 'btn_style',
  79. 'value' => vc_get_shared( 'button styles' ),
  80. 'description' => esc_html__( 'Select button display style and shape.', 'js_composer' ),
  81. ),
  82. array(
  83. 'type' => 'dropdown',
  84. 'heading' => esc_html__( 'Color', 'js_composer' ),
  85. 'param_name' => 'color',
  86. 'value' => vc_get_shared( 'colors' ),
  87. 'description' => esc_html__( 'Select button color.', 'js_composer' ),
  88. 'param_holder_class' => 'vc_colored-dropdown',
  89. ),
  90. array(
  91. 'type' => 'dropdown',
  92. 'heading' => esc_html__( 'Size', 'js_composer' ),
  93. 'param_name' => 'size',
  94. 'value' => vc_get_shared( 'sizes' ),
  95. 'std' => 'md',
  96. 'description' => esc_html__( 'Select button size.', 'js_composer' ),
  97. ),
  98. array(
  99. 'type' => 'dropdown',
  100. 'heading' => esc_html__( 'Button position', 'js_composer' ),
  101. 'param_name' => 'position',
  102. 'value' => array(
  103. esc_html__( 'Right', 'js_composer' ) => 'right',
  104. esc_html__( 'Left', 'js_composer' ) => 'left',
  105. esc_html__( 'Bottom', 'js_composer' ) => 'bottom',
  106. ),
  107. 'description' => esc_html__( 'Select button alignment.', 'js_composer' ),
  108. ),
  109. vc_map_add_css_animation(),
  110. array(
  111. 'type' => 'textfield',
  112. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  113. 'param_name' => 'el_class',
  114. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  115. ),
  116. ),
  117. );