shortcode-vc-column-text.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Text Block', 'js_composer' ),
  7. 'icon' => 'icon-wpb-layer-shape-text',
  8. 'wrapper_class' => 'clearfix',
  9. 'category' => esc_html__( 'Content', 'js_composer' ),
  10. 'description' => esc_html__( 'A block of text with WYSIWYG editor', 'js_composer' ),
  11. 'params' => array(
  12. array(
  13. 'type' => 'textarea_html',
  14. 'holder' => 'div',
  15. 'heading' => esc_html__( 'Text', 'js_composer' ),
  16. 'param_name' => 'content',
  17. 'value' => '<p>' . esc_html__( 'I am text block. 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' ) . '</p>',
  18. ),
  19. vc_map_add_css_animation(),
  20. array(
  21. 'type' => 'el_id',
  22. 'heading' => esc_html__( 'Element ID', 'js_composer' ),
  23. 'param_name' => 'el_id',
  24. '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>' ),
  25. ),
  26. array(
  27. 'type' => 'textfield',
  28. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  29. 'param_name' => 'el_class',
  30. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  31. ),
  32. array(
  33. 'type' => 'css_editor',
  34. 'heading' => esc_html__( 'CSS box', 'js_composer' ),
  35. 'param_name' => 'css',
  36. 'group' => esc_html__( 'Design Options', 'js_composer' ),
  37. ),
  38. ),
  39. );