shortcode-vc-empty-space.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Empty Space', 'js_composer' ),
  7. 'base' => 'vc_empty_space',
  8. 'icon' => 'icon-wpb-ui-empty_space',
  9. 'show_settings_on_create' => true,
  10. 'category' => esc_html__( 'Content', 'js_composer' ),
  11. 'description' => esc_html__( 'Blank space with custom height', 'js_composer' ),
  12. 'params' => array(
  13. array(
  14. 'type' => 'textfield',
  15. 'heading' => esc_html__( 'Height', 'js_composer' ),
  16. 'param_name' => 'height',
  17. 'value' => '32px',
  18. 'admin_label' => true,
  19. 'description' => esc_html__( 'Enter empty space height (Note: CSS measurement units allowed).', 'js_composer' ),
  20. ),
  21. array(
  22. 'type' => 'el_id',
  23. 'heading' => esc_html__( 'Element ID', 'js_composer' ),
  24. 'param_name' => 'el_id',
  25. 'description' => sprintf( esc_html__( 'Enter element ID (Note: make sure it is unique and valid according to %sw3c specification%s).', 'js_composer' ), '<a href="https://www.w3schools.com/tags/att_global_id.asp" target="_blank">', '</a>' ),
  26. ),
  27. array(
  28. 'type' => 'textfield',
  29. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  30. 'param_name' => 'el_class',
  31. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  32. ),
  33. array(
  34. 'type' => 'css_editor',
  35. 'heading' => esc_html__( 'CSS box', 'js_composer' ),
  36. 'param_name' => 'css',
  37. 'group' => esc_html__( 'Design Options', 'js_composer' ),
  38. ),
  39. ),
  40. );