vc-tour.php 544 B

12345678910111213141516171819202122232425
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) {
  3. die( '-1' );
  4. }
  5. require_once vc_path_dir( 'SHORTCODES_DIR', 'vc-tabs.php' );
  6. /**
  7. * Class WPBakeryShortCode_Vc_Tour
  8. */
  9. class WPBakeryShortCode_Vc_Tour extends WPBakeryShortCode_Vc_Tabs {
  10. /**
  11. * @return mixed|string
  12. */
  13. protected function getFileName() {
  14. return 'vc_tabs';
  15. }
  16. /**
  17. * @return string
  18. */
  19. public function getTabTemplate() {
  20. return '<div class="wpb_template">' . do_shortcode( '[vc_tab title="' . esc_attr__( 'Slide', 'js_composer' ) . '" tab_id=""][/vc_tab]' ) . '</div>';
  21. }
  22. }