shortcode-vc-tour.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. return array(
  6. 'name' => esc_html__( 'Old Tour', 'js_composer' ),
  7. 'base' => 'vc_tour',
  8. 'show_settings_on_create' => false,
  9. 'is_container' => true,
  10. 'container_not_allowed' => true,
  11. 'deprecated' => '4.6',
  12. 'icon' => 'icon-wpb-ui-tab-content-vertical',
  13. 'category' => esc_html__( 'Content', 'js_composer' ),
  14. 'wrapper_class' => 'vc_clearfix',
  15. 'description' => esc_html__( 'Vertical tabbed content', 'js_composer' ),
  16. 'params' => array(
  17. array(
  18. 'type' => 'textfield',
  19. 'heading' => esc_html__( 'Widget title', 'js_composer' ),
  20. 'param_name' => 'title',
  21. 'description' => esc_html__( 'Enter text used as widget title (Note: located above content element).', 'js_composer' ),
  22. ),
  23. array(
  24. 'type' => 'dropdown',
  25. 'heading' => esc_html__( 'Auto rotate slides', 'js_composer' ),
  26. 'param_name' => 'interval',
  27. 'value' => array(
  28. esc_html__( 'Disable', 'js_composer' ) => 0,
  29. 3,
  30. 5,
  31. 10,
  32. 15,
  33. ),
  34. 'std' => 0,
  35. 'description' => esc_html__( 'Auto rotate slides each X seconds.', 'js_composer' ),
  36. ),
  37. array(
  38. 'type' => 'textfield',
  39. 'heading' => esc_html__( 'Extra class name', 'js_composer' ),
  40. 'param_name' => 'el_class',
  41. 'description' => esc_html__( 'Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer' ),
  42. ),
  43. ),
  44. 'custom_markup' => '
  45. <div class="wpb_tabs_holder wpb_holder vc_clearfix vc_container_for_children">
  46. <ul class="tabs_controls">
  47. </ul>
  48. %content%
  49. </div>',
  50. 'default_content' => '
  51. [vc_tab title="' . esc_html__( 'Tab 1', 'js_composer' ) . '" tab_id=""][/vc_tab]
  52. [vc_tab title="' . esc_html__( 'Tab 2', 'js_composer' ) . '" tab_id=""][/vc_tab]
  53. ',
  54. 'js_view' => 'VcTabsView',
  55. );