shortcode-vc-raw-html.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Raw HTML', 'js_composer' ),
  7. 'base' => 'vc_raw_html',
  8. 'icon' => 'icon-wpb-raw-html',
  9. 'category' => esc_html__( 'Structure', 'js_composer' ),
  10. 'wrapper_class' => 'clearfix',
  11. 'description' => esc_html__( 'Output raw HTML code on your page', 'js_composer' ),
  12. 'params' => array(
  13. array(
  14. 'type' => 'textarea_raw_html',
  15. 'holder' => 'div',
  16. 'heading' => esc_html__( 'Raw HTML', 'js_composer' ),
  17. 'param_name' => 'content',
  18. // @codingStandardsIgnoreLine
  19. 'value' => base64_encode( '<p>I am raw html block.<br/>Click edit button to change this html</p>' ),
  20. 'description' => esc_html__( 'Enter your HTML content.', 'js_composer' ),
  21. ),
  22. array(
  23. 'type' => 'el_id',
  24. 'heading' => esc_html__( 'Element ID', 'js_composer' ),
  25. 'param_name' => 'el_id',
  26. '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>' ),
  27. ),
  28. array(
  29. 'type' => 'textfield',
  30. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  31. 'param_name' => 'el_class',
  32. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  33. ),
  34. array(
  35. 'type' => 'css_editor',
  36. 'heading' => esc_html__( 'CSS box', 'js_composer' ),
  37. 'param_name' => 'css',
  38. 'group' => esc_html__( 'Design Options', 'js_composer' ),
  39. ),
  40. ),
  41. );