shortcode-vc-widget-sidebar.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Widgetised Sidebar', 'js_composer' ),
  7. 'base' => 'vc_widget_sidebar',
  8. 'class' => 'wpb_widget_sidebar_widget',
  9. 'icon' => 'icon-wpb-layout_sidebar',
  10. 'category' => esc_html__( 'Structure', 'js_composer' ),
  11. 'description' => esc_html__( 'WordPress widgetised sidebar', 'js_composer' ),
  12. 'params' => array(
  13. array(
  14. 'type' => 'textfield',
  15. 'heading' => esc_html__( 'Widget title', 'js_composer' ),
  16. 'param_name' => 'title',
  17. 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
  18. 'admin_label' => true,
  19. ),
  20. array(
  21. 'type' => 'widgetised_sidebars',
  22. 'heading' => esc_html__( 'Sidebar', 'js_composer' ),
  23. 'param_name' => 'sidebar_id',
  24. 'description' => esc_html__( 'Select widget area to display.', 'js_composer' ),
  25. ),
  26. array(
  27. 'type' => 'el_id',
  28. 'heading' => esc_html__( 'Element ID', 'js_composer' ),
  29. 'param_name' => 'el_id',
  30. '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>' ),
  31. ),
  32. array(
  33. 'type' => 'textfield',
  34. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  35. 'param_name' => 'el_class',
  36. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  37. ),
  38. ),
  39. );